diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.format.ps1xml b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.format.ps1xml index 9148c3f5050f..7dab5b7d5400 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.format.ps1xml +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.format.ps1xml @@ -686,60 +686,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -758,6 +710,15 @@ + + + + + + + + + @@ -765,60 +726,12 @@ - - Etag - - - IdentityPrincipalId - - - IdentityTenantId - - - IdentityType - - - Kind - Location - - ManagedBy - Name - - PlanName - - - PlanProduct - - - PlanPromotionCode - - - PlanPublisher - - - PlanVersion - - - SkuCapacity - - - SkuFamily - - - SkuName - - - SkuSize - - - SkuTier - SystemDataCreatedAt @@ -837,6 +750,15 @@ SystemDataLastModifiedByType + + Etag + + + Kind + + + ManagedBy + ResourceGroupName @@ -1006,6 +928,9 @@ + + + @@ -1034,6 +959,9 @@ ObjectId + + OboTenantId + ShowInFeed @@ -1149,28 +1077,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTags - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTags#Multiple - - - - - - - - - - - - Item - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationProperties @@ -1349,34 +1255,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorProperties - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorProperties#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CreateDeleteProperties @@ -1575,28 +1453,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTags - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTags#Multiple - - - - - - - - - - - - Item - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopProperties @@ -2008,60 +1864,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2080,6 +1888,15 @@ + + + + + + + + + @@ -2087,60 +1904,12 @@ - - Etag - - - IdentityPrincipalId - - - IdentityTenantId - - - IdentityType - - - Kind - Location - - ManagedBy - Name - - PlanName - - - PlanProduct - - - PlanPromotionCode - - - PlanPublisher - - - PlanVersion - - - SkuCapacity - - - SkuFamily - - - SkuName - - - SkuSize - - - SkuTier - SystemDataCreatedAt @@ -2159,6 +1928,15 @@ SystemDataLastModifiedByType + + Etag + + + Kind + + + ManagedBy + ResourceGroupName @@ -2254,6 +2032,9 @@ + + + @@ -2318,6 +2099,9 @@ + + AllowRdpShortPathWithPrivateLink + CustomRdpProperty @@ -2412,12 +2196,18 @@ + + + + + + @@ -2445,6 +2235,9 @@ + + + @@ -2488,12 +2281,18 @@ + + AllowRdpShortPathWithPrivateLink + CloudPcResource CustomRdpProperty + + DeploymentScope + Description @@ -2521,6 +2320,9 @@ ObjectId + + OboTenantId + PersonalDesktopAssignmentType @@ -2701,46 +2503,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolUpdateFault - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolUpdateFault#Multiple - - - - - - - - - - - - - - - - - - - - - FaultCode - - - FaultContext - - - FaultText - - - FaultType - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ImageInfoPatchProperties @@ -3643,21 +3405,6 @@ - - - - - - - - - - - - - - - @@ -3686,21 +3433,6 @@ Name - - PrivateEndpointId - - - PrivateLinkServiceConnectionStateActionsRequired - - - PrivateLinkServiceConnectionStateDescription - - - PrivateLinkServiceConnectionStateStatus - - - ProvisioningState - SystemDataCreatedAt @@ -4013,42 +3745,20 @@ - - - - - - - - - - - ExpirationTime - - - Token - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource - - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource#Multiple - - - - - + + + + - Name + ExpirationTime + + + Token @@ -4056,82 +3766,22 @@ - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet#Multiple + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - Name - - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt - - - SystemDataLastModifiedBy - - - SystemDataLastModifiedByType - - - Etag - - - Kind - - - ManagedBy - @@ -4206,9 +3856,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationList + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationListResult - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationListResult#Multiple @@ -4262,60 +3912,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -4334,6 +3936,15 @@ + + + + + + + + + @@ -4341,60 +3952,12 @@ - - Etag - - - IdentityPrincipalId - - - IdentityTenantId - - - IdentityType - - - Kind - Location - - ManagedBy - Name - - PlanName - - - PlanProduct - - - PlanPromotionCode - - - PlanPublisher - - - PlanVersion - - - SkuCapacity - - - SkuFamily - - - SkuName - - - SkuSize - - - SkuTier - SystemDataCreatedAt @@ -4413,6 +3976,15 @@ SystemDataLastModifiedByType + + Etag + + + Kind + + + ManagedBy + ResourceGroupName @@ -5547,9 +5119,6 @@ - - - @@ -5578,9 +5147,6 @@ SystemDataLastModifiedByType - - AzureAsyncOperation - ResourceGroupName @@ -7090,60 +6656,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -7162,6 +6680,15 @@ + + + + + + + + + @@ -7169,60 +6696,12 @@ - - Etag - - - IdentityPrincipalId - - - IdentityTenantId - - - IdentityType - - - Kind - Location - - ManagedBy - Name - - PlanName - - - PlanProduct - - - PlanPromotionCode - - - PlanPublisher - - - PlanVersion - - - SkuCapacity - - - SkuFamily - - - SkuName - - - SkuSize - - - SkuTier - SystemDataCreatedAt @@ -7241,6 +6720,15 @@ SystemDataLastModifiedByType + + Etag + + + Kind + + + ManagedBy + ResourceGroupName @@ -7346,6 +6834,9 @@ + + + @@ -7365,6 +6856,9 @@ ObjectId + + OboTenantId + PublicNetworkAccess diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Properties/AssemblyInfo.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Properties/AssemblyInfo.cs index a974d2da9b6b..2f98cb9a1b56 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Properties/AssemblyInfo.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("5.4.2")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Disconnect-AzWvdUserSession.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Disconnect-AzWvdUserSession.ps1 index ebe7f899bbbf..7ad2c5f74e5b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Disconnect-AzWvdUserSession.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Disconnect-AzWvdUserSession.ps1 @@ -32,14 +32,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -66,14 +66,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Expand-AzWvdMsixImage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Expand-AzWvdMsixImage.ps1 index 2f8684fd5c15..7e6bda30384e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Expand-AzWvdMsixImage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Expand-AzWvdMsixImage.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Expands and Lists MSIX packages in an Image, given the Image Path. +Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs. .Description -Expands and Lists MSIX packages in an Image, given the Image Path. +Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs. .Example Expand-AzWvdMsixImage -HostPoolName HostPoolName ` -ResourceGroupName resourceGroupName ` @@ -37,14 +37,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdActiveSessionHostConfiguration.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdActiveSessionHostConfiguration.ps1 index abda39155164..d30c6fe328df 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdActiveSessionHostConfiguration.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdActiveSessionHostConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. +Get a ActiveSessionHostConfiguration. .Description -Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. +Get a ActiveSessionHostConfiguration. .Example Get-AzWvdActiveSessionHostConfiguration -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdAppAttachPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdAppAttachPackage.ps1 index 1955d8714fc3..8d6e64ec8268 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdAppAttachPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdAppAttachPackage.ps1 @@ -38,14 +38,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -58,17 +58,17 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdAppAttachPackage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -96,7 +96,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.String] # OData filter expression. - # Valid properties for filtering are package name, host pool, package owner name, and custom data. + # Valid properties for filtering are package name, host pool, and resource group. ${Filter}, [Parameter()] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplication.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplication.ps1 index 5352c0ed75b2..6595d067250e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplication.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplication.ps1 @@ -34,14 +34,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplicationGroup.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplicationGroup.ps1 index f1ae9a559a78..db5f67092e39 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplicationGroup.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplicationGroup.ps1 @@ -34,14 +34,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -54,7 +54,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdApplicationGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('ApplicationGroupName')] @@ -64,7 +64,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -95,19 +95,19 @@ param( # Valid properties for filtering are applicationGroupType. ${Filter}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdDesktop.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdDesktop.ps1 index fca166502b61..be8e395577f8 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdDesktop.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdDesktop.ps1 @@ -34,14 +34,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPool.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPool.ps1 index 3494857d20ba..714458c24889 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPool.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPool.ps1 @@ -34,14 +34,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -54,7 +54,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdHostPool { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('HostPoolName')] @@ -64,7 +64,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPoolRegistrationToken.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPoolRegistrationToken.ps1 index 61d85810e190..b896c04b2903 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPoolRegistrationToken.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPoolRegistrationToken.ps1 @@ -34,14 +34,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdMsixPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdMsixPackage.ps1 index 92d0e52831f5..2056889e1a92 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdMsixPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdMsixPackage.ps1 @@ -34,14 +34,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateEndpointConnection.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateEndpointConnection.ps1 index 542972409b50..522d6038c9ad 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateEndpointConnection.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateEndpointConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a private endpoint connection. +Get a PrivateEndpointConnectionWithSystemData .Description -Get a private endpoint connection. +Get a PrivateEndpointConnectionWithSystemData .Example Get-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -workspaceName WorkspaceName -privateEndpointConnectionName privateName .Example @@ -38,14 +38,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -55,14 +55,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -72,14 +72,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace WORKSPACEINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -94,6 +94,13 @@ function Get-AzWvdPrivateEndpointConnection { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityHostPool', Mandatory)] @@ -101,7 +108,7 @@ param( [Alias('PrivateEndpointConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the private endpoint connection associated with the Azure resource. + # The name parameter for private endpoint ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -125,19 +132,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the workspace - ${WorkspaceName}, - [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, + # The name of the workspace + ${WorkspaceName}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] @@ -158,19 +158,19 @@ param( # Identity Parameter ${WorkspaceInputObject}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateLinkResource.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateLinkResource.ps1 index 6e69dc860139..371f010a3357 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateLinkResource.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdPrivateLinkResource.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -List the private link resources available for this workspace. +List the private link resources available for this hostpool. .Description -List the private link resources available for this workspace. +List the private link resources available for this hostpool. .Example Get-AzWvdPrivateLinkResource -ResourceGroupName ResourceGroupName -WorkspaceName workspaceName .Example @@ -40,6 +40,12 @@ param( # The name is case insensitive. ${ResourceGroupName}, + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] @@ -48,18 +54,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the workspace ${WorkspaceName}, - [Parameter(ParameterSetName='List1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlan.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlan.ps1 index d3a3a00e7fff..77c7e0af1cc0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlan.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlan.ps1 @@ -34,14 +34,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -54,7 +54,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdScalingPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('ScalingPlanName')] @@ -64,7 +64,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] @@ -89,7 +89,7 @@ param( # Identity Parameter ${InputObject}, - [Parameter(ParameterSetName='List2', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the host pool within the specified resource group diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPersonalSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPersonalSchedule.ps1 index 15896ddc3e50..25a5d5bd4d88 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPersonalSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPersonalSchedule.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPooledSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPooledSchedule.ps1 index 4aef78ea4a63..41a2fc5a4157 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPooledSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdScalingPlanPooledSchedule.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHost.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHost.ps1 index f36ece080139..2720a6d555b6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHost.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHost.ps1 @@ -34,14 +34,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostConfiguration.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostConfiguration.ps1 index 6cc1bb191a1a..9024a43692b2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostConfiguration.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostConfiguration.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagement.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagement.ps1 index 3c2dce3108f0..9114de8b7309 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagement.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagement.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagementsUpdateStatus.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagementsUpdateStatus.ps1 index a4fa9c7fa5f1..00e8b1bec1ca 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagementsUpdateStatus.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostManagementsUpdateStatus.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get the session host get status for a given hostpool. +Get a SessionHostManagementUpdateStatus. .Description -Get the session host get status for a given hostpool. +Get a SessionHostManagementUpdateStatus. .Example Get-AzWvdSessionHostManagementsUpdateStatus -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostProvisioningStatus.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostProvisioningStatus.ps1 index 71b0b9731266..f0c53db8b83d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostProvisioningStatus.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdSessionHostProvisioningStatus.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdUserSession.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdUserSession.ps1 index a1f7539c8234..caaba09c22c0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdUserSession.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdUserSession.ps1 @@ -36,14 +36,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -53,14 +53,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -70,14 +70,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -90,7 +90,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdUserSession { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] @@ -120,7 +120,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityHostPool', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the session host within the specified host pool @@ -154,13 +154,6 @@ param( # Identity Parameter ${SessionHostInputObject}, - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] - [System.String] - # OData filter expression. - # Valid properties for filtering are userprincipalname and sessionstate. - ${Filter}, - [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] @@ -182,6 +175,13 @@ param( # Number of items per page. ${PageSize}, + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] + [System.String] + # OData filter expression. + # Valid properties for filtering are userprincipalname and sessionstate. + ${Filter}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdWorkspace.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdWorkspace.ps1 index e04c05214f67..92cb653f6777 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdWorkspace.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdWorkspace.ps1 @@ -34,14 +34,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -54,7 +54,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdWorkspace { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('WorkspaceName')] @@ -64,7 +64,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -87,19 +87,19 @@ param( # Identity Parameter ${InputObject}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Import-AzWvdAppAttachPackageInfo.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Import-AzWvdAppAttachPackageInfo.ps1 index d7c55668dc16..08f127a15c33 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Import-AzWvdAppAttachPackageInfo.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Import-AzWvdAppAttachPackageInfo.ps1 @@ -41,14 +41,14 @@ IMPORTPACKAGEINFOREQUEST : Information to import app [Path ]: URI to Image INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdCancelSessionHostProvisioning.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdCancelSessionHostProvisioning.ps1 index 93a867b79f6b..1fa51d9bdeb0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdCancelSessionHostProvisioning.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdCancelSessionHostProvisioning.ps1 @@ -35,14 +35,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdControlSessionHostUpdate.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdControlSessionHostUpdate.ps1 index b15e1a3f14ff..960530374b9c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdControlSessionHostUpdate.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdControlSessionHostUpdate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Control post of a hostpool. +Control actions on a session host post .Description -Control post of a hostpool. +Control actions on a session host post .Example Invoke-AzWvdControlSessionHostUpdate -HostPoolName HostPoolName ` -ResourceGroupName resourceGroupName ` @@ -37,19 +37,19 @@ 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. -HOSTPOOLUPDATECONTROLPARAMETER : Represents properties for a hostpool update control request. +HOSTPOOLUPDATECONTROLPARAMETER : Object containing control action for hostpool update. Action : Action types for controlling hostpool update. [CancelMessage ]: The cancel message sent to the user on the session host. This is can only be specified if the action is 'Cancel'. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -105,7 +105,7 @@ param( [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter] - # Represents properties for a hostpool update control request. + # Object containing control action for hostpool update. ${HostPoolUpdateControlParameter}, [Parameter(ParameterSetName='PostExpanded', Mandatory)] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdInitiateSessionHostUpdate.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdInitiateSessionHostUpdate.ps1 index 3dfae8a8253a..1a8cf9cfcce9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdInitiateSessionHostUpdate.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdInitiateSessionHostUpdate.ps1 @@ -39,14 +39,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -60,7 +60,7 @@ UPDATESESSIONHOSTSREQUESTBODY : Object containin [ScheduledDateTimeZone ]: The timeZone as defined in https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid. [UpdateDeleteOriginalVM ]: Whether not to save original disk. False by default. [UpdateLogOffDelayMinute ]: Grace period before logging off users in minutes. - [UpdateLogOffMessage ]: Log off message sent to user for logoff. + [UpdateLogOffMessage ]: Log off message sent to user for logoff. Default value is an empty string. [UpdateMaxVmsRemoved ]: The maximum number of virtual machines to be removed during hostpool update. .Link https://learn.microsoft.com/powershell/module/az.desktopvirtualization/invoke-azwvdinitiatesessionhostupdate @@ -148,6 +148,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Log off message sent to user for logoff. + # Default value is an empty string. ${UpdateLogOffMessage}, [Parameter(ParameterSetName='PostExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdRetrySessionHostProvisioning.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdRetrySessionHostProvisioning.ps1 index 275d56d17c55..4179d54e13a3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdRetrySessionHostProvisioning.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Invoke-AzWvdRetrySessionHostProvisioning.ps1 @@ -34,14 +34,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdAppAttachPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdAppAttachPackage.ps1 index 90d1ba57106c..2842f80aabb6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdAppAttachPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdAppAttachPackage.ps1 @@ -70,15 +70,15 @@ APPATTACHPACKAGE : [CustomData ]: Field that can be populated with custom data and filtered on in list GET calls [FailHealthCheckOnStagingFailure ]: Parameter indicating how the health check should behave if this package fails staging [HostPoolReference >]: List of Hostpool resource Ids. - [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. - [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. - [ImageDisplayName ]: User friendly Name to be displayed in the portal. - [ImageIsActive ]: Make this version of the package the active one across the hostpool. + [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. + [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. + [ImageDisplayName ]: User friendly Name to be displayed in the portal. + [ImageIsActive ]: Make this version of the package the active one across the hostpool. [ImageIsPackageTimestamped ]: Is package timestamped so it can ignore the certificate expiry date [ImageIsRegularRegistration ]: Specifies how to register Package in feed. - [ImageLastUpdated ]: Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + [ImageLastUpdated ]: Date Package was last updated, found in the appxmanifest.xml. [ImagePackageAlias ]: Alias of App Attach Package. Assigned at import time - [ImagePackageApplication >]: List of package applications. + [ImagePackageApplication >]: List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -86,24 +86,24 @@ APPATTACHPACKAGE : [IconImageName ]: User friendly name. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. - [ImagePackageDependency >]: List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files + [ImagePackageDependency >]: List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. - [ImagePackageFamilyName ]: Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. - [ImagePackageFullName ]: Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - [ImagePackageName ]: Package Name from appxmanifest.xml. - [ImagePackageRelativePath ]: Relative Path to the package inside the image. - [ImagePath ]: VHD/CIM/APP-V image path on Network Share. - [ImageVersion ]: Package Version found in the appxmanifest.xml. - [KeyVaultUrl ]: URL of keyvault location to store certificate + [ImagePackageFamilyName ]: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + [ImagePackageFullName ]: Package Full Name from appxmanifest.xml. + [ImagePackageName ]: Package Name from appxmanifest.xml. + [ImagePackageRelativePath ]: Relative Path to the package inside the image. + [ImagePath ]: VHD/CIM image path on Network Share. + [ImageVersion ]: Package version found in the appxmanifest.xml. + [KeyVaultUrl ]: URL path to certificate name located in keyVault [PackageLookbackUrl ]: Lookback url to third party control plane, is null for native app attach packages [PackageOwnerName ]: Specific name of package owner, is "AppAttach" for native app attach packages [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. -IMAGEPACKAGEAPPLICATION : List of package applications. +IMAGEPACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -112,8 +112,8 @@ IMAGEPACKAGEAPPLICATION : List of package applicatio [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -IMAGEPACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +IMAGEPACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. .Link @@ -127,7 +127,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(Mandatory)] @@ -220,7 +220,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.DateTime] - # Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + # Date Package was last updated, found in the appxmanifest.xml. ${ImageLastUpdated}, [Parameter(ParameterSetName='CreateExpanded')] @@ -247,13 +247,14 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + # Package Family Name from appxmanifest.xml. + # Contains Package Name and Publisher name. ${ImagePackageFamilyName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. + # Package Full Name from appxmanifest.xml. ${ImagePackageFullName}, [Parameter(ParameterSetName='CreateExpanded')] @@ -271,20 +272,20 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # VHD/CIM/APP-V image path on Network Share. + # VHD/CIM image path on Network Share. ${ImagePath}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${ImageVersion}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='ImageObject', DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # URL of keyvault location to store certificate + # URL path to certificate name located in keyVault ${KeyVaultUrl}, [Parameter(ParameterSetName='CreateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdApplicationGroup.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdApplicationGroup.ps1 index 2174f2dc9016..d0a0505c1a67 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdApplicationGroup.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdApplicationGroup.ps1 @@ -119,8 +119,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -133,6 +132,12 @@ param( # If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ${ManagedBy}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdHostPool.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdHostPool.ps1 index bde1b47720b0..92fd6fa038d3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdHostPool.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdHostPool.ps1 @@ -177,12 +177,26 @@ param( # Whether to use localTime of the virtual machine. ${AgentUpdateUseSessionHostLocalTime}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + ${AllowRdpShortPathWithPrivateLink}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Custom rdp property of HostPool. ${CustomRdpProperty}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # DeploymentScope type for HostPool. + ${DeploymentScope}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] @@ -228,8 +242,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -256,6 +269,12 @@ param( # The max session limit of HostPool. ${MaxSessionLimit}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Automatic", "Direct")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdMsixPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdMsixPackage.ps1 index aaeea366830c..68919bf6d501 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdMsixPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdMsixPackage.ps1 @@ -51,7 +51,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PACKAGEAPPLICATION : List of package applications. +PACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -60,8 +60,8 @@ PACKAGEAPPLICATION : List of package applications. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -PACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +PACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. .Link @@ -177,7 +177,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${Version}, [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlan.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlan.ps1 index c52ab6a89ae7..5c2ee146241c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlan.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlan.ps1 @@ -99,7 +99,7 @@ HOSTPOOLREFERENCE : List of ScalingHostPoolReferenc [HostPoolArmPath ]: Arm path of referenced hostpool. [ScalingPlanEnabled ]: Is the scaling plan enabled for this hostpool. -SCHEDULE : List of Pooled ScalingSchedule definitions. +SCHEDULE : List of ScalingPlanPooledSchedule definitions. [CreateDeleteRampDownMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampDownMinimumHostPoolSize ]: Minimum number of session hosts that will be be created by the Scaling Service. Scaling will not delete any hosts when this limit is met. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampUpMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. @@ -219,8 +219,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -272,7 +271,7 @@ param( [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[]] - # List of Pooled ScalingSchedule definitions. + # List of ScalingPlanPooledSchedule definitions. ${Schedule}, [Parameter(ParameterSetName='CreateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPersonalSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPersonalSchedule.ps1 index 4a2d514b2534..407109a09a7b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPersonalSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPersonalSchedule.ps1 @@ -89,7 +89,7 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -97,54 +97,6 @@ param( # Set of days of the week on which this schedule is active. ${DaysOfWeek}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${OffPeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${OffPeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${PeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${PeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampDownStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampDownStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampUpStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampUpStartTimeMinute}, - [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "Deallocate", "Hibernate")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -171,6 +123,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period. ${OffPeakMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${OffPeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${OffPeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -204,6 +168,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period. ${PeakMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${PeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${PeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -237,6 +213,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period. ${RampDownMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampDownStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampDownStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -277,6 +265,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period. ${RampUpMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampUpStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampUpStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPooledSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPooledSchedule.ps1 index f70f9d785d3e..be30630c25dc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPooledSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdScalingPlanPooledSchedule.ps1 @@ -81,74 +81,6 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.String[]] - # Set of days of the week on which this schedule is active. - ${DaysOfWeek}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${OffPeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${OffPeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${PeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${PeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # Capacity threshold for ramp down period. - ${RampDownCapacityThresholdPct}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampDownStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampDownStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # Capacity threshold for ramp up period. - ${RampUpCapacityThresholdPct}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampUpStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampUpStartTimeMinute}, - [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] @@ -179,6 +111,14 @@ param( # This requires the assigned hostpool to have a session host config property. ${CreateDeleteRampUpMinimumHostPoolSize}, + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String[]] + # Set of days of the week on which this schedule is active. + ${DaysOfWeek}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -186,6 +126,18 @@ param( # Load balancing algorithm for off-peak period. ${OffPeakLoadBalancingAlgorithm}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${OffPeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${OffPeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -193,6 +145,24 @@ param( # Load balancing algorithm for peak period. ${PeakLoadBalancingAlgorithm}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${PeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${PeakStartTimeMinute}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # Capacity threshold for ramp down period. + ${RampDownCapacityThresholdPct}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] @@ -218,6 +188,18 @@ param( # Notification message for users during ramp down period. ${RampDownNotificationMessage}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampDownStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampDownStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ZeroSessions", "ZeroActiveSessions")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -231,6 +213,12 @@ param( # Number of minutes to wait to stop hosts during ramp down period. ${RampDownWaitTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # Capacity threshold for ramp up period. + ${RampUpCapacityThresholdPct}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -244,6 +232,18 @@ param( # Minimum host percentage for ramp up period. ${RampUpMinimumHostsPct}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampUpStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampUpStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("PowerManage", "CreateDeletePowerManage")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostConfiguration.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostConfiguration.ps1 index efef8344b735..b5959198e00d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostConfiguration.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostConfiguration.ps1 @@ -165,7 +165,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The resource id of the custom image. + # The resource ID of the image. ${CustomInfoResourceId}, [Parameter(ParameterSetName='CreateExpanded')] @@ -182,7 +182,7 @@ param( # Gets or sets specifies the ephemeral disk placement for operating system disk. # The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. # Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. - # Possible values include: 'CacheDisk', 'ResourceDisk' + # Possible values include: 'CacheDisk', 'ResourceDisk'. ${DiffDiskSettingPlacement}, [Parameter(ParameterSetName='CreateExpanded')] @@ -207,13 +207,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The disk type used by virtual machine in hostpool session host. + # Managed Disk information. ${ManagedDiskType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The exact version of the image. + # The version of the image. ${MarketplaceInfoExactVersion}, [Parameter(ParameterSetName='CreateExpanded')] @@ -231,7 +231,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The sku of the image. + # The SKU of the image. ${MarketplaceInfoSku}, [Parameter(ParameterSetName='CreateExpanded')] @@ -258,14 +258,14 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] - # Whether to use vTPM on the virtual machine. + # Whether to use vTpm on the virtual machine. ${SecurityInfoVTpmEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # The Location for the session host to be created in. - # It will default to the location of the hostpool if not provided. + # It will default to the location of the hostpool if not provided ${VMLocation}, [Parameter(ParameterSetName='CreateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostManagement.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostManagement.ps1 index b29a6951b0e7..60689255843d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostManagement.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdSessionHostManagement.ps1 @@ -88,13 +88,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + # Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation. ${ProvisioningCanaryPolicy}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] - # the number of session hosts to exist in the Host Pool. + # The number of session hosts to exist in the Host Pool. ${ProvisioningInstanceCount}, [Parameter(ParameterSetName='CreateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdWorkspace.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdWorkspace.ps1 index 8a07f89e50e4..0f08820b98b4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdWorkspace.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/New-AzWvdWorkspace.ps1 @@ -109,8 +109,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -123,6 +122,12 @@ param( # If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ${ManagedBy}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/ProxyCmdletDefinitions.ps1 index 90140c4bd824..d918d74e1a05 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -32,14 +32,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -66,14 +66,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -300,9 +300,9 @@ end { <# .Synopsis -Expands and Lists MSIX packages in an Image, given the Image Path. +Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs. .Description -Expands and Lists MSIX packages in an Image, given the Image Path. +Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs. .Example Expand-AzWvdMsixImage -HostPoolName HostPoolName ` -ResourceGroupName resourceGroupName ` @@ -321,14 +321,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -562,9 +562,9 @@ end { <# .Synopsis -Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. +Get a ActiveSessionHostConfiguration. .Description -Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. +Get a ActiveSessionHostConfiguration. .Example Get-AzWvdActiveSessionHostConfiguration -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName @@ -578,14 +578,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -802,14 +802,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -822,17 +822,17 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdAppAttachPackage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -860,7 +860,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.String] # OData filter expression. - # Valid properties for filtering are package name, host pool, package owner name, and custom data. + # Valid properties for filtering are package name, host pool, and resource group. ${Filter}, [Parameter()] @@ -1032,14 +1032,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -1052,7 +1052,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdApplicationGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('ApplicationGroupName')] @@ -1062,7 +1062,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -1093,19 +1093,19 @@ param( # Valid properties for filtering are applicationGroupType. ${Filter}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. @@ -1280,14 +1280,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -1297,14 +1297,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -1551,14 +1551,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -1568,14 +1568,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -1821,14 +1821,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2041,14 +2041,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2061,7 +2061,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdHostPool { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('HostPoolName')] @@ -2071,7 +2071,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -2284,14 +2284,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2301,14 +2301,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2536,9 +2536,9 @@ end { <# .Synopsis -Get a private endpoint connection. +Get a PrivateEndpointConnectionWithSystemData .Description -Get a private endpoint connection. +Get a PrivateEndpointConnectionWithSystemData .Example Get-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -workspaceName WorkspaceName -privateEndpointConnectionName privateName .Example @@ -2558,14 +2558,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2575,14 +2575,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2592,14 +2592,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace WORKSPACEINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -2614,6 +2614,13 @@ function Get-AzWvdPrivateEndpointConnection { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityHostPool', Mandatory)] @@ -2621,7 +2628,7 @@ param( [Alias('PrivateEndpointConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the private endpoint connection associated with the Azure resource. + # The name parameter for private endpoint ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2645,19 +2652,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the workspace - ${WorkspaceName}, - [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, + # The name of the workspace + ${WorkspaceName}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] @@ -2678,19 +2678,19 @@ param( # Identity Parameter ${WorkspaceInputObject}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. @@ -2851,9 +2851,9 @@ end { <# .Synopsis -List the private link resources available for this workspace. +List the private link resources available for this hostpool. .Description -List the private link resources available for this workspace. +List the private link resources available for this hostpool. .Example Get-AzWvdPrivateLinkResource -ResourceGroupName ResourceGroupName -WorkspaceName workspaceName .Example @@ -2875,6 +2875,12 @@ param( # The name is case insensitive. ${ResourceGroupName}, + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] @@ -2883,18 +2889,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the workspace ${WorkspaceName}, - [Parameter(ParameterSetName='List1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] @@ -3078,14 +3078,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -3095,14 +3095,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -3345,14 +3345,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -3362,14 +3362,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -3614,14 +3614,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -3634,7 +3634,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdScalingPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('ScalingPlanName')] @@ -3644,7 +3644,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] @@ -3669,7 +3669,7 @@ param( # Identity Parameter ${InputObject}, - [Parameter(ParameterSetName='List2', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the host pool within the specified resource group @@ -3867,14 +3867,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -4069,9 +4069,9 @@ end { <# .Synopsis -Get the session host get status for a given hostpool. +Get a SessionHostManagementUpdateStatus. .Description -Get the session host get status for a given hostpool. +Get a SessionHostManagementUpdateStatus. .Example Get-AzWvdSessionHostManagementsUpdateStatus -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName @@ -4085,14 +4085,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -4299,14 +4299,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -4517,14 +4517,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -4733,14 +4733,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -4750,14 +4750,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -5213,14 +5213,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -5230,14 +5230,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -5247,14 +5247,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -5267,7 +5267,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdUserSession { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] @@ -5297,7 +5297,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityHostPool', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the session host within the specified host pool @@ -5331,13 +5331,6 @@ param( # Identity Parameter ${SessionHostInputObject}, - [Parameter(ParameterSetName='List')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] - [System.String] - # OData filter expression. - # Valid properties for filtering are userprincipalname and sessionstate. - ${Filter}, - [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] @@ -5359,6 +5352,13 @@ param( # Number of items per page. ${PageSize}, + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] + [System.String] + # OData filter expression. + # Valid properties for filtering are userprincipalname and sessionstate. + ${Filter}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -5530,14 +5530,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -5550,7 +5550,7 @@ https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvd #> function Get-AzWvdWorkspace { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('WorkspaceName')] @@ -5560,7 +5560,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the resource group. @@ -5583,19 +5583,19 @@ param( # Identity Parameter ${InputObject}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Initial number of items to skip. ${InitialSkip}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] # Indicates whether the collection is descending. ${IsDescending}, - [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Int32] # Number of items per page. @@ -5777,14 +5777,14 @@ IMPORTPACKAGEINFOREQUEST : Information to import app [Path ]: URI to Image INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -6042,14 +6042,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -6285,9 +6285,9 @@ end { <# .Synopsis -Control post of a hostpool. +Control actions on a session host post .Description -Control post of a hostpool. +Control actions on a session host post .Example Invoke-AzWvdControlSessionHostUpdate -HostPoolName HostPoolName ` -ResourceGroupName resourceGroupName ` @@ -6306,19 +6306,19 @@ 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. -HOSTPOOLUPDATECONTROLPARAMETER : Represents properties for a hostpool update control request. +HOSTPOOLUPDATECONTROLPARAMETER : Object containing control action for hostpool update. Action : Action types for controlling hostpool update. [CancelMessage ]: The cancel message sent to the user on the session host. This is can only be specified if the action is 'Cancel'. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -6374,7 +6374,7 @@ param( [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter] - # Represents properties for a hostpool update control request. + # Object containing control action for hostpool update. ${HostPoolUpdateControlParameter}, [Parameter(ParameterSetName='PostExpanded', Mandatory)] @@ -6599,14 +6599,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -6620,7 +6620,7 @@ UPDATESESSIONHOSTSREQUESTBODY : Object containin [ScheduledDateTimeZone ]: The timeZone as defined in https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid. [UpdateDeleteOriginalVM ]: Whether not to save original disk. False by default. [UpdateLogOffDelayMinute ]: Grace period before logging off users in minutes. - [UpdateLogOffMessage ]: Log off message sent to user for logoff. + [UpdateLogOffMessage ]: Log off message sent to user for logoff. Default value is an empty string. [UpdateMaxVmsRemoved ]: The maximum number of virtual machines to be removed during hostpool update. .Link https://learn.microsoft.com/powershell/module/az.desktopvirtualization/invoke-azwvdinitiatesessionhostupdate @@ -6708,6 +6708,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Log off message sent to user for logoff. + # Default value is an empty string. ${UpdateLogOffMessage}, [Parameter(ParameterSetName='PostExpanded')] @@ -6906,14 +6907,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -6923,14 +6924,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -7195,15 +7196,15 @@ APPATTACHPACKAGE : [CustomData ]: Field that can be populated with custom data and filtered on in list GET calls [FailHealthCheckOnStagingFailure ]: Parameter indicating how the health check should behave if this package fails staging [HostPoolReference >]: List of Hostpool resource Ids. - [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. - [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. - [ImageDisplayName ]: User friendly Name to be displayed in the portal. - [ImageIsActive ]: Make this version of the package the active one across the hostpool. + [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. + [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. + [ImageDisplayName ]: User friendly Name to be displayed in the portal. + [ImageIsActive ]: Make this version of the package the active one across the hostpool. [ImageIsPackageTimestamped ]: Is package timestamped so it can ignore the certificate expiry date [ImageIsRegularRegistration ]: Specifies how to register Package in feed. - [ImageLastUpdated ]: Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + [ImageLastUpdated ]: Date Package was last updated, found in the appxmanifest.xml. [ImagePackageAlias ]: Alias of App Attach Package. Assigned at import time - [ImagePackageApplication >]: List of package applications. + [ImagePackageApplication >]: List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -7211,24 +7212,24 @@ APPATTACHPACKAGE : [IconImageName ]: User friendly name. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. - [ImagePackageDependency >]: List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files + [ImagePackageDependency >]: List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. - [ImagePackageFamilyName ]: Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. - [ImagePackageFullName ]: Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - [ImagePackageName ]: Package Name from appxmanifest.xml. - [ImagePackageRelativePath ]: Relative Path to the package inside the image. - [ImagePath ]: VHD/CIM/APP-V image path on Network Share. - [ImageVersion ]: Package Version found in the appxmanifest.xml. - [KeyVaultUrl ]: URL of keyvault location to store certificate + [ImagePackageFamilyName ]: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + [ImagePackageFullName ]: Package Full Name from appxmanifest.xml. + [ImagePackageName ]: Package Name from appxmanifest.xml. + [ImagePackageRelativePath ]: Relative Path to the package inside the image. + [ImagePath ]: VHD/CIM image path on Network Share. + [ImageVersion ]: Package version found in the appxmanifest.xml. + [KeyVaultUrl ]: URL path to certificate name located in keyVault [PackageLookbackUrl ]: Lookback url to third party control plane, is null for native app attach packages [PackageOwnerName ]: Specific name of package owner, is "AppAttach" for native app attach packages [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. -IMAGEPACKAGEAPPLICATION : List of package applications. +IMAGEPACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -7237,8 +7238,8 @@ IMAGEPACKAGEAPPLICATION : List of package applicatio [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -IMAGEPACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +IMAGEPACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. .Link @@ -7252,7 +7253,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(Mandatory)] @@ -7345,7 +7346,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.DateTime] - # Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + # Date Package was last updated, found in the appxmanifest.xml. ${ImageLastUpdated}, [Parameter(ParameterSetName='CreateExpanded')] @@ -7372,13 +7373,14 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + # Package Family Name from appxmanifest.xml. + # Contains Package Name and Publisher name. ${ImagePackageFamilyName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. + # Package Full Name from appxmanifest.xml. ${ImagePackageFullName}, [Parameter(ParameterSetName='CreateExpanded')] @@ -7396,20 +7398,20 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # VHD/CIM/APP-V image path on Network Share. + # VHD/CIM image path on Network Share. ${ImagePath}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${ImageVersion}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='ImageObject', DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # URL of keyvault location to store certificate + # URL path to certificate name located in keyVault ${KeyVaultUrl}, [Parameter(ParameterSetName='CreateExpanded')] @@ -7708,8 +7710,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -7722,6 +7723,12 @@ param( # If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ${ManagedBy}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] @@ -8423,12 +8430,26 @@ param( # Whether to use localTime of the virtual machine. ${AgentUpdateUseSessionHostLocalTime}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + ${AllowRdpShortPathWithPrivateLink}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Custom rdp property of HostPool. ${CustomRdpProperty}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # DeploymentScope type for HostPool. + ${DeploymentScope}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] @@ -8474,8 +8495,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -8502,6 +8522,12 @@ param( # The max session limit of HostPool. ${MaxSessionLimit}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Automatic", "Direct")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -8870,7 +8896,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PACKAGEAPPLICATION : List of package applications. +PACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -8879,8 +8905,8 @@ PACKAGEAPPLICATION : List of package applications. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -PACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +PACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. .Link @@ -8996,7 +9022,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${Version}, [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] @@ -9235,7 +9261,7 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9243,54 +9269,6 @@ param( # Set of days of the week on which this schedule is active. ${DaysOfWeek}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${OffPeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${OffPeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${PeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${PeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampDownStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampDownStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampUpStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampUpStartTimeMinute}, - [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "Deallocate", "Hibernate")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9317,6 +9295,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period. ${OffPeakMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${OffPeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${OffPeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9350,6 +9340,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period. ${PeakMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${PeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${PeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9383,6 +9385,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period. ${RampDownMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampDownStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampDownStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9423,6 +9437,18 @@ param( # The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period. ${RampUpMinutesToWaitOnLogoff}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampUpStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampUpStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enable", "Disable")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9658,74 +9684,6 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.String[]] - # Set of days of the week on which this schedule is active. - ${DaysOfWeek}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${OffPeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${OffPeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${PeakStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${PeakStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # Capacity threshold for ramp down period. - ${RampDownCapacityThresholdPct}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampDownStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampDownStartTimeMinute}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # Capacity threshold for ramp up period. - ${RampUpCapacityThresholdPct}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The hour. - ${RampUpStartTimeHour}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [System.Int32] - # The minute. - ${RampUpStartTimeMinute}, - [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] @@ -9756,6 +9714,14 @@ param( # This requires the assigned hostpool to have a session host config property. ${CreateDeleteRampUpMinimumHostPoolSize}, + [Parameter(ParameterSetName='CreateExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String[]] + # Set of days of the week on which this schedule is active. + ${DaysOfWeek}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9763,6 +9729,18 @@ param( # Load balancing algorithm for off-peak period. ${OffPeakLoadBalancingAlgorithm}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${OffPeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${OffPeakStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9770,6 +9748,24 @@ param( # Load balancing algorithm for peak period. ${PeakLoadBalancingAlgorithm}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${PeakStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${PeakStartTimeMinute}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # Capacity threshold for ramp down period. + ${RampDownCapacityThresholdPct}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] @@ -9795,6 +9791,18 @@ param( # Notification message for users during ramp down period. ${RampDownNotificationMessage}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampDownStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampDownStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ZeroSessions", "ZeroActiveSessions")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9808,6 +9816,12 @@ param( # Number of minutes to wait to stop hosts during ramp down period. ${RampDownWaitTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # Capacity threshold for ramp up period. + ${RampUpCapacityThresholdPct}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -9821,6 +9835,18 @@ param( # Minimum host percentage for ramp up period. ${RampUpMinimumHostsPct}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The hour. + ${RampUpStartTimeHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.Int32] + # The minute. + ${RampUpStartTimeMinute}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("PowerManage", "CreateDeletePowerManage")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -10073,7 +10099,7 @@ HOSTPOOLREFERENCE : List of ScalingHostPoolReferenc [HostPoolArmPath ]: Arm path of referenced hostpool. [ScalingPlanEnabled ]: Is the scaling plan enabled for this hostpool. -SCHEDULE : List of Pooled ScalingSchedule definitions. +SCHEDULE : List of ScalingPlanPooledSchedule definitions. [CreateDeleteRampDownMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampDownMinimumHostPoolSize ]: Minimum number of session hosts that will be be created by the Scaling Service. Scaling will not delete any hosts when this limit is met. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampUpMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. @@ -10193,8 +10219,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -10246,7 +10271,7 @@ param( [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[]] - # List of Pooled ScalingSchedule definitions. + # List of ScalingPlanPooledSchedule definitions. ${Schedule}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10603,7 +10628,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The resource id of the custom image. + # The resource ID of the image. ${CustomInfoResourceId}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10620,7 +10645,7 @@ param( # Gets or sets specifies the ephemeral disk placement for operating system disk. # The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. # Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. - # Possible values include: 'CacheDisk', 'ResourceDisk' + # Possible values include: 'CacheDisk', 'ResourceDisk'. ${DiffDiskSettingPlacement}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10645,13 +10670,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The disk type used by virtual machine in hostpool session host. + # Managed Disk information. ${ManagedDiskType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The exact version of the image. + # The version of the image. ${MarketplaceInfoExactVersion}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10669,7 +10694,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The sku of the image. + # The SKU of the image. ${MarketplaceInfoSku}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10696,14 +10721,14 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] - # Whether to use vTPM on the virtual machine. + # Whether to use vTpm on the virtual machine. ${SecurityInfoVTpmEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # The Location for the session host to be created in. - # It will default to the location of the hostpool if not provided. + # It will default to the location of the hostpool if not provided ${VMLocation}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10966,13 +10991,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + # Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation. ${ProvisioningCanaryPolicy}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] - # the number of session hosts to exist in the Host Pool. + # The number of session hosts to exist in the Host Pool. ${ProvisioningInstanceCount}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11250,8 +11275,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - # E.g. + # Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. # ApiApps are a kind of Microsoft.Web/sites type. # If supported, the resource provider must validate and persist this value. ${Kind}, @@ -11264,6 +11288,12 @@ param( # If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ${ManagedBy}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Tenant that the resource is being requested on behalf of. + ${OboTenantId}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] @@ -11527,14 +11557,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -11553,7 +11583,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -11580,7 +11610,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] - # Force flag to delete App Attach package. + # Allows force delete ${Force}, [Parameter()] @@ -11754,14 +11784,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -11975,14 +12005,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -11992,14 +12022,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12228,14 +12258,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12455,14 +12485,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12472,14 +12502,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12691,9 +12721,9 @@ end { <# .Synopsis -Remove a connection. +Delete a PrivateEndpointConnectionWithSystemData .Description -Remove a connection. +Delete a PrivateEndpointConnectionWithSystemData .Example Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -HostpoolName HostPoolName .Example @@ -12709,14 +12739,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12726,14 +12756,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12743,14 +12773,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace WORKSPACEINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -12765,6 +12795,12 @@ function Remove-AzWvdPrivateEndpointConnection { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='Delete1', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityHostPool', Mandatory)] @@ -12772,7 +12808,7 @@ param( [Alias('PrivateEndpointConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the private endpoint connection associated with the Azure resource. + # The name parameter for private endpoint ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -12792,18 +12828,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Delete1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the workspace ${WorkspaceName}, - [Parameter(ParameterSetName='Delete1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeleteViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] @@ -12998,14 +13028,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13015,14 +13045,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13249,14 +13279,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13266,14 +13296,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13500,14 +13530,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13721,14 +13751,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13738,14 +13768,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13979,14 +14009,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -13996,14 +14026,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14013,14 +14043,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14269,14 +14299,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14497,14 +14527,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14514,14 +14544,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14535,14 +14565,14 @@ SENDMESSAGE : Represents message sent to a UserSession. [MessageTitle ]: Title of message. SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14877,15 +14907,15 @@ APPATTACHPACKAGE : [CustomData ]: Field that can be populated with custom data and filtered on in list GET calls [FailHealthCheckOnStagingFailure ]: Parameter indicating how the health check should behave if this package fails staging [HostPoolReference >]: List of Hostpool resource Ids. - [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. - [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. - [ImageDisplayName ]: User friendly Name to be displayed in the portal. - [ImageIsActive ]: Make this version of the package the active one across the hostpool. + [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. + [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. + [ImageDisplayName ]: User friendly Name to be displayed in the portal. + [ImageIsActive ]: Make this version of the package the active one across the hostpool. [ImageIsPackageTimestamped ]: Is package timestamped so it can ignore the certificate expiry date [ImageIsRegularRegistration ]: Specifies how to register Package in feed. - [ImageLastUpdated ]: Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + [ImageLastUpdated ]: Date Package was last updated, found in the appxmanifest.xml. [ImagePackageAlias ]: Alias of App Attach Package. Assigned at import time - [ImagePackageApplication >]: List of package applications. + [ImagePackageApplication >]: List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -14893,24 +14923,24 @@ APPATTACHPACKAGE : [IconImageName ]: User friendly name. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. - [ImagePackageDependency >]: List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files + [ImagePackageDependency >]: List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. - [ImagePackageFamilyName ]: Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. - [ImagePackageFullName ]: Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - [ImagePackageName ]: Package Name from appxmanifest.xml. - [ImagePackageRelativePath ]: Relative Path to the package inside the image. - [ImagePath ]: VHD/CIM/APP-V image path on Network Share. - [ImageVersion ]: Package Version found in the appxmanifest.xml. - [KeyVaultUrl ]: URL of keyvault location to store certificate + [ImagePackageFamilyName ]: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + [ImagePackageFullName ]: Package Full Name from appxmanifest.xml. + [ImagePackageName ]: Package Name from appxmanifest.xml. + [ImagePackageRelativePath ]: Relative Path to the package inside the image. + [ImagePath ]: VHD/CIM image path on Network Share. + [ImageVersion ]: Package version found in the appxmanifest.xml. + [KeyVaultUrl ]: URL path to certificate name located in keyVault [PackageLookbackUrl ]: Lookback url to third party control plane, is null for native app attach packages [PackageOwnerName ]: Specific name of package owner, is "AppAttach" for native app attach packages [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. -IMAGEPACKAGEAPPLICATION : List of package applications. +IMAGEPACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -14919,20 +14949,20 @@ IMAGEPACKAGEAPPLICATION : List of package applicatio [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -IMAGEPACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +IMAGEPACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -14954,7 +14984,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -15062,7 +15092,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.DateTime] - # Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + # Date Package was last updated, found in the appxmanifest.xml. ${ImageLastUpdated}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -15093,14 +15123,15 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + # Package Family Name from appxmanifest.xml. + # Contains Package Name and Publisher name. ${ImagePackageFamilyName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. + # Package Full Name from appxmanifest.xml. ${ImagePackageFullName}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -15121,14 +15152,14 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # VHD/CIM/APP-V image path on Network Share. + # VHD/CIM image path on Network Share. ${ImagePath}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${ImageVersion}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -15136,14 +15167,14 @@ param( [Parameter(ParameterSetName='ImageObject', DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # URL of keyvault location to store certificate + # URL path to certificate name located in keyVault ${KeyVaultUrl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Lookback url to third party control plane, should be null for first party packages + # Lookback url to third party control plane, is null for native app attach packages ${PackageLookbackUrl}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -15349,14 +15380,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -15635,18 +15666,16 @@ APPLICATION : Application properties that can be patched. [MsixPackageApplicationId ]: Specifies the package application Id for MSIX applications [MsixPackageFamilyName ]: Specifies the package family name for MSIX applications [ShowInPortal ]: Specifies whether to show the RemoteApp program in the RD Web Access server. - [Tag ]: tags to be updated - [(Any) ]: This indicates any property can be added to this object. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -15656,14 +15685,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -15832,15 +15861,6 @@ param( # Specifies the package family name for MSIX applications ${MsixPackageFamilyName}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroupExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags]))] - [System.Collections.Hashtable] - # tags to be updated - ${Tag}, - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch] @@ -16035,14 +16055,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -16054,18 +16074,16 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter DESKTOP : Desktop properties that can be patched. [Description ]: Description of Desktop. [FriendlyName ]: Friendly name of Desktop. - [Tag ]: tags to be updated - [(Any) ]: This indicates any property can be added to this object. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -16147,15 +16165,6 @@ param( # Friendly name of Desktop. ${FriendlyName}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroupExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags]))] - [System.Collections.Hashtable] - # tags to be updated - ${Tag}, - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch] @@ -16355,14 +16364,14 @@ AGENTUPDATEMAINTENANCEWINDOW : List of main [Hour ]: The update start hour of the day. (0 - 23) INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -16443,6 +16452,14 @@ param( # Whether to use localTime of the virtual machine. ${AgentUpdateUseSessionHostLocalTime}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + ${AllowRdpShortPathWithPrivateLink}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -16473,6 +16490,24 @@ param( # Friendly name of HostPool. ${FriendlyName}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst", "Persistent", "MultiplePersistent")] @@ -16805,14 +16840,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -16822,14 +16857,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -16840,7 +16875,7 @@ INPUTOBJECT : Identity Parameter MSIXPACKAGE : MSIX Package properties that can be patched. [DisplayName ]: Display name for MSIX Package. - [IsActive ]: Set a version of the package to be active across hostpool. + [IsActive ]: Set a version of the package to be active across hostpool. [IsRegularRegistration ]: Set Registration mode. Regular or Delayed. .Link https://learn.microsoft.com/powershell/module/az.desktopvirtualization/update-azwvdmsixpackage @@ -17145,14 +17180,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -17162,14 +17197,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -17734,14 +17769,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -17751,14 +17786,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -18317,14 +18352,14 @@ HOSTPOOLREFERENCE : List of ScalingHostPoolReferenc [ScalingPlanEnabled ]: Is the scaling plan enabled for this hostpool. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -18333,7 +18368,7 @@ INPUTOBJECT : Identity Parameter [UserSessionId ]: The name of the user session within the specified session host [WorkspaceName ]: The name of the workspace -SCHEDULE : List Pooled ScalingSchedule definitions. +SCHEDULE : List of ScalingSchedule definitions. [CreateDeleteRampDownMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampDownMinimumHostPoolSize ]: Minimum number of session hosts that will be be created by the Scaling Service. Scaling will not delete any hosts when this limit is met. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampUpMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. @@ -18436,7 +18471,7 @@ param( [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[]] - # List Pooled ScalingSchedule definitions. + # List of ScalingSchedule definitions. ${Schedule}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18650,14 +18685,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -18742,7 +18777,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The resource id of the custom image. + # The resource ID of the image. ${CustomInfoResourceId}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18761,7 +18796,7 @@ param( # Gets or sets specifies the ephemeral disk placement for operating system disk. # The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. # Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. - # Possible values include: 'CacheDisk', 'ResourceDisk' + # Possible values include: 'CacheDisk', 'ResourceDisk'. ${DiffDiskSettingPlacement}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18798,14 +18833,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The disk type used by virtual machine in hostpool session host. + # Managed Disk information. ${ManagedDiskType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The exact version of the image. + # The version of the image. ${MarketplaceInfoExactVersion}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18826,7 +18861,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The sku of the image. + # The SKU of the image. ${MarketplaceInfoSku}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18857,13 +18892,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # The security type used by virtual machine in hostpool session host. + # Default is Standard. ${SecurityInfoType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] - # Whether to use vTPM on the virtual machine. + # Whether to use vTpm on the virtual machine. ${SecurityInfoVTpmEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18884,7 +18920,8 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The Location for the session host to be created in + # The Location for the session host to be created in. + # It will default to the location of the hostpool if not provided ${VMLocation}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -19115,14 +19152,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -19183,14 +19220,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + # Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation. ${ProvisioningCanaryPolicy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] - # the number of session hosts to exist in the Host Pool. + # The number of session hosts to exist in the Host Pool. ${ProvisioningInstanceCount}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -19228,6 +19265,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Log off message sent to user for logoff. + # Default value is an empty string. ${UpdateLogOffMessage}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -19421,14 +19459,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -19438,14 +19476,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -19737,14 +19775,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdAppAttachPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdAppAttachPackage.ps1 index 22f52e174421..50a8aecddbb7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdAppAttachPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdAppAttachPackage.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -58,7 +58,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -85,7 +85,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Query')] [System.Management.Automation.SwitchParameter] - # Force flag to delete App Attach package. + # Allows force delete ${Force}, [Parameter()] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplication.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplication.ps1 index 278db176919b..06baebe2e491 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplication.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplication.ps1 @@ -32,14 +32,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplicationGroup.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplicationGroup.ps1 index f1770ec174cb..cb30749cc9f5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplicationGroup.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdApplicationGroup.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdHostPool.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdHostPool.ps1 index 2de50736bf48..c40919f6c3b7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdHostPool.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdHostPool.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdMsixPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdMsixPackage.ps1 index df9e359dd771..100d709138bf 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdMsixPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdMsixPackage.ps1 @@ -32,14 +32,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdPrivateEndpointConnection.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdPrivateEndpointConnection.ps1 index ccd3a3135537..2a8ee7d8b8a2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdPrivateEndpointConnection.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdPrivateEndpointConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Remove a connection. +Delete a PrivateEndpointConnectionWithSystemData .Description -Remove a connection. +Delete a PrivateEndpointConnectionWithSystemData .Example Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -HostpoolName HostPoolName .Example @@ -34,14 +34,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -51,14 +51,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -68,14 +68,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace WORKSPACEINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -90,6 +90,12 @@ function Remove-AzWvdPrivateEndpointConnection { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] + [System.String] + # The name of the host pool within the specified resource group + ${HostPoolName}, + [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='Delete1', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityHostPool', Mandatory)] @@ -97,7 +103,7 @@ param( [Alias('PrivateEndpointConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the private endpoint connection associated with the Azure resource. + # The name parameter for private endpoint ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -117,18 +123,12 @@ param( # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Delete1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] # The name of the workspace ${WorkspaceName}, - [Parameter(ParameterSetName='Delete1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] - [System.String] - # The name of the host pool within the specified resource group - ${HostPoolName}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeleteViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlan.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlan.ps1 index 0780b3a4b7d5..d31bca2af97b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlan.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlan.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPersonalSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPersonalSchedule.ps1 index 71895bde190c..404bbb9ce942 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPersonalSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPersonalSchedule.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPooledSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPooledSchedule.ps1 index 644a69b62c17..362eab6aba93 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPooledSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdScalingPlanPooledSchedule.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdSessionHost.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdSessionHost.ps1 index 6a6c2e771667..5ba2f044c0da 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdSessionHost.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdSessionHost.ps1 @@ -32,14 +32,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdUserSession.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdUserSession.ps1 index bd1f0fb388a2..0ecacbac1a35 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdUserSession.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdUserSession.ps1 @@ -32,14 +32,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -49,14 +49,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -66,14 +66,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdWorkspace.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdWorkspace.ps1 index 47b844ce63e7..a4796c1a6d98 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdWorkspace.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Remove-AzWvdWorkspace.ps1 @@ -32,14 +32,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Send-AzWvdUserSessionMessage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Send-AzWvdUserSessionMessage.ps1 index f6248aa763e7..20a61ac29aaa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Send-AzWvdUserSessionMessage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Send-AzWvdUserSessionMessage.ps1 @@ -39,14 +39,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -56,14 +56,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -77,14 +77,14 @@ SENDMESSAGE : Represents message sent to a UserSession. [MessageTitle ]: Title of message. SESSIONHOSTINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdAppAttachPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdAppAttachPackage.ps1 index dc0f07e459eb..1274e3a825c2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdAppAttachPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdAppAttachPackage.ps1 @@ -69,15 +69,15 @@ APPATTACHPACKAGE : [CustomData ]: Field that can be populated with custom data and filtered on in list GET calls [FailHealthCheckOnStagingFailure ]: Parameter indicating how the health check should behave if this package fails staging [HostPoolReference >]: List of Hostpool resource Ids. - [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. - [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. - [ImageDisplayName ]: User friendly Name to be displayed in the portal. - [ImageIsActive ]: Make this version of the package the active one across the hostpool. + [ImageCertificateExpiry ]: Date certificate expires, found in the appxmanifest.xml. + [ImageCertificateName ]: Certificate name found in the appxmanifest.xml. + [ImageDisplayName ]: User friendly Name to be displayed in the portal. + [ImageIsActive ]: Make this version of the package the active one across the hostpool. [ImageIsPackageTimestamped ]: Is package timestamped so it can ignore the certificate expiry date [ImageIsRegularRegistration ]: Specifies how to register Package in feed. - [ImageLastUpdated ]: Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + [ImageLastUpdated ]: Date Package was last updated, found in the appxmanifest.xml. [ImagePackageAlias ]: Alias of App Attach Package. Assigned at import time - [ImagePackageApplication >]: List of package applications. + [ImagePackageApplication >]: List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -85,24 +85,24 @@ APPATTACHPACKAGE : [IconImageName ]: User friendly name. [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. - [ImagePackageDependency >]: List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files + [ImagePackageDependency >]: List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. - [ImagePackageFamilyName ]: Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. - [ImagePackageFullName ]: Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - [ImagePackageName ]: Package Name from appxmanifest.xml. - [ImagePackageRelativePath ]: Relative Path to the package inside the image. - [ImagePath ]: VHD/CIM/APP-V image path on Network Share. - [ImageVersion ]: Package Version found in the appxmanifest.xml. - [KeyVaultUrl ]: URL of keyvault location to store certificate + [ImagePackageFamilyName ]: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + [ImagePackageFullName ]: Package Full Name from appxmanifest.xml. + [ImagePackageName ]: Package Name from appxmanifest.xml. + [ImagePackageRelativePath ]: Relative Path to the package inside the image. + [ImagePath ]: VHD/CIM image path on Network Share. + [ImageVersion ]: Package version found in the appxmanifest.xml. + [KeyVaultUrl ]: URL path to certificate name located in keyVault [PackageLookbackUrl ]: Lookback url to third party control plane, is null for native app attach packages [PackageOwnerName ]: Specific name of package owner, is "AppAttach" for native app attach packages [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. -IMAGEPACKAGEAPPLICATION : List of package applications. +IMAGEPACKAGEAPPLICATION : List of package applications. [AppId ]: Package Application Id, found in appxmanifest.xml. [AppUserModelId ]: Used to activate Package Application. Consists of Package Name and ApplicationID. Found in appxmanifest.xml. [Description ]: Description of Package Application. @@ -111,20 +111,20 @@ IMAGEPACKAGEAPPLICATION : List of package applicatio [RawIcon ]: the icon a 64 bit string as a byte array. [RawPng ]: the icon a 64 bit string as a byte array. -IMAGEPACKAGEDEPENDENCY : List of package dependencies. - [DependencyName ]: Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files +IMAGEPACKAGEDEPENDENCY : List of package dependencies. + [DependencyName ]: Name of package dependency. [MinVersion ]: Dependency version required. [Publisher ]: Name of dependency publisher. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -146,7 +146,7 @@ param( [Alias('AppAttachPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Path')] [System.String] - # The name of the App Attach package arm object + # The name of the App Attach package ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -254,7 +254,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.DateTime] - # Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. + # Date Package was last updated, found in the appxmanifest.xml. ${ImageLastUpdated}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -285,14 +285,15 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + # Package Family Name from appxmanifest.xml. + # Contains Package Name and Publisher name. ${ImagePackageFamilyName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. + # Package Full Name from appxmanifest.xml. ${ImagePackageFullName}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -313,14 +314,14 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # VHD/CIM/APP-V image path on Network Share. + # VHD/CIM image path on Network Share. ${ImagePath}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Package Version found in the appxmanifest.xml. + # Package version found in the appxmanifest.xml. ${ImageVersion}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -328,14 +329,14 @@ param( [Parameter(ParameterSetName='ImageObject', DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # URL of keyvault location to store certificate + # URL path to certificate name located in keyVault ${KeyVaultUrl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Lookback url to third party control plane, should be null for first party packages + # Lookback url to third party control plane, is null for native app attach packages ${PackageLookbackUrl}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplication.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplication.ps1 index 63c8b71719a0..d84d08a2dd42 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplication.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplication.ps1 @@ -54,18 +54,16 @@ APPLICATION : Application properties that can be patched. [MsixPackageApplicationId ]: Specifies the package application Id for MSIX applications [MsixPackageFamilyName ]: Specifies the package family name for MSIX applications [ShowInPortal ]: Specifies whether to show the RemoteApp program in the RD Web Access server. - [Tag ]: tags to be updated - [(Any) ]: This indicates any property can be added to this object. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -75,14 +73,14 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -251,15 +249,6 @@ param( # Specifies the package family name for MSIX applications ${MsixPackageFamilyName}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroupExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags]))] - [System.Collections.Hashtable] - # tags to be updated - ${Tag}, - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplicationGroup.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplicationGroup.ps1 index a3e5f4ef37d3..d66464e2981f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplicationGroup.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdApplicationGroup.ps1 @@ -36,14 +36,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdDesktop.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdDesktop.ps1 index 7c48f60e859e..c019fff8b9b7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdDesktop.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdDesktop.ps1 @@ -38,14 +38,14 @@ 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. APPLICATIONGROUPINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -57,18 +57,16 @@ APPLICATIONGROUPINPUTOBJECT : Identity Parameter DESKTOP : Desktop properties that can be patched. [Description ]: Description of Desktop. [FriendlyName ]: Friendly name of Desktop. - [Tag ]: tags to be updated - [(Any) ]: This indicates any property can be added to this object. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -150,15 +148,6 @@ param( # Friendly name of Desktop. ${FriendlyName}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroupExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags]))] - [System.Collections.Hashtable] - # tags to be updated - ${Tag}, - [Parameter(ParameterSetName='UpdateViaIdentityApplicationGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdHostPool.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdHostPool.ps1 index e3efc432f48f..c99332039c95 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdHostPool.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdHostPool.ps1 @@ -44,14 +44,14 @@ AGENTUPDATEMAINTENANCEWINDOW : List of main [Hour ]: The update start hour of the day. (0 - 23) INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -132,6 +132,14 @@ param( # Whether to use localTime of the virtual machine. ${AgentUpdateUseSessionHostLocalTime}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + ${AllowRdpShortPathWithPrivateLink}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] @@ -162,6 +170,24 @@ param( # Friendly name of HostPool. ${FriendlyName}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [System.String] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst", "Persistent", "MultiplePersistent")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdMsixPackage.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdMsixPackage.ps1 index 2c8cf281244f..e20c54b88603 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdMsixPackage.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdMsixPackage.ps1 @@ -39,14 +39,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -56,14 +56,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -74,7 +74,7 @@ INPUTOBJECT : Identity Parameter MSIXPACKAGE : MSIX Package properties that can be patched. [DisplayName ]: Display name for MSIX Package. - [IsActive ]: Set a version of the package to be active across hostpool. + [IsActive ]: Set a version of the package to be active across hostpool. [IsRegularRegistration ]: Set Registration mode. Regular or Delayed. .Link https://learn.microsoft.com/powershell/module/az.desktopvirtualization/update-azwvdmsixpackage diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlan.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlan.ps1 index 75be1b5e13f8..6d2c83daa2d7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlan.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlan.ps1 @@ -89,14 +89,14 @@ HOSTPOOLREFERENCE : List of ScalingHostPoolReferenc [ScalingPlanEnabled ]: Is the scaling plan enabled for this hostpool. INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -105,7 +105,7 @@ INPUTOBJECT : Identity Parameter [UserSessionId ]: The name of the user session within the specified session host [WorkspaceName ]: The name of the workspace -SCHEDULE : List Pooled ScalingSchedule definitions. +SCHEDULE : List of ScalingSchedule definitions. [CreateDeleteRampDownMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampDownMinimumHostPoolSize ]: Minimum number of session hosts that will be be created by the Scaling Service. Scaling will not delete any hosts when this limit is met. This requires the assigned hostpool to have a session host config property. [CreateDeleteRampUpMaximumHostPoolSize ]: Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have a session host config property. @@ -208,7 +208,7 @@ param( [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[]] - # List Pooled ScalingSchedule definitions. + # List of ScalingSchedule definitions. ${Schedule}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPersonalSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPersonalSchedule.ps1 index 6f76c32a1092..bf33ab673ec1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPersonalSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPersonalSchedule.ps1 @@ -65,14 +65,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -82,14 +82,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPooledSchedule.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPooledSchedule.ps1 index 61827ddf88bd..8ffbd4ddf92b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPooledSchedule.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdScalingPlanPooledSchedule.ps1 @@ -57,14 +57,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -74,14 +74,14 @@ INPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace SCALINGPLANINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHost.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHost.ps1 index ca7b022c1a81..dec69277dd04 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHost.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHost.ps1 @@ -37,14 +37,14 @@ 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. HOSTPOOLINPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -54,14 +54,14 @@ HOSTPOOLINPUTOBJECT : Identity Parameter [WorkspaceName ]: The name of the workspace INPUTOBJECT : Identity Parameter - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostConfiguration.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostConfiguration.ps1 index 495eba363104..1da5679ec7fa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostConfiguration.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostConfiguration.ps1 @@ -49,14 +49,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -141,7 +141,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The resource id of the custom image. + # The resource ID of the image. ${CustomInfoResourceId}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -160,7 +160,7 @@ param( # Gets or sets specifies the ephemeral disk placement for operating system disk. # The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. # Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. - # Possible values include: 'CacheDisk', 'ResourceDisk' + # Possible values include: 'CacheDisk', 'ResourceDisk'. ${DiffDiskSettingPlacement}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -197,14 +197,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The disk type used by virtual machine in hostpool session host. + # Managed Disk information. ${ManagedDiskType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The exact version of the image. + # The version of the image. ${MarketplaceInfoExactVersion}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -225,7 +225,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The sku of the image. + # The SKU of the image. ${MarketplaceInfoSku}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -256,13 +256,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # The security type used by virtual machine in hostpool session host. + # Default is Standard. ${SecurityInfoType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Management.Automation.SwitchParameter] - # Whether to use vTPM on the virtual machine. + # Whether to use vTpm on the virtual machine. ${SecurityInfoVTpmEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -283,7 +284,8 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # The Location for the session host to be created in + # The Location for the session host to be created in. + # It will default to the location of the hostpool if not provided ${VMLocation}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostManagement.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostManagement.ps1 index b67c342efa9c..58f9c41245bf 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostManagement.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdSessionHostManagement.ps1 @@ -38,14 +38,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule @@ -106,14 +106,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] - # Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + # Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation. ${ProvisioningCanaryPolicy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.Int32] - # the number of session hosts to exist in the Host Pool. + # The number of session hosts to exist in the Host Pool. ${ProvisioningInstanceCount}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -151,6 +151,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Body')] [System.String] # Log off message sent to user for logoff. + # Default value is an empty string. ${UpdateLogOffMessage}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdWorkspace.ps1 b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdWorkspace.ps1 index 7c1c2f122dd6..45f5287eed01 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdWorkspace.ps1 +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Update-AzWvdWorkspace.ps1 @@ -36,14 +36,14 @@ 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 - [AppAttachPackageName ]: The name of the App Attach package arm object + [AppAttachPackageName ]: The name of the App Attach package [ApplicationGroupName ]: The name of the application group [ApplicationName ]: The name of the application within the specified application group [DesktopName ]: The name of the desktop within the specified desktop group [HostPoolName ]: The name of the host pool within the specified resource group [Id ]: Resource identity path [MsixPackageFullName ]: The version specific package full name of the MSIX package within specified hostpool - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource. + [PrivateEndpointConnectionName ]: The name parameter for private endpoint [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScalingPlanName ]: The name of the scaling plan. [ScalingPlanScheduleName ]: The name of the ScalingPlanSchedule diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generate-info.json b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generate-info.json index 1754d5f74dc9..1ee6f843b0e1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generate-info.json +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "57aeb010-32ac-46cb-a8b5-7ebf4f8ef56c" + "generate_Id": "a944bcbf-0a7d-4b3c-902a-785796978c23" } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/DesktopVirtualizationClient.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/DesktopVirtualizationClient.cs index 73f11d55256d..caea40ad1c5b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/DesktopVirtualizationClient.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/DesktopVirtualizationClient.cs @@ -9,13 +9,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization /// /// Low-level API implementation for the DesktopVirtualizationClient service. + /// This Typespec represents the Desktop Virtualization API interfaces. /// public partial class DesktopVirtualizationClient { - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -27,9 +26,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -59,9 +58,7 @@ public partial class DesktopVirtualizationClient } } - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// /// 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 @@ -71,9 +68,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -115,9 +112,7 @@ public partial class DesktopVirtualizationClient } } - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -127,7 +122,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -169,9 +164,7 @@ public partial class DesktopVirtualizationClient } } - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -183,7 +176,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -248,14 +241,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -285,7 +278,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -310,7 +303,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -346,13 +339,15 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } - /// List activeSessionHostConfigurations. + /// + /// Operation to list the ActiveSessionHostConfigurations associated with the HostPool + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -364,9 +359,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -396,7 +391,9 @@ public partial class DesktopVirtualizationClient } } - /// List activeSessionHostConfigurations. + /// + /// Operation to list the ActiveSessionHostConfigurations associated with the HostPool + /// /// /// 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 @@ -406,9 +403,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -450,7 +447,9 @@ public partial class DesktopVirtualizationClient } } - /// List activeSessionHostConfigurations. + /// + /// Operation to list the ActiveSessionHostConfigurations associated with the HostPool + /// /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -460,7 +459,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -502,7 +501,9 @@ public partial class DesktopVirtualizationClient } } - /// List activeSessionHostConfigurations. + /// + /// Operation to list the ActiveSessionHostConfigurations associated with the HostPool + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -514,7 +515,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -579,14 +580,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -618,7 +619,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ActiveSessionHostConfigurationsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -643,7 +644,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -679,8 +680,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -688,7 +689,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Object containing App Attach Package definitions. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). @@ -702,7 +703,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdate(string subscriptionId, string resourceGroupName, string appAttachPackageName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -750,7 +751,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -807,7 +808,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -855,7 +856,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Json string supplied to the AppAttachPackageCreateOrUpdate operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). @@ -868,7 +869,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string appAttachPackageName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -904,7 +905,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Json string supplied to the AppAttachPackageCreateOrUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -914,7 +915,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string appAttachPackageName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -950,7 +951,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Object containing App Attach Package definitions. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -961,7 +962,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string appAttachPackageName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1125,7 +1126,7 @@ public partial class DesktopVirtualizationClient /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Object containing App Attach Package definitions. /// an instance that will receive events. /// @@ -1152,8 +1153,8 @@ public partial class DesktopVirtualizationClient /// Remove an App Attach Package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object - /// Force flag to delete App Attach package. + /// The name of the App Attach package + /// Allows force delete /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1165,7 +1166,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageDelete(string subscriptionId, string resourceGroupName, string appAttachPackageName, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1198,7 +1199,7 @@ public partial class DesktopVirtualizationClient /// Remove an App Attach Package. /// - /// Force flag to delete App Attach package. + /// Allows force delete /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1210,7 +1211,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1316,8 +1317,8 @@ public partial class DesktopVirtualizationClient /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object - /// Force flag to delete App Attach package. + /// The name of the App Attach package + /// Allows force delete /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1341,7 +1342,7 @@ public partial class DesktopVirtualizationClient /// Get an app attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// 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). @@ -1352,7 +1353,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageGet(string subscriptionId, string resourceGroupName, string appAttachPackageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1393,7 +1394,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1444,7 +1445,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1488,7 +1489,7 @@ public partial class DesktopVirtualizationClient /// Get an app attach package. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -1497,7 +1498,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageGetWithResult(string subscriptionId, string resourceGroupName, string appAttachPackageName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1642,7 +1643,7 @@ public partial class DesktopVirtualizationClient /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1667,7 +1668,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to package image and other optional properties + /// Information to import app attach package /// 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). @@ -1679,7 +1680,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImport(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImportPackageInfoRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1715,7 +1716,7 @@ public partial class DesktopVirtualizationClient /// Gets information from a package given the path to the package. /// - /// Object containing URI to package image and other optional properties + /// Information to import app attach package /// 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). @@ -1727,7 +1728,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImportPackageInfoRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1775,7 +1776,7 @@ public partial class DesktopVirtualizationClient /// Gets information from a package given the path to the package. /// - /// Object containing URI to package image and other optional properties + /// Information to import app attach package /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -1785,7 +1786,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImportViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImportPackageInfoRequest body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1846,7 +1847,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImportViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1893,7 +1894,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImportViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1931,7 +1932,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to package image and other optional properties + /// Information to import app attach package /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -1941,7 +1942,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageInfoImportWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImportPackageInfoRequest body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2094,7 +2095,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to package image and other optional properties + /// Information to import app attach package /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2109,8 +2110,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -2120,8 +2121,7 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner - /// name, and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// 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). @@ -2132,7 +2132,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListByResourceGroup(string subscriptionId, string resourceGroupName, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2164,8 +2164,7 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in resource group. /// - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner - /// name, and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// 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). @@ -2176,7 +2175,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListByResourceGroupViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2219,8 +2218,7 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in resource group. /// - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner - /// name, and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -2229,7 +2227,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2273,8 +2271,7 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in resource group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner - /// name, and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -2283,7 +2280,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2433,8 +2430,7 @@ public partial class DesktopVirtualizationClient /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner - /// name, and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2454,8 +2450,8 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in subscription. /// The ID of the target subscription. The value must be an UUID. - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, - /// package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource + /// group. /// 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). @@ -2466,7 +2462,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListBySubscription(string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2496,8 +2492,8 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in subscription. /// - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, - /// package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource + /// group. /// 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). @@ -2508,7 +2504,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListBySubscriptionViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2548,8 +2544,8 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in subscription. /// - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, - /// package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource + /// group. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -2558,7 +2554,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2598,8 +2594,8 @@ public partial class DesktopVirtualizationClient /// List App Attach packages in subscription. /// The ID of the target subscription. The value must be an UUID. - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, - /// package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource + /// group. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -2608,7 +2604,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageListBySubscriptionWithResult(string subscriptionId, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2753,8 +2749,8 @@ public partial class DesktopVirtualizationClient /// will get validation events back. /// /// The ID of the target subscription. The value must be an UUID. - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, - /// package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource + /// group. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2772,8 +2768,8 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object - /// Object containing App Attach Package definition. + /// The name of the App Attach package + /// The resource properties to be updated /// 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). @@ -2785,7 +2781,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdate(string subscriptionId, string resourceGroupName, string appAttachPackageName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2820,7 +2816,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// - /// Object containing App Attach Package definition. + /// The resource properties to be updated /// 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). @@ -2832,7 +2828,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2879,7 +2875,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// - /// Object containing App Attach Package definition. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -2889,7 +2885,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2937,7 +2933,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Json string supplied to the AppAttachPackageUpdate operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2949,7 +2945,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdateViaJsonString(string subscriptionId, string resourceGroupName, string appAttachPackageName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2985,7 +2981,7 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object + /// The name of the App Attach package /// Json string supplied to the AppAttachPackageUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -2995,7 +2991,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string appAttachPackageName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3031,8 +3027,8 @@ public partial class DesktopVirtualizationClient /// update an App Attach Package /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object - /// Object containing App Attach Package definition. + /// The name of the App Attach package + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -3042,7 +3038,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task AppAttachPackageUpdateWithResult(string subscriptionId, string resourceGroupName, string appAttachPackageName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3191,8 +3187,8 @@ public partial class DesktopVirtualizationClient /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the App Attach package arm object - /// Object containing App Attach Package definition. + /// The name of the App Attach package + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3230,9 +3226,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3278,9 +3274,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3337,7 +3333,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3396,9 +3392,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3444,7 +3440,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3491,7 +3487,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3565,14 +3561,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -3603,7 +3599,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3634,7 +3630,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3671,8 +3667,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -3692,9 +3688,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsDelete(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsDelete(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3734,9 +3730,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3788,7 +3784,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3819,7 +3815,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3855,8 +3851,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -3873,9 +3869,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3914,9 +3910,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3967,7 +3963,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4020,7 +4016,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsGetWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4082,14 +4078,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -4119,7 +4115,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4144,7 +4140,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4180,8 +4176,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -4201,9 +4197,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroup(string subscriptionId, string resourceGroupName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroup(string subscriptionId, string resourceGroupName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4253,9 +4249,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4316,7 +4312,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4378,7 +4374,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4449,14 +4445,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -4488,7 +4484,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4513,7 +4509,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4566,9 +4562,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscription(string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscription(string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4607,9 +4603,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscriptionViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscriptionViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4658,7 +4654,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4707,7 +4703,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscriptionWithResult(string subscriptionId, string Filter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4770,14 +4766,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -4809,7 +4805,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4834,7 +4830,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4873,7 +4869,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group - /// Object containing ApplicationGroup definitions. + /// The AppGroup properties to be updated /// 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). @@ -4883,9 +4879,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationGroupsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4920,7 +4916,7 @@ public partial class DesktopVirtualizationClient /// update an applicationGroup. /// - /// Object containing ApplicationGroup definitions. + /// The AppGroup properties to be updated /// 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). @@ -4930,9 +4926,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4979,7 +4975,7 @@ public partial class DesktopVirtualizationClient /// update an applicationGroup. /// - /// Object containing ApplicationGroup definitions. + /// The AppGroup properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -4989,7 +4985,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5047,9 +5043,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5095,7 +5091,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5132,7 +5128,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group - /// Object containing ApplicationGroup definitions. + /// The AppGroup properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -5142,7 +5138,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationGroupsUpdateWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5208,14 +5204,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -5245,7 +5241,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationGroupsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationGroupsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5270,7 +5266,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5292,7 +5288,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group - /// Object containing ApplicationGroup definitions. + /// The AppGroup properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5307,8 +5303,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -5331,9 +5327,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5381,9 +5377,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5443,7 +5439,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5506,9 +5502,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5557,7 +5553,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5607,7 +5603,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5683,14 +5679,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -5721,7 +5717,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5752,7 +5748,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5790,8 +5786,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(applicationName),applicationName); await eventListener.AssertMinimumLength(nameof(applicationName),applicationName,3); @@ -5816,9 +5812,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsDelete(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsDelete(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5860,9 +5856,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5917,7 +5913,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5948,7 +5944,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5985,8 +5981,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(applicationName),applicationName); await eventListener.AssertMinimumLength(nameof(applicationName),applicationName,3); @@ -6008,9 +6004,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6051,9 +6047,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6107,7 +6103,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6164,7 +6160,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsGetWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6228,14 +6224,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -6265,7 +6261,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6290,7 +6286,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6327,8 +6323,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(applicationName),applicationName); await eventListener.AssertMinimumLength(nameof(applicationName),applicationName,3); @@ -6352,9 +6348,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6403,9 +6399,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6466,7 +6462,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6529,7 +6525,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsListWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6598,14 +6594,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -6635,7 +6631,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6660,7 +6656,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6699,8 +6695,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -6710,7 +6706,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the application within the specified application group - /// Object containing Application definitions. + /// The resource properties to be updated /// 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). @@ -6720,9 +6716,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6759,7 +6755,7 @@ public partial class DesktopVirtualizationClient /// update an application. /// - /// Object containing Application definitions. + /// The resource properties to be updated /// 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). @@ -6769,9 +6765,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ApplicationsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6821,7 +6817,7 @@ public partial class DesktopVirtualizationClient /// update an application. /// - /// Object containing Application definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -6831,7 +6827,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6893,9 +6889,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ApplicationsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ApplicationsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6944,7 +6940,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6984,7 +6980,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the application within the specified application group - /// Object containing Application definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -6994,7 +6990,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ApplicationsUpdateWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7062,14 +7058,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -7099,7 +7095,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ApplicationsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ApplicationsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7124,7 +7120,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7147,7 +7143,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the application within the specified application group - /// Object containing Application definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -7162,8 +7158,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(applicationName),applicationName); await eventListener.AssertMinimumLength(nameof(applicationName),applicationName,3); @@ -7178,7 +7174,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing control action for hostpool provisioning. + /// The content of the action request /// 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). @@ -7190,7 +7186,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostProvisioningPost(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7226,7 +7222,7 @@ public partial class DesktopVirtualizationClient /// Control provisioning of a hostpool. /// - /// Object containing control action for hostpool provisioning. + /// The content of the action request /// 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). @@ -7238,7 +7234,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostProvisioningPostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7299,7 +7295,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostProvisioningPostViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7483,7 +7479,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing control action for hostpool provisioning. + /// The content of the action request /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -7498,19 +7494,19 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Control post of a hostpool. + /// Control actions on a session host post /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing control action for hostpool update. + /// The content of the action request /// 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). @@ -7522,7 +7518,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostUpdatePost(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7556,9 +7552,9 @@ public partial class DesktopVirtualizationClient } } - /// Control post of a hostpool. + /// Control actions on a session host post /// - /// Object containing control action for hostpool update. + /// The content of the action request /// 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). @@ -7570,7 +7566,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostUpdatePostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7616,7 +7612,7 @@ public partial class DesktopVirtualizationClient } } - /// Control post of a hostpool. + /// Control actions on a session host post /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -7631,7 +7627,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ControlSessionHostUpdatePostViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7815,7 +7811,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing control action for hostpool update. + /// The content of the action request /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -7830,8 +7826,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -7851,9 +7847,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DesktopsGet(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7894,9 +7890,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DesktopsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7950,7 +7946,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8007,7 +8003,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsGetWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8071,14 +8067,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -8108,7 +8104,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DesktopsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DesktopsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8133,7 +8129,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8170,8 +8166,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(desktopName),desktopName); await eventListener.AssertMinimumLength(nameof(desktopName),desktopName,3); @@ -8195,9 +8191,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DesktopsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8246,9 +8242,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DesktopsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8309,7 +8305,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8372,7 +8368,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsListWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8441,14 +8437,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -8478,7 +8474,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DesktopsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DesktopsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8503,7 +8499,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8542,8 +8538,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -8553,7 +8549,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the desktop within the specified desktop group - /// Object containing Desktop definitions. + /// The resource properties to be updated /// 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). @@ -8563,9 +8559,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task DesktopsUpdate(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8602,7 +8598,7 @@ public partial class DesktopVirtualizationClient /// update a desktop. /// - /// Object containing Desktop definitions. + /// The resource properties to be updated /// 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). @@ -8612,9 +8608,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task DesktopsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8664,7 +8660,7 @@ public partial class DesktopVirtualizationClient /// update a desktop. /// - /// Object containing Desktop definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -8674,7 +8670,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8736,9 +8732,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DesktopsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DesktopsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8787,7 +8783,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8827,7 +8823,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the desktop within the specified desktop group - /// Object containing Desktop definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -8837,7 +8833,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task DesktopsUpdateWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8905,14 +8901,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -8942,7 +8938,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DesktopsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DesktopsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8967,7 +8963,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8990,7 +8986,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the application group /// The name of the desktop within the specified desktop group - /// Object containing Desktop definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -9005,8 +9001,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(desktopName),desktopName); await eventListener.AssertMinimumLength(nameof(desktopName),desktopName,3); @@ -9032,9 +9028,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9080,9 +9076,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9139,7 +9135,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9198,9 +9194,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9246,7 +9242,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9293,7 +9289,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9365,14 +9361,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -9403,7 +9399,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9434,7 +9430,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9471,8 +9467,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -9493,9 +9489,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9538,9 +9534,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9594,7 +9590,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9625,7 +9621,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9662,8 +9658,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -9680,9 +9676,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9721,9 +9717,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9774,7 +9770,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9827,7 +9823,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9889,14 +9885,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -9926,7 +9922,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9951,7 +9947,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9987,8 +9983,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -10006,9 +10002,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsList(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsList(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10054,9 +10050,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10103,9 +10099,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10163,7 +10159,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10222,7 +10218,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10291,14 +10287,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -10328,7 +10324,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10353,7 +10349,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10405,9 +10401,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokens(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokens(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10447,9 +10443,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokensViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokensViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10501,7 +10497,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokensViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10555,7 +10551,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokensWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10620,14 +10616,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -10657,7 +10653,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokens_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsListRegistrationTokens_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10682,7 +10678,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10718,8 +10714,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -10737,9 +10733,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10794,7 +10790,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10849,7 +10845,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsListWithResult(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10914,14 +10910,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -10951,7 +10947,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10976,7 +10972,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11024,9 +11020,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationToken(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationToken(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11066,9 +11062,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationTokenViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationTokenViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11120,7 +11116,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationTokenViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11174,7 +11170,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationTokenWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11239,14 +11235,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -11276,7 +11272,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationToken_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsRetrieveRegistrationToken_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11301,7 +11297,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11337,8 +11333,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -11347,7 +11343,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing HostPool definitions. + /// The properties to be updated. /// 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). @@ -11357,9 +11353,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task HostPoolsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11394,7 +11390,7 @@ public partial class DesktopVirtualizationClient /// update a host pool. /// - /// Object containing HostPool definitions. + /// The properties to be updated. /// 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). @@ -11404,9 +11400,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task HostPoolsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11453,7 +11449,7 @@ public partial class DesktopVirtualizationClient /// update a host pool. /// - /// Object containing HostPool definitions. + /// The properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -11463,7 +11459,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11521,9 +11517,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HostPoolsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HostPoolsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11569,7 +11565,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11606,7 +11602,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing HostPool definitions. + /// The properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -11616,7 +11612,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task HostPoolsUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11682,14 +11678,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -11719,7 +11715,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HostPoolsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HostPoolsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11744,7 +11740,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11766,7 +11762,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing HostPool definitions. + /// The properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -11781,8 +11777,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -11793,7 +11789,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing the definition for properties to be used in the sessionHostUpdate validation. + /// The resource properties to be updated /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11805,7 +11801,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task InitiateSessionHostUpdatePost(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUpdateSessionHostsRequestBody body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11841,7 +11837,7 @@ public partial class DesktopVirtualizationClient /// Initiates a hostpool post or schedule an post for the future. /// - /// Object containing the definition for properties to be used in the sessionHostUpdate validation. + /// The resource properties to be updated /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11853,7 +11849,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task InitiateSessionHostUpdatePostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUpdateSessionHostsRequestBody body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11914,7 +11910,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task InitiateSessionHostUpdatePostViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12005,7 +12001,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing the definition for properties to be used in the sessionHostUpdate validation. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -12020,19 +12016,22 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to MSIX Image + /// Represents URI referring to MSIX Image /// 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). @@ -12042,9 +12041,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixImagesExpand(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixImagesExpand(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12078,9 +12077,12 @@ public partial class DesktopVirtualizationClient } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// - /// Object containing URI to MSIX Image + /// Represents URI referring to MSIX Image /// 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). @@ -12090,9 +12092,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixImagesExpandViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixImagesExpandViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12138,9 +12140,12 @@ public partial class DesktopVirtualizationClient } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// - /// Object containing URI to MSIX Image + /// Represents URI referring to MSIX Image /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -12150,7 +12155,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixImagesExpandViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12196,7 +12201,10 @@ public partial class DesktopVirtualizationClient } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -12209,9 +12217,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixImagesExpandViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixImagesExpandViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12245,7 +12253,10 @@ public partial class DesktopVirtualizationClient } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -12258,7 +12269,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixImagesExpandViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12292,11 +12303,14 @@ public partial class DesktopVirtualizationClient } } - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// This action uses incorrect Msix casing intentionally to match the previous APIs. + /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to MSIX Image + /// Represents URI referring to MSIX Image /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -12306,7 +12320,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixImagesExpandWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixImageUri body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12373,14 +12387,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -12410,7 +12424,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixImagesExpand_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixImagesExpand_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12435,7 +12449,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12457,7 +12471,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing URI to MSIX Image + /// Represents URI referring to MSIX Image /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -12472,8 +12486,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -12496,9 +12510,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12506,7 +12520,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -12546,18 +12560,18 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -12569,7 +12583,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -12608,16 +12622,16 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -12629,7 +12643,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -12671,9 +12685,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12681,7 +12695,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -12722,7 +12736,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12730,7 +12744,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -12772,7 +12786,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12780,7 +12794,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -12848,14 +12862,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -12886,7 +12900,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixPackagesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12917,7 +12931,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12955,8 +12969,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(msixPackageFullName),msixPackageFullName); await eventListener.AssertMinimumLength(nameof(msixPackageFullName),msixPackageFullName,3); @@ -12981,9 +12995,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12991,7 +13005,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13025,18 +13039,18 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -13048,7 +13062,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13082,7 +13096,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixPackagesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixPackagesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13113,7 +13127,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13150,8 +13164,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(msixPackageFullName),msixPackageFullName); await eventListener.AssertMinimumLength(nameof(msixPackageFullName),msixPackageFullName,3); @@ -13173,9 +13187,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesGet(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesGet(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13183,7 +13197,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13216,18 +13230,18 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -13239,7 +13253,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13272,16 +13286,16 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -13293,7 +13307,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13329,7 +13343,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13337,7 +13351,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13393,14 +13407,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -13430,7 +13444,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixPackagesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixPackagesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13455,7 +13469,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13492,8 +13506,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(msixPackageFullName),msixPackageFullName); await eventListener.AssertMinimumLength(nameof(msixPackageFullName),msixPackageFullName,3); @@ -13517,9 +13531,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesList(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesList(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13527,7 +13541,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13568,18 +13582,18 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages'"); } // replace URI parameters with values from identity @@ -13590,7 +13604,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13631,16 +13645,16 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages'"); } // replace URI parameters with values from identity @@ -13651,7 +13665,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13694,7 +13708,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesListWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13702,7 +13716,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13763,14 +13777,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -13800,7 +13814,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixPackagesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixPackagesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13825,7 +13839,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13864,8 +13878,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -13875,7 +13889,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group /// The version specific package full name of the MSIX package within specified hostpool - /// Object containing MSIX Package definitions. + /// The resource properties to be updated. /// 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). @@ -13885,9 +13899,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixPackagesUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13895,7 +13909,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -13924,7 +13938,7 @@ public partial class DesktopVirtualizationClient /// update an MSIX Package. /// - /// Object containing MSIX Package definitions. + /// The resource properties to be updated. /// 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). @@ -13934,18 +13948,18 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -13957,7 +13971,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -13986,7 +14000,7 @@ public partial class DesktopVirtualizationClient /// update an MSIX Package. /// - /// Object containing MSIX Package definitions. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -13996,16 +14010,16 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/msixPackages/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}'"); } // replace URI parameters with values from identity @@ -14017,7 +14031,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.DesktopVirtualization/hostPools/" + hostPoolName @@ -14058,9 +14072,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14068,7 +14082,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -14109,7 +14123,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14117,7 +14131,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -14149,7 +14163,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group /// The version specific package full name of the MSIX package within specified hostpool - /// Object containing MSIX Package definitions. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -14159,7 +14173,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task MsixPackagesUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14167,7 +14181,7 @@ public partial class DesktopVirtualizationClient var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DesktopVirtualization/hostPools/" + global::System.Uri.EscapeDataString(hostPoolName) @@ -14227,14 +14241,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -14264,7 +14278,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MsixPackagesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MsixPackagesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14289,7 +14303,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14312,7 +14326,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group /// The version specific package full name of the MSIX package within specified hostpool - /// Object containing MSIX Package definitions. + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -14327,8 +14341,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(msixPackageFullName),msixPackageFullName); await eventListener.AssertMinimumLength(nameof(msixPackageFullName),msixPackageFullName,3); @@ -14339,9 +14353,7 @@ public partial class DesktopVirtualizationClient } } - /// - /// List all of the available operations the Desktop Virtualization resource provider supports. - /// + /// List the operations for the provider /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -14350,9 +14362,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14376,9 +14388,7 @@ public partial class DesktopVirtualizationClient } } - /// - /// List all of the available operations the Desktop Virtualization resource provider supports. - /// + /// List the operations for the provider /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -14388,9 +14398,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14423,19 +14433,17 @@ public partial class DesktopVirtualizationClient } } - /// - /// List all of the available operations the Desktop Virtualization resource provider supports. - /// + /// List the operations for the provider /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14468,18 +14476,16 @@ public partial class DesktopVirtualizationClient } } - /// - /// List all of the available operations the Desktop Virtualization resource provider supports. - /// + /// List the operations for the provider /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14508,10 +14514,10 @@ public partial class DesktopVirtualizationClient /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14530,20 +14536,20 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -14573,7 +14579,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14592,13 +14598,13 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14629,11 +14635,11 @@ public partial class DesktopVirtualizationClient } } - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -14643,9 +14649,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14676,7 +14682,7 @@ public partial class DesktopVirtualizationClient } } - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -14687,9 +14693,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14746,7 +14752,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14777,7 +14783,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14799,7 +14805,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -14814,18 +14820,18 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); } } - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -14835,9 +14841,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14868,7 +14874,7 @@ public partial class DesktopVirtualizationClient } } - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -14879,9 +14885,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14938,7 +14944,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14969,7 +14975,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14991,7 +14997,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -15006,18 +15012,18 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// 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). @@ -15026,9 +15032,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15059,7 +15065,7 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// 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 @@ -15069,9 +15075,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15115,7 +15121,7 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -15125,7 +15131,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15169,11 +15175,11 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -15182,7 +15188,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15248,14 +15254,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -15287,7 +15293,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15312,7 +15318,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15334,7 +15340,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -15349,18 +15355,18 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// 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). @@ -15369,9 +15375,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15402,7 +15408,7 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// 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 @@ -15412,9 +15418,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15458,7 +15464,7 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -15468,7 +15474,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15512,11 +15518,11 @@ public partial class DesktopVirtualizationClient } } - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// @@ -15525,7 +15531,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspaceWithResult(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15591,14 +15597,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -15630,7 +15636,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15655,7 +15661,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15677,7 +15683,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -15692,8 +15698,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); } @@ -15714,9 +15720,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15765,9 +15771,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15828,7 +15834,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15891,7 +15897,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15962,14 +15968,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -16001,7 +16007,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16026,7 +16032,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16065,13 +16071,13 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } - /// List private endpoint connections. + /// List private endpoint connections associated with Workspace. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace @@ -16083,9 +16089,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16115,7 +16121,7 @@ public partial class DesktopVirtualizationClient } } - /// List private endpoint connections. + /// List private endpoint connections associated with Workspace. /// /// 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 @@ -16125,9 +16131,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspaceViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16169,7 +16175,7 @@ public partial class DesktopVirtualizationClient } } - /// List private endpoint connections. + /// List private endpoint connections associated with Workspace. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -16179,7 +16185,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16221,7 +16227,7 @@ public partial class DesktopVirtualizationClient } } - /// List private endpoint connections. + /// List private endpoint connections associated with Workspace. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace @@ -16233,7 +16239,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspaceWithResult(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16298,14 +16304,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -16337,7 +16343,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16362,7 +16368,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16398,8 +16404,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -16408,8 +16414,8 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// 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). @@ -16419,9 +16425,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16458,7 +16464,7 @@ public partial class DesktopVirtualizationClient /// Approve or reject a private endpoint connection. /// - /// Object containing the updated connection. + /// Resource create parameters. /// 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). @@ -16468,9 +16474,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16520,7 +16526,7 @@ public partial class DesktopVirtualizationClient /// Approve or reject a private endpoint connection. /// - /// Object containing the updated connection. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -16528,9 +16534,9 @@ public partial class DesktopVirtualizationClient /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16582,7 +16588,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// Json string supplied to the PrivateEndpointConnectionsUpdateByHostPool operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -16592,9 +16598,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16633,7 +16639,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// Json string supplied to the PrivateEndpointConnectionsUpdateByHostPool operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -16643,7 +16649,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16682,8 +16688,8 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -16691,9 +16697,9 @@ public partial class DesktopVirtualizationClient /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16763,14 +16769,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -16802,7 +16808,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16827,7 +16833,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16849,13 +16855,13 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// 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 PrivateEndpointConnectionsUpdateByHostPool_Validate(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByHostPool_Validate(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -16865,8 +16871,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); await eventListener.AssertNotNull(nameof(body), body); @@ -16878,8 +16884,8 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// 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). @@ -16889,9 +16895,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16928,7 +16934,7 @@ public partial class DesktopVirtualizationClient /// Approve or reject a private endpoint connection. /// - /// Object containing the updated connection. + /// Resource create parameters. /// 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). @@ -16938,9 +16944,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16990,7 +16996,7 @@ public partial class DesktopVirtualizationClient /// Approve or reject a private endpoint connection. /// - /// Object containing the updated connection. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -16998,9 +17004,9 @@ public partial class DesktopVirtualizationClient /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17052,7 +17058,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// Json string supplied to the PrivateEndpointConnectionsUpdateByWorkspace operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -17062,9 +17068,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17103,7 +17109,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint /// Json string supplied to the PrivateEndpointConnectionsUpdateByWorkspace operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -17113,7 +17119,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17152,8 +17158,8 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -17161,9 +17167,9 @@ public partial class DesktopVirtualizationClient /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceWithResult(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspaceWithResult(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17233,14 +17239,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -17272,7 +17278,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17297,7 +17303,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -17319,13 +17325,13 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// The name of the private endpoint connection associated with the Azure resource. - /// Object containing the updated connection. + /// The name parameter for private endpoint + /// Resource create parameters. /// 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 PrivateEndpointConnectionsUpdateByWorkspace_Validate(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateByWorkspace_Validate(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -17335,8 +17341,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); await eventListener.AssertNotNull(nameof(body), body); @@ -17359,9 +17365,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17410,9 +17416,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17473,7 +17479,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17536,7 +17542,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17607,14 +17613,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -17644,7 +17650,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17669,7 +17675,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -17708,8 +17714,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -17729,9 +17735,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17780,9 +17786,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspaceViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspaceViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17843,7 +17849,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspaceViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17906,7 +17912,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspaceWithResult(string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17977,14 +17983,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -18016,7 +18022,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByWorkspace_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18041,7 +18047,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -18080,8 +18086,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -18102,9 +18108,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18152,9 +18158,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18214,7 +18220,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18277,9 +18283,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18328,7 +18334,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18378,7 +18384,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18454,14 +18460,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -18492,7 +18498,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18523,7 +18529,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -18561,8 +18567,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -18587,9 +18593,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18631,9 +18637,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18688,7 +18694,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18719,7 +18725,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -18756,8 +18762,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -18779,9 +18785,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGet(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGet(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18822,9 +18828,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18878,7 +18884,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18935,7 +18941,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGetWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19001,14 +19007,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -19038,7 +19044,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19063,7 +19069,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -19100,8 +19106,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -19125,9 +19131,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesList(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesList(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19176,9 +19182,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19239,7 +19245,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19302,7 +19308,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesListWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19373,14 +19379,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -19410,7 +19416,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19435,7 +19441,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -19474,8 +19480,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -19485,7 +19491,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPersonalSchedule definitions. + /// The resource properties to be updated /// 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). @@ -19495,9 +19501,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19534,7 +19540,7 @@ public partial class DesktopVirtualizationClient /// update a ScalingPlanPersonalSchedule. /// - /// Object containing ScalingPlanPersonalSchedule definitions. + /// The resource properties to be updated /// 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). @@ -19544,9 +19550,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19596,7 +19602,7 @@ public partial class DesktopVirtualizationClient /// update a ScalingPlanPersonalSchedule. /// - /// Object containing ScalingPlanPersonalSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -19606,7 +19612,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19668,9 +19674,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19719,7 +19725,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19759,7 +19765,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPersonalSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -19769,7 +19775,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19839,14 +19845,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -19876,7 +19882,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPersonalSchedulesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19901,7 +19907,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -19924,7 +19930,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPersonalSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -19939,8 +19945,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -19967,9 +19973,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20017,9 +20023,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20079,7 +20085,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20142,9 +20148,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20193,7 +20199,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20243,7 +20249,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20319,14 +20325,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -20357,7 +20363,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20388,7 +20394,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -20426,8 +20432,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -20452,9 +20458,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20496,9 +20502,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20553,7 +20559,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20584,7 +20590,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -20621,8 +20627,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -20644,9 +20650,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGet(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGet(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20687,9 +20693,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20743,7 +20749,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20800,7 +20806,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGetWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20866,14 +20872,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -20903,7 +20909,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20928,7 +20934,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -20965,8 +20971,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -20990,9 +20996,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesList(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesList(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21041,9 +21047,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21104,7 +21110,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21167,7 +21173,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesListWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21238,14 +21244,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -21275,7 +21281,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21300,7 +21306,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -21339,8 +21345,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -21350,7 +21356,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPooledSchedule definitions. + /// The resource properties to be updated /// 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). @@ -21360,9 +21366,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21399,7 +21405,7 @@ public partial class DesktopVirtualizationClient /// update a ScalingPlanPooledSchedule. /// - /// Object containing ScalingPlanPooledSchedule definitions. + /// The resource properties to be updated /// 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). @@ -21409,9 +21415,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21461,7 +21467,7 @@ public partial class DesktopVirtualizationClient /// update a ScalingPlanPooledSchedule. /// - /// Object containing ScalingPlanPooledSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -21471,7 +21477,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21533,9 +21539,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21584,7 +21590,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21624,7 +21630,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPooledSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -21634,7 +21640,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21704,14 +21710,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -21741,7 +21747,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlanPooledSchedulesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21766,7 +21772,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -21789,7 +21795,7 @@ public partial class DesktopVirtualizationClient /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule - /// Object containing ScalingPlanPooledSchedule definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -21804,8 +21810,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(scalingPlanScheduleName),scalingPlanScheduleName); await eventListener.AssertMinimumLength(nameof(scalingPlanScheduleName),scalingPlanScheduleName,1); @@ -21831,9 +21837,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlansCreate(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21879,9 +21885,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlansCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21938,7 +21944,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21997,9 +22003,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansCreateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22045,7 +22051,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22092,7 +22098,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansCreateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22164,14 +22170,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -22202,7 +22208,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22233,7 +22239,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -22270,8 +22276,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -22291,9 +22297,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansDelete(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22333,9 +22339,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22387,7 +22393,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22418,7 +22424,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -22454,8 +22460,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -22472,9 +22478,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansGet(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansGet(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22513,9 +22519,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22566,7 +22572,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22619,7 +22625,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansGetWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22681,14 +22687,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -22718,7 +22724,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22743,7 +22749,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -22779,8 +22785,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -22800,9 +22806,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22851,9 +22857,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListByHostPoolViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22914,7 +22920,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22977,7 +22983,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23048,14 +23054,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -23085,7 +23091,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23110,7 +23116,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -23149,8 +23155,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -23169,9 +23175,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23218,9 +23224,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23278,7 +23284,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23337,7 +23343,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23406,14 +23412,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -23443,7 +23449,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23468,7 +23474,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -23521,9 +23527,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListBySubscription(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListBySubscription(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23568,9 +23574,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansListBySubscriptionViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansListBySubscriptionViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23625,7 +23631,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23680,7 +23686,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansListBySubscriptionWithResult(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23747,14 +23753,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -23784,7 +23790,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23809,7 +23815,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -23849,7 +23855,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. - /// Object containing scaling plan definitions. + /// The resource properties to be updated /// 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). @@ -23859,9 +23865,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlansUpdate(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23896,7 +23902,7 @@ public partial class DesktopVirtualizationClient /// update a scaling plan. /// - /// Object containing scaling plan definitions. + /// The resource properties to be updated /// 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). @@ -23906,9 +23912,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23955,7 +23961,7 @@ public partial class DesktopVirtualizationClient /// update a scaling plan. /// - /// Object containing scaling plan definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -23965,7 +23971,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24023,9 +24029,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaJsonString(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24071,7 +24077,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24108,7 +24114,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. - /// Object containing scaling plan definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24118,7 +24124,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task ScalingPlansUpdateWithResult(string subscriptionId, string resourceGroupName, string scalingPlanName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24184,14 +24190,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -24221,7 +24227,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScalingPlansUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScalingPlansUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -24246,7 +24252,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -24268,7 +24274,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. - /// Object containing scaling plan definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -24283,8 +24289,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(scalingPlanName),scalingPlanName); - await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,1); - await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,255); + await eventListener.AssertMinimumLength(nameof(scalingPlanName),scalingPlanName,3); + await eventListener.AssertMaximumLength(nameof(scalingPlanName),scalingPlanName,64); await eventListener.AssertRegEx(nameof(scalingPlanName), scalingPlanName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -24295,7 +24301,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// Resource create parameters. /// 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). @@ -24307,7 +24313,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24343,7 +24349,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostConfiguration. /// - /// Object containing SessionHostConfiguration definitions. + /// Resource create parameters. /// 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). @@ -24355,7 +24361,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24403,7 +24409,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostConfiguration. /// - /// Object containing SessionHostConfiguration definitions. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24413,7 +24419,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24474,7 +24480,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24521,7 +24527,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24559,7 +24565,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24569,7 +24575,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24724,7 +24730,7 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -24880,7 +24886,7 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -24908,7 +24914,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -24923,8 +24929,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -24943,9 +24949,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostConfigurationsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostConfigurationsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24985,9 +24991,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostConfigurationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostConfigurationsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25039,7 +25045,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25093,7 +25099,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25152,20 +25158,20 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -25195,7 +25201,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostConfigurationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostConfigurationsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -25214,13 +25220,13 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -25256,13 +25262,13 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } - /// List sessionHostConfigurations. + /// List SessionHostConfigurations. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -25274,9 +25280,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25306,7 +25312,7 @@ public partial class DesktopVirtualizationClient } } - /// List sessionHostConfigurations. + /// List SessionHostConfigurations. /// /// 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 @@ -25316,9 +25322,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25360,7 +25366,7 @@ public partial class DesktopVirtualizationClient } } - /// List sessionHostConfigurations. + /// List SessionHostConfigurations. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -25370,7 +25376,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25412,7 +25418,7 @@ public partial class DesktopVirtualizationClient } } - /// List sessionHostConfigurations. + /// List SessionHostConfigurations. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -25424,7 +25430,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25489,14 +25495,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -25528,7 +25534,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostConfigurationsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -25553,7 +25559,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -25589,8 +25595,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -25599,7 +25605,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// The resource properties to be updated /// 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). @@ -25611,7 +25617,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25647,7 +25653,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostConfiguration. /// - /// Object containing SessionHostConfiguration definitions. + /// The resource properties to be updated /// 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). @@ -25659,7 +25665,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25707,7 +25713,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostConfiguration. /// - /// Object containing SessionHostConfiguration definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -25717,7 +25723,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25778,7 +25784,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25825,7 +25831,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25863,7 +25869,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -25873,7 +25879,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostConfigurationsUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26029,7 +26035,7 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -26184,7 +26190,7 @@ public partial class DesktopVirtualizationClient case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26212,7 +26218,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostConfiguration definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -26227,8 +26233,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -26239,7 +26245,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26250,9 +26256,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26288,7 +26294,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostManagement. /// - /// Object containing SessionHostManagement definitions. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26299,9 +26305,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26349,7 +26355,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostManagement. /// - /// Object containing SessionHostManagement definitions. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -26359,7 +26365,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26419,9 +26425,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26468,7 +26474,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26506,7 +26512,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -26516,7 +26522,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26591,14 +26597,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -26631,7 +26637,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostManagementsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26662,7 +26668,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -26684,7 +26690,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -26699,8 +26705,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -26719,9 +26725,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26761,9 +26767,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26815,7 +26821,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26869,7 +26875,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26934,14 +26940,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -26971,7 +26977,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostManagementsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostManagementsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26996,7 +27002,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -27032,13 +27038,13 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } - /// List SessionHostManagements by hostPool. + /// List SessionHostManagements. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -27050,9 +27056,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27082,7 +27088,7 @@ public partial class DesktopVirtualizationClient } } - /// List SessionHostManagements by hostPool. + /// List SessionHostManagements. /// /// 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 @@ -27092,9 +27098,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPoolViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27136,7 +27142,7 @@ public partial class DesktopVirtualizationClient } } - /// List SessionHostManagements by hostPool. + /// List SessionHostManagements. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -27146,7 +27152,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27188,7 +27194,7 @@ public partial class DesktopVirtualizationClient } } - /// List SessionHostManagements by hostPool. + /// List SessionHostManagements. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -27200,7 +27206,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27265,14 +27271,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -27304,7 +27310,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostManagementsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -27329,7 +27335,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -27365,8 +27371,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -27375,7 +27381,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// The properties to be updated. /// 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). @@ -27385,9 +27391,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostManagementsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27421,7 +27427,7 @@ public partial class DesktopVirtualizationClient } } - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -27435,7 +27441,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateStatusGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27465,7 +27471,7 @@ public partial class DesktopVirtualizationClient } } - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// /// 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 @@ -27477,7 +27483,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateStatusGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27519,7 +27525,7 @@ public partial class DesktopVirtualizationClient } } - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. @@ -27529,7 +27535,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateStatusGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27571,7 +27577,7 @@ public partial class DesktopVirtualizationClient } } - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -27583,7 +27589,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateStatusGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27748,15 +27754,15 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); } } /// update a SessionHostManagement. /// - /// Object containing SessionHostManagement definitions. + /// The properties to be updated. /// 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). @@ -27766,9 +27772,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27816,7 +27822,7 @@ public partial class DesktopVirtualizationClient /// update a SessionHostManagement. /// - /// Object containing SessionHostManagement definitions. + /// The properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -27826,7 +27832,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27885,9 +27891,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27934,7 +27940,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27972,7 +27978,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// The properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -27982,7 +27988,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostManagementsUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28051,14 +28057,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -28088,7 +28094,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostManagementsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostManagementsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -28113,7 +28119,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -28135,7 +28141,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group - /// Object containing SessionHostManagement definitions. + /// The properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -28150,8 +28156,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -28172,7 +28178,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostProvisioningStatusesGet(string subscriptionId, string resourceGroupName, string hostPoolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28214,7 +28220,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostProvisioningStatusesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28266,7 +28272,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostProvisioningStatusesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28320,7 +28326,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostProvisioningStatusesGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28483,195 +28489,9 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); - await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); - } - } - - /// Retry provisioning on a SessionHost. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the host pool within the specified resource group - /// The name of the session host within the specified host pool - /// 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.DesktopVirtualization.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 SessionHostRetryProvisioning(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DesktopVirtualization/hostPools/" - + global::System.Uri.EscapeDataString(hostPoolName) - + "/sessionHosts/" - + global::System.Uri.EscapeDataString(sessionHostName) - + "/retryProvisioning" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SessionHostRetryProvisioning_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Retry provisioning on a SessionHost. - /// - /// 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.DesktopVirtualization.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 SessionHostRetryProvisioningViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) - { - var apiVersion = @"2025-03-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/sessionHosts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var hostPoolName = _match.Groups["hostPoolName"].Value; - var sessionHostName = _match.Groups["sessionHostName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DesktopVirtualization/hostPools/" - + hostPoolName - + "/sessionHosts/" - + sessionHostName - + "/retryProvisioning" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SessionHostRetryProvisioning_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.DesktopVirtualization.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 SessionHostRetryProvisioning_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.Progress, "intentional placeholder", 100); 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.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the host pool within the specified resource group - /// The name of the session host within the specified host pool - /// 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 SessionHostRetryProvisioning_Validate(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); - await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); - await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); - await eventListener.AssertMaximumLength(nameof(sessionHostName),sessionHostName,48); - await eventListener.AssertRegEx(nameof(sessionHostName), sessionHostName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -28690,9 +28510,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28737,9 +28557,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28796,7 +28616,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -28827,7 +28647,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -28865,8 +28685,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -28888,9 +28708,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsGet(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsGet(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28931,9 +28751,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28987,7 +28807,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29044,7 +28864,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29108,14 +28928,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -29145,7 +28965,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29170,7 +28990,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -29207,8 +29027,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -29233,9 +29053,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsList(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsList(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29287,9 +29107,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29353,7 +29173,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29419,7 +29239,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsListWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip, string vmPath, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29490,14 +29310,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -29527,7 +29347,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29552,7 +29372,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -29592,8 +29412,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(vmPath),vmPath); await eventListener.AssertMinimumLength(nameof(vmPath),vmPath,3); @@ -29602,13 +29422,199 @@ public partial class DesktopVirtualizationClient } } + /// Retry provisioning on a SessionHost. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group + /// The name of the session host within the specified host pool + /// 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.DesktopVirtualization.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 SessionHostsRetryProvisioning(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-09-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DesktopVirtualization/hostPools/" + + global::System.Uri.EscapeDataString(hostPoolName) + + "/sessionHosts/" + + global::System.Uri.EscapeDataString(sessionHostName) + + "/retryProvisioning" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SessionHostsRetryProvisioning_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Retry provisioning on a SessionHost. + /// + /// 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.DesktopVirtualization.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 SessionHostsRetryProvisioningViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-09-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DesktopVirtualization/hostPools/(?[^/]+)/sessionHosts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var hostPoolName = _match.Groups["hostPoolName"].Value; + var sessionHostName = _match.Groups["sessionHostName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DesktopVirtualization/hostPools/" + + hostPoolName + + "/sessionHosts/" + + sessionHostName + + "/retryProvisioning" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SessionHostsRetryProvisioning_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.DesktopVirtualization.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 SessionHostsRetryProvisioning_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.Progress, "intentional placeholder", 100); 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.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group + /// The name of the session host within the specified host pool + /// 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 SessionHostsRetryProvisioning_Validate(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); + await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); + await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); + await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); + await eventListener.AssertMaximumLength(nameof(sessionHostName),sessionHostName,48); + await eventListener.AssertRegEx(nameof(sessionHostName), sessionHostName, @"^[A-Za-z0-9@.\-_ ]*$"); + } + } + /// update a session host. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group /// The name of the session host within the specified host pool /// Force flag to update assign, unassign or reassign personal desktop. - /// Object containing SessionHost definitions. + /// The resource properties to be updated /// 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). @@ -29618,9 +29624,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostsUpdate(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29660,7 +29666,7 @@ public partial class DesktopVirtualizationClient /// update a session host. /// /// Force flag to update assign, unassign or reassign personal desktop. - /// Object containing SessionHost definitions. + /// The resource properties to be updated /// 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). @@ -29670,9 +29676,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsUpdateViaIdentity(global::System.String viaIdentity, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task SessionHostsUpdateViaIdentity(global::System.String viaIdentity, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29725,7 +29731,7 @@ public partial class DesktopVirtualizationClient /// update a session host. /// /// Force flag to update assign, unassign or reassign personal desktop. - /// Object containing SessionHost definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -29735,7 +29741,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsUpdateViaIdentityWithResult(global::System.String viaIdentity, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29800,9 +29806,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SessionHostsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SessionHostsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29854,7 +29860,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29897,7 +29903,7 @@ public partial class DesktopVirtualizationClient /// The name of the host pool within the specified resource group /// The name of the session host within the specified host pool /// Force flag to update assign, unassign or reassign personal desktop. - /// Object containing SessionHost definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -29907,7 +29913,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task SessionHostsUpdateWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29977,14 +29983,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -30014,7 +30020,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SessionHostsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SessionHostsUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30039,7 +30045,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -30063,7 +30069,7 @@ public partial class DesktopVirtualizationClient /// The name of the host pool within the specified resource group /// The name of the session host within the specified host pool /// Force flag to update assign, unassign or reassign personal desktop. - /// Object containing SessionHost definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -30078,8 +30084,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -30105,9 +30111,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StartMenuItemsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StartMenuItemsList(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30156,9 +30162,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StartMenuItemsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StartMenuItemsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30219,7 +30225,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task StartMenuItemsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30282,7 +30288,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task StartMenuItemsListWithResult(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30351,14 +30357,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -30388,7 +30394,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StartMenuItemsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StartMenuItemsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30413,7 +30419,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -30452,8 +30458,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(applicationGroupName),applicationGroupName); - await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,1); - await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,255); + await eventListener.AssertMinimumLength(nameof(applicationGroupName),applicationGroupName,3); + await eventListener.AssertMaximumLength(nameof(applicationGroupName),applicationGroupName,64); await eventListener.AssertRegEx(nameof(applicationGroupName), applicationGroupName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -30474,9 +30480,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsDelete(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30523,9 +30529,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30585,7 +30591,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30616,7 +30622,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -30655,8 +30661,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -30682,9 +30688,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsDisconnect(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsDisconnect(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30728,9 +30734,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsDisconnectViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsDisconnectViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30788,7 +30794,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsDisconnect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsDisconnect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30813,7 +30819,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -30851,8 +30857,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -30878,9 +30884,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsGet(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsGet(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30923,9 +30929,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30982,7 +30988,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31043,7 +31049,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsGetWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31109,14 +31115,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -31146,7 +31152,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31171,7 +31177,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -31209,8 +31215,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -31238,9 +31244,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsList(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsList(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31278,7 +31284,7 @@ public partial class DesktopVirtualizationClient } } - /// List userSessions. + /// A synchronous resource action. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -31294,9 +31300,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31334,7 +31340,7 @@ public partial class DesktopVirtualizationClient } } - /// List userSessions. + /// A synchronous resource action. /// /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. /// Number of items per page. @@ -31348,9 +31354,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsListByHostPoolViaIdentity(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsListByHostPoolViaIdentity(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31400,7 +31406,7 @@ public partial class DesktopVirtualizationClient } } - /// List userSessions. + /// A synchronous resource action. /// /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. /// Number of items per page. @@ -31414,7 +31420,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsListByHostPoolViaIdentityWithResult(global::System.String viaIdentity, string Filter, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31464,7 +31470,7 @@ public partial class DesktopVirtualizationClient } } - /// List userSessions. + /// A synchronous resource action. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group @@ -31480,7 +31486,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsListByHostPoolWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string Filter, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31553,14 +31559,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -31590,7 +31596,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsListByHostPool_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31615,7 +31621,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -31655,8 +31661,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(Filter),Filter); } @@ -31675,9 +31681,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsListViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31741,7 +31747,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsListViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31808,7 +31814,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task UserSessionsListWithResult(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31879,14 +31885,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -31916,7 +31922,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsList_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31941,7 +31947,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -31981,8 +31987,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -31997,7 +32003,7 @@ public partial class DesktopVirtualizationClient /// The name of the host pool within the specified resource group /// The name of the session host within the specified host pool /// The name of the user session within the specified session host - /// Object containing message includes title and message body + /// Represents message sent to a UserSession. /// 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). @@ -32007,9 +32013,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsSendMessage(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISendMessage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task UserSessionsSendMessage(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISendMessage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32049,7 +32055,7 @@ public partial class DesktopVirtualizationClient /// Send a message to a user. /// - /// Object containing message includes title and message body + /// Represents message sent to a UserSession. /// 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). @@ -32059,9 +32065,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsSendMessageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISendMessage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task UserSessionsSendMessageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISendMessage body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32128,9 +32134,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UserSessionsSendMessageViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UserSessionsSendMessageViaJsonString(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32178,7 +32184,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UserSessionsSendMessage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UserSessionsSendMessage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32203,7 +32209,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -32227,7 +32233,7 @@ public partial class DesktopVirtualizationClient /// The name of the host pool within the specified resource group /// The name of the session host within the specified host pool /// The name of the user session within the specified session host - /// Object containing message includes title and message body + /// Represents message sent to a UserSession. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -32242,8 +32248,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(hostPoolName),hostPoolName); - await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,1); - await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,255); + await eventListener.AssertMinimumLength(nameof(hostPoolName),hostPoolName,3); + await eventListener.AssertMaximumLength(nameof(hostPoolName),hostPoolName,64); await eventListener.AssertRegEx(nameof(hostPoolName), hostPoolName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(sessionHostName),sessionHostName); await eventListener.AssertMinimumLength(nameof(sessionHostName),sessionHostName,3); @@ -32272,9 +32278,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32320,9 +32326,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32379,7 +32385,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32438,9 +32444,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32486,7 +32492,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32533,7 +32539,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32605,14 +32611,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -32643,7 +32649,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32674,7 +32680,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -32711,8 +32717,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -32732,9 +32738,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesDelete(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesDelete(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32774,9 +32780,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesDeleteViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32828,7 +32834,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesDelete_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32859,7 +32865,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -32895,8 +32901,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -32913,9 +32919,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesGet(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesGet(string subscriptionId, string resourceGroupName, string workspaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32954,9 +32960,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesGetViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33007,7 +33013,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33060,7 +33066,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesGetWithResult(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33122,14 +33128,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -33159,7 +33165,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesGet_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33184,7 +33190,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -33220,8 +33226,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); } } @@ -33240,9 +33246,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33289,9 +33295,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33349,7 +33355,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33408,7 +33414,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33477,14 +33483,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -33514,7 +33520,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesListByResourceGroup_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33539,7 +33545,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -33589,9 +33595,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33627,9 +33633,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesListBySubscriptionViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesListBySubscriptionViaIdentity(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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33675,7 +33681,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33721,7 +33727,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33782,14 +33788,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -33819,7 +33825,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesListBySubscription_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33844,7 +33850,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -33881,7 +33887,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// Object containing Workspace definitions. + /// The resource properties to be updated /// 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). @@ -33891,9 +33897,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesUpdate(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkspacesUpdate(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33928,7 +33934,7 @@ public partial class DesktopVirtualizationClient /// update a workspace. /// - /// Object containing Workspace definitions. + /// The resource properties to be updated /// 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). @@ -33938,9 +33944,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkspacesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33987,7 +33993,7 @@ public partial class DesktopVirtualizationClient /// update a workspace. /// - /// Object containing Workspace definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -33997,7 +34003,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34055,9 +34061,9 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkspacesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkspacesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34103,7 +34109,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string workspaceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34140,7 +34146,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// Object containing Workspace definitions. + /// The resource properties to be updated /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -34150,7 +34156,7 @@ public partial class DesktopVirtualizationClient /// public async global::System.Threading.Tasks.Task WorkspacesUpdateWithResult(string subscriptionId, string resourceGroupName, string workspaceName, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch body, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-03-01-preview"; + var apiVersion = @"2025-09-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34216,14 +34222,14 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) ); // Error Response : default var code = (await _result)?.Code; var message = (await _result)?.Message; if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(_response, await _result); throw ex; } else @@ -34253,7 +34259,7 @@ public partial class DesktopVirtualizationClient /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkspacesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkspacesUpdate_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.DesktopVirtualization.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -34278,7 +34284,7 @@ public partial class DesktopVirtualizationClient default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -34300,7 +34306,7 @@ public partial class DesktopVirtualizationClient /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace - /// Object containing Workspace definitions. + /// The resource properties to be updated /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -34315,8 +34321,8 @@ public partial class DesktopVirtualizationClient await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(workspaceName),workspaceName); - await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,1); - await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,255); + await eventListener.AssertMinimumLength(nameof(workspaceName),workspaceName,3); + await eventListener.AssertMaximumLength(nameof(workspaceName),workspaceName,64); await eventListener.AssertRegEx(nameof(workspaceName), workspaceName, @"^[A-Za-z0-9@.\-_ ]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.PowerShell.cs index 53be974874fc..80a6136fa627 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type [System.ComponentModel.TypeConverter(typeof(ActiveDirectoryInfoPatchPropertiesTypeConverter))] public partial class ActiveDirectoryInfoPatchProperties { @@ -174,7 +174,7 @@ public override string ToString() return ToJsonString(); } } - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type [System.ComponentModel.TypeConverter(typeof(ActiveDirectoryInfoPatchPropertiesTypeConverter))] public partial interface IActiveDirectoryInfoPatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.cs index c2c8e1ce4ff7..e3100bbefdb2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type public partial class ActiveDirectoryInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveDirectoryInfoPatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveDirectoryInfoPatchPropertiesInternal @@ -37,7 +37,7 @@ public ActiveDirectoryInfoPatchProperties() } } - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type public partial interface IActiveDirectoryInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -65,7 +65,7 @@ public partial interface IActiveDirectoryInfoPatchProperties : string DomainCredentialsUsernameKeyVaultSecretUri { get; set; } } - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type internal partial interface IActiveDirectoryInfoPatchPropertiesInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.json.cs index 23bbeb486e67..cfa82af61f62 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveDirectoryInfoPatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Active directory info. Only one should be populated based on the join type. + /// Active directory info. Only one should be populated based on the join type public partial class ActiveDirectoryInfoPatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.PowerShell.cs index c4adaa12f0cb..c90359a19a9e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.PowerShell.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState - /// + /// Schema for ActiveSessionHostConfiguration properties. [System.ComponentModel.TypeConverter(typeof(ActiveSessionHostConfigurationTypeConverter))] public partial class ActiveSessionHostConfiguration { @@ -615,8 +612,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState + /// Schema for ActiveSessionHostConfiguration properties. [System.ComponentModel.TypeConverter(typeof(ActiveSessionHostConfigurationTypeConverter))] public partial interface IActiveSessionHostConfiguration diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.cs index 5e12bc0388e8..172d43484163 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.cs @@ -7,20 +7,17 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState - /// + /// Schema for ActiveSessionHostConfiguration properties. public partial class ActiveSessionHostConfiguration : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationInternal, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// The domain a virtual machine connected to a hostpool will join. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -57,7 +54,7 @@ public partial class ActiveSessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomConfigurationScriptUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).CustomConfigurationScriptUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).CustomConfigurationScriptUrl = value ?? null; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).CustomInfoResourceId = value ?? null; } @@ -69,7 +66,7 @@ public partial class ActiveSessionHostConfiguration : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).DiffDiskSettingPlacement = value ?? null; } @@ -86,7 +83,7 @@ public partial class ActiveSessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DomainInfoJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).DomainInfoJoinType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).DomainInfoJoinType = value ; } - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).FriendlyName = value ?? null; } @@ -94,17 +91,17 @@ public partial class ActiveSessionHostConfiguration : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// The type of image session hosts use in the hostpool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).ImageInfoImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).ImageInfoImageType = value ; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoExactVersion = value ?? null; } @@ -116,7 +113,7 @@ public partial class ActiveSessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoSku = value ?? null; } @@ -169,38 +166,38 @@ public partial class ActiveSessionHostConfiguration : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).Version = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// /// The resource ID of the security group. Any allowable/open ports should be specified in the Network Security Group(NSG). @@ -215,7 +212,7 @@ public partial class ActiveSessionHostConfiguration : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationProperties _property; - /// Detailed properties for SessionHostConfiguration + /// Detailed properties for ActiveSessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ActiveSessionHostConfigurationProperties()); set => this._property = value; } @@ -233,7 +230,7 @@ public partial class ActiveSessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).SecurityInfoType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).SecurityInfoType = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).SecurityInfoVTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal)Property).SecurityInfoVTpmEnabled = value ?? default(bool); } @@ -241,37 +238,37 @@ public partial class ActiveSessionHostConfiguration : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// The uri to access the secret that the password is stored in. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -326,15 +323,14 @@ public ActiveSessionHostConfiguration() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState + /// Schema for ActiveSessionHostConfiguration properties. public partial interface IActiveSessionHostConfiguration : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// The domain a virtual machine connected to a hostpool will join. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -420,14 +416,14 @@ public partial interface IActiveSessionHostConfiguration : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -447,7 +443,7 @@ public partial interface IActiveSessionHostConfiguration : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -455,7 +451,7 @@ public partial interface IActiveSessionHostConfiguration : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -494,14 +490,14 @@ public partial interface IActiveSessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ActiveDirectory", "AzureActiveDirectory")] string DomainInfoJoinType { get; set; } - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Friendly name to describe this version of the SessionHostConfiguration.", + Description = @"Friendly name to describe this version of the SessionHostConfiguration", SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } @@ -517,26 +513,26 @@ public partial interface IActiveSessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -562,14 +558,14 @@ public partial interface IActiveSessionHostConfiguration : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -622,14 +618,14 @@ public partial interface IActiveSessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -730,10 +726,9 @@ public partial interface IActiveSessionHostConfiguration : global::System.DateTime? Version { get; } } - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState + /// Schema for ActiveSessionHostConfiguration properties. internal partial interface IActiveSessionHostConfigurationInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// Credentials needed to create the virtual machine. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties ActiveDirectoryInfoDomainCredentials { get; set; } @@ -760,7 +755,7 @@ internal partial interface IActiveSessionHostConfigurationInternal : /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -769,14 +764,14 @@ internal partial interface IActiveSessionHostConfigurationInternal : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } /// Disk information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -796,9 +791,9 @@ internal partial interface IActiveSessionHostConfigurationInternal : /// The type of domain join done by the virtual machine. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ActiveDirectory", "AzureActiveDirectory")] string DomainInfoJoinType { get; set; } - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration string FriendlyName { get; set; } - /// Image configurations of HostPool. + /// Image configurations of the HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoProperties ImageInfo { get; set; } /// /// The values to uniquely identify a custom image. Only one should be populated based on the image type. @@ -811,16 +806,16 @@ internal partial interface IActiveSessionHostConfigurationInternal : /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoProperties NetworkInfo { get; set; } @@ -830,7 +825,7 @@ internal partial interface IActiveSessionHostConfigurationInternal : string NetworkInfoSecurityGroupId { get; set; } /// The resource ID of the subnet. string NetworkInfoSubnetId { get; set; } - /// Detailed properties for SessionHostConfiguration + /// Detailed properties for ActiveSessionHostConfiguration Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationProperties Property { get; set; } /// Security information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties SecurityInfo { get; set; } @@ -841,7 +836,7 @@ internal partial interface IActiveSessionHostConfigurationInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } /// Local Admin credentials for session hosts. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties VMAdminCredentials { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.json.cs index 895721088eaa..2322368d630a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfiguration.json.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except - /// provisioningState - /// + /// Schema for ActiveSessionHostConfiguration properties. public partial class ActiveSessionHostConfiguration { @@ -68,7 +65,7 @@ internal ActiveSessionHostConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Deskt { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ActiveSessionHostConfigurationProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -104,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.cs index c87f4da6701f..70d59c595c33 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.cs @@ -13,20 +13,17 @@ public partial class ActiveSessionHostConfigurationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of ActiveSessionHostConfiguration definitions. + /// The ActiveSessionHostConfiguration items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ActiveSessionHostConfigurationList() public partial interface IActiveSessionHostConfigurationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of ActiveSessionHostConfiguration definitions. + string NextLink { get; set; } + /// The ActiveSessionHostConfiguration items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of ActiveSessionHostConfiguration definitions.", + Description = @"The ActiveSessionHostConfiguration items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfiguration) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IActiveSessionHostConfigurationList : internal partial interface IActiveSessionHostConfigurationListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of ActiveSessionHostConfiguration definitions. + /// The ActiveSessionHostConfiguration items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.json.cs index 964e641110e9..d5406c2c2c1c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationList.json.cs @@ -111,10 +111,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.PowerShell.cs index 85904c253f61..dc13d4ebeecd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.PowerShell.cs @@ -7,7 +7,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Session host configurations of HostPool. + /// + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState + /// [System.ComponentModel.TypeConverter(typeof(ActiveSessionHostConfigurationPropertiesTypeConverter))] public partial class ActiveSessionHostConfigurationProperties { @@ -527,7 +530,8 @@ public override string ToString() return ToJsonString(); } } - /// Session host configurations of HostPool. + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState [System.ComponentModel.TypeConverter(typeof(ActiveSessionHostConfigurationPropertiesTypeConverter))] public partial interface IActiveSessionHostConfigurationProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.cs index 3dfa97ddece2..fbde13410341 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.cs @@ -7,7 +7,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host configurations of HostPool. + /// + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState + /// public partial class ActiveSessionHostConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfigurationPropertiesInternal @@ -61,7 +64,7 @@ public partial class ActiveSessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CustomConfigurationScriptUrl { get => this._customConfigurationScriptUrl; set => this._customConfigurationScriptUrl = value; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).CustomInfoResourceId = value ?? null; } @@ -73,7 +76,7 @@ public partial class ActiveSessionHostConfigurationProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement = value ?? null; } @@ -107,14 +110,14 @@ public partial class ActiveSessionHostConfigurationProperties : /// Backing field for property. private string _friendlyName; - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoProperties _imageInfo; - /// Image configurations of HostPool. + /// Image configurations of the HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoProperties ImageInfo { get => (this._imageInfo = this._imageInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ImageInfoProperties()); set => this._imageInfo = value; } @@ -122,11 +125,11 @@ public partial class ActiveSessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).ImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).ImageType = value ; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion = value ?? null; } @@ -138,7 +141,7 @@ public partial class ActiveSessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoSku = value ?? null; } @@ -221,7 +224,7 @@ public partial class ActiveSessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).Type = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).VTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).VTpmEnabled = value ?? default(bool); } @@ -297,7 +300,8 @@ public ActiveSessionHostConfigurationProperties() } } - /// Session host configurations of HostPool. + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState public partial interface IActiveSessionHostConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -385,14 +389,14 @@ public partial interface IActiveSessionHostConfigurationProperties : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -412,7 +416,7 @@ public partial interface IActiveSessionHostConfigurationProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -420,7 +424,7 @@ public partial interface IActiveSessionHostConfigurationProperties : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -459,14 +463,14 @@ public partial interface IActiveSessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ActiveDirectory", "AzureActiveDirectory")] string DomainInfoJoinType { get; set; } - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Friendly name to describe this version of the SessionHostConfiguration.", + Description = @"Friendly name to describe this version of the SessionHostConfiguration", SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } @@ -482,26 +486,26 @@ public partial interface IActiveSessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -527,14 +531,14 @@ public partial interface IActiveSessionHostConfigurationProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -587,14 +591,14 @@ public partial interface IActiveSessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -695,7 +699,8 @@ public partial interface IActiveSessionHostConfigurationProperties : global::System.DateTime? Version { get; } } - /// Session host configurations of HostPool. + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState internal partial interface IActiveSessionHostConfigurationPropertiesInternal { @@ -724,7 +729,7 @@ internal partial interface IActiveSessionHostConfigurationPropertiesInternal /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -733,14 +738,14 @@ internal partial interface IActiveSessionHostConfigurationPropertiesInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } /// Disk information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -760,9 +765,9 @@ internal partial interface IActiveSessionHostConfigurationPropertiesInternal /// The type of domain join done by the virtual machine. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ActiveDirectory", "AzureActiveDirectory")] string DomainInfoJoinType { get; set; } - /// Friendly name to describe this version of the SessionHostConfiguration. + /// Friendly name to describe this version of the SessionHostConfiguration string FriendlyName { get; set; } - /// Image configurations of HostPool. + /// Image configurations of the HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoProperties ImageInfo { get; set; } /// /// The values to uniquely identify a custom image. Only one should be populated based on the image type. @@ -775,16 +780,16 @@ internal partial interface IActiveSessionHostConfigurationPropertiesInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoProperties NetworkInfo { get; set; } @@ -803,7 +808,7 @@ internal partial interface IActiveSessionHostConfigurationPropertiesInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } /// Local Admin credentials for session hosts. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties VMAdminCredentials { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.json.cs index d6d78fea647e..cd0a9e874bb5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ActiveSessionHostConfigurationProperties.json.cs @@ -7,7 +7,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host configurations of HostPool. + /// + /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except + /// provisioningState + /// public partial class ActiveSessionHostConfigurationProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackage.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackage.cs index 5a3eed6c46b1..e3cdd4b1a82c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackage.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackage.cs @@ -63,9 +63,7 @@ public partial class AppAttachPackage : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ImageIsRegularRegistration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageIsRegularRegistration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageIsRegularRegistration = value ?? default(bool); } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public global::System.DateTime? ImageLastUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageLastUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageLastUpdated = value ?? default(global::System.DateTime); } @@ -82,14 +80,12 @@ public partial class AppAttachPackage : public System.Collections.Generic.List ImagePackageDependency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageDependency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageDependency = value ?? null /* arrayOf */; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFamilyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageFamilyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageFamilyName = value ?? null; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageFullName = value ?? null; } @@ -101,15 +97,15 @@ public partial class AppAttachPackage : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageRelativePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageRelativePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePackageRelativePath = value ?? null; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImagePath = value ?? null; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).ImageVersion = value ?? null; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string KeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).KeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePropertiesInternal)Property).KeyVaultUrl = value ?? null; } @@ -291,7 +287,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageCertificateExpiry { get; set; } @@ -302,7 +298,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string ImageCertificateName { get; set; } @@ -313,7 +309,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string ImageDisplayName { get; set; } @@ -324,7 +320,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsActive { get; set; } @@ -351,16 +347,14 @@ public partial interface IAppAttachPackage : SerializedName = @"isRegularRegistration", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageLastUpdated { get; set; } @@ -382,7 +376,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List ImagePackageApplication { get; set; } @@ -393,12 +387,12 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -406,20 +400,18 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFullName { get; set; } @@ -430,7 +422,7 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string ImagePackageName { get; set; } @@ -441,40 +433,40 @@ public partial interface IAppAttachPackage : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] string KeyVaultUrl { get; set; } @@ -544,9 +536,7 @@ internal partial interface IAppAttachPackageInternal : string ImageIsPackageTimestamped { get; set; } /// Specifies how to register Package in feed. bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. global::System.DateTime? ImageLastUpdated { get; set; } /// Alias of App Attach Package. Assigned at import time string ImagePackageAlias { get; set; } @@ -555,22 +545,20 @@ internal partial interface IAppAttachPackageInternal : /// List of package dependencies. System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. string ImagePackageFullName { get; set; } /// Package Name from appxmanifest.xml. string ImagePackageName { get; set; } /// Relative Path to the package inside the image. string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault string KeyVaultUrl { get; set; } /// /// Lookback url to third party control plane, is null for native app attach packages diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageInfoProperties.cs index ddcffb42acc5..c0eaebaf7a8c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageInfoProperties.cs @@ -37,7 +37,7 @@ public partial class AppAttachPackageInfoProperties : /// Backing field for property. private string _imagePath; - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ImagePath { get => this._imagePath; set => this._imagePath = value; } @@ -65,9 +65,7 @@ public partial class AppAttachPackageInfoProperties : /// Backing field for property. private global::System.DateTime? _lastUpdated; - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public global::System.DateTime? LastUpdated { get => this._lastUpdated; set => this._lastUpdated = value; } @@ -96,7 +94,7 @@ public partial class AppAttachPackageInfoProperties : private string _packageFamilyName; /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string PackageFamilyName { get => this._packageFamilyName; set => this._packageFamilyName = value; } @@ -104,9 +102,7 @@ public partial class AppAttachPackageInfoProperties : /// Backing field for property. private string _packageFullName; - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string PackageFullName { get => this._packageFullName; set => this._packageFullName = value; } @@ -127,7 +123,7 @@ public partial class AppAttachPackageInfoProperties : /// Backing field for property. private string _version; - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Version { get => this._version; set => this._version = value; } @@ -148,7 +144,7 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? CertificateExpiry { get; set; } @@ -159,7 +155,7 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string CertificateName { get; set; } @@ -170,18 +166,18 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] string ImagePath { get; set; } @@ -192,7 +188,7 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } @@ -219,16 +215,14 @@ public partial interface IAppAttachPackageInfoProperties : SerializedName = @"isRegularRegistration", PossibleTypes = new [] { typeof(bool) })] bool? IsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUpdated { get; set; } @@ -250,7 +244,7 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List PackageApplication { get; set; } @@ -261,12 +255,12 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List PackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -274,20 +268,18 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string PackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string PackageFullName { get; set; } @@ -298,7 +290,7 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string PackageName { get; set; } @@ -309,18 +301,18 @@ public partial interface IAppAttachPackageInfoProperties : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string Version { get; set; } @@ -336,7 +328,7 @@ internal partial interface IAppAttachPackageInfoPropertiesInternal string CertificateName { get; set; } /// User friendly Name to be displayed in the portal. string DisplayName { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. string ImagePath { get; set; } /// Make this version of the package the active one across the hostpool. bool? IsActive { get; set; } @@ -345,9 +337,7 @@ internal partial interface IAppAttachPackageInfoPropertiesInternal string IsPackageTimestamped { get; set; } /// Specifies how to register Package in feed. bool? IsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. global::System.DateTime? LastUpdated { get; set; } /// Alias of App Attach Package. Assigned at import time string PackageAlias { get; set; } @@ -356,18 +346,16 @@ internal partial interface IAppAttachPackageInfoPropertiesInternal /// List of package dependencies. System.Collections.Generic.List PackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// string PackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. string PackageFullName { get; set; } /// Package Name from appxmanifest.xml. string PackageName { get; set; } /// Relative Path to the package inside the image. string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string Version { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.cs index 97ee71bbf426..c550dcc35368 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.cs @@ -13,20 +13,17 @@ public partial class AppAttachPackageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of App Attach Package definitions. + /// The AppAttachPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public AppAttachPackageList() public partial interface IAppAttachPackageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of App Attach Package definitions. + string NextLink { get; set; } + /// The AppAttachPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of App Attach Package definitions.", + Description = @"The AppAttachPackage items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IAppAttachPackageList : internal partial interface IAppAttachPackageListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of App Attach Package definitions. + /// The AppAttachPackage items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.json.cs index 3cdd24493be4..2e4d5e014840 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.PowerShell.cs index 2bfd9695054c..44ee774cc85e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. [System.ComponentModel.TypeConverter(typeof(AppAttachPackagePatchTypeConverter))] public partial class AppAttachPackagePatch { @@ -418,7 +418,7 @@ public override string ToString() return ToJsonString(); } } - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. [System.ComponentModel.TypeConverter(typeof(AppAttachPackagePatchTypeConverter))] public partial interface IAppAttachPackagePatch diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.cs index 7c2341901bc2..9ead5ec7f00e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. public partial class AppAttachPackagePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchInternal, @@ -63,9 +63,7 @@ public partial class AppAttachPackagePatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ImageIsRegularRegistration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageIsRegularRegistration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageIsRegularRegistration = value ?? default(bool); } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public global::System.DateTime? ImageLastUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageLastUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageLastUpdated = value ?? default(global::System.DateTime); } @@ -82,14 +80,12 @@ public partial class AppAttachPackagePatch : public System.Collections.Generic.List ImagePackageDependency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageDependency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageDependency = value ?? null /* arrayOf */; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFamilyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageFamilyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageFamilyName = value ?? null; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageFullName = value ?? null; } @@ -101,15 +97,15 @@ public partial class AppAttachPackagePatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageRelativePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageRelativePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePackageRelativePath = value ?? null; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImagePath = value ?? null; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).ImageVersion = value ?? null; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string KeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).KeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).KeyVaultUrl = value ?? null; } @@ -154,7 +150,7 @@ public partial class AppAttachPackagePatch : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string PackageLookbackUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).PackageLookbackUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchPropertiesInternal)Property).PackageLookbackUrl = value ?? null; } @@ -227,7 +223,7 @@ public AppAttachPackagePatch() await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. public partial interface IAppAttachPackagePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource @@ -275,7 +271,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageCertificateExpiry { get; set; } @@ -286,7 +282,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string ImageCertificateName { get; set; } @@ -297,7 +293,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string ImageDisplayName { get; set; } @@ -308,7 +304,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsActive { get; set; } @@ -335,16 +331,14 @@ public partial interface IAppAttachPackagePatch : SerializedName = @"isRegularRegistration", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageLastUpdated { get; set; } @@ -366,7 +360,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List ImagePackageApplication { get; set; } @@ -377,12 +371,12 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -390,20 +384,18 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFullName { get; set; } @@ -414,7 +406,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string ImagePackageName { get; set; } @@ -425,45 +417,45 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] string KeyVaultUrl { get; set; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -471,7 +463,7 @@ public partial interface IAppAttachPackagePatch : Read = true, Create = true, Update = true, - Description = @"Lookback url to third party control plane, should be null for first party packages", + Description = @"Lookback url to third party control plane, is null for native app attach packages", SerializedName = @"packageLookbackUrl", PossibleTypes = new [] { typeof(string) })] string PackageLookbackUrl { get; set; } @@ -488,7 +480,7 @@ public partial interface IAppAttachPackagePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatchTags Tag { get; set; } } - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. internal partial interface IAppAttachPackagePatchInternal : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal { @@ -516,9 +508,7 @@ internal partial interface IAppAttachPackagePatchInternal : string ImageIsPackageTimestamped { get; set; } /// Specifies how to register Package in feed. bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. global::System.DateTime? ImageLastUpdated { get; set; } /// Alias of App Attach Package. Assigned at import time string ImagePackageAlias { get; set; } @@ -527,25 +517,23 @@ internal partial interface IAppAttachPackagePatchInternal : /// List of package dependencies. System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. string ImagePackageFullName { get; set; } /// Package Name from appxmanifest.xml. string ImagePackageName { get; set; } /// Relative Path to the package inside the image. string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault string KeyVaultUrl { get; set; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// string PackageLookbackUrl { get; set; } /// Detailed properties for App Attach Package diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.json.cs index 48f11c1ca7bc..4b002958940f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatch.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. public partial class AppAttachPackagePatch { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatchProperties.cs index 4c280050fa55..4ada53861bef 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackagePatchProperties.cs @@ -67,9 +67,7 @@ public partial class AppAttachPackagePatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ImageIsRegularRegistration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).IsRegularRegistration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).IsRegularRegistration = value ?? default(bool); } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public global::System.DateTime? ImageLastUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).LastUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).LastUpdated = value ?? default(global::System.DateTime); } @@ -86,14 +84,12 @@ public partial class AppAttachPackagePatchProperties : public System.Collections.Generic.List ImagePackageDependency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageDependency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageDependency = value ?? null /* arrayOf */; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFamilyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFamilyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFamilyName = value ?? null; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFullName = value ?? null; } @@ -105,18 +101,18 @@ public partial class AppAttachPackagePatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageRelativePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageRelativePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageRelativePath = value ?? null; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).ImagePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).ImagePath = value ?? null; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).Version = value ?? null; } /// Backing field for property. private string _keyVaultUrl; - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string KeyVaultUrl { get => this._keyVaultUrl; set => this._keyVaultUrl = value; } @@ -127,7 +123,7 @@ public partial class AppAttachPackagePatchProperties : private string _packageLookbackUrl; /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string PackageLookbackUrl { get => this._packageLookbackUrl; set => this._packageLookbackUrl = value; } @@ -185,7 +181,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageCertificateExpiry { get; set; } @@ -196,7 +192,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string ImageCertificateName { get; set; } @@ -207,7 +203,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string ImageDisplayName { get; set; } @@ -218,7 +214,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsActive { get; set; } @@ -245,16 +241,14 @@ public partial interface IAppAttachPackagePatchProperties : SerializedName = @"isRegularRegistration", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageLastUpdated { get; set; } @@ -276,7 +270,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List ImagePackageApplication { get; set; } @@ -287,12 +281,12 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -300,20 +294,18 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFullName { get; set; } @@ -324,7 +316,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string ImagePackageName { get; set; } @@ -335,45 +327,45 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] string KeyVaultUrl { get; set; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -381,7 +373,7 @@ public partial interface IAppAttachPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Lookback url to third party control plane, should be null for first party packages", + Description = @"Lookback url to third party control plane, is null for native app attach packages", SerializedName = @"packageLookbackUrl", PossibleTypes = new [] { typeof(string) })] string PackageLookbackUrl { get; set; } @@ -415,9 +407,7 @@ internal partial interface IAppAttachPackagePatchPropertiesInternal string ImageIsPackageTimestamped { get; set; } /// Specifies how to register Package in feed. bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. global::System.DateTime? ImageLastUpdated { get; set; } /// Alias of App Attach Package. Assigned at import time string ImagePackageAlias { get; set; } @@ -426,25 +416,23 @@ internal partial interface IAppAttachPackagePatchPropertiesInternal /// List of package dependencies. System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. string ImagePackageFullName { get; set; } /// Package Name from appxmanifest.xml. string ImagePackageName { get; set; } /// Relative Path to the package inside the image. string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault string KeyVaultUrl { get; set; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// string PackageLookbackUrl { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageProperties.cs index ea0ae2340119..1b49ae38bd17 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AppAttachPackageProperties.cs @@ -67,9 +67,7 @@ public partial class AppAttachPackageProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ImageIsRegularRegistration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).IsRegularRegistration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).IsRegularRegistration = value ?? default(bool); } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public global::System.DateTime? ImageLastUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).LastUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).LastUpdated = value ?? default(global::System.DateTime); } @@ -86,14 +84,12 @@ public partial class AppAttachPackageProperties : public System.Collections.Generic.List ImagePackageDependency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageDependency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageDependency = value ?? null /* arrayOf */; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFamilyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFamilyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFamilyName = value ?? null; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageFullName = value ?? null; } @@ -105,18 +101,18 @@ public partial class AppAttachPackageProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePackageRelativePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageRelativePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).PackageRelativePath = value ?? null; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImagePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).ImagePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).ImagePath = value ?? null; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackageInfoPropertiesInternal)Image).Version = value ?? null; } /// Backing field for property. private string _keyVaultUrl; - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string KeyVaultUrl { get => this._keyVaultUrl; set => this._keyVaultUrl = value; } @@ -202,7 +198,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageCertificateExpiry { get; set; } @@ -213,7 +209,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string ImageCertificateName { get; set; } @@ -224,7 +220,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string ImageDisplayName { get; set; } @@ -235,7 +231,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsActive { get; set; } @@ -262,16 +258,14 @@ public partial interface IAppAttachPackageProperties : SerializedName = @"isRegularRegistration", PossibleTypes = new [] { typeof(bool) })] bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ImageLastUpdated { get; set; } @@ -293,7 +287,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List ImagePackageApplication { get; set; } @@ -304,12 +298,12 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -317,20 +311,18 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string ImagePackageFullName { get; set; } @@ -341,7 +333,7 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string ImagePackageName { get; set; } @@ -352,40 +344,40 @@ public partial interface IAppAttachPackageProperties : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] string KeyVaultUrl { get; set; } @@ -455,9 +447,7 @@ internal partial interface IAppAttachPackagePropertiesInternal string ImageIsPackageTimestamped { get; set; } /// Specifies how to register Package in feed. bool? ImageIsRegularRegistration { get; set; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// + /// Date Package was last updated, found in the appxmanifest.xml. global::System.DateTime? ImageLastUpdated { get; set; } /// Alias of App Attach Package. Assigned at import time string ImagePackageAlias { get; set; } @@ -466,22 +456,20 @@ internal partial interface IAppAttachPackagePropertiesInternal /// List of package dependencies. System.Collections.Generic.List ImagePackageDependency { get; set; } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// string ImagePackageFamilyName { get; set; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// + /// Package Full Name from appxmanifest.xml. string ImagePackageFullName { get; set; } /// Package Name from appxmanifest.xml. string ImagePackageName { get; set; } /// Relative Path to the package inside the image. string ImagePackageRelativePath { get; set; } - /// VHD/CIM/APP-V image path on Network Share. + /// VHD/CIM image path on Network Share. string ImagePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string ImageVersion { get; set; } - /// URL of keyvault location to store certificate + /// URL path to certificate name located in keyVault string KeyVaultUrl { get; set; } /// /// Lookback url to third party control plane, is null for native app attach packages diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.cs index 6959ec106d77..df48e669d397 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.cs @@ -14,10 +14,10 @@ public partial class Application : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// Resource Type of Application. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -66,7 +66,7 @@ public partial class Application : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for IconContent byte[] Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationInternal.IconContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPropertiesInternal)Property).IconContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPropertiesInternal)Property).IconContent = value ?? null /* byte array */; } @@ -81,34 +81,34 @@ public partial class Application : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Specifies the package application Id for MSIX applications [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -120,7 +120,7 @@ public partial class Application : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// ObjectId of Application. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -145,37 +145,37 @@ public partial class Application : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Application() @@ -191,14 +191,14 @@ public Application() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Schema for Application properties. public partial interface IApplication : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// Resource Type of Application. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -363,7 +363,7 @@ public partial interface IApplication : } /// Schema for Application properties. internal partial interface IApplicationInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// Resource Type of Application. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("InBuilt", "MsixApplication")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.json.cs index bc81d0894a3c..6533545c6bbc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Application.json.cs @@ -65,7 +65,7 @@ internal Application(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Ru { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.PowerShell.cs index 04bf443a805f..28ddc926c130 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.PowerShell.cs @@ -80,6 +80,30 @@ internal ApplicationGroup(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationGroupPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -128,85 +152,45 @@ internal ApplicationGroup(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -240,6 +224,26 @@ internal ApplicationGroup(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ShowInFeed = (bool?) content.GetValueForProperty("ShowInFeed",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ShowInFeed, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializeDictionary(content); } @@ -261,6 +265,30 @@ internal ApplicationGroup(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationGroupPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -309,85 +337,45 @@ internal ApplicationGroup(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -421,6 +409,26 @@ internal ApplicationGroup(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ShowInFeed = (bool?) content.GetValueForProperty("ShowInFeed",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).ShowInFeed, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.cs index 139ec20a3715..33d757518ecb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.cs @@ -14,10 +14,10 @@ public partial class ApplicationGroup : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(); /// Resource Type of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -31,14 +31,16 @@ public partial class ApplicationGroup : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).Description = value ?? null; } + /// Backing field for property. + private string _etag; + /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } /// Friendly name of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -52,153 +54,169 @@ public partial class ApplicationGroup : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; } - /// Managed service identity (system assigned and/or user assigned identities) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; + + /// The managed service identities assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. /// The dictionary values can be empty objects ({}) in requests. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Backing field for property. + private string _kind; /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Kind { get => this._kind; set => this._kind = value; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Backing field for property. + private string _managedBy; /// /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template /// since it is managed by another resource. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string ManagedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string ManagedBy { get => this._managedBy; set => this._managedBy = value; } /// Internal Acessors for CloudPcResource bool? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.CloudPcResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).CloudPcResource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).CloudPcResource = value ?? default(bool); } + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } + /// Internal Acessors for ObjectId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).ObjectId = value ?? null; } + /// Internal Acessors for Plan + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set { {_plan = value;} } } + /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationGroupProperties()); set { {_property = value;} } } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set { {_sku = value;} } } + /// Internal Acessors for WorkspaceArmPath string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupInternal.WorkspaceArmPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).WorkspaceArmPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).WorkspaceArmPath = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type = value ?? null; } - - /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag = value ?? null; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId = value ?? null; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId = value ?? null; } - - /// Internal Acessors for Plan - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; } /// ObjectId of ApplicationGroup. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).ObjectId; } - /// Plan for the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string OboTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).OboTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).OboTenantId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan _plan; + + /// Details of the resource plan. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set => this._plan = value; } /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name = value ?? null; } /// /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at /// the time of Data Market onboarding. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product = value ?? null; } /// /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode = value ?? null; } /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher = value ?? null; } /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupProperties _property; @@ -215,79 +233,82 @@ public partial class ApplicationGroup : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ShowInFeed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).ShowInFeed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)Property).ShowInFeed = value ?? default(bool); } - /// The resource model definition representing SKU - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set => this._sku = value; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the /// resource this may be omitted. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// If the service has different generations of hardware, for the same SKU, then that can be captured here. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family = value ?? null; } /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name = value ?? null; } /// /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size = value ?? null; } /// /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required /// on a PUT. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; } /// Workspace arm path of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -307,14 +328,14 @@ public ApplicationGroup() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); - await eventListener.AssertObjectIsValid(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); } } /// Represents a ApplicationGroup definition. public partial interface IApplicationGroup : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource { /// Resource Type of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -350,6 +371,21 @@ public partial interface IApplicationGroup : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } /// Friendly name of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -372,6 +408,90 @@ public partial interface IApplicationGroup : SerializedName = @"hostPoolArmPath", PossibleTypes = new [] { typeof(string) })] string HostPoolArmPath { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(string) })] + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", + SerializedName = @"managedBy", + PossibleTypes = new [] { typeof(string) })] + string ManagedBy { get; set; } /// ObjectId of ApplicationGroup. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -383,6 +503,77 @@ public partial interface IApplicationGroup : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A user defined name of the 3rd Party Artifact that is being procured.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. ", + SerializedName = @"product", + PossibleTypes = new [] { typeof(string) })] + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A publisher provided promotion code as provisioned in Data Market for the said product/artifact.", + SerializedName = @"promotionCode", + PossibleTypes = new [] { typeof(string) })] + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the desired product/artifact.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string PlanVersion { get; set; } /// Boolean representing whether the applicationGroup is show in the feed. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -394,6 +585,72 @@ public partial interface IApplicationGroup : SerializedName = @"showInFeed", PossibleTypes = new [] { typeof(bool) })] bool? ShowInFeed { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Workspace arm path of ApplicationGroup. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -409,7 +666,7 @@ public partial interface IApplicationGroup : } /// Represents a ApplicationGroup definition. internal partial interface IApplicationGroupInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal { /// Resource Type of ApplicationGroup. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("RemoteApp", "Desktop")] @@ -418,16 +675,96 @@ internal partial interface IApplicationGroupInternal : bool? CloudPcResource { get; set; } /// Description of ApplicationGroup. string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + string Etag { get; set; } /// Friendly name of ApplicationGroup. string FriendlyName { get; set; } /// HostPool arm path of ApplicationGroup. string HostPoolArmPath { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + string ManagedBy { get; set; } /// ObjectId of ApplicationGroup. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } + /// Details of the resource plan. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + string PlanVersion { get; set; } /// Detailed properties for ApplicationGroup Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupProperties Property { get; set; } /// Boolean representing whether the applicationGroup is show in the feed. bool? ShowInFeed { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Workspace arm path of ApplicationGroup. string WorkspaceArmPath { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.json.cs index b815a8443a0b..347c3bda75c0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroup.json.cs @@ -65,8 +65,14 @@ internal ApplicationGroup(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualizati { return; } - __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(json); + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationGroupProperties.FromJson(__jsonProperties) : _property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} + {_plan = If( json?.PropertyT("plan"), out var __jsonPlan) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan.FromJson(__jsonPlan) : _plan;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku.FromJson(__jsonSku) : _sku;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)_kind;} + {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? (string)__jsonManagedBy : (string)_managedBy;} AfterFromJson(json); } @@ -101,8 +107,20 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resourceModelWithAllowedPropertySet?.ToJson(container, serializationMode); + __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._plan ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._plan.ToJson(null,serializationMode) : null, "plan" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + } + AddIf( null != (((object)this._managedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managedBy.ToString()) : null, "managedBy" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.cs index 6918a4504ee5..e1535cd14d85 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.cs @@ -13,20 +13,17 @@ public partial class ApplicationGroupList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of ApplicationGroup definitions. + /// The ApplicationGroup items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ApplicationGroupList() public partial interface IApplicationGroupList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of ApplicationGroup definitions. + string NextLink { get; set; } + /// The ApplicationGroup items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of ApplicationGroup definitions.", + Description = @"The ApplicationGroup items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IApplicationGroupList : internal partial interface IApplicationGroupListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of ApplicationGroup definitions. + /// The ApplicationGroup items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.json.cs index 879b895f1019..3078e3d51871 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.PowerShell.cs index ac21913848b4..846b2b157c1e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.PowerShell.cs @@ -108,6 +108,10 @@ internal ApplicationGroupProperties(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).ShowInFeed = (bool?) content.GetValueForProperty("ShowInFeed",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).ShowInFeed, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -157,6 +161,10 @@ internal ApplicationGroupProperties(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).ShowInFeed = (bool?) content.GetValueForProperty("ShowInFeed",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).ShowInFeed, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroupPropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.cs index 6747b59ac3fe..bcb58e12dfb5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.cs @@ -64,6 +64,13 @@ public partial class ApplicationGroupProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ObjectId { get => this._objectId; } + /// Backing field for property. + private string _oboTenantId; + + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string OboTenantId { get => this._oboTenantId; set => this._oboTenantId = value; } + /// Backing field for property. private bool? _showInFeed; @@ -155,6 +162,17 @@ public partial interface IApplicationGroupProperties : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } /// Boolean representing whether the applicationGroup is show in the feed. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -196,6 +214,8 @@ internal partial interface IApplicationGroupPropertiesInternal string HostPoolArmPath { get; set; } /// ObjectId of ApplicationGroup. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } /// Boolean representing whether the applicationGroup is show in the feed. bool? ShowInFeed { get; set; } /// Workspace arm path of ApplicationGroup. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.json.cs index 23e5c4dba2a2..41af0fdeb5ed 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationGroupProperties.json.cs @@ -73,6 +73,7 @@ internal ApplicationGroupProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVi {_applicationGroupType = If( json?.PropertyT("applicationGroupType"), out var __jsonApplicationGroupType) ? (string)__jsonApplicationGroupType : (string)_applicationGroupType;} {_cloudPcResource = If( json?.PropertyT("cloudPcResource"), out var __jsonCloudPcResource) ? (bool?)__jsonCloudPcResource : _cloudPcResource;} {_showInFeed = If( json?.PropertyT("showInFeed"), out var __jsonShowInFeed) ? (bool?)__jsonShowInFeed : _showInFeed;} + {_oboTenantId = If( json?.PropertyT("oboTenantId"), out var __jsonOboTenantId) ? (string)__jsonOboTenantId : (string)_oboTenantId;} AfterFromJson(json); } @@ -124,6 +125,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != this._cloudPcResource ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonBoolean((bool)this._cloudPcResource) : null, "cloudPcResource" ,container.Add ); } AddIf( null != this._showInFeed ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonBoolean((bool)this._showInFeed) : null, "showInFeed" ,container.Add ); + AddIf( null != (((object)this._oboTenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._oboTenantId.ToString()) : null, "oboTenantId" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.cs index 650b916ecede..432c21402644 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.cs @@ -13,20 +13,17 @@ public partial class ApplicationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of Application definitions. + /// The Application items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ApplicationList() public partial interface IApplicationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of Application definitions. + string NextLink { get; set; } + /// The Application items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of Application definitions.", + Description = @"The Application items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IApplicationList : internal partial interface IApplicationListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of Application definitions. + /// The Application items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.json.cs index 008f5d162b26..ad4d432cdf4c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.PowerShell.cs index 8cdee01a0408..f9d6839a5579 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.PowerShell.cs @@ -80,10 +80,6 @@ internal ApplicationPatch(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTagsTypeConverter.ConvertFrom); - } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Description, global::System.Convert.ToString); @@ -149,10 +145,6 @@ internal ApplicationPatch(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTagsTypeConverter.ConvertFrom); - } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchInternal)this).Description, global::System.Convert.ToString); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.cs index 85da348a9a57..3fd44d3a7f19 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.cs @@ -70,13 +70,6 @@ public partial class ApplicationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? ShowInPortal { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchPropertiesInternal)Property).ShowInPortal; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchPropertiesInternal)Property).ShowInPortal = value ?? default(bool); } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags _tag; - - /// tags to be updated - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTags()); set => this._tag = value; } - /// Creates an new instance. public ApplicationPatch() { @@ -213,17 +206,6 @@ public partial interface IApplicationPatch : SerializedName = @"showInPortal", PossibleTypes = new [] { typeof(bool) })] bool? ShowInPortal { get; set; } - /// tags to be updated - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get; set; } } /// Application properties that can be patched. @@ -259,8 +241,6 @@ internal partial interface IApplicationPatchInternal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchProperties Property { get; set; } /// Specifies whether to show the RemoteApp program in the RD Web Access server. bool? ShowInPortal { get; set; } - /// tags to be updated - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.json.cs index c7d401f3bf9c..cb91e5c3342f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatch.json.cs @@ -66,7 +66,6 @@ internal ApplicationPatch(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualizati return; } {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchProperties.FromJson(__jsonProperties) : _property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } @@ -102,7 +101,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso return container; } AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.PowerShell.cs deleted file mode 100644 index 330f8481f186..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.PowerShell.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// tags to be updated - [System.ComponentModel.TypeConverter(typeof(ApplicationPatchTagsTypeConverter))] - public partial class ApplicationPatchTags - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ApplicationPatchTags(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ApplicationPatchTags(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - 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.DesktopVirtualization.Models.IApplicationPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ApplicationPatchTags(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.DesktopVirtualization.Models.IApplicationPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ApplicationPatchTags(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.DesktopVirtualization.Models.IApplicationPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// tags to be updated - [System.ComponentModel.TypeConverter(typeof(ApplicationPatchTagsTypeConverter))] - public partial interface IApplicationPatchTags - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.TypeConverter.cs deleted file mode 100644 index c661d1f50f67..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ApplicationPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ApplicationPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ApplicationPatchTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ApplicationPatchTags.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.cs deleted file mode 100644 index 27e58036a8f6..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// tags to be updated - public partial class ApplicationPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTagsInternal - { - - /// Creates an new instance. - public ApplicationPatchTags() - { - - } - } - /// tags to be updated - public partial interface IApplicationPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray - { - - } - /// tags to be updated - internal partial interface IApplicationPatchTagsInternal - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.dictionary.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.dictionary.cs deleted file mode 100644 index 4685fb181fef..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - public partial class ApplicationPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ApplicationPatchTags source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.json.cs deleted file mode 100644 index 53cab12e00f7..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ApplicationPatchTags.json.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// tags to be updated - public partial class ApplicationPatchTags - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - /// - internal ApplicationPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new ApplicationPatchTags(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.PowerShell.cs index 1014b857192f..d950cebf5254 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.PowerShell.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; /// - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type /// [System.ComponentModel.TypeConverter(typeof(AzureActiveDirectoryInfoPropertiesTypeConverter))] public partial class AzureActiveDirectoryInfoProperties @@ -160,7 +160,7 @@ public override string ToString() return ToJsonString(); } } - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type [System.ComponentModel.TypeConverter(typeof(AzureActiveDirectoryInfoPropertiesTypeConverter))] public partial interface IAzureActiveDirectoryInfoProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.cs index 07f1cbf4ca47..ae27b56824ff 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; /// - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type /// public partial class AzureActiveDirectoryInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAzureActiveDirectoryInfoProperties, @@ -28,7 +28,7 @@ public AzureActiveDirectoryInfoProperties() } } - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type public partial interface IAzureActiveDirectoryInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -45,7 +45,7 @@ public partial interface IAzureActiveDirectoryInfoProperties : string MdmProviderGuid { get; set; } } - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type internal partial interface IAzureActiveDirectoryInfoPropertiesInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.json.cs index 57fa63ad69aa..47488f2b8ee4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/AzureActiveDirectoryInfoProperties.json.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; /// - /// Azure Active directory info. Only one should be populated based on the join type. + /// Azure Active directory info. Only one should be populated based on the join type /// public partial class AzureActiveDirectoryInfoProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.PowerShell.cs index 6e2b9b35aa7b..6561197d01e1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.PowerShell.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
[System.ComponentModel.TypeConverter(typeof(BootDiagnosticsInfoPatchPropertiesTypeConverter))] public partial class BootDiagnosticsInfoPatchProperties @@ -172,7 +172,7 @@ public override string ToString() } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor [System.ComponentModel.TypeConverter(typeof(BootDiagnosticsInfoPatchPropertiesTypeConverter))] public partial interface IBootDiagnosticsInfoPatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.cs index 4dacad560b2b..9afa6317dfb3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
public partial class BootDiagnosticsInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoPatchProperties, @@ -42,7 +42,7 @@ public BootDiagnosticsInfoPatchProperties() } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor public partial interface IBootDiagnosticsInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -75,7 +75,7 @@ public partial interface IBootDiagnosticsInfoPatchProperties : } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor internal partial interface IBootDiagnosticsInfoPatchPropertiesInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.json.cs index 2dd4f91a1ce2..5906b299f73f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoPatchProperties.json.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
public partial class BootDiagnosticsInfoPatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.PowerShell.cs index 334804c1d21c..6f3bc32af085 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.PowerShell.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
[System.ComponentModel.TypeConverter(typeof(BootDiagnosticsInfoPropertiesTypeConverter))] public partial class BootDiagnosticsInfoProperties @@ -170,7 +170,7 @@ public override string ToString() } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor [System.ComponentModel.TypeConverter(typeof(BootDiagnosticsInfoPropertiesTypeConverter))] public partial interface IBootDiagnosticsInfoProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.cs index 62688129ef7c..afa42a6bd4a2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
public partial class BootDiagnosticsInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoProperties, @@ -42,7 +42,7 @@ public BootDiagnosticsInfoProperties() } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor public partial interface IBootDiagnosticsInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -75,7 +75,7 @@ public partial interface IBootDiagnosticsInfoProperties : } /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor internal partial interface IBootDiagnosticsInfoPropertiesInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.json.cs index 4452093c6e0a..57d8e389ff9f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/BootDiagnosticsInfoProperties.json.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models /// /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. ///

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the - /// VM from the hypervisor. + /// VM from the hypervisor ///
public partial class BootDiagnosticsInfoProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.PowerShell.cs deleted file mode 100644 index 83e187cd2db9..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// Cloud error object. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial class CloudError - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Message, 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 CloudError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal)this).Message, 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.DesktopVirtualization.Models.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudError(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.DesktopVirtualization.Models.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudError(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.DesktopVirtualization.Models.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Cloud error object. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial interface ICloudError - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.TypeConverter.cs deleted file mode 100644 index ca15424bd7bb..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.TypeConverter.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudError.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudError.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.cs deleted file mode 100644 index f39e71e380a0..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Cloud error object. - public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal - { - - /// Error code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)Error).Code = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties _error; - - /// Cloud error object properties. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorProperties()); set => this._error = value; } - - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)Error).Message = value ?? null; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorProperties()); set { {_error = value;} } } - - /// Creates an new instance. - public CloudError() - { - - } - } - /// Cloud error object. - public partial interface ICloudError : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable - { - /// Error code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Error code", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Error message indicating why the operation failed.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - - } - /// Cloud error object. - internal partial interface ICloudErrorInternal - - { - /// Error code - string Code { get; set; } - /// Cloud error object properties. - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties Error { get; set; } - /// Error message indicating why the operation failed. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.json.cs deleted file mode 100644 index d6bd2118bffd..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudError.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Cloud error object. - public partial class CloudError - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CloudErrorProperties.FromJson(__jsonError) : _error;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new CloudError(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.PowerShell.cs deleted file mode 100644 index a3b980c5a7ef..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// Cloud error object properties. - [System.ComponentModel.TypeConverter(typeof(CloudErrorPropertiesTypeConverter))] - public partial class CloudErrorProperties - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudErrorProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Message, 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 CloudErrorProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal)this).Message, 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.DesktopVirtualization.Models.ICloudErrorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudErrorProperties(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.DesktopVirtualization.Models.ICloudErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudErrorProperties(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.DesktopVirtualization.Models.ICloudErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Cloud error object properties. - [System.ComponentModel.TypeConverter(typeof(CloudErrorPropertiesTypeConverter))] - public partial interface ICloudErrorProperties - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.TypeConverter.cs deleted file mode 100644 index 46020795ede8..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudErrorProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudErrorProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudErrorProperties.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.cs deleted file mode 100644 index a7736665f6dd..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Cloud error object properties. - public partial class CloudErrorProperties : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorPropertiesInternal - { - - /// Backing field for property. - private string _code; - - /// Error code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string Code { get => this._code; set => this._code = value; } - - /// Backing field for property. - private string _message; - - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string Message { get => this._message; set => this._message = value; } - - /// Creates an new instance. - public CloudErrorProperties() - { - - } - } - /// Cloud error object properties. - public partial interface ICloudErrorProperties : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable - { - /// Error code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Error code", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// Error message indicating why the operation failed. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Error message indicating why the operation failed.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - - } - /// Cloud error object properties. - internal partial interface ICloudErrorPropertiesInternal - - { - /// Error code - string Code { get; set; } - /// Error message indicating why the operation failed. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.json.cs deleted file mode 100644 index 19aa8f94feff..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CloudErrorProperties.json.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Cloud error object properties. - public partial class CloudErrorProperties - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - internal CloudErrorProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudErrorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new CloudErrorProperties(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoPatchProperties.cs index 27a065f07285..e1a654274af3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoPatchProperties.cs @@ -16,7 +16,7 @@ public partial class CustomInfoPatchProperties : /// Backing field for property. private string _resourceId; - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ResourceId { get => this._resourceId; set => this._resourceId = value; } @@ -30,14 +30,14 @@ public CustomInfoPatchProperties() public partial interface ICustomInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string ResourceId { get; set; } @@ -47,7 +47,7 @@ public partial interface ICustomInfoPatchProperties : internal partial interface ICustomInfoPatchPropertiesInternal { - /// The resource id of the custom image. + /// The resource ID of the image. string ResourceId { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoProperties.cs index 697093c3cef2..8748908e829d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/CustomInfoProperties.cs @@ -16,7 +16,7 @@ public partial class CustomInfoProperties : /// Backing field for property. private string _resourceId; - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ResourceId { get => this._resourceId; set => this._resourceId = value; } @@ -30,14 +30,14 @@ public CustomInfoProperties() public partial interface ICustomInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string ResourceId { get; set; } @@ -47,7 +47,7 @@ public partial interface ICustomInfoProperties : internal partial interface ICustomInfoPropertiesInternal { - /// The resource id of the custom image. + /// The resource ID of the image. string ResourceId { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.cs index 2cb297c6c24e..d9daa2f8e189 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.cs @@ -14,10 +14,10 @@ public partial class Desktop : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// Description of Desktop. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -39,7 +39,7 @@ public partial class Desktop : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for IconContent byte[] Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopInternal.IconContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPropertiesInternal)Property).IconContent; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPropertiesInternal)Property).IconContent = value ?? null /* byte array */; } @@ -54,38 +54,38 @@ public partial class Desktop : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// ObjectId of Desktop. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -106,37 +106,37 @@ public partial class Desktop : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Desktop() @@ -152,14 +152,14 @@ public Desktop() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Schema for Desktop properties. public partial interface IDesktop : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// Description of Desktop. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -220,7 +220,7 @@ public partial interface IDesktop : } /// Schema for Desktop properties. internal partial interface IDesktopInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// Description of Desktop. string Description { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.json.cs index 8138e071b51c..2c06115a49c1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Desktop.json.cs @@ -65,7 +65,7 @@ internal Desktop(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtim { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.cs index 9c2f744c6529..561e2a32916d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.cs @@ -13,20 +13,17 @@ public partial class DesktopList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of Desktop definitions. + /// The Desktop items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public DesktopList() public partial interface IDesktopList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of Desktop definitions. + string NextLink { get; set; } + /// The Desktop items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of Desktop definitions.", + Description = @"The Desktop items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IDesktopList : internal partial interface IDesktopListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of Desktop definitions. + /// The Desktop items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.json.cs index 401f985786af..18196ca3e95a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.PowerShell.cs index 69079db56f0f..5ecdf4e47333 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.PowerShell.cs @@ -106,10 +106,6 @@ internal DesktopPatch(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTagsTypeConverter.ConvertFrom); - } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Description, global::System.Convert.ToString); @@ -139,10 +135,6 @@ internal DesktopPatch(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTagsTypeConverter.ConvertFrom); - } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchInternal)this).Description, global::System.Convert.ToString); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.cs index ba8078661013..8b4e3bc9a920 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.cs @@ -31,13 +31,6 @@ public partial class DesktopPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchProperties()); set => this._property = value; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags _tag; - - /// tags to be updated - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTags()); set => this._tag = value; } - /// Creates an new instance. public DesktopPatch() { @@ -70,17 +63,6 @@ public partial interface IDesktopPatch : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } - /// tags to be updated - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get; set; } } /// Desktop properties that can be patched. @@ -93,8 +75,6 @@ internal partial interface IDesktopPatchInternal string FriendlyName { get; set; } /// Detailed properties for Desktop Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchProperties Property { get; set; } - /// tags to be updated - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.json.cs index 977c019191de..9f3fd959b81f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatch.json.cs @@ -66,7 +66,6 @@ internal DesktopPatch(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.R return; } {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchProperties.FromJson(__jsonProperties) : _property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } @@ -102,7 +101,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso return container; } AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.PowerShell.cs deleted file mode 100644 index 4b4a7ab61adf..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.PowerShell.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// tags to be updated - [System.ComponentModel.TypeConverter(typeof(DesktopPatchTagsTypeConverter))] - public partial class DesktopPatchTags - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, 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.DesktopVirtualization.Models.IDesktopPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DesktopPatchTags(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.DesktopVirtualization.Models.IDesktopPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DesktopPatchTags(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DesktopPatchTags(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DesktopPatchTags(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - 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.DesktopVirtualization.Models.IDesktopPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// tags to be updated - [System.ComponentModel.TypeConverter(typeof(DesktopPatchTagsTypeConverter))] - public partial interface IDesktopPatchTags - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.TypeConverter.cs deleted file mode 100644 index 8bb4191f4566..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class DesktopPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return DesktopPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return DesktopPatchTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return DesktopPatchTags.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.cs deleted file mode 100644 index 2ac16b819a66..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// tags to be updated - public partial class DesktopPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTagsInternal - { - - /// Creates an new instance. - public DesktopPatchTags() - { - - } - } - /// tags to be updated - public partial interface IDesktopPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray - { - - } - /// tags to be updated - internal partial interface IDesktopPatchTagsInternal - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.dictionary.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.dictionary.cs deleted file mode 100644 index 7fc8f0c82841..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - public partial class DesktopPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DesktopPatchTags source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.json.cs deleted file mode 100644 index 281fe79d0c42..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopPatchTags.json.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// tags to be updated - public partial class DesktopPatchTags - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - /// - internal DesktopPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new DesktopPatchTags(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.PowerShell.cs index 79d86ea7d83b..1bc490379b6b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.PowerShell.cs @@ -111,13 +111,13 @@ internal DesktopVirtualizationIdentity(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); } - if (content.Contains("WorkspaceName")) + if (content.Contains("AppAttachPackageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName = (string) content.GetValueForProperty("WorkspaceName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName = (string) content.GetValueForProperty("AppAttachPackageName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName, global::System.Convert.ToString); } - if (content.Contains("PrivateEndpointConnectionName")) + if (content.Contains("ApplicationGroupName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName = (string) content.GetValueForProperty("ApplicationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName, global::System.Convert.ToString); } if (content.Contains("HostPoolName")) { @@ -127,13 +127,9 @@ internal DesktopVirtualizationIdentity(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanName = (string) content.GetValueForProperty("ScalingPlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanName, global::System.Convert.ToString); } - if (content.Contains("ScalingPlanScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName = (string) content.GetValueForProperty("ScalingPlanScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName, global::System.Convert.ToString); - } - if (content.Contains("ApplicationGroupName")) + if (content.Contains("WorkspaceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName = (string) content.GetValueForProperty("ApplicationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName = (string) content.GetValueForProperty("WorkspaceName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName, global::System.Convert.ToString); } if (content.Contains("ApplicationName")) { @@ -143,6 +139,14 @@ internal DesktopVirtualizationIdentity(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).DesktopName = (string) content.GetValueForProperty("DesktopName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).DesktopName, global::System.Convert.ToString); } + if (content.Contains("MsixPackageFullName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName = (string) content.GetValueForProperty("MsixPackageFullName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); + } if (content.Contains("SessionHostName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).SessionHostName = (string) content.GetValueForProperty("SessionHostName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).SessionHostName, global::System.Convert.ToString); @@ -151,13 +155,9 @@ internal DesktopVirtualizationIdentity(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).UserSessionId = (string) content.GetValueForProperty("UserSessionId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).UserSessionId, global::System.Convert.ToString); } - if (content.Contains("MsixPackageFullName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName = (string) content.GetValueForProperty("MsixPackageFullName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName, global::System.Convert.ToString); - } - if (content.Contains("AppAttachPackageName")) + if (content.Contains("ScalingPlanScheduleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName = (string) content.GetValueForProperty("AppAttachPackageName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName = (string) content.GetValueForProperty("ScalingPlanScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -188,13 +188,13 @@ internal DesktopVirtualizationIdentity(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); } - if (content.Contains("WorkspaceName")) + if (content.Contains("AppAttachPackageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName = (string) content.GetValueForProperty("WorkspaceName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName = (string) content.GetValueForProperty("AppAttachPackageName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName, global::System.Convert.ToString); } - if (content.Contains("PrivateEndpointConnectionName")) + if (content.Contains("ApplicationGroupName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName = (string) content.GetValueForProperty("ApplicationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName, global::System.Convert.ToString); } if (content.Contains("HostPoolName")) { @@ -204,13 +204,9 @@ internal DesktopVirtualizationIdentity(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanName = (string) content.GetValueForProperty("ScalingPlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanName, global::System.Convert.ToString); } - if (content.Contains("ScalingPlanScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName = (string) content.GetValueForProperty("ScalingPlanScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName, global::System.Convert.ToString); - } - if (content.Contains("ApplicationGroupName")) + if (content.Contains("WorkspaceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName = (string) content.GetValueForProperty("ApplicationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ApplicationGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName = (string) content.GetValueForProperty("WorkspaceName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).WorkspaceName, global::System.Convert.ToString); } if (content.Contains("ApplicationName")) { @@ -220,6 +216,14 @@ internal DesktopVirtualizationIdentity(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).DesktopName = (string) content.GetValueForProperty("DesktopName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).DesktopName, global::System.Convert.ToString); } + if (content.Contains("MsixPackageFullName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName = (string) content.GetValueForProperty("MsixPackageFullName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); + } if (content.Contains("SessionHostName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).SessionHostName = (string) content.GetValueForProperty("SessionHostName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).SessionHostName, global::System.Convert.ToString); @@ -228,13 +232,9 @@ internal DesktopVirtualizationIdentity(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).UserSessionId = (string) content.GetValueForProperty("UserSessionId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).UserSessionId, global::System.Convert.ToString); } - if (content.Contains("MsixPackageFullName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName = (string) content.GetValueForProperty("MsixPackageFullName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).MsixPackageFullName, global::System.Convert.ToString); - } - if (content.Contains("AppAttachPackageName")) + if (content.Contains("ScalingPlanScheduleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName = (string) content.GetValueForProperty("AppAttachPackageName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).AppAttachPackageName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName = (string) content.GetValueForProperty("ScalingPlanScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentityInternal)this).ScalingPlanScheduleName, global::System.Convert.ToString); } if (content.Contains("Id")) { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.cs index 1324c27d7c83..fba8a350b383 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.cs @@ -15,7 +15,7 @@ public partial class DesktopVirtualizationIdentity : /// Backing field for property. private string _appAttachPackageName; - /// The name of the App Attach package arm object + /// The name of the App Attach package [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string AppAttachPackageName { get => this._appAttachPackageName; set => this._appAttachPackageName = value; } @@ -66,7 +66,7 @@ public partial class DesktopVirtualizationIdentity : /// Backing field for property. private string _privateEndpointConnectionName; - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string PrivateEndpointConnectionName { get => this._privateEndpointConnectionName; set => this._privateEndpointConnectionName = value; } @@ -128,14 +128,14 @@ public DesktopVirtualizationIdentity() public partial interface IDesktopVirtualizationIdentity : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The name of the App Attach package arm object + /// The name of the App Attach package [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] string AppAttachPackageName { get; set; } @@ -207,14 +207,14 @@ public partial interface IDesktopVirtualizationIdentity : SerializedName = @"msixPackageFullName", PossibleTypes = new [] { typeof(string) })] string MsixPackageFullName { get; set; } - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] string PrivateEndpointConnectionName { get; set; } @@ -300,7 +300,7 @@ public partial interface IDesktopVirtualizationIdentity : internal partial interface IDesktopVirtualizationIdentityInternal { - /// The name of the App Attach package arm object + /// The name of the App Attach package string AppAttachPackageName { get; set; } /// The name of the application group string ApplicationGroupName { get; set; } @@ -316,7 +316,7 @@ internal partial interface IDesktopVirtualizationIdentityInternal /// The version specific package full name of the MSIX package within specified hostpool /// string MsixPackageFullName { get; set; } - /// The name of the private endpoint connection associated with the Azure resource. + /// The name parameter for private endpoint string PrivateEndpointConnectionName { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.json.cs index f24fe215485d..554e7524e1af 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DesktopVirtualizationIdentity.json.cs @@ -66,18 +66,18 @@ internal DesktopVirtualizationIdentity(Microsoft.Azure.PowerShell.Cmdlets.Deskto } {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;} {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} - {_workspaceName = If( json?.PropertyT("workspaceName"), out var __jsonWorkspaceName) ? (string)__jsonWorkspaceName : (string)_workspaceName;} - {_privateEndpointConnectionName = If( json?.PropertyT("privateEndpointConnectionName"), out var __jsonPrivateEndpointConnectionName) ? (string)__jsonPrivateEndpointConnectionName : (string)_privateEndpointConnectionName;} + {_appAttachPackageName = If( json?.PropertyT("appAttachPackageName"), out var __jsonAppAttachPackageName) ? (string)__jsonAppAttachPackageName : (string)_appAttachPackageName;} + {_applicationGroupName = If( json?.PropertyT("applicationGroupName"), out var __jsonApplicationGroupName) ? (string)__jsonApplicationGroupName : (string)_applicationGroupName;} {_hostPoolName = If( json?.PropertyT("hostPoolName"), out var __jsonHostPoolName) ? (string)__jsonHostPoolName : (string)_hostPoolName;} {_scalingPlanName = If( json?.PropertyT("scalingPlanName"), out var __jsonScalingPlanName) ? (string)__jsonScalingPlanName : (string)_scalingPlanName;} - {_scalingPlanScheduleName = If( json?.PropertyT("scalingPlanScheduleName"), out var __jsonScalingPlanScheduleName) ? (string)__jsonScalingPlanScheduleName : (string)_scalingPlanScheduleName;} - {_applicationGroupName = If( json?.PropertyT("applicationGroupName"), out var __jsonApplicationGroupName) ? (string)__jsonApplicationGroupName : (string)_applicationGroupName;} + {_workspaceName = If( json?.PropertyT("workspaceName"), out var __jsonWorkspaceName) ? (string)__jsonWorkspaceName : (string)_workspaceName;} {_applicationName = If( json?.PropertyT("applicationName"), out var __jsonApplicationName) ? (string)__jsonApplicationName : (string)_applicationName;} {_desktopName = If( json?.PropertyT("desktopName"), out var __jsonDesktopName) ? (string)__jsonDesktopName : (string)_desktopName;} + {_msixPackageFullName = If( json?.PropertyT("msixPackageFullName"), out var __jsonMsixPackageFullName) ? (string)__jsonMsixPackageFullName : (string)_msixPackageFullName;} + {_privateEndpointConnectionName = If( json?.PropertyT("privateEndpointConnectionName"), out var __jsonPrivateEndpointConnectionName) ? (string)__jsonPrivateEndpointConnectionName : (string)_privateEndpointConnectionName;} {_sessionHostName = If( json?.PropertyT("sessionHostName"), out var __jsonSessionHostName) ? (string)__jsonSessionHostName : (string)_sessionHostName;} {_userSessionId = If( json?.PropertyT("userSessionId"), out var __jsonUserSessionId) ? (string)__jsonUserSessionId : (string)_userSessionId;} - {_msixPackageFullName = If( json?.PropertyT("msixPackageFullName"), out var __jsonMsixPackageFullName) ? (string)__jsonMsixPackageFullName : (string)_msixPackageFullName;} - {_appAttachPackageName = If( json?.PropertyT("appAttachPackageName"), out var __jsonAppAttachPackageName) ? (string)__jsonAppAttachPackageName : (string)_appAttachPackageName;} + {_scalingPlanScheduleName = If( json?.PropertyT("scalingPlanScheduleName"), out var __jsonScalingPlanScheduleName) ? (string)__jsonScalingPlanScheduleName : (string)_scalingPlanScheduleName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } @@ -115,18 +115,18 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); - AddIf( null != (((object)this._workspaceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._workspaceName.ToString()) : null, "workspaceName" ,container.Add ); - AddIf( null != (((object)this._privateEndpointConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._privateEndpointConnectionName.ToString()) : null, "privateEndpointConnectionName" ,container.Add ); + AddIf( null != (((object)this._appAttachPackageName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._appAttachPackageName.ToString()) : null, "appAttachPackageName" ,container.Add ); + AddIf( null != (((object)this._applicationGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._applicationGroupName.ToString()) : null, "applicationGroupName" ,container.Add ); AddIf( null != (((object)this._hostPoolName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._hostPoolName.ToString()) : null, "hostPoolName" ,container.Add ); AddIf( null != (((object)this._scalingPlanName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._scalingPlanName.ToString()) : null, "scalingPlanName" ,container.Add ); - AddIf( null != (((object)this._scalingPlanScheduleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._scalingPlanScheduleName.ToString()) : null, "scalingPlanScheduleName" ,container.Add ); - AddIf( null != (((object)this._applicationGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._applicationGroupName.ToString()) : null, "applicationGroupName" ,container.Add ); + AddIf( null != (((object)this._workspaceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._workspaceName.ToString()) : null, "workspaceName" ,container.Add ); AddIf( null != (((object)this._applicationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._applicationName.ToString()) : null, "applicationName" ,container.Add ); AddIf( null != (((object)this._desktopName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._desktopName.ToString()) : null, "desktopName" ,container.Add ); + AddIf( null != (((object)this._msixPackageFullName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._msixPackageFullName.ToString()) : null, "msixPackageFullName" ,container.Add ); + AddIf( null != (((object)this._privateEndpointConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._privateEndpointConnectionName.ToString()) : null, "privateEndpointConnectionName" ,container.Add ); AddIf( null != (((object)this._sessionHostName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._sessionHostName.ToString()) : null, "sessionHostName" ,container.Add ); AddIf( null != (((object)this._userSessionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._userSessionId.ToString()) : null, "userSessionId" ,container.Add ); - AddIf( null != (((object)this._msixPackageFullName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._msixPackageFullName.ToString()) : null, "msixPackageFullName" ,container.Add ); - AddIf( null != (((object)this._appAttachPackageName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._appAttachPackageName.ToString()) : null, "appAttachPackageName" ,container.Add ); + AddIf( null != (((object)this._scalingPlanScheduleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._scalingPlanScheduleName.ToString()) : null, "scalingPlanScheduleName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.PowerShell.cs index d93f0fa5daa2..c05c9a097337 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.PowerShell.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// [System.ComponentModel.TypeConverter(typeof(DiffDiskPropertiesTypeConverter))] public partial class DiffDiskProperties @@ -164,7 +164,7 @@ public override string ToString() return ToJsonString(); } } - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. [System.ComponentModel.TypeConverter(typeof(DiffDiskPropertiesTypeConverter))] public partial interface IDiffDiskProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.cs index 57e783c39997..f4928709a2ef 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// public partial class DiffDiskProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties, @@ -29,7 +29,7 @@ public partial class DiffDiskProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Placement { get => this._placement; set => this._placement = value; } @@ -40,7 +40,7 @@ public DiffDiskProperties() } } - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. public partial interface IDiffDiskProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -60,7 +60,7 @@ public partial interface IDiffDiskProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -68,14 +68,14 @@ public partial interface IDiffDiskProperties : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string Placement { get; set; } } - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. internal partial interface IDiffDiskPropertiesInternal { @@ -86,7 +86,7 @@ internal partial interface IDiffDiskPropertiesInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string Placement { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.json.cs index 0f09b0ae606f..5dd9d8594381 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiffDiskProperties.json.cs @@ -8,7 +8,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// public partial class DiffDiskProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiskInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiskInfoProperties.cs index 4ffd5f80ddc1..8b6e842c8635 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiskInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/DiskInfoProperties.cs @@ -17,7 +17,7 @@ public partial class DiskInfoProperties : private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties _diffDiskSetting; /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiffDiskSetting { get => (this._diffDiskSetting = this._diffDiskSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DiffDiskProperties()); set => this._diffDiskSetting = value; } @@ -30,7 +30,7 @@ public partial class DiskInfoProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskPropertiesInternal)DiffDiskSetting).Placement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskPropertiesInternal)DiffDiskSetting).Placement = value ?? null; } @@ -42,7 +42,7 @@ public partial class DiskInfoProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedDiskProperties ManagedDisk { get => (this._managedDisk = this._managedDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedDiskProperties()); set => this._managedDisk = value; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedDiskPropertiesInternal)ManagedDisk).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedDiskPropertiesInternal)ManagedDisk).Type = value ?? null; } @@ -78,7 +78,7 @@ public partial interface IDiskInfoProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -86,19 +86,19 @@ public partial interface IDiskInfoProperties : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] @@ -110,7 +110,7 @@ internal partial interface IDiskInfoPropertiesInternal { /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiffDiskSetting { get; set; } /// Specifies the ephemeral disk settings for operating system disk. @@ -120,13 +120,13 @@ internal partial interface IDiskInfoPropertiesInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } /// The managed disk parameters. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedDiskProperties ManagedDisk { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.PowerShell.cs index 23ebec527c5d..afca742ab565 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.PowerShell.cs @@ -7,9 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// - /// Represents the definition of contents retrieved after expanding the MSIX Image. - /// + /// Represents the definition of contents retrieved after expanding the MSIX Image. [System.ComponentModel.TypeConverter(typeof(ExpandMsixImageTypeConverter))] public partial class ExpandMsixImage { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.cs index 07853976eaf0..ef60df15bd9e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.cs @@ -7,9 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents the definition of contents retrieved after expanding the MSIX Image. - /// + /// Represents the definition of contents retrieved after expanding the MSIX Image. public partial class ExpandMsixImage : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImageInternal, @@ -165,7 +163,7 @@ public partial class ExpandMsixImage : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImagePropertiesInternal)Property).Version = value ?? null; } @@ -199,7 +197,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? CertificateExpiry { get; set; } @@ -210,7 +208,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string CertificateName { get; set; } @@ -221,7 +219,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } @@ -243,7 +241,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } @@ -265,7 +263,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Date Package was last updated, found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUpdated { get; set; } @@ -287,7 +285,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List PackageApplication { get; set; } @@ -298,7 +296,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List PackageDependency { get; set; } @@ -311,7 +309,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string PackageFamilyName { get; set; } @@ -322,7 +320,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Package Full Name from appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string PackageFullName { get; set; } @@ -333,7 +331,7 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string PackageName { get; set; } @@ -344,18 +342,18 @@ public partial interface IExpandMsixImage : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string Version { get; set; } @@ -397,7 +395,7 @@ internal partial interface IExpandMsixImageInternal : string PackageRelativePath { get; set; } /// Detailed properties for ExpandMsixImage Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImageProperties Property { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string Version { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.json.cs index a32a39312268..0dfc6efeb676 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImage.json.cs @@ -7,9 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents the definition of contents retrieved after expanding the MSIX Image. - /// + /// Represents the definition of contents retrieved after expanding the MSIX Image. public partial class ExpandMsixImage { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.cs index ff4524e73156..f52e55cf1f53 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.cs @@ -13,20 +13,17 @@ public partial class ExpandMsixImageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImageListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImageListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of MSIX package properties from give MSIX Image. + /// The ExpandMsixImage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ExpandMsixImageList() public partial interface IExpandMsixImageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of MSIX package properties from give MSIX Image. + string NextLink { get; set; } + /// The ExpandMsixImage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of MSIX package properties from give MSIX Image.", + Description = @"The ExpandMsixImage items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IExpandMsixImageList : internal partial interface IExpandMsixImageListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of MSIX package properties from give MSIX Image. + /// The ExpandMsixImage items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.json.cs index fbf83c9b3331..7d2cd0ca7fe8 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageProperties.cs index 2d2c814bbdeb..bd052320752d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ExpandMsixImageProperties.cs @@ -116,7 +116,7 @@ public partial class ExpandMsixImageProperties : /// Backing field for property. private string _version; - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Version { get => this._version; set => this._version = value; } @@ -137,7 +137,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? CertificateExpiry { get; set; } @@ -148,7 +148,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] string CertificateName { get; set; } @@ -159,7 +159,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } @@ -181,7 +181,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } @@ -203,7 +203,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Date Package was last updated, found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUpdated { get; set; } @@ -225,7 +225,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List PackageApplication { get; set; } @@ -236,7 +236,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List PackageDependency { get; set; } @@ -249,7 +249,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string PackageFamilyName { get; set; } @@ -260,7 +260,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Package Full Name from appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] string PackageFullName { get; set; } @@ -271,7 +271,7 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string PackageName { get; set; } @@ -282,18 +282,18 @@ public partial interface IExpandMsixImageProperties : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string Version { get; set; } @@ -333,7 +333,7 @@ internal partial interface IExpandMsixImagePropertiesInternal string PackageName { get; set; } /// Relative Path to the package inside the image. string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string Version { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.PowerShell.cs index 239a51e678f3..2eef530edb96 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.PowerShell.cs @@ -113,6 +113,30 @@ internal HostPool(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -161,105 +185,69 @@ internal HostPool(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) + if (content.Contains("RegistrationInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo) content.GetValueForProperty("RegistrationInfo",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfoTypeConverter.ConvertFrom); } - if (content.Contains("SkuTier")) + if (content.Contains("DirectUdp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp = (string) content.GetValueForProperty("DirectUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp, global::System.Convert.ToString); + } + if (content.Contains("PublicUdp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp = (string) content.GetValueForProperty("PublicUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp, global::System.Convert.ToString); } - if (content.Contains("SkuSize")) + if (content.Contains("RelayUdp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp, global::System.Convert.ToString); } - if (content.Contains("SkuFamily")) + if (content.Contains("ManagementType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType, global::System.Convert.ToString); } - if (content.Contains("SkuCapacity")) + if (content.Contains("DeploymentScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DeploymentScope = (string) content.GetValueForProperty("DeploymentScope",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DeploymentScope, global::System.Convert.ToString); } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Plan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("RegistrationInfo")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo) content.GetValueForProperty("RegistrationInfo",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("ManagementType")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("DirectUdp")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp = (string) content.GetValueForProperty("DirectUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("PublicUdp")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp = (string) content.GetValueForProperty("PublicUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("RelayUdp")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("AgentUpdate")) { @@ -357,6 +345,14 @@ internal HostPool(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedPrivateUdp = (string) content.GetValueForProperty("ManagedPrivateUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedPrivateUdp, global::System.Convert.ToString); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -365,6 +361,22 @@ internal HostPool(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoToken = (string) content.GetValueForProperty("RegistrationInfoToken",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoToken, global::System.Convert.ToString); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } if (content.Contains("RegistrationInfoRegistrationTokenOperation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoRegistrationTokenOperation = (string) content.GetValueForProperty("RegistrationInfoRegistrationTokenOperation",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoRegistrationTokenOperation, global::System.Convert.ToString); @@ -406,6 +418,30 @@ internal HostPool(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -454,105 +490,69 @@ internal HostPool(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) + if (content.Contains("RegistrationInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo) content.GetValueForProperty("RegistrationInfo",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfoTypeConverter.ConvertFrom); } - if (content.Contains("SkuTier")) + if (content.Contains("DirectUdp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp = (string) content.GetValueForProperty("DirectUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp, global::System.Convert.ToString); + } + if (content.Contains("PublicUdp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp = (string) content.GetValueForProperty("PublicUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp, global::System.Convert.ToString); } - if (content.Contains("SkuSize")) + if (content.Contains("RelayUdp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp, global::System.Convert.ToString); } - if (content.Contains("SkuFamily")) + if (content.Contains("ManagementType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType, global::System.Convert.ToString); } - if (content.Contains("SkuCapacity")) + if (content.Contains("DeploymentScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DeploymentScope = (string) content.GetValueForProperty("DeploymentScope",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DeploymentScope, global::System.Convert.ToString); } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Plan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("RegistrationInfo")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo) content.GetValueForProperty("RegistrationInfo",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("ManagementType")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagementType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("DirectUdp")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp = (string) content.GetValueForProperty("DirectUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).DirectUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("PublicUdp")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp = (string) content.GetValueForProperty("PublicUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).PublicUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("RelayUdp")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RelayUdp, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("AgentUpdate")) { @@ -650,6 +650,14 @@ internal HostPool(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedPrivateUdp = (string) content.GetValueForProperty("ManagedPrivateUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).ManagedPrivateUdp, global::System.Convert.ToString); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -658,6 +666,22 @@ internal HostPool(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoToken = (string) content.GetValueForProperty("RegistrationInfoToken",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoToken, global::System.Convert.ToString); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } if (content.Contains("RegistrationInfoRegistrationTokenOperation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoRegistrationTokenOperation = (string) content.GetValueForProperty("RegistrationInfoRegistrationTokenOperation",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal)this).RegistrationInfoRegistrationTokenOperation, global::System.Convert.ToString); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.cs index 8371bf51f70e..4dd4f24e34cc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.cs @@ -14,10 +14,10 @@ public partial class HostPool : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(); /// List of maintenance windows. Maintenance windows are 2 hours long. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -38,6 +38,12 @@ public partial class HostPool : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? AgentUpdateUseSessionHostLocalTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).AgentUpdateUseSessionHostLocalTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).AgentUpdateUseSessionHostLocalTime = value ?? default(bool); } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string AllowRdpShortPathWithPrivateLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).AllowRdpShortPathWithPrivateLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).AllowRdpShortPathWithPrivateLink = value ?? null; } + /// List of App Attach Package links. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public System.Collections.Generic.List AppAttachPackageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).AppAttachPackageReference; } @@ -54,6 +60,10 @@ public partial class HostPool : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomRdpProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).CustomRdpProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).CustomRdpProperty = value ?? null; } + /// DeploymentScope type for HostPool. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string DeploymentScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).DeploymentScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).DeploymentScope = value ?? null; } + /// Description of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).Description = value ?? null; } @@ -66,14 +76,16 @@ public partial class HostPool : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DirectUdp { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).DirectUdp; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).DirectUdp = value ?? null; } + /// Backing field for property. + private string _etag; + /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } /// Friendly name of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -87,44 +99,50 @@ public partial class HostPool : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; } - /// Managed service identity (system assigned and/or user assigned identities) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; + + /// The managed service identities assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. /// The dictionary values can be empty objects ({}) in requests. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Backing field for property. + private string _kind; /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Kind { get => this._kind; set => this._kind = value; } /// The type of the load balancer. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -132,15 +150,18 @@ public partial class HostPool : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Backing field for property. + private string _managedBy; /// /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template /// since it is managed by another resource. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string ManagedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string ManagedBy { get => this._managedBy; set => this._managedBy = value; } /// /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type @@ -172,9 +193,24 @@ public partial class HostPool : /// Internal Acessors for CloudPcResource bool? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.CloudPcResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).CloudPcResource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).CloudPcResource = value ?? default(bool); } + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } + /// Internal Acessors for ObjectId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).ObjectId = value ?? null; } + /// Internal Acessors for Plan + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set { {_plan = value;} } } + /// Internal Acessors for PrivateEndpointConnection System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } @@ -184,94 +220,86 @@ public partial class HostPool : /// Internal Acessors for RegistrationInfo Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.RegistrationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).RegistrationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).RegistrationInfo = value ?? null /* model class */; } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set { {_sku = value;} } } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type = value ?? null; } - - /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag = value ?? null; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId = value ?? null; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId = value ?? null; } - - /// Internal Acessors for Plan - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; } /// ObjectId of HostPool. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).ObjectId; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string OboTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).OboTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).OboTenantId = value ?? null; } + /// PersonalDesktopAssignment type for HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string PersonalDesktopAssignmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).PersonalDesktopAssignmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).PersonalDesktopAssignmentType = value ?? null; } - /// Plan for the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan _plan; + + /// Details of the resource plan. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set => this._plan = value; } /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name = value ?? null; } /// /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at /// the time of Data Market onboarding. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product = value ?? null; } /// /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode = value ?? null; } /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher = value ?? null; } /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version = value ?? null; } /// /// The type of preferred application group type, default to Desktop Application Group @@ -333,39 +361,42 @@ public partial class HostPool : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? Ring { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).Ring; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)Property).Ring = value ?? default(int); } - /// The resource model definition representing SKU - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set => this._sku = value; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the /// resource this may be omitted. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// If the service has different generations of hardware, for the same SKU, then that can be captured here. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family = value ?? null; } /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name = value ?? null; } /// /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size = value ?? null; } /// /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required /// on a PUT. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier = value ?? null; } /// ClientId for the registered Relying Party used to issue WVD SSO certificates. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -391,41 +422,41 @@ public partial class HostPool : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; } /// VM template for sessionhosts configuration within hostpool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -449,14 +480,14 @@ public HostPool() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); - await eventListener.AssertObjectIsValid(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); } } /// Represents a HostPool definition. public partial interface IHostPool : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource { /// List of maintenance windows. Maintenance windows are 2 hours long. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -506,6 +537,20 @@ public partial interface IHostPool : SerializedName = @"useSessionHostLocalTime", PossibleTypes = new [] { typeof(bool) })] bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// List of App Attach Package links. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -550,6 +595,18 @@ public partial interface IHostPool : SerializedName = @"customRdpProperty", PossibleTypes = new [] { typeof(string) })] string CustomRdpProperty { get; set; } + /// DeploymentScope type for HostPool. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DeploymentScope type for HostPool.", + SerializedName = @"deploymentScope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + string DeploymentScope { get; set; } /// Description of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -577,6 +634,21 @@ public partial interface IHostPool : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string DirectUdp { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } /// Friendly name of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -600,6 +672,75 @@ public partial interface IHostPool : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Personal", "Pooled", "BYODesktop")] string HostPoolType { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(string) })] + string Kind { get; set; } /// The type of the load balancer. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, @@ -613,6 +754,21 @@ public partial interface IHostPool : [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst", "Persistent", "MultiplePersistent")] string LoadBalancerType { get; set; } /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", + SerializedName = @"managedBy", + PossibleTypes = new [] { typeof(string) })] + string ManagedBy { get; set; } + /// /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type /// when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors /// that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections @@ -664,6 +820,17 @@ public partial interface IHostPool : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } /// PersonalDesktopAssignment type for HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -676,6 +843,66 @@ public partial interface IHostPool : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Automatic", "Direct")] string PersonalDesktopAssignmentType { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A user defined name of the 3rd Party Artifact that is being procured.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. ", + SerializedName = @"product", + PossibleTypes = new [] { typeof(string) })] + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A publisher provided promotion code as provisioned in Data Market for the said product/artifact.", + SerializedName = @"promotionCode", + PossibleTypes = new [] { typeof(string) })] + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the desired product/artifact.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string PlanVersion { get; set; } /// /// The type of preferred application group type, default to Desktop Application Group /// @@ -793,6 +1020,72 @@ public partial interface IHostPool : SerializedName = @"ring", PossibleTypes = new [] { typeof(int) })] int? Ring { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// ClientId for the registered Relying Party used to issue WVD SSO certificates. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -875,7 +1168,7 @@ public partial interface IHostPool : } /// Represents a HostPool definition. internal partial interface IHostPoolInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal { /// /// The session host configuration for updating agent, monitoring agent, and stack component. @@ -893,6 +1186,11 @@ internal partial interface IHostPoolInternal : string AgentUpdateType { get; set; } /// Whether to use localTime of the virtual machine. bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// List of App Attach Package links. System.Collections.Generic.List AppAttachPackageReference { get; set; } /// List of applicationGroup links. @@ -901,6 +1199,9 @@ internal partial interface IHostPoolInternal : bool? CloudPcResource { get; set; } /// Custom rdp property of HostPool. string CustomRdpProperty { get; set; } + /// DeploymentScope type for HostPool. + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + string DeploymentScope { get; set; } /// Description of HostPool. string Description { get; set; } /// @@ -910,15 +1211,53 @@ internal partial interface IHostPoolInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string DirectUdp { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + string Etag { get; set; } /// Friendly name of HostPool. string FriendlyName { get; set; } /// HostPool type for desktop. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Personal", "Pooled", "BYODesktop")] string HostPoolType { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + string Kind { get; set; } /// The type of the load balancer. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst", "Persistent", "MultiplePersistent")] string LoadBalancerType { get; set; } /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + string ManagedBy { get; set; } + /// /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type /// when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors /// that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections @@ -934,9 +1273,28 @@ internal partial interface IHostPoolInternal : int? MaxSessionLimit { get; set; } /// ObjectId of HostPool. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } /// PersonalDesktopAssignment type for HostPool. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Automatic", "Direct")] string PersonalDesktopAssignmentType { get; set; } + /// Details of the resource plan. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + string PlanVersion { get; set; } /// /// The type of preferred application group type, default to Desktop Application Group /// @@ -959,10 +1317,7 @@ internal partial interface IHostPoolInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string PublicUdp { get; set; } - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo RegistrationInfo { get; set; } /// Expiration time of registration token. global::System.DateTime? RegistrationInfoExpirationTime { get; set; } @@ -980,6 +1335,29 @@ internal partial interface IHostPoolInternal : string RelayUdp { get; set; } /// The ring number of HostPool. int? Ring { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// ClientId for the registered Relying Party used to issue WVD SSO certificates. string SsoClientId { get; set; } /// Path to Azure KeyVault storing the secret used for communication to ADFS. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.json.cs index c8c653a90931..b154257800e5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPool.json.cs @@ -77,8 +77,14 @@ internal HostPool(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runti { return; } - __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(json); + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolProperties.FromJson(__jsonProperties) : _property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} + {_plan = If( json?.PropertyT("plan"), out var __jsonPlan) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan.FromJson(__jsonPlan) : _plan;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku.FromJson(__jsonSku) : _sku;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)_kind;} + {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? (string)__jsonManagedBy : (string)_managedBy;} AfterFromJson(json); } @@ -101,8 +107,20 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resourceModelWithAllowedPropertySet?.ToJson(container, serializationMode); + __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._plan ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._plan.ToJson(null,serializationMode) : null, "plan" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + } + AddIf( null != (((object)this._managedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managedBy.ToString()) : null, "managedBy" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.cs index 8faeef9d0fe6..1e8aa41f1436 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.cs @@ -13,20 +13,17 @@ public partial class HostPoolList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of HostPool definitions. + /// The HostPool items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public HostPoolList() public partial interface IHostPoolList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of HostPool definitions. + string NextLink { get; set; } + /// The HostPool items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of HostPool definitions.", + Description = @"The HostPool items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IHostPoolList : internal partial interface IHostPoolListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of HostPool definitions. + /// The HostPool items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.json.cs index d2929d7c4569..c35b38bdbaf5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.PowerShell.cs index 8f726c4405d8..a86374d926fb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.PowerShell.cs @@ -113,6 +113,10 @@ internal HostPoolPatch(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchTagsTypeConverter.ConvertFrom); @@ -245,6 +249,26 @@ internal HostPoolPatch(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).ManagedPrivateUdp = (string) content.GetValueForProperty("ManagedPrivateUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).ManagedPrivateUdp, global::System.Convert.ToString); } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -290,6 +314,10 @@ internal HostPoolPatch(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchTagsTypeConverter.ConvertFrom); @@ -422,6 +450,26 @@ internal HostPoolPatch(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).ManagedPrivateUdp = (string) content.GetValueForProperty("ManagedPrivateUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).ManagedPrivateUdp, global::System.Convert.ToString); } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.cs index 11891eb65fce..447161f17508 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.cs @@ -38,6 +38,12 @@ public partial class HostPoolPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? AgentUpdateUseSessionHostLocalTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AgentUpdateUseSessionHostLocalTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AgentUpdateUseSessionHostLocalTime = value ?? default(bool); } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string AllowRdpShortPathWithPrivateLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AllowRdpShortPathWithPrivateLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AllowRdpShortPathWithPrivateLink = value ?? null; } + /// Custom rdp property of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomRdpProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).CustomRdpProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).CustomRdpProperty = value ?? null; } @@ -64,6 +70,39 @@ public partial class HostPoolPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; + + /// The managed service identities assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + /// The type of the load balancer. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string LoadBalancerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).LoadBalancerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).LoadBalancerType = value ?? null; } @@ -83,6 +122,15 @@ public partial class HostPoolPatch : /// Internal Acessors for AgentUpdate Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAgentUpdatePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal.AgentUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AgentUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)Property).AgentUpdate = value ?? null /* model class */; } + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } + /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchProperties()); set { {_property = value;} } } @@ -314,6 +362,20 @@ public partial interface IHostPoolPatch : SerializedName = @"useSessionHostLocalTime", PossibleTypes = new [] { typeof(bool) })] bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// Custom rdp property of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -363,6 +425,61 @@ public partial interface IHostPoolPatch : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The type of the load balancer. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -617,6 +734,11 @@ internal partial interface IHostPoolPatchInternal : string AgentUpdateType { get; set; } /// Whether to use localTime of the virtual machine. bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// Custom rdp property of HostPool. string CustomRdpProperty { get; set; } /// Description of HostPool. @@ -630,6 +752,27 @@ internal partial interface IHostPoolPatchInternal : string DirectUdp { get; set; } /// Friendly name of HostPool. string FriendlyName { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The type of the load balancer. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst", "Persistent", "MultiplePersistent")] string LoadBalancerType { get; set; } @@ -662,10 +805,7 @@ internal partial interface IHostPoolPatchInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string PublicUdp { get; set; } - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatch RegistrationInfo { get; set; } /// Expiration time of registration token. global::System.DateTime? RegistrationInfoExpirationTime { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.json.cs index 9ee6bddf2864..32f416500aff 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatch.json.cs @@ -79,6 +79,7 @@ internal HostPoolPatch(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization. } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchProperties.FromJson(__jsonProperties) : _property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolPatchTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } @@ -104,6 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.PowerShell.cs index 823e872da80e..b4f78a4cc8f7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.PowerShell.cs @@ -197,6 +197,10 @@ internal HostPoolPatchProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RelayUdp, global::System.Convert.ToString); } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -326,6 +330,10 @@ internal HostPoolPatchProperties(global::System.Management.Automation.PSObject c { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RelayUdp, global::System.Convert.ToString); } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPatchPropertiesInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.cs index 4de0234b7921..c6a8046cac8b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.cs @@ -41,6 +41,15 @@ public partial class HostPoolPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? AgentUpdateUseSessionHostLocalTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAgentUpdatePatchPropertiesInternal)AgentUpdate).UseSessionHostLocalTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAgentUpdatePatchPropertiesInternal)AgentUpdate).UseSessionHostLocalTime = value ?? default(bool); } + /// Backing field for property. + private string _allowRdpShortPathWithPrivateLink; + + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string AllowRdpShortPathWithPrivateLink { get => this._allowRdpShortPathWithPrivateLink; set => this._allowRdpShortPathWithPrivateLink = value; } + /// Backing field for property. private string _customRdpProperty; @@ -141,10 +150,7 @@ public partial class HostPoolPatchProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatch _registrationInfo; - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatch RegistrationInfo { get => (this._registrationInfo = this._registrationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfoPatch()); set => this._registrationInfo = value; } @@ -281,6 +287,20 @@ public partial interface IHostPoolPatchProperties : SerializedName = @"useSessionHostLocalTime", PossibleTypes = new [] { typeof(bool) })] bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// Custom rdp property of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -573,6 +593,11 @@ internal partial interface IHostPoolPatchPropertiesInternal string AgentUpdateType { get; set; } /// Whether to use localTime of the virtual machine. bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// Custom rdp property of HostPool. string CustomRdpProperty { get; set; } /// Description of HostPool. @@ -616,10 +641,7 @@ internal partial interface IHostPoolPatchPropertiesInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string PublicUdp { get; set; } - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatch RegistrationInfo { get; set; } /// Expiration time of registration token. global::System.DateTime? RegistrationInfoExpirationTime { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.json.cs index 785c285dd362..4a7c01bf0ad0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolPatchProperties.json.cs @@ -99,6 +99,7 @@ internal HostPoolPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtu {_directUdp = If( json?.PropertyT("directUDP"), out var __jsonDirectUdp) ? (string)__jsonDirectUdp : (string)_directUdp;} {_publicUdp = If( json?.PropertyT("publicUDP"), out var __jsonPublicUdp) ? (string)__jsonPublicUdp : (string)_publicUdp;} {_relayUdp = If( json?.PropertyT("relayUDP"), out var __jsonRelayUdp) ? (string)__jsonRelayUdp : (string)_relayUdp;} + {_allowRdpShortPathWithPrivateLink = If( json?.PropertyT("allowRDPShortPathWithPrivateLink"), out var __jsonAllowRdpShortPathWithPrivateLink) ? (string)__jsonAllowRdpShortPathWithPrivateLink : (string)_allowRdpShortPathWithPrivateLink;} AfterFromJson(json); } @@ -143,6 +144,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != (((object)this._directUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._directUdp.ToString()) : null, "directUDP" ,container.Add ); AddIf( null != (((object)this._publicUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._publicUdp.ToString()) : null, "publicUDP" ,container.Add ); AddIf( null != (((object)this._relayUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._relayUdp.ToString()) : null, "relayUDP" ,container.Add ); + AddIf( null != (((object)this._allowRdpShortPathWithPrivateLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._allowRdpShortPathWithPrivateLink.ToString()) : null, "allowRDPShortPathWithPrivateLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.PowerShell.cs index 525d8de7c063..7059c03fd459 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.PowerShell.cs @@ -161,10 +161,6 @@ internal HostPoolProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).VMTemplate = (string) content.GetValueForProperty("VMTemplate",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).VMTemplate, global::System.Convert.ToString); } - if (content.Contains("ManagementType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType, global::System.Convert.ToString); - } if (content.Contains("ApplicationGroupReference")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ApplicationGroupReference = (System.Collections.Generic.List) content.GetValueForProperty("ApplicationGroupReference",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ApplicationGroupReference, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); @@ -225,6 +221,22 @@ internal HostPoolProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RelayUdp, global::System.Convert.ToString); } + if (content.Contains("ManagementType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType, global::System.Convert.ToString); + } + if (content.Contains("DeploymentScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).DeploymentScope = (string) content.GetValueForProperty("DeploymentScope",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).DeploymentScope, global::System.Convert.ToString); + } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -322,10 +334,6 @@ internal HostPoolProperties(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).VMTemplate = (string) content.GetValueForProperty("VMTemplate",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).VMTemplate, global::System.Convert.ToString); } - if (content.Contains("ManagementType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType, global::System.Convert.ToString); - } if (content.Contains("ApplicationGroupReference")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ApplicationGroupReference = (System.Collections.Generic.List) content.GetValueForProperty("ApplicationGroupReference",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ApplicationGroupReference, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); @@ -386,6 +394,22 @@ internal HostPoolProperties(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RelayUdp = (string) content.GetValueForProperty("RelayUdp",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RelayUdp, global::System.Convert.ToString); } + if (content.Contains("ManagementType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType = (string) content.GetValueForProperty("ManagementType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).ManagementType, global::System.Convert.ToString); + } + if (content.Contains("DeploymentScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).DeploymentScope = (string) content.GetValueForProperty("DeploymentScope",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).DeploymentScope, global::System.Convert.ToString); + } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("AllowRdpShortPathWithPrivateLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).AllowRdpShortPathWithPrivateLink = (string) content.GetValueForProperty("AllowRdpShortPathWithPrivateLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).AllowRdpShortPathWithPrivateLink, global::System.Convert.ToString); + } if (content.Contains("RegistrationInfoExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RegistrationInfoExpirationTime = (global::System.DateTime?) content.GetValueForProperty("RegistrationInfoExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolPropertiesInternal)this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.cs index e19fbdf48cf0..64fa0241784c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.cs @@ -41,6 +41,15 @@ public partial class HostPoolProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? AgentUpdateUseSessionHostLocalTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAgentUpdatePropertiesInternal)AgentUpdate).UseSessionHostLocalTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAgentUpdatePropertiesInternal)AgentUpdate).UseSessionHostLocalTime = value ?? default(bool); } + /// Backing field for property. + private string _allowRdpShortPathWithPrivateLink; + + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string AllowRdpShortPathWithPrivateLink { get => this._allowRdpShortPathWithPrivateLink; set => this._allowRdpShortPathWithPrivateLink = value; } + /// Backing field for property. private System.Collections.Generic.List _appAttachPackageReference; @@ -69,6 +78,13 @@ public partial class HostPoolProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CustomRdpProperty { get => this._customRdpProperty; set => this._customRdpProperty = value; } + /// Backing field for property. + private string _deploymentScope; + + /// DeploymentScope type for HostPool. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string DeploymentScope { get => this._deploymentScope; set => this._deploymentScope = value; } + /// Backing field for property. private string _description; @@ -163,6 +179,13 @@ public partial class HostPoolProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ObjectId { get => this._objectId; } + /// Backing field for property. + private string _oboTenantId; + + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string OboTenantId { get => this._oboTenantId; set => this._oboTenantId = value; } + /// Backing field for property. private string _personalDesktopAssignmentType; @@ -210,10 +233,7 @@ public partial class HostPoolProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo _registrationInfo; - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo RegistrationInfo { get => (this._registrationInfo = this._registrationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfo()); set => this._registrationInfo = value; } @@ -354,6 +374,20 @@ public partial interface IHostPoolProperties : SerializedName = @"useSessionHostLocalTime", PossibleTypes = new [] { typeof(bool) })] bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// List of App Attach Package links. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -398,6 +432,18 @@ public partial interface IHostPoolProperties : SerializedName = @"customRdpProperty", PossibleTypes = new [] { typeof(string) })] string CustomRdpProperty { get; set; } + /// DeploymentScope type for HostPool. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DeploymentScope type for HostPool.", + SerializedName = @"deploymentScope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + string DeploymentScope { get; set; } /// Description of HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -512,6 +558,17 @@ public partial interface IHostPoolProperties : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } /// PersonalDesktopAssignment type for HostPool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -741,6 +798,11 @@ internal partial interface IHostPoolPropertiesInternal string AgentUpdateType { get; set; } /// Whether to use localTime of the virtual machine. bool? AgentUpdateUseSessionHostLocalTime { get; set; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + string AllowRdpShortPathWithPrivateLink { get; set; } /// List of App Attach Package links. System.Collections.Generic.List AppAttachPackageReference { get; set; } /// List of applicationGroup links. @@ -749,6 +811,9 @@ internal partial interface IHostPoolPropertiesInternal bool? CloudPcResource { get; set; } /// Custom rdp property of HostPool. string CustomRdpProperty { get; set; } + /// DeploymentScope type for HostPool. + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + string DeploymentScope { get; set; } /// Description of HostPool. string Description { get; set; } /// @@ -782,6 +847,8 @@ internal partial interface IHostPoolPropertiesInternal int? MaxSessionLimit { get; set; } /// ObjectId of HostPool. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } /// PersonalDesktopAssignment type for HostPool. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Automatic", "Direct")] string PersonalDesktopAssignmentType { get; set; } @@ -805,10 +872,7 @@ internal partial interface IHostPoolPropertiesInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Default", "Enabled", "Disabled")] string PublicUdp { get; set; } - /// - /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken - /// or listRegistrationTokens POST calls. - /// + /// The registration info of HostPool. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo RegistrationInfo { get; set; } /// Expiration time of registration token. global::System.DateTime? RegistrationInfoExpirationTime { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.json.cs index 6531e447e922..10686686a363 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProperties.json.cs @@ -90,7 +90,6 @@ internal HostPoolProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualiza {_ring = If( json?.PropertyT("ring"), out var __jsonRing) ? (int?)__jsonRing : _ring;} {_validationEnvironment = If( json?.PropertyT("validationEnvironment"), out var __jsonValidationEnvironment) ? (bool?)__jsonValidationEnvironment : _validationEnvironment;} {_vMTemplate = If( json?.PropertyT("vmTemplate"), out var __jsonVMTemplate) ? (string)__jsonVMTemplate : (string)_vMTemplate;} - {_managementType = If( json?.PropertyT("managementType"), out var __jsonManagementType) ? (string)__jsonManagementType : (string)_managementType;} {_applicationGroupReference = If( json?.PropertyT("applicationGroupReferences"), out var __jsonApplicationGroupReferences) ? If( __jsonApplicationGroupReferences as Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _applicationGroupReference;} {_appAttachPackageReference = If( json?.PropertyT("appAttachPackageReferences"), out var __jsonAppAttachPackageReferences) ? If( __jsonAppAttachPackageReferences as Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _appAttachPackageReference;} {_ssoadfsAuthority = If( json?.PropertyT("ssoadfsAuthority"), out var __jsonSsoadfsAuthority) ? (string)__jsonSsoadfsAuthority : (string)_ssoadfsAuthority;} @@ -106,6 +105,10 @@ internal HostPoolProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualiza {_directUdp = If( json?.PropertyT("directUDP"), out var __jsonDirectUdp) ? (string)__jsonDirectUdp : (string)_directUdp;} {_publicUdp = If( json?.PropertyT("publicUDP"), out var __jsonPublicUdp) ? (string)__jsonPublicUdp : (string)_publicUdp;} {_relayUdp = If( json?.PropertyT("relayUDP"), out var __jsonRelayUdp) ? (string)__jsonRelayUdp : (string)_relayUdp;} + {_managementType = If( json?.PropertyT("managementType"), out var __jsonManagementType) ? (string)__jsonManagementType : (string)_managementType;} + {_deploymentScope = If( json?.PropertyT("deploymentScope"), out var __jsonDeploymentScope) ? (string)__jsonDeploymentScope : (string)_deploymentScope;} + {_oboTenantId = If( json?.PropertyT("oboTenantId"), out var __jsonOboTenantId) ? (string)__jsonOboTenantId : (string)_oboTenantId;} + {_allowRdpShortPathWithPrivateLink = If( json?.PropertyT("allowRDPShortPathWithPrivateLink"), out var __jsonAllowRdpShortPathWithPrivateLink) ? (string)__jsonAllowRdpShortPathWithPrivateLink : (string)_allowRdpShortPathWithPrivateLink;} AfterFromJson(json); } @@ -144,7 +147,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != this._ring ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._ring) : null, "ring" ,container.Add ); AddIf( null != this._validationEnvironment ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonBoolean((bool)this._validationEnvironment) : null, "validationEnvironment" ,container.Add ); AddIf( null != (((object)this._vMTemplate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._vMTemplate.ToString()) : null, "vmTemplate" ,container.Add ); - AddIf( null != (((object)this._managementType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managementType.ToString()) : null, "managementType" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) { if (null != this._applicationGroupReference) @@ -196,6 +198,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != (((object)this._directUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._directUdp.ToString()) : null, "directUDP" ,container.Add ); AddIf( null != (((object)this._publicUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._publicUdp.ToString()) : null, "publicUDP" ,container.Add ); AddIf( null != (((object)this._relayUdp)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._relayUdp.ToString()) : null, "relayUDP" ,container.Add ); + AddIf( null != (((object)this._managementType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managementType.ToString()) : null, "managementType" ,container.Add ); + AddIf( null != (((object)this._deploymentScope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._deploymentScope.ToString()) : null, "deploymentScope" ,container.Add ); + AddIf( null != (((object)this._oboTenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._oboTenantId.ToString()) : null, "oboTenantId" ,container.Add ); + AddIf( null != (((object)this._allowRdpShortPathWithPrivateLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._allowRdpShortPathWithPrivateLink.ToString()) : null, "allowRDPShortPathWithPrivateLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.PowerShell.cs index 4c9350699eda..5735db3fa3d6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. [System.ComponentModel.TypeConverter(typeof(HostPoolProvisioningControlParameterTypeConverter))] public partial class HostPoolProvisioningControlParameter { @@ -166,7 +166,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. [System.ComponentModel.TypeConverter(typeof(HostPoolProvisioningControlParameterTypeConverter))] public partial interface IHostPoolProvisioningControlParameter diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.cs index 49ef29640794..aef9ac2d1820 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. public partial class HostPoolProvisioningControlParameter : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameterInternal @@ -16,7 +16,7 @@ public partial class HostPoolProvisioningControlParameter : /// Backing field for property. private string _action= @"Cancel"; - /// Action types for controlling hostpool provisioning. + /// Action types for controlling hostpool update. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Action { get => this._action; } @@ -36,18 +36,18 @@ public HostPoolProvisioningControlParameter() } } - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. public partial interface IHostPoolProvisioningControlParameter : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Action types for controlling hostpool provisioning. + /// Action types for controlling hostpool update. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = true, Read = true, Create = true, Update = true, - Description = @"Action types for controlling hostpool provisioning.", + Description = @"Action types for controlling hostpool update.", SerializedName = @"action", PossibleTypes = new [] { typeof(string) })] string Action { get; } @@ -64,11 +64,11 @@ public partial interface IHostPoolProvisioningControlParameter : string CancelMessage { get; set; } } - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. internal partial interface IHostPoolProvisioningControlParameterInternal { - /// Action types for controlling hostpool provisioning. + /// Action types for controlling hostpool update. string Action { get; set; } /// The cancel message sent to the user on the session host. string CancelMessage { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.json.cs index c78f1ca5f0fd..8d41a181266c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolProvisioningControlParameter.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. public partial class HostPoolProvisioningControlParameter { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateConfigurationPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateConfigurationPatchProperties.cs index d60eca3eac4e..470f544eb5a1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateConfigurationPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateConfigurationPatchProperties.cs @@ -30,7 +30,7 @@ public partial class HostPoolUpdateConfigurationPatchProperties : /// Backing field for property. private string _logOffMessage; - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string LogOffMessage { get => this._logOffMessage; set => this._logOffMessage = value; } @@ -75,14 +75,14 @@ public partial interface IHostPoolUpdateConfigurationPatchProperties : SerializedName = @"logOffDelayMinutes", PossibleTypes = new [] { typeof(int) })] int? LogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] string LogOffMessage { get; set; } @@ -107,7 +107,7 @@ internal partial interface IHostPoolUpdateConfigurationPatchPropertiesInternal bool? DeleteOriginalVM { get; set; } /// Grace period before logging off users in minutes. int? LogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. string LogOffMessage { get; set; } /// The maximum number of virtual machines to be removed during hostpool update. int? MaxVmsRemoved { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.PowerShell.cs index 8ad56d1f3792..d814adba23d0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. [System.ComponentModel.TypeConverter(typeof(HostPoolUpdateControlParameterTypeConverter))] public partial class HostPoolUpdateControlParameter { @@ -164,7 +164,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. [System.ComponentModel.TypeConverter(typeof(HostPoolUpdateControlParameterTypeConverter))] public partial interface IHostPoolUpdateControlParameter diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.cs index 8daef6868131..c6cfefd97b57 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. public partial class HostPoolUpdateControlParameter : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameterInternal @@ -35,7 +35,7 @@ public HostPoolUpdateControlParameter() } } - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. public partial interface IHostPoolUpdateControlParameter : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -66,7 +66,7 @@ public partial interface IHostPoolUpdateControlParameter : string CancelMessage { get; set; } } - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. internal partial interface IHostPoolUpdateControlParameterInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.json.cs index 4c102edd24ea..f03e1ee4c89d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateControlParameter.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. public partial class HostPoolUpdateControlParameter { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.PowerShell.cs deleted file mode 100644 index db9f7007bbda..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.PowerShell.cs +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// Hostpool update fault information. - [System.ComponentModel.TypeConverter(typeof(HostPoolUpdateFaultTypeConverter))] - public partial class HostPoolUpdateFault - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, 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.DesktopVirtualization.Models.IHostPoolUpdateFault DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HostPoolUpdateFault(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.DesktopVirtualization.Models.IHostPoolUpdateFault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HostPoolUpdateFault(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.DesktopVirtualization.Models.IHostPoolUpdateFault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HostPoolUpdateFault(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FaultType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultType = (string) content.GetValueForProperty("FaultType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultType, global::System.Convert.ToString); - } - if (content.Contains("FaultCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultCode = (string) content.GetValueForProperty("FaultCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultCode, global::System.Convert.ToString); - } - if (content.Contains("FaultText")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultText = (string) content.GetValueForProperty("FaultText",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultText, global::System.Convert.ToString); - } - if (content.Contains("FaultContext")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultContext = (string) content.GetValueForProperty("FaultContext",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultContext, 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 HostPoolUpdateFault(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FaultType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultType = (string) content.GetValueForProperty("FaultType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultType, global::System.Convert.ToString); - } - if (content.Contains("FaultCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultCode = (string) content.GetValueForProperty("FaultCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultCode, global::System.Convert.ToString); - } - if (content.Contains("FaultText")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultText = (string) content.GetValueForProperty("FaultText",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultText, global::System.Convert.ToString); - } - if (content.Contains("FaultContext")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultContext = (string) content.GetValueForProperty("FaultContext",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal)this).FaultContext, 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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Hostpool update fault information. - [System.ComponentModel.TypeConverter(typeof(HostPoolUpdateFaultTypeConverter))] - public partial interface IHostPoolUpdateFault - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.TypeConverter.cs deleted file mode 100644 index 0279854ec3bc..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class HostPoolUpdateFaultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return HostPoolUpdateFault.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return HostPoolUpdateFault.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return HostPoolUpdateFault.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.cs deleted file mode 100644 index ae8a07d639e1..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Hostpool update fault information. - public partial class HostPoolUpdateFault : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFaultInternal - { - - /// Backing field for property. - private string _faultCode; - - /// Hostpool update fault code. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string FaultCode { get => this._faultCode; set => this._faultCode = value; } - - /// Backing field for property. - private string _faultContext; - - /// Hostpool update fault context. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string FaultContext { get => this._faultContext; set => this._faultContext = value; } - - /// Backing field for property. - private string _faultText; - - /// Hostpool update fault text. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string FaultText { get => this._faultText; set => this._faultText = value; } - - /// Backing field for property. - private string _faultType; - - /// Hostpool update fault type. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string FaultType { get => this._faultType; set => this._faultType = value; } - - /// Creates an new instance. - public HostPoolUpdateFault() - { - - } - } - /// Hostpool update fault information. - public partial interface IHostPoolUpdateFault : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable - { - /// Hostpool update fault code. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Hostpool update fault code.", - SerializedName = @"faultCode", - PossibleTypes = new [] { typeof(string) })] - string FaultCode { get; set; } - /// Hostpool update fault context. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Hostpool update fault context.", - SerializedName = @"faultContext", - PossibleTypes = new [] { typeof(string) })] - string FaultContext { get; set; } - /// Hostpool update fault text. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Hostpool update fault text.", - SerializedName = @"faultText", - PossibleTypes = new [] { typeof(string) })] - string FaultText { get; set; } - /// Hostpool update fault type. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Hostpool update fault type.", - SerializedName = @"faultType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ServiceError", "UserError")] - string FaultType { get; set; } - - } - /// Hostpool update fault information. - internal partial interface IHostPoolUpdateFaultInternal - - { - /// Hostpool update fault code. - string FaultCode { get; set; } - /// Hostpool update fault context. - string FaultContext { get; set; } - /// Hostpool update fault text. - string FaultText { get; set; } - /// Hostpool update fault type. - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ServiceError", "UserError")] - string FaultType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.json.cs deleted file mode 100644 index c0d8c0e2116d..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/HostPoolUpdateFault.json.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// Hostpool update fault information. - public partial class HostPoolUpdateFault - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateFault FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new HostPoolUpdateFault(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - internal HostPoolUpdateFault(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_faultType = If( json?.PropertyT("faultType"), out var __jsonFaultType) ? (string)__jsonFaultType : (string)_faultType;} - {_faultCode = If( json?.PropertyT("faultCode"), out var __jsonFaultCode) ? (string)__jsonFaultCode : (string)_faultCode;} - {_faultText = If( json?.PropertyT("faultText"), out var __jsonFaultText) ? (string)__jsonFaultText : (string)_faultText;} - {_faultContext = If( json?.PropertyT("faultContext"), out var __jsonFaultContext) ? (string)__jsonFaultContext : (string)_faultContext;} - 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.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._faultType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._faultType.ToString()) : null, "faultType" ,container.Add ); - AddIf( null != (((object)this._faultCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._faultCode.ToString()) : null, "faultCode" ,container.Add ); - AddIf( null != (((object)this._faultText)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._faultText.ToString()) : null, "faultText" ,container.Add ); - AddIf( null != (((object)this._faultContext)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._faultContext.ToString()) : null, "faultContext" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.PowerShell.cs index 608f085fa201..01d7ae7d723f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool [System.ComponentModel.TypeConverter(typeof(ImageInfoPatchPropertiesTypeConverter))] public partial class ImageInfoPatchProperties { @@ -210,7 +210,7 @@ public override string ToString() return ToJsonString(); } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool [System.ComponentModel.TypeConverter(typeof(ImageInfoPatchPropertiesTypeConverter))] public partial interface IImageInfoPatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.cs index d752338a1fa2..4b02a7ed753e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial class ImageInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal @@ -22,7 +22,7 @@ public partial class ImageInfoPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPatchProperties CustomInfo { get => (this._customInfo = this._customInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CustomInfoPatchProperties()); set => this._customInfo = value; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPatchPropertiesInternal)CustomInfo).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPatchPropertiesInternal)CustomInfo).ResourceId = value ?? null; } @@ -42,7 +42,7 @@ public partial class ImageInfoPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchProperties MarketplaceInfo { get => (this._marketplaceInfo = this._marketplaceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.MarketplaceInfoPatchProperties()); set => this._marketplaceInfo = value; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).ExactVersion = value ?? null; } @@ -54,7 +54,7 @@ public partial class ImageInfoPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).Publisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchPropertiesInternal)MarketplaceInfo).Sku = value ?? null; } @@ -70,18 +70,18 @@ public ImageInfoPatchProperties() } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial interface IImageInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -97,14 +97,14 @@ public partial interface IImageInfoPatchProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -130,20 +130,20 @@ public partial interface IImageInfoPatchProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool internal partial interface IImageInfoPatchPropertiesInternal { @@ -151,7 +151,7 @@ internal partial interface IImageInfoPatchPropertiesInternal /// The values to uniquely identify a custom image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPatchProperties CustomInfo { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// The type of image session hosts use in the hostpool. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] @@ -160,13 +160,13 @@ internal partial interface IImageInfoPatchPropertiesInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchProperties MarketplaceInfo { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.json.cs index 90d03db03ccc..8f6c4d4bd989 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoPatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial class ImageInfoPatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.PowerShell.cs index eca7ec22808e..1a85c95a6351 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool [System.ComponentModel.TypeConverter(typeof(ImageInfoPropertiesTypeConverter))] public partial class ImageInfoProperties { @@ -210,7 +210,7 @@ public override string ToString() return ToJsonString(); } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool [System.ComponentModel.TypeConverter(typeof(ImageInfoPropertiesTypeConverter))] public partial interface IImageInfoProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.cs index 8aedb1d8b275..67b3f9bdf9dc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial class ImageInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal @@ -22,7 +22,7 @@ public partial class ImageInfoProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoProperties CustomInfo { get => (this._customInfo = this._customInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CustomInfoProperties()); set => this._customInfo = value; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPropertiesInternal)CustomInfo).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoPropertiesInternal)CustomInfo).ResourceId = value ?? null; } @@ -42,7 +42,7 @@ public partial class ImageInfoProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties MarketplaceInfo { get => (this._marketplaceInfo = this._marketplaceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.MarketplaceInfoProperties()); set => this._marketplaceInfo = value; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).ExactVersion = value ?? null; } @@ -54,7 +54,7 @@ public partial class ImageInfoProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).Publisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPropertiesInternal)MarketplaceInfo).Sku = value ?? null; } @@ -70,18 +70,18 @@ public ImageInfoProperties() } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial interface IImageInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -97,14 +97,14 @@ public partial interface IImageInfoProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -130,20 +130,20 @@ public partial interface IImageInfoProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } } - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool internal partial interface IImageInfoPropertiesInternal { @@ -151,7 +151,7 @@ internal partial interface IImageInfoPropertiesInternal /// The values to uniquely identify a custom image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICustomInfoProperties CustomInfo { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// The type of image session hosts use in the hostpool. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] @@ -160,13 +160,13 @@ internal partial interface IImageInfoPropertiesInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties MarketplaceInfo { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.json.cs index e34f762a22d1..afebbff4ed44 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ImageInfoProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Image configurations of session host in a HostPool. + /// Image configurations of session host in a HostPool public partial class ImageInfoProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ManagedDiskProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ManagedDiskProperties.cs index 80ae0a880e1e..c8de497ff3d8 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ManagedDiskProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ManagedDiskProperties.cs @@ -16,7 +16,7 @@ public partial class ManagedDiskProperties : /// Backing field for property. private string _type; - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } @@ -30,14 +30,14 @@ public ManagedDiskProperties() public partial interface IManagedDiskProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] @@ -48,7 +48,7 @@ public partial interface IManagedDiskProperties : internal partial interface IManagedDiskPropertiesInternal { - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string Type { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoPatchProperties.cs index 30f355291b51..5489321ac683 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoPatchProperties.cs @@ -16,7 +16,7 @@ public partial class MarketplaceInfoPatchProperties : /// Backing field for property. private string _exactVersion; - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ExactVersion { get => this._exactVersion; set => this._exactVersion = value; } @@ -37,7 +37,7 @@ public partial class MarketplaceInfoPatchProperties : /// Backing field for property. private string _sku; - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Sku { get => this._sku; set => this._sku = value; } @@ -51,14 +51,14 @@ public MarketplaceInfoPatchProperties() public partial interface IMarketplaceInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string ExactVersion { get; set; } @@ -84,14 +84,14 @@ public partial interface IMarketplaceInfoPatchProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string Publisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string Sku { get; set; } @@ -101,13 +101,13 @@ public partial interface IMarketplaceInfoPatchProperties : internal partial interface IMarketplaceInfoPatchPropertiesInternal { - /// The exact version of the image. + /// The version of the image. string ExactVersion { get; set; } /// The offer of the image. string Offer { get; set; } /// The publisher of the image. string Publisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string Sku { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoProperties.cs index 4cf5671e7400..cde501f84b7a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MarketplaceInfoProperties.cs @@ -16,7 +16,7 @@ public partial class MarketplaceInfoProperties : /// Backing field for property. private string _exactVersion; - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ExactVersion { get => this._exactVersion; set => this._exactVersion = value; } @@ -37,7 +37,7 @@ public partial class MarketplaceInfoProperties : /// Backing field for property. private string _sku; - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Sku { get => this._sku; set => this._sku = value; } @@ -51,14 +51,14 @@ public MarketplaceInfoProperties() public partial interface IMarketplaceInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string ExactVersion { get; set; } @@ -84,14 +84,14 @@ public partial interface IMarketplaceInfoProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string Publisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string Sku { get; set; } @@ -101,13 +101,13 @@ public partial interface IMarketplaceInfoProperties : internal partial interface IMarketplaceInfoPropertiesInternal { - /// The exact version of the image. + /// The version of the image. string ExactVersion { get; set; } /// The offer of the image. string Offer { get; set; } /// The publisher of the image. string Publisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string Sku { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.cs index 3e782adf1513..caba27c1d4f0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.cs @@ -14,10 +14,10 @@ public partial class MsixPackage : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// User friendly Name to be displayed in the portal. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -27,7 +27,7 @@ public partial class MsixPackage : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// VHD/CIM image path on Network Share. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -49,38 +49,38 @@ public partial class MsixPackage : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.MsixPackageProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// List of package applications. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -119,39 +119,39 @@ public partial class MsixPackage : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackagePropertiesInternal)Property).Version = value ?? null; } @@ -169,14 +169,14 @@ public MsixPackage() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Schema for MSIX Package properties. public partial interface IMsixPackage : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// User friendly Name to be displayed in the portal. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -185,7 +185,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } @@ -207,7 +207,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } @@ -229,7 +229,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"Date Package was last updated, found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUpdated { get; set; } @@ -240,7 +240,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List PackageApplication { get; set; } @@ -251,7 +251,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List PackageDependency { get; set; } @@ -264,7 +264,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string PackageFamilyName { get; set; } @@ -275,7 +275,7 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string PackageName { get; set; } @@ -286,18 +286,18 @@ public partial interface IMsixPackage : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string Version { get; set; } @@ -305,7 +305,7 @@ public partial interface IMsixPackage : } /// Schema for MSIX Package properties. internal partial interface IMsixPackageInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// User friendly Name to be displayed in the portal. string DisplayName { get; set; } @@ -331,7 +331,7 @@ internal partial interface IMsixPackageInternal : string PackageRelativePath { get; set; } /// Detailed properties for MSIX Package Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageProperties Property { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string Version { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.json.cs index ce5b895c0871..fc3bdc115f38 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackage.json.cs @@ -77,7 +77,7 @@ internal MsixPackage(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Ru { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.MsixPackageProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageDependencies.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageDependencies.cs index 214e29a3578f..a2d326c44353 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageDependencies.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageDependencies.cs @@ -16,10 +16,7 @@ public partial class MsixPackageDependencies : /// Backing field for property. private string _dependencyName; - /// - /// Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages - /// this is the locations of the user and deployment config files - /// + /// Name of package dependency. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string DependencyName { get => this._dependencyName; set => this._dependencyName = value; } @@ -47,17 +44,14 @@ public MsixPackageDependencies() public partial interface IMsixPackageDependencies : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// - /// Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages - /// this is the locations of the user and deployment config files - /// + /// Name of package dependency. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages this is the locations of the user and deployment config files", + Description = @"Name of package dependency.", SerializedName = @"dependencyName", PossibleTypes = new [] { typeof(string) })] string DependencyName { get; set; } @@ -89,10 +83,7 @@ public partial interface IMsixPackageDependencies : internal partial interface IMsixPackageDependenciesInternal { - /// - /// Name of the package dependency. For Msix packages, this is the other packages this package depends upon, for APP-V packages - /// this is the locations of the user and deployment config files - /// + /// Name of package dependency. string DependencyName { get; set; } /// Dependency version required. string MinVersion { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.cs index 1abbf28d9efc..cf795810f726 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.cs @@ -13,20 +13,17 @@ public partial class MsixPackageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of MSIX Package definitions. + /// The MSIXPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public MsixPackageList() public partial interface IMsixPackageList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of MSIX Package definitions. + string NextLink { get; set; } + /// The MSIXPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of MSIX Package definitions.", + Description = @"The MSIXPackage items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IMsixPackageList : internal partial interface IMsixPackageListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of MSIX Package definitions. + /// The MSIXPackage items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.json.cs index 50ed140e0007..2937bfd4a0db 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatch.cs index 64d2638f0fc5..6ada86b6fe41 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatch.cs @@ -158,7 +158,7 @@ public partial interface IMsixPackagePatch : Read = true, Create = true, Update = true, - Description = @"Set a version of the package to be active across hostpool. ", + Description = @"Set a version of the package to be active across hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatchProperties.cs index 24e79b824a79..9f5089a9179b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackagePatchProperties.cs @@ -62,7 +62,7 @@ public partial interface IMsixPackagePatchProperties : Read = true, Create = true, Update = true, - Description = @"Set a version of the package to be active across hostpool. ", + Description = @"Set a version of the package to be active across hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageProperties.cs index ee86e31424f7..5343528cc611 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/MsixPackageProperties.cs @@ -88,7 +88,7 @@ public partial class MsixPackageProperties : /// Backing field for property. private string _version; - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Version { get => this._version; set => this._version = value; } @@ -109,7 +109,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } @@ -131,7 +131,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } @@ -153,7 +153,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"Date Package was last updated, found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUpdated { get; set; } @@ -164,7 +164,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] System.Collections.Generic.List PackageApplication { get; set; } @@ -175,7 +175,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] System.Collections.Generic.List PackageDependency { get; set; } @@ -188,7 +188,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] string PackageFamilyName { get; set; } @@ -199,7 +199,7 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] string PackageName { get; set; } @@ -210,18 +210,18 @@ public partial interface IMsixPackageProperties : Read = true, Create = true, Update = true, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] string Version { get; set; } @@ -253,7 +253,7 @@ internal partial interface IMsixPackagePropertiesInternal string PackageName { get; set; } /// Relative Path to the package inside the image. string PackageRelativePath { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. string Version { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.PowerShell.cs index cfd7b4086583..9fb3900818ab 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.PowerShell.cs @@ -7,9 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// - /// List of private endpoint connection associated with the specified storage account - /// + /// List of private endpoint connection associated with the specified HostPool [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionListResultWithSystemDataTypeConverter))] public partial class PrivateEndpointConnectionListResultWithSystemData { @@ -169,7 +167,7 @@ public override string ToString() return ToJsonString(); } } - /// List of private endpoint connection associated with the specified storage account + /// List of private endpoint connection associated with the specified HostPool [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionListResultWithSystemDataTypeConverter))] public partial interface IPrivateEndpointConnectionListResultWithSystemData diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.cs index bf64ccf24e42..8d3210318a83 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.cs @@ -7,28 +7,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// List of private endpoint connection associated with the specified storage account - /// + /// List of private endpoint connection associated with the specified HostPool public partial class PrivateEndpointConnectionListResultWithSystemData : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionListResultWithSystemData, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionListResultWithSystemDataInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionListResultWithSystemDataInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// Array of private endpoint connections + /// The PrivateEndpointConnectionWithSystemData items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,41 +35,41 @@ public PrivateEndpointConnectionListResultWithSystemData() } } - /// List of private endpoint connection associated with the specified storage account + /// List of private endpoint connection associated with the specified HostPool public partial interface IPrivateEndpointConnectionListResultWithSystemData : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Array of private endpoint connections + string NextLink { get; set; } + /// The PrivateEndpointConnectionWithSystemData items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Array of private endpoint connections", + Description = @"The PrivateEndpointConnectionWithSystemData items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData) })] System.Collections.Generic.List Value { get; set; } } - /// List of private endpoint connection associated with the specified storage account + /// List of private endpoint connection associated with the specified HostPool internal partial interface IPrivateEndpointConnectionListResultWithSystemDataInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Array of private endpoint connections + /// The PrivateEndpointConnectionWithSystemData items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.json.cs index 9e50a9dc10eb..bc32f40d0d93 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionListResultWithSystemData.json.cs @@ -7,9 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// List of private endpoint connection associated with the specified storage account - /// + /// List of private endpoint connection associated with the specified HostPool public partial class PrivateEndpointConnectionListResultWithSystemData { @@ -115,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.PowerShell.cs index 18be2ab04b9b..4a395c42a5fc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.PowerShell.cs @@ -114,6 +114,10 @@ internal PrivateEndpointConnectionWithSystemData(global::System.Collections.IDic return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -156,39 +160,35 @@ internal PrivateEndpointConnectionWithSystemData(global::System.Collections.IDic } if (content.Contains("PrivateEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointTypeConverter.ConvertFrom); } if (content.Contains("PrivateLinkServiceConnectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); } if (content.Contains("GroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("PrivateEndpointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpointId, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -207,6 +207,10 @@ internal PrivateEndpointConnectionWithSystemData(global::System.Management.Autom return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -249,39 +253,35 @@ internal PrivateEndpointConnectionWithSystemData(global::System.Management.Autom } if (content.Contains("PrivateEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointTypeConverter.ConvertFrom); } if (content.Contains("PrivateLinkServiceConnectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); } if (content.Contains("GroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("PrivateEndpointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateEndpointId, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); } if (content.Contains("PrivateLinkServiceConnectionStateStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.cs index fc8d5654de10..03160328a6d6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.cs @@ -14,110 +14,103 @@ public partial class PrivateEndpointConnectionWithSystemData : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection __privateEndpointConnection = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnection(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// The group ids for the private endpoint resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public System.Collections.Generic.List GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).GroupId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public System.Collections.Generic.List GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for GroupId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).GroupId = value ?? null /* arrayOf */; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value ?? null /* arrayOf */; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpoint = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpointId = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionState = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).Property = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).ProvisioningState = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemDataInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Name; } - - /// The private endpoint resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpoint = value ?? null /* model class */; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// The ARM identifier for private endpoint. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateEndpointId; } - - /// - /// A collection of information about the state of the connection between service consumer and provider. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionState = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; } /// /// A message indicating if changes on the service provider require any updates on the consumer. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateActionsRequired = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired = value ?? null; } /// The reason for approval/rejection of the connection. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateDescription = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription = value ?? null; } /// /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).PrivateLinkServiceConnectionStateStatus = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus = value ?? null; } - /// Resource properties. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).Property = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionProperties()); set => this._property = value; } /// The provisioning state of the private endpoint connection resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal)__privateEndpointConnection).ProvisioningState; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] @@ -127,37 +120,37 @@ public partial class PrivateEndpointConnectionWithSystemData : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__privateEndpointConnection).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public PrivateEndpointConnectionWithSystemData() @@ -173,21 +166,119 @@ public PrivateEndpointConnectionWithSystemData() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__privateEndpointConnection), __privateEndpointConnection); - await eventListener.AssertObjectIsValid(nameof(__privateEndpointConnection), __privateEndpointConnection); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// The Private Endpoint Connection resource. public partial interface IPrivateEndpointConnectionWithSystemData : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { + /// The group ids for the private endpoint resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The group ids for the private endpoint resource.", + SerializedName = @"groupIds", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List GroupId { get; } + /// The ARM identifier for private endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The ARM identifier for private endpoint.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string PrivateEndpointId { get; } + /// + /// A message indicating if changes on the service provider require any updates on the consumer. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A message indicating if changes on the service provider require any updates on the consumer.", + SerializedName = @"actionsRequired", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkServiceConnectionStateActionsRequired { get; set; } + /// The reason for approval/rejection of the connection. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The reason for approval/rejection of the connection.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string PrivateLinkServiceConnectionStateDescription { get; set; } + /// + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")] + string PrivateLinkServiceConnectionStateStatus { get; set; } + /// The provisioning state of the private endpoint connection resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the private endpoint connection resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")] + string ProvisioningState { get; } } /// The Private Endpoint Connection resource. internal partial interface IPrivateEndpointConnectionWithSystemDataInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { + /// The group ids for the private endpoint resource. + System.Collections.Generic.List GroupId { get; set; } + /// The private endpoint resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpoint PrivateEndpoint { get; set; } + /// The ARM identifier for private endpoint. + string PrivateEndpointId { get; set; } + /// + /// A collection of information about the state of the connection between service consumer and provider. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// + /// A message indicating if changes on the service provider require any updates on the consumer. + /// + string PrivateLinkServiceConnectionStateActionsRequired { get; set; } + /// The reason for approval/rejection of the connection. + string PrivateLinkServiceConnectionStateDescription { get; set; } + /// + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")] + string PrivateLinkServiceConnectionStateStatus { get; set; } + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionProperties Property { get; set; } + /// The provisioning state of the private endpoint connection resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")] + string ProvisioningState { get; set; } } } \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.json.cs index e44f5de80590..63db753e5a22 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateEndpointConnectionWithSystemData.json.cs @@ -77,7 +77,8 @@ internal PrivateEndpointConnectionWithSystemData(Microsoft.Azure.PowerShell.Cmdl { return; } - __privateEndpointConnection = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnection(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -102,7 +103,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __privateEndpointConnection?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.cs index 4cd96402afc8..09f1529e2a1d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.cs @@ -13,20 +13,17 @@ public partial class PrivateLinkResourceListResult : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResourceListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// Array of private link resources + /// The PrivateLinkResource items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public PrivateLinkResourceListResult() public partial interface IPrivateLinkResourceListResult : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Array of private link resources + string NextLink { get; set; } + /// The PrivateLinkResource items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Array of private link resources", + Description = @"The PrivateLinkResource items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResource) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IPrivateLinkResourceListResult : internal partial interface IPrivateLinkResourceListResultInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Array of private link resources + /// The PrivateLinkResource items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs index 11e95d43a325..048fa9d8d56a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.PowerShell.cs index 750ecfd1577b..5b2a3660672d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.PowerShell.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. [System.ComponentModel.TypeConverter(typeof(RegistrationInfoTypeConverter))] public partial class RegistrationInfo { @@ -173,8 +170,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. [System.ComponentModel.TypeConverter(typeof(RegistrationInfoTypeConverter))] public partial interface IRegistrationInfo diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.cs index ceb309528818..63ae8b67bd03 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. public partial class RegistrationInfo : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoInternal @@ -43,8 +40,7 @@ public RegistrationInfo() } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. public partial interface IRegistrationInfo : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -84,8 +80,7 @@ public partial interface IRegistrationInfo : string Token { get; set; } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. internal partial interface IRegistrationInfoInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.json.cs index 8efcdeb7fa1b..67b196923106 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfo.json.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. public partial class RegistrationInfo { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.PowerShell.cs index dd637c686f0e..88f5bbaf123e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.PowerShell.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. [System.ComponentModel.TypeConverter(typeof(RegistrationInfoPatchTypeConverter))] public partial class RegistrationInfoPatch { @@ -165,8 +162,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. [System.ComponentModel.TypeConverter(typeof(RegistrationInfoPatchTypeConverter))] public partial interface IRegistrationInfoPatch diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.cs index 3512737c2cf6..c039106688f2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. public partial class RegistrationInfoPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatch, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfoPatchInternal @@ -36,8 +33,7 @@ public RegistrationInfoPatch() } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. public partial interface IRegistrationInfoPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -66,8 +62,7 @@ public partial interface IRegistrationInfoPatch : string RegistrationTokenOperation { get; set; } } - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. + /// Represents a RegistrationInfo definition. internal partial interface IRegistrationInfoPatchInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.json.cs index 5b4c9cd2034c..5b661f5ed303 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/RegistrationInfoPatch.json.cs @@ -7,10 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// - /// Represents a RegistrationInfo definition. This is not returned on HostPool GET. In order to get the registration token - /// use the retrieveRegistrationToken or listRegistrationTokens POST calls. - /// + /// Represents a RegistrationInfo definition. public partial class RegistrationInfoPatch { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.PowerShell.cs deleted file mode 100644 index 8679641c9e15..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.PowerShell.cs +++ /dev/null @@ -1,420 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - /// - [System.ComponentModel.TypeConverter(typeof(ResourceModelWithAllowedPropertySetTypeConverter))] - public partial class ResourceModelWithAllowedPropertySet - { - - /// - /// 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); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, 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.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResourceModelWithAllowedPropertySet(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.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResourceModelWithAllowedPropertySet(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.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResourceModelWithAllowedPropertySet(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Plan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); - } - if (content.Contains("PlanPublisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); - } - if (content.Contains("PlanProduct")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); - } - if (content.Contains("PlanPromotionCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); - } - if (content.Contains("PlanVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceModelWithAllowedPropertySet(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("Plan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); - } - if (content.Contains("ManagedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); - } - if (content.Contains("PlanPublisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); - } - if (content.Contains("PlanProduct")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); - } - if (content.Contains("PlanPromotionCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); - } - if (content.Contains("PlanVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.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.DesktopVirtualization.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - [System.ComponentModel.TypeConverter(typeof(ResourceModelWithAllowedPropertySetTypeConverter))] - public partial interface IResourceModelWithAllowedPropertySet - - { - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.cs deleted file mode 100644 index cbe8095012b9..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.cs +++ /dev/null @@ -1,600 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - /// - public partial class ResourceModelWithAllowedPropertySet : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(); - - /// Backing field for property. - private string _etag; - - /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string Etag { get => this._etag; } - - /// - /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; - - /// Managed service identity (system assigned and/or user assigned identities) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } - - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } - - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } - - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } - - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } - - /// Backing field for property. - private string _kind; - - /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are - /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string Kind { get => this._kind; set => this._kind = value; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } - - /// Backing field for property. - private string _managedBy; - - /// - /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another - /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template - /// since it is managed by another resource. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string ManagedBy { get => this._managedBy; set => this._managedBy = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id = value ?? null; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name = value ?? null; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } - - /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type = value ?? null; } - - /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Etag { get => this._etag; set { {_etag = value;} } } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } - - /// Internal Acessors for Plan - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set { {_plan = value;} } } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set { {_sku = value;} } } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan _plan; - - /// Plan for the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set => this._plan = value; } - - /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name = value ?? null; } - - /// - /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at - /// the time of Data Market onboarding. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product = value ?? null; } - - /// - /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode = value ?? null; } - - /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher = value ?? null; } - - /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku _sku; - - /// The resource model definition representing SKU - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set => this._sku = value; } - - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } - - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family = value ?? null; } - - /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name = value ?? null; } - - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size = value ?? null; } - - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier = value ?? null; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public ResourceModelWithAllowedPropertySet() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - public partial interface IResourceModelWithAllowedPropertySet : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource - { - /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. ", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - string Etag { get; } - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string IdentityPrincipalId { get; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string IdentityTenantId { get; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] - string IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are - /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = false, - Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", - SerializedName = @"kind", - PossibleTypes = new [] { typeof(string) })] - string Kind { get; set; } - /// - /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another - /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template - /// since it is managed by another resource. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", - SerializedName = @"managedBy", - PossibleTypes = new [] { typeof(string) })] - string ManagedBy { get; set; } - /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A user defined name of the 3rd Party Artifact that is being procured.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string PlanName { get; set; } - /// - /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at - /// the time of Data Market onboarding. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. ", - SerializedName = @"product", - PossibleTypes = new [] { typeof(string) })] - string PlanProduct { get; set; } - /// - /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A publisher provided promotion code as provisioned in Data Market for the said product/artifact.", - SerializedName = @"promotionCode", - PossibleTypes = new [] { typeof(string) })] - string PlanPromotionCode { get; set; } - /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic", - SerializedName = @"publisher", - PossibleTypes = new [] { typeof(string) })] - string PlanPublisher { get; set; } - /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The version of the desired product/artifact.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string PlanVersion { get; set; } - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", - SerializedName = @"capacity", - PossibleTypes = new [] { typeof(int) })] - int? SkuCapacity { get; set; } - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", - SerializedName = @"family", - PossibleTypes = new [] { typeof(string) })] - string SkuFamily { get; set; } - /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", - SerializedName = @"size", - PossibleTypes = new [] { typeof(string) })] - string SkuSize { get; set; } - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", - SerializedName = @"tier", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] - string SkuTier { get; set; } - - } - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - internal partial interface IResourceModelWithAllowedPropertySetInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal - { - /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. - /// - string Etag { get; set; } - /// Managed service identity (system assigned and/or user assigned identities) - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityPrincipalId { get; set; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityTenantId { get; set; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] - string IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are - /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. - /// - string Kind { get; set; } - /// - /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another - /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template - /// since it is managed by another resource. - /// - string ManagedBy { get; set; } - /// Plan for the resource. - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get; set; } - /// A user defined name of the 3rd Party Artifact that is being procured. - string PlanName { get; set; } - /// - /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at - /// the time of Data Market onboarding. - /// - string PlanProduct { get; set; } - /// - /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. - /// - string PlanPromotionCode { get; set; } - /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - string PlanPublisher { get; set; } - /// The version of the desired product/artifact. - string PlanVersion { get; set; } - /// The resource model definition representing SKU - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get; set; } - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - int? SkuCapacity { get; set; } - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - string SkuFamily { get; set; } - /// The name of the SKU. E.g. P3. It is typically a letter+number code - string SkuName { get; set; } - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - string SkuSize { get; set; } - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] - string SkuTier { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.json.cs deleted file mode 100644 index e0b6cc3977af..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.json.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - - /// - /// The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there - /// cannot be a top level property outside of this set. - /// - public partial class ResourceModelWithAllowedPropertySet - { - - /// - /// 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.DesktopVirtualization.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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.DesktopVirtualization.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.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new ResourceModelWithAllowedPropertySet(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - internal ResourceModelWithAllowedPropertySet(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(json); - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku.FromJson(__jsonSku) : _sku;} - {_plan = If( json?.PropertyT("plan"), out var __jsonPlan) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan.FromJson(__jsonPlan) : _plan;} - {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? (string)__jsonManagedBy : (string)_managedBy;} - {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)_kind;} - {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} - 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.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); - AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); - AddIf( null != this._plan ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._plan.ToJson(null,serializationMode) : null, "plan" ,container.Add ); - AddIf( null != (((object)this._managedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managedBy.ToString()) : null, "managedBy" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate)) - { - AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.TypeConverter.cs deleted file mode 100644 index e7dbfdbdec4b..000000000000 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ResourceProviderOperationListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ResourceProviderOperationList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ResourceProviderOperationList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ResourceProviderOperationList.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.PowerShell.cs similarity index 69% rename from generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.PowerShell.cs rename to generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.PowerShell.cs index eb850064f7aa..3a54b904ab61 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.PowerShell.cs @@ -7,9 +7,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Result of the request to list operations. - [System.ComponentModel.TypeConverter(typeof(ResourceProviderOperationListTypeConverter))] - public partial class ResourceProviderOperationList + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + [System.ComponentModel.TypeConverter(typeof(ResourceProviderOperationListResultTypeConverter))] + public partial class ResourceProviderOperationListResult { /// @@ -63,46 +66,48 @@ public partial class ResourceProviderOperationList partial void OverrideToString(ref string stringResult, 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.DesktopVirtualization.Models.IResourceProviderOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ResourceProviderOperationList(content); + return new ResourceProviderOperationListResult(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.DesktopVirtualization.Models.IResourceProviderOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ResourceProviderOperationList(content); + return new ResourceProviderOperationListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ResourceProviderOperationList(global::System.Collections.IDictionary content) + internal ResourceProviderOperationListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -113,21 +118,21 @@ internal ResourceProviderOperationList(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)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. - internal ResourceProviderOperationList(global::System.Management.Automation.PSObject content) + internal ResourceProviderOperationListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -138,11 +143,11 @@ internal ResourceProviderOperationList(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceProviderOperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -164,9 +169,10 @@ public override string ToString() return ToJsonString(); } } - /// Result of the request to list operations. - [System.ComponentModel.TypeConverter(typeof(ResourceProviderOperationListTypeConverter))] - public partial interface IResourceProviderOperationList + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + [System.ComponentModel.TypeConverter(typeof(ResourceProviderOperationListResultTypeConverter))] + public partial interface IResourceProviderOperationListResult { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.TypeConverter.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.TypeConverter.cs similarity index 86% rename from generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.TypeConverter.cs rename to generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.TypeConverter.cs index 9074e21685d7..967d5e5d450b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceModelWithAllowedPropertySet.TypeConverter.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ResourceModelWithAllowedPropertySetTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ResourceProviderOperationListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class ResourceModelWithAllowedPropertySetTypeConverter : global:: public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise + /// true if the instance could be converted to a type, otherwise /// false /// public static bool CanConvertFrom(dynamic sourceValue) @@ -96,32 +96,32 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return ResourceModelWithAllowedPropertySet.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ResourceProviderOperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -129,11 +129,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IR } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ResourceModelWithAllowedPropertySet.DeserializeFromPSObject(sourceValue); + return ResourceProviderOperationListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ResourceModelWithAllowedPropertySet.DeserializeFromDictionary(sourceValue); + return ResourceProviderOperationListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.cs similarity index 60% rename from generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.cs rename to generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.cs index 27871cefc57e..d515779100cb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.cs @@ -7,70 +7,72 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Result of the request to list operations. - public partial class ResourceProviderOperationList : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + public partial class ResourceProviderOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of operations supported by this resource provider. + /// The ResourceProviderOperation items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ResourceProviderOperationList() + /// Creates an new instance. + public ResourceProviderOperationListResult() { } } - /// Result of the request to list operations. - public partial interface IResourceProviderOperationList : + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + public partial interface IResourceProviderOperationListResult : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of operations supported by this resource provider. + string NextLink { get; set; } + /// The ResourceProviderOperation items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of operations supported by this resource provider.", + Description = @"The ResourceProviderOperation items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperation) })] System.Collections.Generic.List Value { get; set; } } - /// Result of the request to list operations. - internal partial interface IResourceProviderOperationListInternal + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + internal partial interface IResourceProviderOperationListResultInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of operations supported by this resource provider. + /// The ResourceProviderOperation items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.json.cs similarity index 84% rename from generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.json.cs rename to generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.json.cs index 294709fa9f81..0b2907222a65 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ResourceProviderOperationListResult.json.cs @@ -7,8 +7,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Result of the request to list operations. - public partial class ResourceProviderOperationList + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + public partial class ResourceProviderOperationListResult { /// @@ -54,22 +57,22 @@ public partial class ResourceProviderOperationList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceProviderOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new ResourceProviderOperationList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json ? new ResourceProviderOperationListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject instance to deserialize from. - internal ResourceProviderOperationList(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) + internal ResourceProviderOperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +86,14 @@ internal ResourceProviderOperationList(Microsoft.Azure.PowerShell.Cmdlets.Deskto } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode serializationMode) { @@ -110,10 +114,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.PowerShell.cs index ab1523667d11..f131f61c5ac7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.PowerShell.cs @@ -113,6 +113,30 @@ internal ScalingPlan(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -161,85 +185,45 @@ internal ScalingPlan(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -273,6 +257,22 @@ internal ScalingPlan(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).HostPoolReference = (System.Collections.Generic.List) content.GetValueForProperty("HostPoolReference",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).HostPoolReference, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingHostPoolReferenceTypeConverter.ConvertFrom)); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializeDictionary(content); } @@ -294,6 +294,30 @@ internal ScalingPlan(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -342,85 +366,45 @@ internal ScalingPlan(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -454,6 +438,22 @@ internal ScalingPlan(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).HostPoolReference = (System.Collections.Generic.List) content.GetValueForProperty("HostPoolReference",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).HostPoolReference, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingHostPoolReferenceTypeConverter.ConvertFrom)); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.cs index a59d727d3c05..0db018da20cd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.cs @@ -14,23 +14,25 @@ public partial class ScalingPlan : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(); /// Description of scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).Description = value ?? null; } + /// Backing field for property. + private string _etag; + /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } /// Exclusion tag for scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -52,147 +54,159 @@ public partial class ScalingPlan : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; } - /// Managed service identity (system assigned and/or user assigned identities) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; + + /// The managed service identities assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. /// The dictionary values can be empty objects ({}) in requests. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Backing field for property. + private string _kind; /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Kind { get => this._kind; set => this._kind = value; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Backing field for property. + private string _managedBy; /// /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template /// since it is managed by another resource. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string ManagedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string ManagedBy { get => this._managedBy; set => this._managedBy = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId = value ?? null; } - - /// Internal Acessors for Plan - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for ObjectId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).ObjectId = value ?? null; } + /// Internal Acessors for Plan + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set { {_plan = value;} } } + /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanProperties()); set { {_property = value;} } } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set { {_sku = value;} } } + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; } /// ObjectId of scaling plan. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).ObjectId; } - /// Plan for the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan _plan; + + /// Details of the resource plan. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set => this._plan = value; } /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name = value ?? null; } /// /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at /// the time of Data Market onboarding. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product = value ?? null; } /// /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode = value ?? null; } /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher = value ?? null; } /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanProperties _property; @@ -205,77 +219,80 @@ public partial class ScalingPlan : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public System.Collections.Generic.List Schedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).Schedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPropertiesInternal)Property).Schedule = value ?? null /* arrayOf */; } - /// The resource model definition representing SKU - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set => this._sku = value; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the /// resource this may be omitted. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// If the service has different generations of hardware, for the same SKU, then that can be captured here. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family = value ?? null; } /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name = value ?? null; } /// /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size = value ?? null; } /// /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required /// on a PUT. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// Timezone of the scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -285,7 +302,7 @@ public partial class ScalingPlan : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public ScalingPlan() @@ -301,14 +318,14 @@ public ScalingPlan() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); - await eventListener.AssertObjectIsValid(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); } } /// Represents a scaling plan definition. public partial interface IScalingPlan : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource { /// Description of scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -321,6 +338,21 @@ public partial interface IScalingPlan : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } /// Exclusion tag for scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -366,6 +398,90 @@ public partial interface IScalingPlan : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Pooled", "Personal")] string HostPoolType { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(string) })] + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", + SerializedName = @"managedBy", + PossibleTypes = new [] { typeof(string) })] + string ManagedBy { get; set; } /// ObjectId of scaling plan. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -377,17 +493,143 @@ public partial interface IScalingPlan : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } - /// List of Pooled ScalingSchedule definitions. + /// A user defined name of the 3rd Party Artifact that is being procured. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of Pooled ScalingSchedule definitions.", + Description = @"A user defined name of the 3rd Party Artifact that is being procured.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. ", + SerializedName = @"product", + PossibleTypes = new [] { typeof(string) })] + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A publisher provided promotion code as provisioned in Data Market for the said product/artifact.", + SerializedName = @"promotionCode", + PossibleTypes = new [] { typeof(string) })] + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the desired product/artifact.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string PlanVersion { get; set; } + /// List of ScalingPlanPooledSchedule definitions. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"List of ScalingPlanPooledSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] System.Collections.Generic.List Schedule { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Timezone of the scaling plan. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, @@ -403,10 +645,16 @@ public partial interface IScalingPlan : } /// Represents a scaling plan definition. internal partial interface IScalingPlanInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal { /// Description of scaling plan. string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + string Etag { get; set; } /// Exclusion tag for scaling plan. string ExclusionTag { get; set; } /// User friendly name of scaling plan. @@ -416,12 +664,84 @@ internal partial interface IScalingPlanInternal : /// HostPool type for desktop. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Pooled", "Personal")] string HostPoolType { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + string ManagedBy { get; set; } /// ObjectId of scaling plan. (internal use) string ObjectId { get; set; } + /// Details of the resource plan. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + string PlanVersion { get; set; } /// Detailed properties for scaling plan. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanProperties Property { get; set; } - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. System.Collections.Generic.List Schedule { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Timezone of the scaling plan. string TimeZone { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.json.cs index 319c7cdf3e49..f01c13ffdcdc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlan.json.cs @@ -77,8 +77,14 @@ internal ScalingPlan(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Ru { return; } - __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(json); + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanProperties.FromJson(__jsonProperties) : _property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} + {_plan = If( json?.PropertyT("plan"), out var __jsonPlan) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan.FromJson(__jsonPlan) : _plan;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku.FromJson(__jsonSku) : _sku;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)_kind;} + {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? (string)__jsonManagedBy : (string)_managedBy;} AfterFromJson(json); } @@ -101,8 +107,20 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resourceModelWithAllowedPropertySet?.ToJson(container, serializationMode); + __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._plan ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._plan.ToJson(null,serializationMode) : null, "plan" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + } + AddIf( null != (((object)this._managedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managedBy.ToString()) : null, "managedBy" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.cs index ff0796be0c7c..04e17d7cbcd5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.cs @@ -13,20 +13,17 @@ public partial class ScalingPlanList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of scaling plan definitions. + /// The ScalingPlan items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ScalingPlanList() public partial interface IScalingPlanList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of scaling plan definitions. + string NextLink { get; set; } + /// The ScalingPlan items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of scaling plan definitions.", + Description = @"The ScalingPlan items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IScalingPlanList : internal partial interface IScalingPlanListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of scaling plan definitions. + /// The ScalingPlan items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.json.cs index f56ca8eace2c..2690f4e10f42 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatch.cs index c95d6b9a1cf1..353d7453b2fb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatch.cs @@ -39,7 +39,7 @@ public partial class ScalingPlanPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanPatchProperties()); set => this._property = value; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public System.Collections.Generic.List Schedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatchPropertiesInternal)Property).Schedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatchPropertiesInternal)Property).Schedule = value ?? null /* arrayOf */; } @@ -108,14 +108,14 @@ public partial interface IScalingPlanPatch : SerializedName = @"hostPoolReferences", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingHostPoolReference) })] System.Collections.Generic.List HostPoolReference { get; set; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List Pooled ScalingSchedule definitions.", + Description = @"List of ScalingSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] System.Collections.Generic.List Schedule { get; set; } @@ -157,7 +157,7 @@ internal partial interface IScalingPlanPatchInternal System.Collections.Generic.List HostPoolReference { get; set; } /// Detailed properties for scaling plan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatchProperties Property { get; set; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. System.Collections.Generic.List Schedule { get; set; } /// tags to be updated Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPatchTags Tag { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatchProperties.cs index c7b2df4ba02a..92d7caccd18c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPatchProperties.cs @@ -44,7 +44,7 @@ public partial class ScalingPlanPatchProperties : /// Backing field for property. private System.Collections.Generic.List _schedule; - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Schedule { get => this._schedule; set => this._schedule = value; } @@ -109,14 +109,14 @@ public partial interface IScalingPlanPatchProperties : SerializedName = @"hostPoolReferences", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingHostPoolReference) })] System.Collections.Generic.List HostPoolReference { get; set; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List Pooled ScalingSchedule definitions.", + Description = @"List of ScalingSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] System.Collections.Generic.List Schedule { get; set; } @@ -145,7 +145,7 @@ internal partial interface IScalingPlanPatchPropertiesInternal string FriendlyName { get; set; } /// List of ScalingHostPoolReference definitions. System.Collections.Generic.List HostPoolReference { get; set; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. System.Collections.Generic.List Schedule { get; set; } /// Timezone of the scaling plan. string TimeZone { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.PowerShell.cs index 974b957d1d7c..0b50fcd7ae86 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.PowerShell.cs @@ -261,35 +261,35 @@ internal ScalingPlanPersonalSchedule(global::System.Collections.IDictionary cont } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } @@ -458,35 +458,35 @@ internal ScalingPlanPersonalSchedule(global::System.Management.Automation.PSObje } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.cs index cb032f356a54..90c2e813d13d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedule.cs @@ -21,7 +21,7 @@ public partial class ScalingPlanPersonalSchedule : /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public System.Collections.Generic.List DaysOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).DaysOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).DaysOfWeek = value ; } + public System.Collections.Generic.List DaysOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).DaysOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).DaysOfWeek = value ?? null /* arrayOf */; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" @@ -102,11 +102,11 @@ public partial class ScalingPlanPersonalSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeHour = value ; } + public int? OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeMinute = value ; } + public int? OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).OffPeakStartTimeMinute = value ?? default(int); } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. @@ -138,11 +138,11 @@ public partial class ScalingPlanPersonalSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeHour = value ; } + public int? PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeMinute = value ; } + public int? PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).PeakStartTimeMinute = value ?? default(int); } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. @@ -181,11 +181,11 @@ public partial class ScalingPlanPersonalSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeHour = value ; } + public int? RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeMinute = value ; } + public int? RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampDownStartTimeMinute = value ?? default(int); } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. @@ -223,11 +223,11 @@ public partial class ScalingPlanPersonalSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeHour = value ; } + public int? RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeMinute = value ; } + public int? RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)Property).RampUpStartTimeMinute = value ?? default(int); } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session @@ -301,7 +301,7 @@ public partial interface IScalingPlanPersonalSchedule : { /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -365,7 +365,7 @@ public partial interface IScalingPlanPersonalSchedule : int? OffPeakMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -373,10 +373,10 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -384,7 +384,7 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. /// @@ -453,7 +453,7 @@ public partial interface IScalingPlanPersonalSchedule : int? PeakMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -461,10 +461,10 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -472,7 +472,7 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. /// @@ -541,7 +541,7 @@ public partial interface IScalingPlanPersonalSchedule : int? RampDownMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -549,10 +549,10 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -560,7 +560,7 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. /// @@ -643,7 +643,7 @@ public partial interface IScalingPlanPersonalSchedule : int? RampUpMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -651,10 +651,10 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -662,7 +662,7 @@ public partial interface IScalingPlanPersonalSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session /// hosts must be turned on using rampUpAutoStartHosts or by turning them on manually. @@ -706,9 +706,9 @@ internal partial interface IScalingPlanPersonalScheduleInternal : /// Starting time for off-peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime OffPeakStartTime { get; set; } /// The hour. - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. /// @@ -733,9 +733,9 @@ internal partial interface IScalingPlanPersonalScheduleInternal : /// Starting time for peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime PeakStartTime { get; set; } /// The hour. - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. /// @@ -762,9 +762,9 @@ internal partial interface IScalingPlanPersonalScheduleInternal : /// Starting time for ramp down period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampDownStartTime { get; set; } /// The hour. - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. /// @@ -794,9 +794,9 @@ internal partial interface IScalingPlanPersonalScheduleInternal : /// Starting time for ramp up period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampUpStartTime { get; set; } /// The hour. - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session /// hosts must be turned on using rampUpAutoStartHosts or by turning them on manually. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.cs index 68bdeb21f642..af7312d4dec0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.cs @@ -13,20 +13,17 @@ public partial class ScalingPlanPersonalScheduleList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalScheduleListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of ScalingPlanPersonalSchedule definitions. + /// The ScalingPlanPersonalSchedule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ScalingPlanPersonalScheduleList() public partial interface IScalingPlanPersonalScheduleList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of ScalingPlanPersonalSchedule definitions. + string NextLink { get; set; } + /// The ScalingPlanPersonalSchedule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of ScalingPlanPersonalSchedule definitions.", + Description = @"The ScalingPlanPersonalSchedule items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IScalingPlanPersonalScheduleList : internal partial interface IScalingPlanPersonalScheduleListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of ScalingPlanPersonalSchedule definitions. + /// The ScalingPlanPersonalSchedule items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.json.cs index 238cdcfb2b04..4f3aa963fe9f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.PowerShell.cs index 4152d1d1f244..b21290ce9e6b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. [System.ComponentModel.TypeConverter(typeof(ScalingPlanPersonalSchedulePatchPropertiesTypeConverter))] public partial class ScalingPlanPersonalSchedulePatchProperties { @@ -423,7 +423,7 @@ public override string ToString() return ToJsonString(); } } - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. [System.ComponentModel.TypeConverter(typeof(ScalingPlanPersonalSchedulePatchPropertiesTypeConverter))] public partial interface IScalingPlanPersonalSchedulePatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.cs index 609b0964a854..56d9b74c11bb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. public partial class ScalingPlanPersonalSchedulePatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePatchPropertiesInternal @@ -282,7 +282,7 @@ public ScalingPlanPersonalSchedulePatchProperties() } } - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. public partial interface IScalingPlanPersonalSchedulePatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -667,7 +667,7 @@ public partial interface IScalingPlanPersonalSchedulePatchProperties : string RampUpStartVMOnConnect { get; set; } } - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. internal partial interface IScalingPlanPersonalSchedulePatchPropertiesInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.json.cs index c65b4ab27272..846b00ea9789 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalSchedulePatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// A ScalingPlanPersonalSchedule. + /// ScalingPlanPersonalSchedule properties that can be patched. public partial class ScalingPlanPersonalSchedulePatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.PowerShell.cs index edc0738c6aed..9b838bcff415 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.PowerShell.cs @@ -220,35 +220,35 @@ internal ScalingPlanPersonalScheduleProperties(global::System.Collections.IDicti } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } @@ -373,35 +373,35 @@ internal ScalingPlanPersonalScheduleProperties(global::System.Management.Automat } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.cs index 35a7d5f09846..029995f3f372 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPersonalScheduleProperties.cs @@ -75,11 +75,11 @@ public partial class ScalingPlanPersonalScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour = value ; } + public int? OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute = value ; } + public int? OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _offPeakStartVMOnConnect; @@ -133,11 +133,11 @@ public partial class ScalingPlanPersonalScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour = value ; } + public int? PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute = value ; } + public int? PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _peakStartVMOnConnect; @@ -191,11 +191,11 @@ public partial class ScalingPlanPersonalScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour = value ; } + public int? RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute = value ; } + public int? RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _rampDownStartVMOnConnect; @@ -258,11 +258,11 @@ public partial class ScalingPlanPersonalScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour = value ; } + public int? RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute = value ; } + public int? RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _rampUpStartVMOnConnect; @@ -286,7 +286,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : { /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -350,7 +350,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : int? OffPeakMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -358,10 +358,10 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -369,7 +369,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. /// @@ -438,7 +438,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : int? PeakMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -446,10 +446,10 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -457,7 +457,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. /// @@ -526,7 +526,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : int? RampDownMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -534,10 +534,10 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -545,7 +545,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. /// @@ -628,7 +628,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : int? RampUpMinutesToWaitOnLogoff { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -636,10 +636,10 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -647,7 +647,7 @@ public partial interface IScalingPlanPersonalScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session /// hosts must be turned on using rampUpAutoStartHosts or by turning them on manually. @@ -691,9 +691,9 @@ internal partial interface IScalingPlanPersonalSchedulePropertiesInternal /// Starting time for off-peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime OffPeakStartTime { get; set; } /// The hour. - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. /// @@ -718,9 +718,9 @@ internal partial interface IScalingPlanPersonalSchedulePropertiesInternal /// Starting time for peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime PeakStartTime { get; set; } /// The hour. - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. /// @@ -745,9 +745,9 @@ internal partial interface IScalingPlanPersonalSchedulePropertiesInternal /// Starting time for ramp down period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampDownStartTime { get; set; } /// The hour. - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. /// @@ -777,9 +777,9 @@ internal partial interface IScalingPlanPersonalSchedulePropertiesInternal /// Starting time for ramp up period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampUpStartTime { get; set; } /// The hour. - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session /// hosts must be turned on using rampUpAutoStartHosts or by turning them on manually. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.PowerShell.cs index 32b2e5428bd1..0457eb6e7165 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.PowerShell.cs @@ -155,10 +155,6 @@ internal ScalingPlanPooledSchedule(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ScalingMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod, global::System.Convert.ToString); - } if (content.Contains("CreateDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).CreateDelete = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICreateDeleteProperties) content.GetValueForProperty("CreateDelete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).CreateDelete, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CreateDeletePropertiesTypeConverter.ConvertFrom); @@ -187,6 +183,10 @@ internal ScalingPlanPooledSchedule(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).DaysOfWeek = (System.Collections.Generic.List) content.GetValueForProperty("DaysOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).DaysOfWeek, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("ScalingMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod, global::System.Convert.ToString); + } if (content.Contains("RampUpLoadBalancingAlgorithm")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpLoadBalancingAlgorithm = (string) content.GetValueForProperty("RampUpLoadBalancingAlgorithm",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpLoadBalancingAlgorithm, global::System.Convert.ToString); @@ -197,7 +197,7 @@ internal ScalingPlanPooledSchedule(global::System.Collections.IDictionary conten } if (content.Contains("RampUpCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct = (int) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct = (int?) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakLoadBalancingAlgorithm")) { @@ -213,7 +213,7 @@ internal ScalingPlanPooledSchedule(global::System.Collections.IDictionary conten } if (content.Contains("RampDownCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct = (int) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct = (int?) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownForceLogoffUser")) { @@ -253,35 +253,35 @@ internal ScalingPlanPooledSchedule(global::System.Collections.IDictionary conten } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } @@ -344,10 +344,6 @@ internal ScalingPlanPooledSchedule(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ScalingMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod, global::System.Convert.ToString); - } if (content.Contains("CreateDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).CreateDelete = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICreateDeleteProperties) content.GetValueForProperty("CreateDelete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).CreateDelete, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CreateDeletePropertiesTypeConverter.ConvertFrom); @@ -376,6 +372,10 @@ internal ScalingPlanPooledSchedule(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).DaysOfWeek = (System.Collections.Generic.List) content.GetValueForProperty("DaysOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).DaysOfWeek, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("ScalingMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).ScalingMethod, global::System.Convert.ToString); + } if (content.Contains("RampUpLoadBalancingAlgorithm")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpLoadBalancingAlgorithm = (string) content.GetValueForProperty("RampUpLoadBalancingAlgorithm",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpLoadBalancingAlgorithm, global::System.Convert.ToString); @@ -386,7 +386,7 @@ internal ScalingPlanPooledSchedule(global::System.Management.Automation.PSObject } if (content.Contains("RampUpCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct = (int) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct = (int?) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakLoadBalancingAlgorithm")) { @@ -402,7 +402,7 @@ internal ScalingPlanPooledSchedule(global::System.Management.Automation.PSObject } if (content.Contains("RampDownCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct = (int) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct = (int?) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownForceLogoffUser")) { @@ -442,35 +442,35 @@ internal ScalingPlanPooledSchedule(global::System.Management.Automation.PSObject } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.cs index 3e80aca2e4eb..054d75315a03 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.cs @@ -14,10 +14,10 @@ public partial class ScalingPlanPooledSchedule : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// /// Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have @@ -49,43 +49,43 @@ public partial class ScalingPlanPooledSchedule : /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public System.Collections.Generic.List DaysOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).DaysOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).DaysOfWeek = value ; } + public System.Collections.Generic.List DaysOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).DaysOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).DaysOfWeek = value ?? null /* arrayOf */; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for CreateDelete Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICreateDeleteProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleInternal.CreateDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).CreateDelete; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).CreateDelete = value ?? null /* model class */; } @@ -110,7 +110,7 @@ public partial class ScalingPlanPooledSchedule : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// Load balancing algorithm for off-peak period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -118,11 +118,11 @@ public partial class ScalingPlanPooledSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeHour = value ; } + public int? OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeMinute = value ; } + public int? OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).OffPeakStartTimeMinute = value ?? default(int); } /// Load balancing algorithm for peak period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -130,13 +130,13 @@ public partial class ScalingPlanPooledSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeHour = value ; } + public int? PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeMinute = value ; } + public int? PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).PeakStartTimeMinute = value ?? default(int); } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).Name; } @@ -149,7 +149,7 @@ public partial class ScalingPlanPooledSchedule : /// Capacity threshold for ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownCapacityThresholdPct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownCapacityThresholdPct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownCapacityThresholdPct = value ; } + public int? RampDownCapacityThresholdPct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownCapacityThresholdPct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownCapacityThresholdPct = value ?? default(int); } /// Should users be logged off forcefully from hosts. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -169,11 +169,11 @@ public partial class ScalingPlanPooledSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeHour = value ; } + public int? RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeMinute = value ; } + public int? RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampDownStartTimeMinute = value ?? default(int); } /// Specifies when to stop hosts during ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -185,7 +185,7 @@ public partial class ScalingPlanPooledSchedule : /// Capacity threshold for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpCapacityThresholdPct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpCapacityThresholdPct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpCapacityThresholdPct = value ; } + public int? RampUpCapacityThresholdPct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpCapacityThresholdPct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpCapacityThresholdPct = value ?? default(int); } /// Load balancing algorithm for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -197,11 +197,11 @@ public partial class ScalingPlanPooledSchedule : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeHour = value ; } + public int? RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeHour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeMinute = value ; } + public int? RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)Property).RampUpStartTimeMinute = value ?? default(int); } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] @@ -217,37 +217,37 @@ public partial class ScalingPlanPooledSchedule : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ScalingPlanPooledSchedule() @@ -263,14 +263,14 @@ public ScalingPlanPooledSchedule() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Represents a ScalingPlanPooledSchedule definition. public partial interface IScalingPlanPooledSchedule : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// /// Maximum number of session hosts that may be created by the Scaling Service. This requires the assigned hostpool to have @@ -330,7 +330,7 @@ public partial interface IScalingPlanPooledSchedule : int? CreateDeleteRampUpMinimumHostPoolSize { get; set; } /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -354,7 +354,7 @@ public partial interface IScalingPlanPooledSchedule : string OffPeakLoadBalancingAlgorithm { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -362,10 +362,10 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -373,7 +373,7 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// Load balancing algorithm for peak period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -388,7 +388,7 @@ public partial interface IScalingPlanPooledSchedule : string PeakLoadBalancingAlgorithm { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -396,10 +396,10 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -407,21 +407,21 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeMinute { get; set; } - /// Name of the ScalingPlanPooledSchedule. + int? PeakStartTimeMinute { get; set; } + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Name of the ScalingPlanPooledSchedule.", + Description = @"Name of the ScalingPlanPooledSchedule", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PropertiesName { get; } /// Capacity threshold for ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -429,7 +429,7 @@ public partial interface IScalingPlanPooledSchedule : Description = @"Capacity threshold for ramp down period.", SerializedName = @"rampDownCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - int RampDownCapacityThresholdPct { get; set; } + int? RampDownCapacityThresholdPct { get; set; } /// Should users be logged off forcefully from hosts. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -477,7 +477,7 @@ public partial interface IScalingPlanPooledSchedule : string RampDownNotificationMessage { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -485,10 +485,10 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -496,7 +496,7 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// Specifies when to stop hosts during ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -522,7 +522,7 @@ public partial interface IScalingPlanPooledSchedule : int? RampDownWaitTimeMinute { get; set; } /// Capacity threshold for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -530,7 +530,7 @@ public partial interface IScalingPlanPooledSchedule : Description = @"Capacity threshold for ramp up period.", SerializedName = @"rampUpCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - int RampUpCapacityThresholdPct { get; set; } + int? RampUpCapacityThresholdPct { get; set; } /// Load balancing algorithm for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -556,7 +556,7 @@ public partial interface IScalingPlanPooledSchedule : int? RampUpMinimumHostsPct { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -564,10 +564,10 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -575,7 +575,7 @@ public partial interface IScalingPlanPooledSchedule : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired scaling method to be used to scale the hosts in the assigned host pool. /// @@ -594,7 +594,7 @@ public partial interface IScalingPlanPooledSchedule : } /// Represents a ScalingPlanPooledSchedule definition. internal partial interface IScalingPlanPooledScheduleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// /// The properties that control how Scaling will manage the size of the hostpool by creating and deleting hosts. @@ -629,24 +629,24 @@ internal partial interface IScalingPlanPooledScheduleInternal : /// Starting time for off-peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime OffPeakStartTime { get; set; } /// The hour. - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// Load balancing algorithm for peak period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] string PeakLoadBalancingAlgorithm { get; set; } /// Starting time for peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime PeakStartTime { get; set; } /// The hour. - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. - int PeakStartTimeMinute { get; set; } - /// Name of the ScalingPlanPooledSchedule. + int? PeakStartTimeMinute { get; set; } + /// Name of the ScalingPlanPooledSchedule string PropertiesName { get; set; } /// Detailed properties for ScalingPlanPooledSchedule Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleProperties Property { get; set; } /// Capacity threshold for ramp down period. - int RampDownCapacityThresholdPct { get; set; } + int? RampDownCapacityThresholdPct { get; set; } /// Should users be logged off forcefully from hosts. bool? RampDownForceLogoffUser { get; set; } /// Load balancing algorithm for ramp down period. @@ -659,16 +659,16 @@ internal partial interface IScalingPlanPooledScheduleInternal : /// Starting time for ramp down period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampDownStartTime { get; set; } /// The hour. - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// Specifies when to stop hosts during ramp down period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ZeroSessions", "ZeroActiveSessions")] string RampDownStopHostsWhen { get; set; } /// Number of minutes to wait to stop hosts during ramp down period. int? RampDownWaitTimeMinute { get; set; } /// Capacity threshold for ramp up period. - int RampUpCapacityThresholdPct { get; set; } + int? RampUpCapacityThresholdPct { get; set; } /// Load balancing algorithm for ramp up period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] string RampUpLoadBalancingAlgorithm { get; set; } @@ -677,9 +677,9 @@ internal partial interface IScalingPlanPooledScheduleInternal : /// Starting time for ramp up period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampUpStartTime { get; set; } /// The hour. - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired scaling method to be used to scale the hosts in the assigned host pool. /// diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.json.cs index baa380c94f90..348cc06c7893 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedule.json.cs @@ -77,7 +77,7 @@ internal ScalingPlanPooledSchedule(Microsoft.Azure.PowerShell.Cmdlets.DesktopVir { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ScalingPlanPooledScheduleProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.cs index ece1887815ca..ebd8d82c43f6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.cs @@ -13,20 +13,17 @@ public partial class ScalingPlanPooledScheduleList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledScheduleListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of ScalingPlanPooledSchedule definitions. + /// The ScalingPlanPooledSchedule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public ScalingPlanPooledScheduleList() public partial interface IScalingPlanPooledScheduleList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of ScalingPlanPooledSchedule definitions. + string NextLink { get; set; } + /// The ScalingPlanPooledSchedule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of ScalingPlanPooledSchedule definitions.", + Description = @"The ScalingPlanPooledSchedule items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IScalingPlanPooledScheduleList : internal partial interface IScalingPlanPooledScheduleListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of ScalingPlanPooledSchedule definitions. + /// The ScalingPlanPooledSchedule items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.json.cs index 09987e6391a2..299cb828ec49 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.PowerShell.cs index 0210fac81007..a715f94bdbb3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.PowerShell.cs @@ -155,10 +155,6 @@ internal ScalingPlanPooledSchedulePatch(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ScalingMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod, global::System.Convert.ToString); - } if (content.Contains("CreateDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).CreateDelete = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICreateDeleteProperties) content.GetValueForProperty("CreateDelete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).CreateDelete, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CreateDeletePropertiesTypeConverter.ConvertFrom); @@ -187,6 +183,10 @@ internal ScalingPlanPooledSchedulePatch(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).DaysOfWeek = (System.Collections.Generic.List) content.GetValueForProperty("DaysOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).DaysOfWeek, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("ScalingMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod, global::System.Convert.ToString); + } if (content.Contains("RampUpLoadBalancingAlgorithm")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).RampUpLoadBalancingAlgorithm = (string) content.GetValueForProperty("RampUpLoadBalancingAlgorithm",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).RampUpLoadBalancingAlgorithm, global::System.Convert.ToString); @@ -344,10 +344,6 @@ internal ScalingPlanPooledSchedulePatch(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ScalingMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod, global::System.Convert.ToString); - } if (content.Contains("CreateDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).CreateDelete = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICreateDeleteProperties) content.GetValueForProperty("CreateDelete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).CreateDelete, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.CreateDeletePropertiesTypeConverter.ConvertFrom); @@ -376,6 +372,10 @@ internal ScalingPlanPooledSchedulePatch(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).DaysOfWeek = (System.Collections.Generic.List) content.GetValueForProperty("DaysOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).DaysOfWeek, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("ScalingMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod = (string) content.GetValueForProperty("ScalingMethod",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).ScalingMethod, global::System.Convert.ToString); + } if (content.Contains("RampUpLoadBalancingAlgorithm")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).RampUpLoadBalancingAlgorithm = (string) content.GetValueForProperty("RampUpLoadBalancingAlgorithm",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchInternal)this).RampUpLoadBalancingAlgorithm, global::System.Convert.ToString); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.cs index b4dfca3eef38..70ac6f086cd6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatch.cs @@ -136,7 +136,7 @@ public partial class ScalingPlanPooledSchedulePatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchPropertiesInternal)Property).PeakStartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchPropertiesInternal)Property).PeakStartTimeMinute = value ?? default(int); } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchPropertiesInternal)Property).Name; } @@ -404,14 +404,14 @@ public partial interface IScalingPlanPooledSchedulePatch : SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] int? PeakStartTimeMinute { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Name of the ScalingPlanPooledSchedule.", + Description = @"Name of the ScalingPlanPooledSchedule", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PropertiesName { get; } @@ -637,7 +637,7 @@ internal partial interface IScalingPlanPooledSchedulePatchInternal : int? PeakStartTimeHour { get; set; } /// The minute. int? PeakStartTimeMinute { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule string PropertiesName { get; set; } /// Detailed properties for ScalingPlanPooledSchedule Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchProperties Property { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.PowerShell.cs index cc65cefff351..59da91883811 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. [System.ComponentModel.TypeConverter(typeof(ScalingPlanPooledSchedulePatchPropertiesTypeConverter))] public partial class ScalingPlanPooledSchedulePatchProperties { @@ -407,7 +407,7 @@ public override string ToString() return ToJsonString(); } } - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. [System.ComponentModel.TypeConverter(typeof(ScalingPlanPooledSchedulePatchPropertiesTypeConverter))] public partial interface IScalingPlanPooledSchedulePatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.cs index 7aa08a153241..0c44b330d826 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. public partial class ScalingPlanPooledSchedulePatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePatchPropertiesInternal @@ -78,7 +78,7 @@ public partial class ScalingPlanPooledSchedulePatchProperties : /// Backing field for property. private string _name; - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Name { get => this._name; } @@ -243,7 +243,7 @@ public ScalingPlanPooledSchedulePatchProperties() } } - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. public partial interface IScalingPlanPooledSchedulePatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -315,14 +315,14 @@ public partial interface IScalingPlanPooledSchedulePatchProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] System.Collections.Generic.List DaysOfWeek { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Name of the ScalingPlanPooledSchedule.", + Description = @"Name of the ScalingPlanPooledSchedule", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; } @@ -567,7 +567,7 @@ public partial interface IScalingPlanPooledSchedulePatchProperties : string ScalingMethod { get; set; } } - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. internal partial interface IScalingPlanPooledSchedulePatchPropertiesInternal { @@ -598,7 +598,7 @@ internal partial interface IScalingPlanPooledSchedulePatchPropertiesInternal /// Set of days of the week on which this schedule is active. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] System.Collections.Generic.List DaysOfWeek { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule string Name { get; set; } /// Load balancing algorithm for off-peak period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.json.cs index ec9daaac84a4..20fad1e65e07 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledSchedulePatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// A ScalingPlanPooledSchedule. + /// A ScalingPlanPooledSchedule that can be patched. public partial class ScalingPlanPooledSchedulePatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.PowerShell.cs index 26ddc381b44d..098b49a7a259 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.PowerShell.cs @@ -155,7 +155,7 @@ internal ScalingPlanPooledScheduleProperties(global::System.Collections.IDiction } if (content.Contains("RampUpCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct = (int) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct = (int?) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakLoadBalancingAlgorithm")) { @@ -171,7 +171,7 @@ internal ScalingPlanPooledScheduleProperties(global::System.Collections.IDiction } if (content.Contains("RampDownCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct = (int) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct = (int?) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownForceLogoffUser")) { @@ -211,35 +211,35 @@ internal ScalingPlanPooledScheduleProperties(global::System.Collections.IDiction } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } @@ -300,7 +300,7 @@ internal ScalingPlanPooledScheduleProperties(global::System.Management.Automatio } if (content.Contains("RampUpCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct = (int) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct = (int?) content.GetValueForProperty("RampUpCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakLoadBalancingAlgorithm")) { @@ -316,7 +316,7 @@ internal ScalingPlanPooledScheduleProperties(global::System.Management.Automatio } if (content.Contains("RampDownCapacityThresholdPct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct = (int) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct = (int?) content.GetValueForProperty("RampDownCapacityThresholdPct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownCapacityThresholdPct, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownForceLogoffUser")) { @@ -356,35 +356,35 @@ internal ScalingPlanPooledScheduleProperties(global::System.Management.Automatio } if (content.Contains("RampUpStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour = (int) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour = (int?) content.GetValueForProperty("RampUpStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampUpStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute = (int?) content.GetValueForProperty("RampUpStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampUpStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour = (int) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour = (int?) content.GetValueForProperty("PeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute = (int) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute = (int?) content.GetValueForProperty("PeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).PeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour = (int) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour = (int?) content.GetValueForProperty("RampDownStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RampDownStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute = (int?) content.GetValueForProperty("RampDownStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).RampDownStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour = (int?) content.GetValueForProperty("OffPeakStartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OffPeakStartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute = (int?) content.GetValueForProperty("OffPeakStartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedulePropertiesInternal)this).OffPeakStartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.cs index 4bc46a759638..4e2bc623e64e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.cs @@ -78,7 +78,7 @@ public partial class ScalingPlanPooledScheduleProperties : /// Backing field for property. private string _name; - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Name { get => this._name; } @@ -98,11 +98,11 @@ public partial class ScalingPlanPooledScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour = value ; } + public int? OffPeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute = value ; } + public int? OffPeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)OffPeakStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _peakLoadBalancingAlgorithm; @@ -120,18 +120,18 @@ public partial class ScalingPlanPooledScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour = value ; } + public int? PeakStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute = value ; } + public int? PeakStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)PeakStartTime).Minute = value ?? default(int); } /// Backing field for property. - private int _rampDownCapacityThresholdPct; + private int? _rampDownCapacityThresholdPct; /// Capacity threshold for ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public int RampDownCapacityThresholdPct { get => this._rampDownCapacityThresholdPct; set => this._rampDownCapacityThresholdPct = value; } + public int? RampDownCapacityThresholdPct { get => this._rampDownCapacityThresholdPct; set => this._rampDownCapacityThresholdPct = value; } /// Backing field for property. private bool? _rampDownForceLogoffUser; @@ -170,11 +170,11 @@ public partial class ScalingPlanPooledScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour = value ; } + public int? RampDownStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute = value ; } + public int? RampDownStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampDownStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _rampDownStopHostsWhen; @@ -191,11 +191,11 @@ public partial class ScalingPlanPooledScheduleProperties : public int? RampDownWaitTimeMinute { get => this._rampDownWaitTimeMinute; set => this._rampDownWaitTimeMinute = value; } /// Backing field for property. - private int _rampUpCapacityThresholdPct; + private int? _rampUpCapacityThresholdPct; /// Capacity threshold for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public int RampUpCapacityThresholdPct { get => this._rampUpCapacityThresholdPct; set => this._rampUpCapacityThresholdPct = value; } + public int? RampUpCapacityThresholdPct { get => this._rampUpCapacityThresholdPct; set => this._rampUpCapacityThresholdPct = value; } /// Backing field for property. private string _rampUpLoadBalancingAlgorithm; @@ -220,11 +220,11 @@ public partial class ScalingPlanPooledScheduleProperties : /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour = value ; } + public int? RampUpStartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Hour = value ?? default(int); } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public int RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute = value ; } + public int? RampUpStartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITimeInternal)RampUpStartTime).Minute = value ?? default(int); } /// Backing field for property. private string _scalingMethod; @@ -303,7 +303,7 @@ public partial interface IScalingPlanPooledScheduleProperties : int? CreateDeleteRampUpMinimumHostPoolSize { get; set; } /// Set of days of the week on which this schedule is active. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -313,14 +313,14 @@ public partial interface IScalingPlanPooledScheduleProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] System.Collections.Generic.List DaysOfWeek { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Name of the ScalingPlanPooledSchedule.", + Description = @"Name of the ScalingPlanPooledSchedule", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; } @@ -338,7 +338,7 @@ public partial interface IScalingPlanPooledScheduleProperties : string OffPeakLoadBalancingAlgorithm { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -346,10 +346,10 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -357,7 +357,7 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// Load balancing algorithm for peak period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -372,7 +372,7 @@ public partial interface IScalingPlanPooledScheduleProperties : string PeakLoadBalancingAlgorithm { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -380,10 +380,10 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -391,10 +391,10 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// Capacity threshold for ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -402,7 +402,7 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"Capacity threshold for ramp down period.", SerializedName = @"rampDownCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - int RampDownCapacityThresholdPct { get; set; } + int? RampDownCapacityThresholdPct { get; set; } /// Should users be logged off forcefully from hosts. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -450,7 +450,7 @@ public partial interface IScalingPlanPooledScheduleProperties : string RampDownNotificationMessage { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -458,10 +458,10 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -469,7 +469,7 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// Specifies when to stop hosts during ramp down period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -495,7 +495,7 @@ public partial interface IScalingPlanPooledScheduleProperties : int? RampDownWaitTimeMinute { get; set; } /// Capacity threshold for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -503,7 +503,7 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"Capacity threshold for ramp up period.", SerializedName = @"rampUpCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - int RampUpCapacityThresholdPct { get; set; } + int? RampUpCapacityThresholdPct { get; set; } /// Load balancing algorithm for ramp up period. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -529,7 +529,7 @@ public partial interface IScalingPlanPooledScheduleProperties : int? RampUpMinimumHostsPct { get; set; } /// The hour. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -537,10 +537,10 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -548,7 +548,7 @@ public partial interface IScalingPlanPooledScheduleProperties : Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired scaling method to be used to scale the hosts in the assigned host pool. /// @@ -596,7 +596,7 @@ internal partial interface IScalingPlanPooledSchedulePropertiesInternal /// Set of days of the week on which this schedule is active. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")] System.Collections.Generic.List DaysOfWeek { get; set; } - /// Name of the ScalingPlanPooledSchedule. + /// Name of the ScalingPlanPooledSchedule string Name { get; set; } /// Load balancing algorithm for off-peak period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] @@ -604,20 +604,20 @@ internal partial interface IScalingPlanPooledSchedulePropertiesInternal /// Starting time for off-peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime OffPeakStartTime { get; set; } /// The hour. - int OffPeakStartTimeHour { get; set; } + int? OffPeakStartTimeHour { get; set; } /// The minute. - int OffPeakStartTimeMinute { get; set; } + int? OffPeakStartTimeMinute { get; set; } /// Load balancing algorithm for peak period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] string PeakLoadBalancingAlgorithm { get; set; } /// Starting time for peak period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime PeakStartTime { get; set; } /// The hour. - int PeakStartTimeHour { get; set; } + int? PeakStartTimeHour { get; set; } /// The minute. - int PeakStartTimeMinute { get; set; } + int? PeakStartTimeMinute { get; set; } /// Capacity threshold for ramp down period. - int RampDownCapacityThresholdPct { get; set; } + int? RampDownCapacityThresholdPct { get; set; } /// Should users be logged off forcefully from hosts. bool? RampDownForceLogoffUser { get; set; } /// Load balancing algorithm for ramp down period. @@ -630,16 +630,16 @@ internal partial interface IScalingPlanPooledSchedulePropertiesInternal /// Starting time for ramp down period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampDownStartTime { get; set; } /// The hour. - int RampDownStartTimeHour { get; set; } + int? RampDownStartTimeHour { get; set; } /// The minute. - int RampDownStartTimeMinute { get; set; } + int? RampDownStartTimeMinute { get; set; } /// Specifies when to stop hosts during ramp down period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("ZeroSessions", "ZeroActiveSessions")] string RampDownStopHostsWhen { get; set; } /// Number of minutes to wait to stop hosts during ramp down period. int? RampDownWaitTimeMinute { get; set; } /// Capacity threshold for ramp up period. - int RampUpCapacityThresholdPct { get; set; } + int? RampUpCapacityThresholdPct { get; set; } /// Load balancing algorithm for ramp up period. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("BreadthFirst", "DepthFirst")] string RampUpLoadBalancingAlgorithm { get; set; } @@ -648,9 +648,9 @@ internal partial interface IScalingPlanPooledSchedulePropertiesInternal /// Starting time for ramp up period. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITime RampUpStartTime { get; set; } /// The hour. - int RampUpStartTimeHour { get; set; } + int? RampUpStartTimeHour { get; set; } /// The minute. - int RampUpStartTimeMinute { get; set; } + int? RampUpStartTimeMinute { get; set; } /// /// The desired scaling method to be used to scale the hosts in the assigned host pool. /// diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.json.cs index 14ef6988ffc7..b05f568c3d12 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanPooledScheduleProperties.json.cs @@ -87,11 +87,11 @@ internal ScalingPlanPooledScheduleProperties(Microsoft.Azure.PowerShell.Cmdlets. {_scalingMethod = If( json?.PropertyT("scalingMethod"), out var __jsonScalingMethod) ? (string)__jsonScalingMethod : (string)_scalingMethod;} {_rampUpLoadBalancingAlgorithm = If( json?.PropertyT("rampUpLoadBalancingAlgorithm"), out var __jsonRampUpLoadBalancingAlgorithm) ? (string)__jsonRampUpLoadBalancingAlgorithm : (string)_rampUpLoadBalancingAlgorithm;} {_rampUpMinimumHostsPct = If( json?.PropertyT("rampUpMinimumHostsPct"), out var __jsonRampUpMinimumHostsPct) ? (int?)__jsonRampUpMinimumHostsPct : _rampUpMinimumHostsPct;} - {_rampUpCapacityThresholdPct = If( json?.PropertyT("rampUpCapacityThresholdPct"), out var __jsonRampUpCapacityThresholdPct) ? (int)__jsonRampUpCapacityThresholdPct : _rampUpCapacityThresholdPct;} + {_rampUpCapacityThresholdPct = If( json?.PropertyT("rampUpCapacityThresholdPct"), out var __jsonRampUpCapacityThresholdPct) ? (int?)__jsonRampUpCapacityThresholdPct : _rampUpCapacityThresholdPct;} {_peakLoadBalancingAlgorithm = If( json?.PropertyT("peakLoadBalancingAlgorithm"), out var __jsonPeakLoadBalancingAlgorithm) ? (string)__jsonPeakLoadBalancingAlgorithm : (string)_peakLoadBalancingAlgorithm;} {_rampDownLoadBalancingAlgorithm = If( json?.PropertyT("rampDownLoadBalancingAlgorithm"), out var __jsonRampDownLoadBalancingAlgorithm) ? (string)__jsonRampDownLoadBalancingAlgorithm : (string)_rampDownLoadBalancingAlgorithm;} {_rampDownMinimumHostsPct = If( json?.PropertyT("rampDownMinimumHostsPct"), out var __jsonRampDownMinimumHostsPct) ? (int?)__jsonRampDownMinimumHostsPct : _rampDownMinimumHostsPct;} - {_rampDownCapacityThresholdPct = If( json?.PropertyT("rampDownCapacityThresholdPct"), out var __jsonRampDownCapacityThresholdPct) ? (int)__jsonRampDownCapacityThresholdPct : _rampDownCapacityThresholdPct;} + {_rampDownCapacityThresholdPct = If( json?.PropertyT("rampDownCapacityThresholdPct"), out var __jsonRampDownCapacityThresholdPct) ? (int?)__jsonRampDownCapacityThresholdPct : _rampDownCapacityThresholdPct;} {_rampDownForceLogoffUser = If( json?.PropertyT("rampDownForceLogoffUsers"), out var __jsonRampDownForceLogoffUsers) ? (bool?)__jsonRampDownForceLogoffUsers : _rampDownForceLogoffUser;} {_rampDownStopHostsWhen = If( json?.PropertyT("rampDownStopHostsWhen"), out var __jsonRampDownStopHostsWhen) ? (string)__jsonRampDownStopHostsWhen : (string)_rampDownStopHostsWhen;} {_rampDownWaitTimeMinute = If( json?.PropertyT("rampDownWaitTimeMinutes"), out var __jsonRampDownWaitTimeMinutes) ? (int?)__jsonRampDownWaitTimeMinutes : _rampDownWaitTimeMinute;} @@ -141,11 +141,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != (((object)this._scalingMethod)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._scalingMethod.ToString()) : null, "scalingMethod" ,container.Add ); AddIf( null != (((object)this._rampUpLoadBalancingAlgorithm)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._rampUpLoadBalancingAlgorithm.ToString()) : null, "rampUpLoadBalancingAlgorithm" ,container.Add ); AddIf( null != this._rampUpMinimumHostsPct ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._rampUpMinimumHostsPct) : null, "rampUpMinimumHostsPct" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber(this._rampUpCapacityThresholdPct), "rampUpCapacityThresholdPct" ,container.Add ); + AddIf( null != this._rampUpCapacityThresholdPct ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._rampUpCapacityThresholdPct) : null, "rampUpCapacityThresholdPct" ,container.Add ); AddIf( null != (((object)this._peakLoadBalancingAlgorithm)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._peakLoadBalancingAlgorithm.ToString()) : null, "peakLoadBalancingAlgorithm" ,container.Add ); AddIf( null != (((object)this._rampDownLoadBalancingAlgorithm)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._rampDownLoadBalancingAlgorithm.ToString()) : null, "rampDownLoadBalancingAlgorithm" ,container.Add ); AddIf( null != this._rampDownMinimumHostsPct ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._rampDownMinimumHostsPct) : null, "rampDownMinimumHostsPct" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber(this._rampDownCapacityThresholdPct), "rampDownCapacityThresholdPct" ,container.Add ); + AddIf( null != this._rampDownCapacityThresholdPct ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._rampDownCapacityThresholdPct) : null, "rampDownCapacityThresholdPct" ,container.Add ); AddIf( null != this._rampDownForceLogoffUser ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonBoolean((bool)this._rampDownForceLogoffUser) : null, "rampDownForceLogoffUsers" ,container.Add ); AddIf( null != (((object)this._rampDownStopHostsWhen)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._rampDownStopHostsWhen.ToString()) : null, "rampDownStopHostsWhen" ,container.Add ); AddIf( null != this._rampDownWaitTimeMinute ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((int)this._rampDownWaitTimeMinute) : null, "rampDownWaitTimeMinutes" ,container.Add ); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanProperties.cs index b65d8089eff3..4b1889003e20 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/ScalingPlanProperties.cs @@ -61,7 +61,7 @@ public partial class ScalingPlanProperties : /// Backing field for property. private System.Collections.Generic.List _schedule; - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Schedule { get => this._schedule; set => this._schedule = value; } @@ -149,14 +149,14 @@ public partial interface IScalingPlanProperties : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of Pooled ScalingSchedule definitions.", + Description = @"List of ScalingPlanPooledSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] System.Collections.Generic.List Schedule { get; set; } @@ -190,7 +190,7 @@ internal partial interface IScalingPlanPropertiesInternal string HostPoolType { get; set; } /// ObjectId of scaling plan. (internal use) string ObjectId { get; set; } - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. System.Collections.Generic.List Schedule { get; set; } /// Timezone of the scaling plan. string TimeZone { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.PowerShell.cs index 763b8cec1660..3a90948b07a9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Security information. + /// Security Information. [System.ComponentModel.TypeConverter(typeof(SecurityInfoPatchPropertiesTypeConverter))] public partial class SecurityInfoPatchProperties { @@ -172,7 +172,7 @@ public override string ToString() return ToJsonString(); } } - /// Security information. + /// Security Information. [System.ComponentModel.TypeConverter(typeof(SecurityInfoPatchPropertiesTypeConverter))] public partial interface ISecurityInfoPatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.cs index 6fa282893c89..4b8db4003391 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Security information. + /// Security Information. public partial class SecurityInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal @@ -23,14 +23,16 @@ public partial class SecurityInfoPatchProperties : /// Backing field for property. private string _type; - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// Backing field for property. private bool? _vTpmEnabled; - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public bool? VTpmEnabled { get => this._vTpmEnabled; set => this._vTpmEnabled = value; } @@ -40,7 +42,7 @@ public SecurityInfoPatchProperties() } } - /// Security information. + /// Security Information. public partial interface ISecurityInfoPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -55,41 +57,45 @@ public partial interface ISecurityInfoPatchProperties : SerializedName = @"secureBootEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The security type used by virtual machine in hostpool session host.", + Description = @"The security type used by virtual machine in hostpool session host. Default is Standard.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string Type { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? VTpmEnabled { get; set; } } - /// Security information. + /// Security Information. internal partial interface ISecurityInfoPatchPropertiesInternal { /// Whether to use secureBoot on the virtual machine. bool? SecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string Type { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? VTpmEnabled { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.json.cs index 572319de0959..e4a94fbdb122 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoPatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Security information. + /// Security Information. public partial class SecurityInfoPatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.PowerShell.cs index 52b5fb0abd87..798cb04b2985 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Security information. + /// Security Information. [System.ComponentModel.TypeConverter(typeof(SecurityInfoPropertiesTypeConverter))] public partial class SecurityInfoProperties { @@ -170,7 +170,7 @@ public override string ToString() return ToJsonString(); } } - /// Security information. + /// Security Information. [System.ComponentModel.TypeConverter(typeof(SecurityInfoPropertiesTypeConverter))] public partial interface ISecurityInfoProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.cs index 616dfaea96bc..233b7f83cbc9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Security information. + /// Security Information. public partial class SecurityInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal @@ -32,7 +32,7 @@ public partial class SecurityInfoProperties : /// Backing field for property. private bool? _vTpmEnabled; - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public bool? VTpmEnabled { get => this._vTpmEnabled; set => this._vTpmEnabled = value; } @@ -42,7 +42,7 @@ public SecurityInfoProperties() } } - /// Security information. + /// Security Information. public partial interface ISecurityInfoProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -71,20 +71,20 @@ public partial interface ISecurityInfoProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string Type { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? VTpmEnabled { get; set; } } - /// Security information. + /// Security Information. internal partial interface ISecurityInfoPropertiesInternal { @@ -95,7 +95,7 @@ internal partial interface ISecurityInfoPropertiesInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string Type { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? VTpmEnabled { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.json.cs index b7483c487847..5cc1b75d27aa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SecurityInfoProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Security information. + /// Security Information. public partial class SecurityInfoProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.cs index bd7c08f1b9b9..4f194c468546 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.cs @@ -14,10 +14,10 @@ public partial class SessionHost : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// Number of active sessions on SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -57,7 +57,7 @@ public partial class SessionHost : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Last heart beat from SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -72,34 +72,34 @@ public partial class SessionHost : public global::System.DateTime? LastUpdateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).LastUpdateTime; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Configuration string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostInternal.Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).SessionHostConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).SessionHostConfiguration = value ?? null; } @@ -125,12 +125,15 @@ public partial class SessionHost : /// Internal Acessors for StatusTimestamp global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostInternal.StatusTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).StatusTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).StatusTimestamp = value ?? default(global::System.DateTime); } + /// Internal Acessors for UpdateState + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostInternal.UpdateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).UpdateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).UpdateState = value ?? null; } + /// Internal Acessors for VirtualMachineId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostInternal.VirtualMachineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).VirtualMachineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).VirtualMachineId = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// The version of the OS on the session host. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -179,37 +182,37 @@ public partial class SessionHost : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -217,7 +220,7 @@ public partial class SessionHost : /// Update state of a SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] - public string UpdateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).UpdateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).UpdateState = value ?? null; } + public string UpdateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal)Property).UpdateState; } /// Virtual Machine Id of SessionHost's underlying virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -237,14 +240,14 @@ public SessionHost() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Represents a SessionHost definition. public partial interface ISessionHost : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// Number of active sessions on SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -472,15 +475,15 @@ public partial interface ISessionHost : /// Update state of a SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = false, + ReadOnly = true, Read = true, - Create = true, - Update = true, + Create = false, + Update = false, Description = @"Update state of a SessionHost.", SerializedName = @"updateState", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Initial", "Pending", "Started", "Succeeded", "Failed")] - string UpdateState { get; set; } + string UpdateState { get; } /// Virtual Machine Id of SessionHost's underlying virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -496,7 +499,7 @@ public partial interface ISessionHost : } /// Represents a SessionHost definition. internal partial interface ISessionHostInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// Number of active sessions on SessionHost. int? ActiveSession { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.json.cs index e12e011fdf02..8e877e39dee7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHost.json.cs @@ -77,7 +77,7 @@ internal SessionHost(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Ru { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.PowerShell.cs index 67509114afd7..9469d44c7be8 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. [System.ComponentModel.TypeConverter(typeof(SessionHostConfigurationTypeConverter))] public partial class SessionHostConfiguration { @@ -113,10 +113,6 @@ internal SessionHostConfiguration(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -370,10 +366,6 @@ internal SessionHostConfiguration(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -626,7 +618,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. [System.ComponentModel.TypeConverter(typeof(SessionHostConfigurationTypeConverter))] public partial interface ISessionHostConfiguration diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.cs index a982d2029eac..fa3076c11171 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.cs @@ -7,18 +7,17 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. public partial class SessionHostConfiguration : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IHeaderSerializable + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// The domain a virtual machine connected to a hostpool will join. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -38,12 +37,6 @@ public partial class SessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string AzureActiveDirectoryInfoMdmProviderGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).AzureActiveDirectoryInfoMdmProviderGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).AzureActiveDirectoryInfoMdmProviderGuid = value ?? null; } - /// Backing field for property. - private string _azureAsyncOperation; - - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } - /// Whether boot diagnostics should be enabled on the Virtual Machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? BootDiagnosticInfoEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).BootDiagnosticInfoEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).BootDiagnosticInfoEnabled = value ?? default(bool); } @@ -61,7 +54,7 @@ public partial class SessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomConfigurationScriptUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).CustomConfigurationScriptUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).CustomConfigurationScriptUrl = value ?? null; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).CustomInfoResourceId = value ?? null; } @@ -73,7 +66,7 @@ public partial class SessionHostConfiguration : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).DiffDiskSettingPlacement = value ?? null; } @@ -98,17 +91,17 @@ public partial class SessionHostConfiguration : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// The type of image session hosts use in the hostpool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ImageInfoImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ImageInfoImageType = value ; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoExactVersion = value ?? null; } @@ -120,39 +113,39 @@ public partial class SessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).MarketplaceInfoSku = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ActiveDirectoryInfoDomainCredentials Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal.ActiveDirectoryInfoDomainCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ActiveDirectoryInfoDomainCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).ActiveDirectoryInfoDomainCredentials = value ?? null /* model class */; } @@ -207,7 +200,7 @@ public partial class SessionHostConfiguration : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// /// The resource ID of the security group. Any allowable/open ports should be specified in the Network Security Group(NSG). @@ -244,7 +237,7 @@ public partial class SessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).SecurityInfoType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).SecurityInfoType = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).SecurityInfoVTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).SecurityInfoVTpmEnabled = value ?? default(bool); } @@ -252,37 +245,37 @@ public partial class SessionHostConfiguration : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// The uri to access the secret that the password is stored in. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -293,7 +286,7 @@ public partial class SessionHostConfiguration : public string VMAdminCredentialsUsernameKeyVaultSecretUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).VMAdminCredentialsUsernameKeyVaultSecretUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).VMAdminCredentialsUsernameKeyVaultSecretUri = value ; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string VMLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).VMLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).VMLocation = value ?? null; } @@ -323,15 +316,6 @@ public partial class SessionHostConfiguration : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public global::System.DateTime? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPropertiesInternal)Property).Version; } - /// - void Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader0) is string __headerAzureAsyncOperationHeader0 ? __headerAzureAsyncOperationHeader0 : (string)null; - } - } - /// Creates an new instance. public SessionHostConfiguration() { @@ -346,14 +330,14 @@ public SessionHostConfiguration() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. public partial interface ISessionHostConfiguration : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// The domain a virtual machine connected to a hostpool will join. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -401,17 +385,6 @@ public partial interface ISessionHostConfiguration : SerializedName = @"mdmProviderGuid", PossibleTypes = new [] { typeof(string) })] string AzureActiveDirectoryInfoMdmProviderGuid { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"", - SerializedName = @"Azure-AsyncOperation", - PossibleTypes = new [] { typeof(string) })] - string AzureAsyncOperation { get; set; } /// Whether boot diagnostics should be enabled on the Virtual Machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -450,14 +423,14 @@ public partial interface ISessionHostConfiguration : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -477,7 +450,7 @@ public partial interface ISessionHostConfiguration : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -485,7 +458,7 @@ public partial interface ISessionHostConfiguration : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -547,26 +520,26 @@ public partial interface ISessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -592,14 +565,14 @@ public partial interface ISessionHostConfiguration : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -664,14 +637,14 @@ public partial interface ISessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -698,7 +671,7 @@ public partial interface ISessionHostConfiguration : PossibleTypes = new [] { typeof(string) })] string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -706,7 +679,7 @@ public partial interface ISessionHostConfiguration : Read = true, Create = true, Update = true, - Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided.", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] string VMLocation { get; set; } @@ -772,9 +745,9 @@ public partial interface ISessionHostConfiguration : global::System.DateTime? Version { get; } } - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. internal partial interface ISessionHostConfigurationInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// Credentials needed to create the virtual machine. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties ActiveDirectoryInfoDomainCredentials { get; set; } @@ -788,8 +761,6 @@ internal partial interface ISessionHostConfigurationInternal : System.Collections.Generic.List AvailabilityZone { get; set; } /// The Mobile Device Management(MDM) guid. string AzureActiveDirectoryInfoMdmProviderGuid { get; set; } - - string AzureAsyncOperation { get; set; } /// Whether boot diagnostics should be enabled on the Virtual Machine. bool? BootDiagnosticInfoEnabled { get; set; } /// @@ -797,13 +768,13 @@ internal partial interface ISessionHostConfigurationInternal : /// while enabling boot diagnostics, managed storage will be used. /// string BootDiagnosticInfoStorageUri { get; set; } - /// Boot Diagnostics information. + /// Boot Diagnostics Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoProperties BootDiagnosticsInfo { get; set; } /// /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -812,14 +783,14 @@ internal partial interface ISessionHostConfigurationInternal : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } - /// Disk information. + /// Disk Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -854,16 +825,16 @@ internal partial interface ISessionHostConfigurationInternal : /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoProperties NetworkInfo { get; set; } @@ -878,7 +849,7 @@ internal partial interface ISessionHostConfigurationInternal : /// Provisioning state of the Session Host Configuration. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning")] string ProvisioningState { get; set; } - /// Security information. + /// Security Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties SecurityInfo { get; set; } /// Whether to use secureBoot on the virtual machine. bool? SecurityInfoSecureBootEnabled { get; set; } @@ -887,16 +858,16 @@ internal partial interface ISessionHostConfigurationInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties VMAdminCredentials { get; set; } /// The uri to access the secret that the password is stored in. string VMAdminCredentialsPasswordKeyVaultSecretUri { get; set; } /// The uri to access the secret that the username is stored in. string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// string VMLocation { get; set; } /// The prefix that should be associated with session host names diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.json.cs index b2891f90fad5..9b19d80884c2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfiguration.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. public partial class SessionHostConfiguration { @@ -77,7 +77,7 @@ internal SessionHostConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirt { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,7 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.cs index 26c04a2becbd..b6483ae54f3f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.cs @@ -13,20 +13,17 @@ public partial class SessionHostConfigurationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of SessionHostConfiguration definitions. + /// The SessionHostConfiguration items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public SessionHostConfigurationList() public partial interface ISessionHostConfigurationList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of SessionHostConfiguration definitions. + string NextLink { get; set; } + /// The SessionHostConfiguration items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of SessionHostConfiguration definitions.", + Description = @"The SessionHostConfiguration items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface ISessionHostConfigurationList : internal partial interface ISessionHostConfigurationListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of SessionHostConfiguration definitions. + /// The SessionHostConfiguration items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.json.cs index 1f18d4d90489..09673ddfcfb9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.PowerShell.cs index 436b66632538..212c6eef74a9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. [System.ComponentModel.TypeConverter(typeof(SessionHostConfigurationPatchTypeConverter))] public partial class SessionHostConfigurationPatch { @@ -484,7 +484,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. [System.ComponentModel.TypeConverter(typeof(SessionHostConfigurationPatchTypeConverter))] public partial interface ISessionHostConfigurationPatch diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.cs index a87194ca8113..c5b8ae7a5c5a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. public partial class SessionHostConfigurationPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchInternal @@ -36,7 +36,7 @@ public partial class SessionHostConfigurationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomConfigurationScriptUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).CustomConfigurationScriptUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).CustomConfigurationScriptUrl = value ?? null; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).CustomInfoResourceId = value ?? null; } @@ -48,7 +48,7 @@ public partial class SessionHostConfigurationPatch : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).DiffDiskSettingPlacement = value ?? null; } @@ -69,11 +69,11 @@ public partial class SessionHostConfigurationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).ImageInfoImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).ImageInfoImageType = value ?? null; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoExactVersion = value ?? null; } @@ -85,7 +85,7 @@ public partial class SessionHostConfigurationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).MarketplaceInfoSku = value ?? null; } @@ -144,7 +144,7 @@ public partial class SessionHostConfigurationPatch : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchProperties _property; - /// Detailed properties for SessionHostConfigurationPatch + /// Detailed properties for SessionHostConfiguration [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationPatchProperties()); set => this._property = value; } @@ -152,11 +152,13 @@ public partial class SessionHostConfigurationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoSecureBootEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoSecureBootEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoSecureBootEnabled = value ?? default(bool); } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoType = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoVTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).SecurityInfoVTpmEnabled = value ?? default(bool); } @@ -168,7 +170,9 @@ public partial class SessionHostConfigurationPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string VMAdminCredentialsUsernameKeyVaultSecretUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).VMAdminCredentialsUsernameKeyVaultSecretUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).VMAdminCredentialsUsernameKeyVaultSecretUri = value ?? null; } - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string VMLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).VMLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesInternal)Property).VMLocation = value ?? null; } @@ -199,7 +203,7 @@ public SessionHostConfigurationPatch() } } - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. public partial interface ISessionHostConfigurationPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -254,14 +258,14 @@ public partial interface ISessionHostConfigurationPatch : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -281,7 +285,7 @@ public partial interface ISessionHostConfigurationPatch : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -289,7 +293,7 @@ public partial interface ISessionHostConfigurationPatch : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -339,26 +343,26 @@ public partial interface ISessionHostConfigurationPatch : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -384,14 +388,14 @@ public partial interface ISessionHostConfigurationPatch : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -430,26 +434,28 @@ public partial interface ISessionHostConfigurationPatch : SerializedName = @"secureBootEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoSecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The security type used by virtual machine in hostpool session host.", + Description = @"The security type used by virtual machine in hostpool session host. Default is Standard.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -475,14 +481,16 @@ public partial interface ISessionHostConfigurationPatch : SerializedName = @"usernameKeyVaultSecretUri", PossibleTypes = new [] { typeof(string) })] string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Location for the session host to be created in", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] string VMLocation { get; set; } @@ -537,7 +545,7 @@ public partial interface ISessionHostConfigurationPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchPropertiesVMTags VMTag { get; set; } } - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. internal partial interface ISessionHostConfigurationPatchInternal { @@ -554,13 +562,13 @@ internal partial interface ISessionHostConfigurationPatchInternal /// while enabling boot diagnostics, managed storage will be used. /// string BootDiagnosticInfoStorageUri { get; set; } - /// Boot Diagnostics information. + /// Boot Diagnostics Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoPatchProperties BootDiagnosticsInfo { get; set; } /// /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -569,14 +577,14 @@ internal partial interface ISessionHostConfigurationPatchInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } - /// Disk information. + /// Disk Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -604,16 +612,16 @@ internal partial interface ISessionHostConfigurationPatchInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoPatchProperties NetworkInfo { get; set; } @@ -623,24 +631,28 @@ internal partial interface ISessionHostConfigurationPatchInternal string NetworkInfoSecurityGroupId { get; set; } /// The resource ID of the subnet. string NetworkInfoSubnetId { get; set; } - /// Detailed properties for SessionHostConfigurationPatch + /// Detailed properties for SessionHostConfiguration Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatchProperties Property { get; set; } - /// Security information. + /// Security Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchProperties SecurityInfo { get; set; } /// Whether to use secureBoot on the virtual machine. bool? SecurityInfoSecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsPatchProperties VMAdminCredentials { get; set; } /// The uri to access the secret that the password is stored in. string VMAdminCredentialsPasswordKeyVaultSecretUri { get; set; } /// The uri to access the secret that the username is stored in. string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// string VMLocation { get; set; } /// The prefix that should be associated with session host names string VMNamePrefix { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.json.cs index 84cc6fbf4e69..0fb05925f423 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatch.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. public partial class SessionHostConfigurationPatch { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatchProperties.cs index 79f1f5dc4c6f..48ecffc9f607 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationPatchProperties.cs @@ -36,7 +36,7 @@ public partial class SessionHostConfigurationPatchProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoPatchProperties _bootDiagnosticsInfo; - /// Boot Diagnostics information. + /// Boot Diagnostics Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoPatchProperties BootDiagnosticsInfo { get => (this._bootDiagnosticsInfo = this._bootDiagnosticsInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.BootDiagnosticsInfoPatchProperties()); set => this._bootDiagnosticsInfo = value; } @@ -49,7 +49,7 @@ public partial class SessionHostConfigurationPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CustomConfigurationScriptUrl { get => this._customConfigurationScriptUrl; set => this._customConfigurationScriptUrl = value; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).CustomInfoResourceId = value ?? null; } @@ -61,7 +61,7 @@ public partial class SessionHostConfigurationPatchProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement = value ?? null; } @@ -69,7 +69,7 @@ public partial class SessionHostConfigurationPatchProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties _diskInfo; - /// Disk information. + /// Disk Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get => (this._diskInfo = this._diskInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DiskInfoProperties()); set => this._diskInfo = value; } @@ -106,11 +106,11 @@ public partial class SessionHostConfigurationPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).ImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).ImageType = value ?? null; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion = value ?? null; } @@ -122,7 +122,7 @@ public partial class SessionHostConfigurationPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPatchPropertiesInternal)ImageInfo).MarketplaceInfoSku = value ?? null; } @@ -185,7 +185,7 @@ public partial class SessionHostConfigurationPatchProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchProperties _securityInfo; - /// Security information. + /// Security Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchProperties SecurityInfo { get => (this._securityInfo = this._securityInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SecurityInfoPatchProperties()); set => this._securityInfo = value; } @@ -193,18 +193,20 @@ public partial class SessionHostConfigurationPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoSecureBootEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).SecureBootEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).SecureBootEnabled = value ?? default(bool); } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).Type = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).VTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchPropertiesInternal)SecurityInfo).VTpmEnabled = value ?? default(bool); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsPatchProperties _vMAdminCredentials; - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsPatchProperties VMAdminCredentials { get => (this._vMAdminCredentials = this._vMAdminCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.KeyVaultCredentialsPatchProperties()); set => this._vMAdminCredentials = value; } @@ -219,7 +221,9 @@ public partial class SessionHostConfigurationPatchProperties : /// Backing field for property. private string _vMLocation; - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string VMLocation { get => this._vMLocation; set => this._vMLocation = value; } @@ -317,14 +321,14 @@ public partial interface ISessionHostConfigurationPatchProperties : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -344,7 +348,7 @@ public partial interface ISessionHostConfigurationPatchProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -352,7 +356,7 @@ public partial interface ISessionHostConfigurationPatchProperties : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -402,26 +406,26 @@ public partial interface ISessionHostConfigurationPatchProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -447,14 +451,14 @@ public partial interface ISessionHostConfigurationPatchProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -493,26 +497,28 @@ public partial interface ISessionHostConfigurationPatchProperties : SerializedName = @"secureBootEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoSecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The security type used by virtual machine in hostpool session host.", + Description = @"The security type used by virtual machine in hostpool session host. Default is Standard.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -538,14 +544,16 @@ public partial interface ISessionHostConfigurationPatchProperties : SerializedName = @"usernameKeyVaultSecretUri", PossibleTypes = new [] { typeof(string) })] string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Location for the session host to be created in", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] string VMLocation { get; set; } @@ -617,13 +625,13 @@ internal partial interface ISessionHostConfigurationPatchPropertiesInternal /// while enabling boot diagnostics, managed storage will be used. /// string BootDiagnosticInfoStorageUri { get; set; } - /// Boot Diagnostics information. + /// Boot Diagnostics Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoPatchProperties BootDiagnosticsInfo { get; set; } /// /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -632,14 +640,14 @@ internal partial interface ISessionHostConfigurationPatchPropertiesInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } - /// Disk information. + /// Disk Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -667,16 +675,16 @@ internal partial interface ISessionHostConfigurationPatchPropertiesInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoPatchProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoPatchProperties NetworkInfo { get; set; } @@ -686,22 +694,26 @@ internal partial interface ISessionHostConfigurationPatchPropertiesInternal string NetworkInfoSecurityGroupId { get; set; } /// The resource ID of the subnet. string NetworkInfoSubnetId { get; set; } - /// Security information. + /// Security Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPatchProperties SecurityInfo { get; set; } /// Whether to use secureBoot on the virtual machine. bool? SecurityInfoSecureBootEnabled { get; set; } - /// The security type used by virtual machine in hostpool session host. + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsPatchProperties VMAdminCredentials { get; set; } /// The uri to access the secret that the password is stored in. string VMAdminCredentialsPasswordKeyVaultSecretUri { get; set; } /// The uri to access the secret that the username is stored in. string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } - /// The Location for the session host to be created in + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// string VMLocation { get; set; } /// The prefix that should be associated with session host names string VMNamePrefix { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationProperties.cs index 5c34bbe0c380..c1df0d0a57b3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostConfigurationProperties.cs @@ -48,7 +48,7 @@ public partial class SessionHostConfigurationProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoProperties _bootDiagnosticsInfo; - /// Boot Diagnostics information. + /// Boot Diagnostics Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoProperties BootDiagnosticsInfo { get => (this._bootDiagnosticsInfo = this._bootDiagnosticsInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.BootDiagnosticsInfoProperties()); set => this._bootDiagnosticsInfo = value; } @@ -61,7 +61,7 @@ public partial class SessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CustomConfigurationScriptUrl { get => this._customConfigurationScriptUrl; set => this._customConfigurationScriptUrl = value; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CustomInfoResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).CustomInfoResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).CustomInfoResourceId = value ?? null; } @@ -73,7 +73,7 @@ public partial class SessionHostConfigurationProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string DiffDiskSettingPlacement { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).DiffDiskSettingPlacement = value ?? null; } @@ -81,7 +81,7 @@ public partial class SessionHostConfigurationProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties _diskInfo; - /// Disk information. + /// Disk Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get => (this._diskInfo = this._diskInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.DiskInfoProperties()); set => this._diskInfo = value; } @@ -122,11 +122,11 @@ public partial class SessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ImageInfoImageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).ImageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).ImageType = value ; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ManagedDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoPropertiesInternal)DiskInfo).ManagedDiskType = value ?? null; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoExactVersion = value ?? null; } @@ -138,7 +138,7 @@ public partial class SessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoPublisher = value ?? null; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string MarketplaceInfoSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IImageInfoPropertiesInternal)ImageInfo).MarketplaceInfoSku = value ?? null; } @@ -217,7 +217,7 @@ public partial class SessionHostConfigurationProperties : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties _securityInfo; - /// Security information. + /// Security Information [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties SecurityInfo { get => (this._securityInfo = this._securityInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SecurityInfoProperties()); set => this._securityInfo = value; } @@ -231,14 +231,14 @@ public partial class SessionHostConfigurationProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string SecurityInfoType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).Type = value ?? null; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public bool? SecurityInfoVTpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).VTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoPropertiesInternal)SecurityInfo).VTpmEnabled = value ?? default(bool); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties _vMAdminCredentials; - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties VMAdminCredentials { get => (this._vMAdminCredentials = this._vMAdminCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.KeyVaultCredentialsProperties()); set => this._vMAdminCredentials = value; } @@ -254,7 +254,7 @@ public partial class SessionHostConfigurationProperties : private string _vMLocation; /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string VMLocation { get => this._vMLocation; set => this._vMLocation = value; } @@ -393,14 +393,14 @@ public partial interface ISessionHostConfigurationProperties : SerializedName = @"customConfigurationScriptUrl", PossibleTypes = new [] { typeof(string) })] string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string CustomInfoResourceId { get; set; } @@ -420,7 +420,7 @@ public partial interface ISessionHostConfigurationProperties : /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -428,7 +428,7 @@ public partial interface ISessionHostConfigurationProperties : Read = true, Create = true, Update = true, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -490,26 +490,26 @@ public partial interface ISessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Marketplace", "Custom")] string ImageInfoImageType { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoExactVersion { get; set; } @@ -535,14 +535,14 @@ public partial interface ISessionHostConfigurationProperties : SerializedName = @"publisher", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] string MarketplaceInfoSku { get; set; } @@ -607,14 +607,14 @@ public partial interface ISessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(bool) })] bool? SecurityInfoVTpmEnabled { get; set; } @@ -641,7 +641,7 @@ public partial interface ISessionHostConfigurationProperties : PossibleTypes = new [] { typeof(string) })] string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -649,7 +649,7 @@ public partial interface ISessionHostConfigurationProperties : Read = true, Create = true, Update = true, - Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided.", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] string VMLocation { get; set; } @@ -738,13 +738,13 @@ internal partial interface ISessionHostConfigurationPropertiesInternal /// while enabling boot diagnostics, managed storage will be used. /// string BootDiagnosticInfoStorageUri { get; set; } - /// Boot Diagnostics information. + /// Boot Diagnostics Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IBootDiagnosticsInfoProperties BootDiagnosticsInfo { get; set; } /// /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning. /// string CustomConfigurationScriptUrl { get; set; } - /// The resource id of the custom image. + /// The resource ID of the image. string CustomInfoResourceId { get; set; } /// Specifies the ephemeral disk settings for operating system disk. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Local")] @@ -753,14 +753,14 @@ internal partial interface ISessionHostConfigurationPropertiesInternal /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] string DiffDiskSettingPlacement { get; set; } - /// Disk information. + /// Disk Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiskInfoProperties DiskInfo { get; set; } /// - /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + /// Specifies the ephemeral disk settings for the operating system disk used by the virtual machine. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDiffDiskProperties DiskInfoDiffDiskSetting { get; set; } /// The managed disk parameters. @@ -795,16 +795,16 @@ internal partial interface ISessionHostConfigurationPropertiesInternal /// The values to uniquely identify a marketplace image. Only one should be populated based on the image type. /// Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMarketplaceInfoProperties ImageInfoMarketplaceInfo { get; set; } - /// The disk type used by virtual machine in hostpool session host. + /// Managed Disk information. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] string ManagedDiskType { get; set; } - /// The exact version of the image. + /// The version of the image. string MarketplaceInfoExactVersion { get; set; } /// The offer of the image. string MarketplaceInfoOffer { get; set; } /// The publisher of the image. string MarketplaceInfoPublisher { get; set; } - /// The sku of the image. + /// The SKU of the image. string MarketplaceInfoSku { get; set; } /// Network information. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.INetworkInfoProperties NetworkInfo { get; set; } @@ -817,7 +817,7 @@ internal partial interface ISessionHostConfigurationPropertiesInternal /// Provisioning state of the Session Host Configuration. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Provisioning")] string ProvisioningState { get; set; } - /// Security information. + /// Security Information Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISecurityInfoProperties SecurityInfo { get; set; } /// Whether to use secureBoot on the virtual machine. bool? SecurityInfoSecureBootEnabled { get; set; } @@ -826,16 +826,16 @@ internal partial interface ISessionHostConfigurationPropertiesInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] string SecurityInfoType { get; set; } - /// Whether to use vTPM on the virtual machine. + /// Whether to use vTpm on the virtual machine. bool? SecurityInfoVTpmEnabled { get; set; } - /// Local Admin credentials for session hosts. + /// Local Admin credentials for session hosts." Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IKeyVaultCredentialsProperties VMAdminCredentials { get; set; } /// The uri to access the secret that the password is stored in. string VMAdminCredentialsPasswordKeyVaultSecretUri { get; set; } /// The uri to access the secret that the username is stored in. string VMAdminCredentialsUsernameKeyVaultSecretUri { get; set; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// string VMLocation { get; set; } /// The prefix that should be associated with session host names diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.cs index a43e39defc98..dbbfc44b18f3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.cs @@ -13,20 +13,17 @@ public partial class SessionHostList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of SessionHost definitions. + /// The SessionHost items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public SessionHostList() public partial interface ISessionHostList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of SessionHost definitions. + string NextLink { get; set; } + /// The SessionHost items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of SessionHost definitions.", + Description = @"The SessionHost items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface ISessionHostList : internal partial interface ISessionHostListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of SessionHost definitions. + /// The SessionHost items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.json.cs index ebd42deb5704..f6f8b799ab4d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.PowerShell.cs index 9c2a9bdf2d59..faa9d7fd9d8b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementTypeConverter))] public partial class SessionHostManagement { @@ -322,7 +322,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementTypeConverter))] public partial interface ISessionHostManagement diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.cs index b43145cc770d..7e10d9ee02b1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. public partial class SessionHostManagement : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal, @@ -82,12 +82,13 @@ public partial class SessionHostManagement : internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementProperties()); set => this._property = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPropertiesInternal)Property).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPropertiesInternal)Property).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPropertiesInternal)Property).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPropertiesInternal)Property).ProvisioningInstanceCount = value ?? default(int); } @@ -176,7 +177,7 @@ public SessionHostManagement() await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. public partial interface ISessionHostManagement : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource @@ -196,7 +197,8 @@ public partial interface ISessionHostManagement : [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("KeepAll", "KeepOne", "KeepNone")] string FailedSessionHostCleanupPolicy { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -204,19 +206,19 @@ public partial interface ISessionHostManagement : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -291,7 +293,7 @@ public partial interface ISessionHostManagement : int UpdateMaxVmsRemoved { get; set; } } - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. internal partial interface ISessionHostManagementInternal : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { @@ -305,11 +307,12 @@ internal partial interface ISessionHostManagementInternal : /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.json.cs index 1f050e5ed7c6..2073a14a4b41 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagement.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. public partial class SessionHostManagement { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.cs index d1ccae4ab769..0261e3189a0e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.cs @@ -13,20 +13,17 @@ public partial class SessionHostManagementList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of SessionHostManagement definitions. + /// The SessionHostManagement items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public SessionHostManagementList() public partial interface ISessionHostManagementList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of SessionHostManagement definitions. + string NextLink { get; set; } + /// The SessionHostManagement items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of SessionHostManagement definitions.", + Description = @"The SessionHostManagement items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface ISessionHostManagementList : internal partial interface ISessionHostManagementListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of SessionHostManagement definitions. + /// The SessionHostManagement items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.json.cs index 24b26c89580d..6c0d9b54c7d7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementOperationProgress.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementOperationProgress.cs index 2fc5105b86b7..84eae2415ac6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementOperationProgress.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementOperationProgress.cs @@ -30,7 +30,7 @@ public partial class SessionHostManagementOperationProgress : /// Backing field for property. private int? _sessionHostsInProgress; - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public int? SessionHostsInProgress { get => this._sessionHostsInProgress; set => this._sessionHostsInProgress = value; } @@ -84,14 +84,14 @@ public partial interface ISessionHostManagementOperationProgress : SerializedName = @"sessionHostsCompleted", PossibleTypes = new [] { typeof(int) })] int? SessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? SessionHostsInProgress { get; set; } @@ -131,7 +131,7 @@ internal partial interface ISessionHostManagementOperationProgressInternal global::System.DateTime? ExecutionStartTime { get; set; } /// The number of sessionHosts completed in the sessionHostManagement operation. int? SessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation int? SessionHostsInProgress { get; set; } /// /// The number of sessionHosts rollback failed in the sessionHostManagement operation. diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.PowerShell.cs index a9d7d6c9b405..e66ae5d94333 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPatchTypeConverter))] public partial class SessionHostManagementPatch { @@ -244,7 +244,7 @@ public override string ToString() return ToJsonString(); } } - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPatchTypeConverter))] public partial interface ISessionHostManagementPatch diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.cs index 7957c8c9cd39..95d3b8e103fd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. public partial class SessionHostManagementPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchInternal @@ -31,17 +31,18 @@ public partial class SessionHostManagementPatch : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchProperties _property; - /// Detailed properties for SessionHostManagementPatch + /// Detailed properties for SessionHostManagement [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementPatchProperties()); set => this._property = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).ProvisioningInstanceCount = value ?? default(int); } @@ -64,7 +65,7 @@ public partial class SessionHostManagementPatch : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? UpdateLogOffDelayMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).UpdateLogOffDelayMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).UpdateLogOffDelayMinute = value ?? default(int); } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string UpdateLogOffMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).UpdateLogOffMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal)Property).UpdateLogOffMessage = value ?? null; } @@ -78,7 +79,7 @@ public SessionHostManagementPatch() } } - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. public partial interface ISessionHostManagementPatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -97,7 +98,8 @@ public partial interface ISessionHostManagementPatch : [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("KeepAll", "KeepOne", "KeepNone")] string FailedSessionHostCleanupPolicy { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -105,19 +107,19 @@ public partial interface ISessionHostManagementPatch : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -168,14 +170,14 @@ public partial interface ISessionHostManagementPatch : SerializedName = @"logOffDelayMinutes", PossibleTypes = new [] { typeof(int) })] int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] string UpdateLogOffMessage { get; set; } @@ -192,7 +194,7 @@ public partial interface ISessionHostManagementPatch : int? UpdateMaxVmsRemoved { get; set; } } - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. internal partial interface ISessionHostManagementPatchInternal { @@ -201,16 +203,17 @@ internal partial interface ISessionHostManagementPatchInternal /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("KeepAll", "KeepOne", "KeepNone")] string FailedSessionHostCleanupPolicy { get; set; } - /// Detailed properties for SessionHostManagementPatch + /// Detailed properties for SessionHostManagement Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchProperties Property { get; set; } /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } @@ -225,7 +228,7 @@ internal partial interface ISessionHostManagementPatchInternal bool? UpdateDeleteOriginalVM { get; set; } /// Grace period before logging off users in minutes. int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. string UpdateLogOffMessage { get; set; } /// The maximum number of virtual machines to be removed during hostpool update. int? UpdateMaxVmsRemoved { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.json.cs index 668f5ca67b03..ac5efe435461 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatch.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. public partial class SessionHostManagementPatch { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.PowerShell.cs index 70e348745d00..942537d36764 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPatchPropertiesTypeConverter))] public partial class SessionHostManagementPatchProperties { @@ -238,7 +238,7 @@ public override string ToString() return ToJsonString(); } } - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPatchPropertiesTypeConverter))] public partial interface ISessionHostManagementPatchProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.cs index 61539e633fb6..108ceac351d0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. public partial class SessionHostManagementPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatchPropertiesInternal @@ -36,12 +36,13 @@ public partial class SessionHostManagementPatchProperties : internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchProperties Provisioning { get => (this._provisioning = this._provisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostProvisioningConfigurationPatchProperties()); set => this._provisioning = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchPropertiesInternal)Provisioning).CanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchPropertiesInternal)Provisioning).CanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchPropertiesInternal)Provisioning).InstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchPropertiesInternal)Provisioning).InstanceCount = value ?? default(int); } @@ -74,7 +75,7 @@ public partial class SessionHostManagementPatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? UpdateLogOffDelayMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffDelayMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffDelayMinute = value ?? default(int); } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string UpdateLogOffMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffMessage = value ?? null; } @@ -88,7 +89,7 @@ public SessionHostManagementPatchProperties() } } - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. public partial interface ISessionHostManagementPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -107,7 +108,8 @@ public partial interface ISessionHostManagementPatchProperties : [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("KeepAll", "KeepOne", "KeepNone")] string FailedSessionHostCleanupPolicy { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -115,19 +117,19 @@ public partial interface ISessionHostManagementPatchProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -178,14 +180,14 @@ public partial interface ISessionHostManagementPatchProperties : SerializedName = @"logOffDelayMinutes", PossibleTypes = new [] { typeof(int) })] int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] string UpdateLogOffMessage { get; set; } @@ -202,7 +204,7 @@ public partial interface ISessionHostManagementPatchProperties : int? UpdateMaxVmsRemoved { get; set; } } - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. internal partial interface ISessionHostManagementPatchPropertiesInternal { @@ -214,11 +216,12 @@ internal partial interface ISessionHostManagementPatchPropertiesInternal /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPatchProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } @@ -233,7 +236,7 @@ internal partial interface ISessionHostManagementPatchPropertiesInternal bool? UpdateDeleteOriginalVM { get; set; } /// Grace period before logging off users in minutes. int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. string UpdateLogOffMessage { get; set; } /// The maximum number of virtual machines to be removed during hostpool update. int? UpdateMaxVmsRemoved { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.json.cs index a570093329d3..aa8d394b4a9f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementPatchProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host Managements of HostPool. + /// Represents a SessionHostManagementPatch definition. public partial class SessionHostManagementPatchProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.PowerShell.cs index d8ebe1268aea..59dba65bf9bc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPropertiesTypeConverter))] public partial class SessionHostManagementProperties { @@ -236,7 +236,7 @@ public override string ToString() return ToJsonString(); } } - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementPropertiesTypeConverter))] public partial interface ISessionHostManagementProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.cs index 5c94d7bd299b..c91c8587d720 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. public partial class SessionHostManagementProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPropertiesInternal @@ -36,12 +36,13 @@ public partial class SessionHostManagementProperties : internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get => (this._provisioning = this._provisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostProvisioningConfigurationProperties()); set => this._provisioning = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPropertiesInternal)Provisioning).CanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPropertiesInternal)Provisioning).CanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPropertiesInternal)Provisioning).InstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationPropertiesInternal)Provisioning).InstanceCount = value ?? default(int); } @@ -88,7 +89,7 @@ public SessionHostManagementProperties() } } - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. public partial interface ISessionHostManagementProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -107,7 +108,8 @@ public partial interface ISessionHostManagementProperties : [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("KeepAll", "KeepOne", "KeepNone")] string FailedSessionHostCleanupPolicy { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -115,19 +117,19 @@ public partial interface ISessionHostManagementProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -202,7 +204,7 @@ public partial interface ISessionHostManagementProperties : int UpdateMaxVmsRemoved { get; set; } } - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. internal partial interface ISessionHostManagementPropertiesInternal { @@ -214,11 +216,12 @@ internal partial interface ISessionHostManagementPropertiesInternal /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.json.cs index 5780781b4fff..63d4398b57c1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Session host Managements of HostPool. + /// Session Host Managements of HostPool. public partial class SessionHostManagementProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningOperationProgress.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningOperationProgress.cs index 9451bad52823..548978385e68 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningOperationProgress.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningOperationProgress.cs @@ -47,7 +47,7 @@ public partial class SessionHostManagementProvisioningOperationProgress : private int? _sessionHostsInProgress; /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public int? SessionHostsInProgress { get => this._sessionHostsInProgress; set => this._sessionHostsInProgress = value; } @@ -111,7 +111,7 @@ public partial interface ISessionHostManagementProvisioningOperationProgress : PossibleTypes = new [] { typeof(int) })] int? SessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -119,7 +119,7 @@ public partial interface ISessionHostManagementProvisioningOperationProgress : Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? SessionHostsInProgress { get; set; } @@ -140,7 +140,7 @@ internal partial interface ISessionHostManagementProvisioningOperationProgressIn /// int? SessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// int? SessionHostsInProgress { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.PowerShell.cs index 95b4c015ae64..73b37127b715 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementProvisioningStatusTypeConverter))] public partial class SessionHostManagementProvisioningStatus { @@ -130,13 +130,9 @@ internal SessionHostManagementProvisioningStatus(global::System.Collections.IDic { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status, global::System.Convert.ToString); - } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete = (double?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("StartTime")) { @@ -146,6 +142,10 @@ internal SessionHostManagementProvisioningStatus(global::System.Collections.IDic { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status, global::System.Convert.ToString); + } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Code, global::System.Convert.ToString); @@ -323,13 +323,9 @@ internal SessionHostManagementProvisioningStatus(global::System.Management.Autom { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status, global::System.Convert.ToString); - } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete = (double?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).PercentComplete, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("StartTime")) { @@ -339,6 +335,10 @@ internal SessionHostManagementProvisioningStatus(global::System.Management.Autom { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Status, global::System.Convert.ToString); + } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal)this).Code, global::System.Convert.ToString); @@ -503,7 +503,7 @@ public override string ToString() return ToJsonString(); } } - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementProvisioningStatusTypeConverter))] public partial interface ISessionHostManagementProvisioningStatus diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.cs index c96dbae9960e..24b017d44c4e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial class SessionHostManagementProvisioningStatus : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatus, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusInternal @@ -137,11 +137,11 @@ public partial class SessionHostManagementProvisioningStatus : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private float? _percentComplete; + private double? _percentComplete; /// Percent of the operation that is complete. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public float? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } + public double? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } /// Time that the sessionHostManagement operation was created. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -162,7 +162,7 @@ public partial class SessionHostManagementProvisioningStatus : public int? ProgressSessionHostsCompleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProgressSessionHostsCompleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProgressSessionHostsCompleted = value ?? default(int); } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProgressSessionHostsInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProgressSessionHostsInProgress = value ?? default(int); } @@ -175,12 +175,13 @@ public partial class SessionHostManagementProvisioningStatus : internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementProvisioningStatusProperties()); set => this._property = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatusPropertiesInternal)Property).ProvisioningInstanceCount = value ?? default(int); } @@ -283,7 +284,7 @@ public SessionHostManagementProvisioningStatus() } } - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial interface ISessionHostManagementProvisioningStatus : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -398,8 +399,8 @@ public partial interface ISessionHostManagementProvisioningStatus : Update = true, Description = @"Percent of the operation that is complete.", SerializedName = @"percentComplete", - PossibleTypes = new [] { typeof(float) })] - float? PercentComplete { get; set; } + PossibleTypes = new [] { typeof(double) })] + double? PercentComplete { get; set; } /// Time that the sessionHostManagement operation was created. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -447,7 +448,7 @@ public partial interface ISessionHostManagementProvisioningStatus : PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -455,12 +456,13 @@ public partial interface ISessionHostManagementProvisioningStatus : Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsInProgress { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -468,19 +470,19 @@ public partial interface ISessionHostManagementProvisioningStatus : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -705,7 +707,7 @@ public partial interface ISessionHostManagementProvisioningStatus : int? UpdateMaxVmsRemoved { get; set; } } - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. internal partial interface ISessionHostManagementProvisioningStatusInternal { @@ -733,7 +735,7 @@ internal partial interface ISessionHostManagementProvisioningStatusInternal /// Name of the async operation. string Name { get; set; } /// Percent of the operation that is complete. - float? PercentComplete { get; set; } + double? PercentComplete { get; set; } /// Progress information on the sessionHostManagement operation. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningOperationProgress Progress { get; set; } /// Time that the sessionHostManagement operation was created. @@ -747,7 +749,7 @@ internal partial interface ISessionHostManagementProvisioningStatusInternal /// int? ProgressSessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// int? ProgressSessionHostsInProgress { get; set; } /// The custom properties of the SessionHost Provisioning Status. @@ -755,11 +757,12 @@ internal partial interface ISessionHostManagementProvisioningStatusInternal /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.json.cs index 7a9c646db22b..b22df48b39ac 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatus.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// The current status of the session host provisioning async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial class SessionHostManagementProvisioningStatus { @@ -81,10 +81,10 @@ internal SessionHostManagementProvisioningStatus(Microsoft.Azure.PowerShell.Cmdl {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementProvisioningStatusProperties.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;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} - {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (float?)__jsonPercentComplete : _percentComplete;} + {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (double?)__jsonPercentComplete : _percentComplete;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : _startTime : _startTime;} {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : _endTime : _endTime;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} AfterFromJson(json); } @@ -113,13 +113,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((double)this._percentComplete) : null, "percentComplete" ,container.Add ); + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); } - AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((float)this._percentComplete) : null, "percentComplete" ,container.Add ); - AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); - AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatusProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatusProperties.cs index 5dbb4cc01a43..9b028d8622d5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatusProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementProvisioningStatusProperties.cs @@ -97,18 +97,19 @@ public partial class SessionHostManagementProvisioningStatusProperties : public int? ProgressSessionHostsCompleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningOperationProgressInternal)Progress).SessionHostsCompleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningOperationProgressInternal)Progress).SessionHostsCompleted = value ?? default(int); } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningOperationProgressInternal)Progress).SessionHostsInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningOperationProgressInternal)Progress).SessionHostsInProgress = value ?? default(int); } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningInstanceCount = value ?? default(int); } @@ -277,7 +278,7 @@ public partial interface ISessionHostManagementProvisioningStatusProperties : PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -285,12 +286,13 @@ public partial interface ISessionHostManagementProvisioningStatusProperties : Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement provisioning operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsInProgress { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -298,19 +300,19 @@ public partial interface ISessionHostManagementProvisioningStatusProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -525,17 +527,18 @@ internal partial interface ISessionHostManagementProvisioningStatusPropertiesInt /// int? ProgressSessionHostsCompleted { get; set; } /// - /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation. + /// The number of sessionHosts in progress in the sessionHostManagement provisioning operation /// int? ProgressSessionHostsInProgress { get; set; } /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.PowerShell.cs index 9d9cc9d40401..118d9581a2b7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementUpdateStatusTypeConverter))] public partial class SessionHostManagementUpdateStatus { @@ -129,13 +129,9 @@ internal SessionHostManagementUpdateStatus(global::System.Collections.IDictionar { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status, global::System.Convert.ToString); - } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete = (double?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("StartTime")) { @@ -145,6 +141,10 @@ internal SessionHostManagementUpdateStatus(global::System.Collections.IDictionar { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status, global::System.Convert.ToString); + } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Code, global::System.Convert.ToString); @@ -322,13 +322,9 @@ internal SessionHostManagementUpdateStatus(global::System.Management.Automation. { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status, global::System.Convert.ToString); - } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete = (double?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).PercentComplete, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("StartTime")) { @@ -338,6 +334,10 @@ internal SessionHostManagementUpdateStatus(global::System.Management.Automation. { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Status, global::System.Convert.ToString); + } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal)this).Code, global::System.Convert.ToString); @@ -502,7 +502,7 @@ public override string ToString() return ToJsonString(); } } - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementUpdateStatusTypeConverter))] public partial interface ISessionHostManagementUpdateStatus diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.cs index e25930d46738..9aaec537532a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial class SessionHostManagementUpdateStatus : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusInternal @@ -21,7 +21,7 @@ public partial class SessionHostManagementUpdateStatus : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorDetailInternal)Error).Code; } - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string CorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).CorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).CorrelationId = value ?? null; } @@ -137,11 +137,11 @@ public partial class SessionHostManagementUpdateStatus : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private float? _percentComplete; + private double? _percentComplete; /// Percent of the operation that is complete. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public float? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } + public double? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } /// Time that the sessionHostManagement operation was created. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -151,7 +151,7 @@ public partial class SessionHostManagementUpdateStatus : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsCompleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProgressSessionHostsCompleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProgressSessionHostsCompleted = value ?? default(int); } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProgressSessionHostsInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProgressSessionHostsInProgress = value ?? default(int); } @@ -170,17 +170,18 @@ public partial class SessionHostManagementUpdateStatus : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusProperties _property; - /// The custom properties of the SessionHost Update Status. + /// Properties bag for sessionHostManagement Update Statuses. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementUpdateStatusProperties()); set => this._property = value; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal)Property).ProvisioningInstanceCount = value ?? default(int); } @@ -253,7 +254,10 @@ public partial class SessionHostManagementUpdateStatus : /// Backing field for property. private string _status; - /// Operation status + /// + /// Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate + /// | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string Status { get => this._status; } @@ -283,7 +287,7 @@ public SessionHostManagementUpdateStatus() } } - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial interface ISessionHostManagementUpdateStatus : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -309,14 +313,14 @@ public partial interface ISessionHostManagementUpdateStatus : SerializedName = @"code", PossibleTypes = new [] { typeof(string) })] string Code { get; } - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The correlation Id for Log Analytics.", + Description = @"The correlation Id for Log Analytics..", SerializedName = @"correlationId", PossibleTypes = new [] { typeof(string) })] string CorrelationId { get; set; } @@ -398,8 +402,8 @@ public partial interface ISessionHostManagementUpdateStatus : Update = true, Description = @"Percent of the operation that is complete.", SerializedName = @"percentComplete", - PossibleTypes = new [] { typeof(float) })] - float? PercentComplete { get; set; } + PossibleTypes = new [] { typeof(double) })] + double? PercentComplete { get; set; } /// Time that the sessionHostManagement operation was created. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -422,14 +426,14 @@ public partial interface ISessionHostManagementUpdateStatus : SerializedName = @"sessionHostsCompleted", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsInProgress { get; set; } @@ -460,7 +464,8 @@ public partial interface ISessionHostManagementUpdateStatus : PossibleTypes = new [] { typeof(int) })] int? ProgressTotalSessionHost { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -468,19 +473,19 @@ public partial interface ISessionHostManagementUpdateStatus : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -636,17 +641,20 @@ public partial interface ISessionHostManagementUpdateStatus : SerializedName = @"startTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? StartTime { get; set; } - /// Operation status + /// + /// Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate + /// | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled + /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Operation status", + Description = @"Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled", SerializedName = @"status", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Error", "Scheduled", "UpdatingSessionHosts", "ValidatingSessionHostUpdate", "Paused", "Pausing", "Cancelling", "Succeeded", "Failed", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Error", "Scheduled", "UpdatingSessionHosts", "ValidatingSessionHostUpdate", "Paused", "Pausing", "Cancelling", "Succeeded", "Failed", "Cancelled")] string Status { get; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -705,7 +713,7 @@ public partial interface ISessionHostManagementUpdateStatus : int? UpdateMaxVmsRemoved { get; set; } } - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. internal partial interface ISessionHostManagementUpdateStatusInternal { @@ -713,7 +721,7 @@ internal partial interface ISessionHostManagementUpdateStatusInternal System.Collections.Generic.List AdditionalInfo { get; set; } /// The error code. string Code { get; set; } - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. string CorrelationId { get; set; } /// The error details. System.Collections.Generic.List Detail { get; set; } @@ -733,14 +741,14 @@ internal partial interface ISessionHostManagementUpdateStatusInternal /// Name of the async operation. string Name { get; set; } /// Percent of the operation that is complete. - float? PercentComplete { get; set; } + double? PercentComplete { get; set; } /// Progress information on the sessionHostManagement operation. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgress Progress { get; set; } /// Time that the sessionHostManagement operation was created. global::System.DateTime? ProgressExecutionStartTime { get; set; } /// The number of sessionHosts completed in the sessionHostManagement operation. int? ProgressSessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation int? ProgressSessionHostsInProgress { get; set; } /// /// The number of sessionHosts rollback failed in the sessionHostManagement operation. @@ -750,16 +758,17 @@ internal partial interface ISessionHostManagementUpdateStatusInternal /// The number of sessionHosts to be started in the sessionHostManagement operation. /// int? ProgressTotalSessionHost { get; set; } - /// The custom properties of the SessionHost Update Status. + /// Properties bag for sessionHostManagement Update Statuses. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusProperties Property { get; set; } /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } @@ -804,8 +813,11 @@ internal partial interface ISessionHostManagementUpdateStatusInternal string SessionHostManagementType { get; set; } /// The start time of the operation. global::System.DateTime? StartTime { get; set; } - /// Operation status - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Error", "Scheduled", "UpdatingSessionHosts", "ValidatingSessionHostUpdate", "Paused", "Pausing", "Cancelling", "Succeeded", "Failed", "Canceled")] + /// + /// Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate + /// | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Error", "Scheduled", "UpdatingSessionHosts", "ValidatingSessionHostUpdate", "Paused", "Pausing", "Cancelling", "Succeeded", "Failed", "Cancelled")] string Status { get; set; } /// The error target. string Target { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.json.cs index 68679967cacf..81b044c8ec10 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatus.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// The current status of the session host update async operation. + /// Schema for SessionHostManagementUpdateStatus properties. public partial class SessionHostManagementUpdateStatus { @@ -81,10 +81,10 @@ internal SessionHostManagementUpdateStatus(Microsoft.Azure.PowerShell.Cmdlets.De {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementUpdateStatusProperties.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;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} - {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (float?)__jsonPercentComplete : _percentComplete;} + {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (double?)__jsonPercentComplete : _percentComplete;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : _startTime : _startTime;} {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : _endTime : _endTime;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} AfterFromJson(json); } @@ -111,13 +111,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((double)this._percentComplete) : null, "percentComplete" ,container.Add ); + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); } - AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNumber((float)this._percentComplete) : null, "percentComplete" ,container.Add ); - AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); - AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.PowerShell.cs index 9a7ff7efe107..dd5fd7f8bc97 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementUpdateStatusPropertiesTypeConverter))] public partial class SessionHostManagementUpdateStatusProperties { @@ -399,7 +399,7 @@ public override string ToString() return ToJsonString(); } } - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. [System.ComponentModel.TypeConverter(typeof(SessionHostManagementUpdateStatusPropertiesTypeConverter))] public partial interface ISessionHostManagementUpdateStatusProperties diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.cs index fb64c03582f7..0216b616b7e5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. public partial class SessionHostManagementUpdateStatusProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusProperties, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatusPropertiesInternal @@ -16,7 +16,7 @@ public partial class SessionHostManagementUpdateStatusProperties : /// Backing field for property. private string _correlationId; - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CorrelationId { get => this._correlationId; set => this._correlationId = value; } @@ -86,7 +86,7 @@ public partial class SessionHostManagementUpdateStatusProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsCompleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).SessionHostsCompleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).SessionHostsCompleted = value ?? default(int); } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProgressSessionHostsInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).SessionHostsInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).SessionHostsInProgress = value ?? default(int); } @@ -103,12 +103,13 @@ public partial class SessionHostManagementUpdateStatusProperties : public int? ProgressTotalSessionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).TotalSessionHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementOperationProgressInternal)Progress).TotalSessionHost = value ?? default(int); } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ProvisioningCanaryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningCanaryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningCanaryPolicy = value ?? null; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? ProvisioningInstanceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningInstanceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementInternal)SessionHostManagement).ProvisioningInstanceCount = value ?? default(int); } @@ -201,18 +202,18 @@ public SessionHostManagementUpdateStatusProperties() } } - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. public partial interface ISessionHostManagementUpdateStatusProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The correlation Id for Log Analytics.", + Description = @"The correlation Id for Log Analytics..", SerializedName = @"correlationId", PossibleTypes = new [] { typeof(string) })] string CorrelationId { get; set; } @@ -252,14 +253,14 @@ public partial interface ISessionHostManagementUpdateStatusProperties : SerializedName = @"sessionHostsCompleted", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The number of sessionHosts in progress in the sessionHostManagement operation.", + Description = @"The number of sessionHosts in progress in the sessionHostManagement operation", SerializedName = @"sessionHostsInProgress", PossibleTypes = new [] { typeof(int) })] int? ProgressSessionHostsInProgress { get; set; } @@ -290,7 +291,8 @@ public partial interface ISessionHostManagementUpdateStatusProperties : PossibleTypes = new [] { typeof(int) })] int? ProgressTotalSessionHost { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -298,19 +300,19 @@ public partial interface ISessionHostManagementUpdateStatusProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? ProvisioningInstanceCount { get; set; } @@ -501,11 +503,11 @@ public partial interface ISessionHostManagementUpdateStatusProperties : int? UpdateMaxVmsRemoved { get; set; } } - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. internal partial interface ISessionHostManagementUpdateStatusPropertiesInternal { - /// The correlation Id for Log Analytics. + /// The correlation Id for Log Analytics.. string CorrelationId { get; set; } /// /// The policy that should be applied when the Session Host provisioning operation fails. @@ -518,7 +520,7 @@ internal partial interface ISessionHostManagementUpdateStatusPropertiesInternal global::System.DateTime? ProgressExecutionStartTime { get; set; } /// The number of sessionHosts completed in the sessionHostManagement operation. int? ProgressSessionHostsCompleted { get; set; } - /// The number of sessionHosts in progress in the sessionHostManagement operation. + /// The number of sessionHosts in progress in the sessionHostManagement operation int? ProgressSessionHostsInProgress { get; set; } /// /// The number of sessionHosts rollback failed in the sessionHostManagement operation. @@ -531,11 +533,12 @@ internal partial interface ISessionHostManagementUpdateStatusPropertiesInternal /// Parameters that apply when session hosts are provisioned. Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostProvisioningConfigurationProperties Provisioning { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string ProvisioningCanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? ProvisioningInstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? ProvisioningSetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.json.cs index 4d58be85ee73..4f298e017835 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostManagementUpdateStatusProperties.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Properties bag for sessionHostManagement Update Statuses. + /// The current status of the session host update async operation. public partial class SessionHostManagementUpdateStatusProperties { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.cs index a241145fdd18..85abfda1fc56 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.cs @@ -97,6 +97,9 @@ public partial class SessionHostProperties : /// Internal Acessors for StatusTimestamp global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal.StatusTimestamp { get => this._statusTimestamp; set { {_statusTimestamp = value;} } } + /// Internal Acessors for UpdateState + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal.UpdateState { get => this._updateState; set { {_updateState = value;} } } + /// Internal Acessors for VirtualMachineId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostPropertiesInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } } @@ -184,7 +187,7 @@ public partial class SessionHostProperties : /// Update state of a SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string UpdateState { get => this._updateState; set => this._updateState = value; } + public string UpdateState { get => this._updateState; } /// Backing field for property. private string _virtualMachineId; @@ -429,15 +432,15 @@ public partial interface ISessionHostProperties : /// Update state of a SessionHost. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = false, + ReadOnly = true, Read = true, - Create = true, - Update = true, + Create = false, + Update = false, Description = @"Update state of a SessionHost.", SerializedName = @"updateState", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Initial", "Pending", "Started", "Succeeded", "Failed")] - string UpdateState { get; set; } + string UpdateState { get; } /// Virtual Machine Id of SessionHost's underlying virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.json.cs index 45dedb063eee..5406f12a3a17 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProperties.json.cs @@ -149,7 +149,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } AddIf( null != (((object)this._oSVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._oSVersion.ToString()) : null, "osVersion" ,container.Add ); AddIf( null != (((object)this._sxSStackVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._sxSStackVersion.ToString()) : null, "sxSStackVersion" ,container.Add ); - AddIf( null != (((object)this._updateState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._updateState.ToString()) : null, "updateState" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._updateState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._updateState.ToString()) : null, "updateState" ,container.Add ); + } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) { AddIf( null != this._lastUpdateTime ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._lastUpdateTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastUpdateTime" ,container.Add ); diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationPatchProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationPatchProperties.cs index 13e676e71323..ef0a380c85f3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationPatchProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationPatchProperties.cs @@ -17,7 +17,8 @@ public partial class SessionHostProvisioningConfigurationPatchProperties : private string _canaryPolicy; /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CanaryPolicy { get => this._canaryPolicy; set => this._canaryPolicy = value; } @@ -25,7 +26,7 @@ public partial class SessionHostProvisioningConfigurationPatchProperties : /// Backing field for property. private int? _instanceCount; - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public int? InstanceCount { get => this._instanceCount; set => this._instanceCount = value; } @@ -49,7 +50,8 @@ public partial interface ISessionHostProvisioningConfigurationPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -57,19 +59,19 @@ public partial interface ISessionHostProvisioningConfigurationPatchProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string CanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? InstanceCount { get; set; } @@ -91,11 +93,12 @@ internal partial interface ISessionHostProvisioningConfigurationPatchPropertiesI { /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string CanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? InstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? SetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationProperties.cs index fee7fa7d8303..9b3f099263cf 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/SessionHostProvisioningConfigurationProperties.cs @@ -17,7 +17,8 @@ public partial class SessionHostProvisioningConfigurationProperties : private string _canaryPolicy; /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string CanaryPolicy { get => this._canaryPolicy; set => this._canaryPolicy = value; } @@ -25,7 +26,7 @@ public partial class SessionHostProvisioningConfigurationProperties : /// Backing field for property. private int? _instanceCount; - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public int? InstanceCount { get => this._instanceCount; set => this._instanceCount = value; } @@ -49,7 +50,8 @@ public partial interface ISessionHostProvisioningConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -57,19 +59,19 @@ public partial interface ISessionHostProvisioningConfigurationProperties : Read = true, Create = true, Update = true, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string CanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] int? InstanceCount { get; set; } @@ -91,11 +93,12 @@ internal partial interface ISessionHostProvisioningConfigurationPropertiesIntern { /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] string CanaryPolicy { get; set; } - /// the number of session hosts to exist in the Host Pool. + /// The number of session hosts to exist in the Host Pool. int? InstanceCount { get; set; } /// Whether the session host should be set in drain mode following provisioning. bool? SetDrainMode { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.cs index a28a790e4a65..2b4b05db17cb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.cs @@ -13,20 +13,17 @@ public partial class StartMenuItemList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IStartMenuItemListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IStartMenuItemListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of StartMenuItem definitions. + /// The StartMenuItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public StartMenuItemList() public partial interface IStartMenuItemList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of StartMenuItem definitions. + string NextLink { get; set; } + /// The StartMenuItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of StartMenuItem definitions.", + Description = @"The StartMenuItem items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IStartMenuItem) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IStartMenuItemList : internal partial interface IStartMenuItemListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of StartMenuItem definitions. + /// The StartMenuItem items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.json.cs index fe8d3eb00e85..38d66df9e572 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/StartMenuItemList.json.cs @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UpdateSessionHostsRequestBody.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UpdateSessionHostsRequestBody.cs index 62eb723f2974..86ca13f34711 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UpdateSessionHostsRequestBody.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UpdateSessionHostsRequestBody.cs @@ -54,7 +54,7 @@ public partial class UpdateSessionHostsRequestBody : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public int? UpdateLogOffDelayMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffDelayMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffDelayMinute = value ?? default(int); } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string UpdateLogOffMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateConfigurationPatchPropertiesInternal)Update).LogOffMessage = value ?? null; } @@ -120,14 +120,14 @@ public partial interface IUpdateSessionHostsRequestBody : SerializedName = @"logOffDelayMinutes", PossibleTypes = new [] { typeof(int) })] int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] string UpdateLogOffMessage { get; set; } @@ -165,7 +165,7 @@ internal partial interface IUpdateSessionHostsRequestBodyInternal bool? UpdateDeleteOriginalVM { get; set; } /// Grace period before logging off users in minutes. int? UpdateLogOffDelayMinute { get; set; } - /// Log off message sent to user for logoff. + /// Log off message sent to user for logoff. Default value is an empty string. string UpdateLogOffMessage { get; set; } /// The maximum number of virtual machines to be removed during hostpool update. int? UpdateMaxVmsRemoved { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.cs index c724641351cf..35e726e0bb7c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.cs @@ -14,10 +14,10 @@ public partial class UserSession : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(); /// The active directory user name. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -35,37 +35,37 @@ public partial class UserSession : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ObjectId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSessionInternal.ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSessionPropertiesInternal)Property).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSessionPropertiesInternal)Property).ObjectId = value ?? null; } @@ -75,7 +75,7 @@ public partial class UserSession : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Name; } /// ObjectId of user session. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -100,37 +100,37 @@ public partial class UserSession : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__proxyResource).Type; } /// The user principal name. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -150,14 +150,14 @@ public UserSession() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Represents a UserSession definition. public partial interface IUserSession : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResource { /// The active directory user name. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -231,7 +231,7 @@ public partial interface IUserSession : } /// Represents a UserSession definition. internal partial interface IUserSessionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IProxyResourceInternal { /// The active directory user name. string ActiveDirectoryUserName { get; set; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.json.cs index f1155efac48d..5fd1dd9cfc0b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSession.json.cs @@ -84,7 +84,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; @@ -102,7 +102,7 @@ internal UserSession(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Ru { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.UserSessionProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.cs index f30d2dc8f75b..2b03ad02ce9d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.cs @@ -13,20 +13,17 @@ public partial class UserSessionList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSessionListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSessionListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of UserSession definitions. + /// The UserSession items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public UserSessionList() public partial interface IUserSessionList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of UserSession definitions. + string NextLink { get; set; } + /// The UserSession items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of UserSession definitions.", + Description = @"The UserSession items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IUserSessionList : internal partial interface IUserSessionListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of UserSession definitions. + /// The UserSession items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.json.cs index 774491cd283f..2f3c32a50483 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/UserSessionList.json.cs @@ -93,10 +93,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.PowerShell.cs index f874abbe372f..068351a50ed3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.PowerShell.cs @@ -130,6 +130,30 @@ internal Workspace(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspacePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -178,85 +202,45 @@ internal Workspace(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -286,6 +270,26 @@ internal Workspace(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializeDictionary(content); } @@ -307,6 +311,30 @@ internal Workspace(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspacePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Plan")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).Kind, global::System.Convert.ToString); + } + if (content.Contains("ManagedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).ManagedBy, global::System.Convert.ToString); + } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); @@ -355,85 +383,45 @@ internal Workspace(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuTier, global::System.Convert.ToString); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } if (content.Contains("PlanName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanName, global::System.Convert.ToString); } if (content.Contains("PlanPublisher")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPublisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPublisher = (string) content.GetValueForProperty("PlanPublisher",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPublisher, global::System.Convert.ToString); } if (content.Contains("PlanProduct")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanProduct, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanProduct = (string) content.GetValueForProperty("PlanProduct",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanProduct, global::System.Convert.ToString); } if (content.Contains("PlanPromotionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanPromotionCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPromotionCode = (string) content.GetValueForProperty("PlanPromotionCode",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanPromotionCode, global::System.Convert.ToString); } if (content.Contains("PlanVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).PlanVersion, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanVersion = (string) content.GetValueForProperty("PlanVersion",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PlanVersion, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuName, global::System.Convert.ToString); } - if (content.Contains("Plan")) + if (content.Contains("SkuTier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan) content.GetValueForProperty("Plan",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Plan, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PlanTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuTier, global::System.Convert.ToString); } - if (content.Contains("ManagedBy")) + if (content.Contains("SkuSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy = (string) content.GetValueForProperty("ManagedBy",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).ManagedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuSize, global::System.Convert.ToString); } - if (content.Contains("Kind")) + if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuFamily, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SkuCapacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ObjectId")) { @@ -463,6 +451,26 @@ internal Workspace(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).OboTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializePSObject(content); } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.cs index 28574e23a1e5..e42c2a6f2b6c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.cs @@ -14,10 +14,10 @@ public partial class Workspace : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(); + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(); /// List of applicationGroup resource Ids. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -31,14 +31,16 @@ public partial class Workspace : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).Description = value ?? null; } + /// Backing field for property. + private string _etag; + /// - /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the - /// normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 - /// uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - /// 14.27) header fields. + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } /// Friendly name of Workspace. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -48,153 +50,169 @@ public partial class Workspace : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; } - /// Managed service identity (system assigned and/or user assigned identities) - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity _identity; + + /// The managed service identities assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set => this._identity = value; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityType = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).Type = value ?? null; } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. /// The dictionary values can be empty objects ({}) in requests. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityUserAssignedIdentity = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Backing field for property. + private string _kind; /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Kind = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string Kind { get => this._kind; set => this._kind = value; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + + /// Backing field for property. + private string _managedBy; /// /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template /// since it is managed by another resource. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string ManagedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).ManagedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string ManagedBy { get => this._managedBy; set => this._managedBy = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type = value ?? null; } + + /// Internal Acessors for CloudPcResource + bool? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.CloudPcResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).CloudPcResource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).CloudPcResource = value ?? default(bool); } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Etag = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Identity = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityPrincipalId = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).IdentityTenantId = value ?? null; } - - /// Internal Acessors for Plan - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } - - /// Internal Acessors for CloudPcResource - bool? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.CloudPcResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).CloudPcResource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).CloudPcResource = value ?? default(bool); } + string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for ObjectId string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).ObjectId = value ?? null; } + /// Internal Acessors for Plan + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set { {_plan = value;} } } + /// Internal Acessors for PrivateEndpointConnection System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceProperties Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspaceProperties()); set { {_property = value;} } } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set { {_sku = value;} } } + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Name; } /// ObjectId of Workspace. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] public string ObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).ObjectId; } - /// Plan for the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Plan = value ?? null /* model class */; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string OboTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).OboTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)Property).OboTenantId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan _plan; + + /// Details of the resource plan. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan()); set => this._plan = value; } /// A user defined name of the 3rd Party Artifact that is being procured. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Name = value ?? null; } /// /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at /// the time of Data Market onboarding. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanProduct = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanProduct { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Product = value ?? null; } /// /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPromotionCode = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPromotionCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).PromotionCode = value ?? null; } /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanPublisher = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanPublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Publisher = value ?? null; } /// The version of the desired product/artifact. - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).PlanVersion = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string PlanVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlanInternal)Plan).Version = value ?? null; } /// List of private endpoint connection associated with the specified resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] @@ -218,79 +236,82 @@ public partial class Workspace : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// The resource model definition representing SKU - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).Sku = value ?? null /* model class */; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku()); set => this._sku = value; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the /// resource this may be omitted. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuCapacity = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// If the service has different generations of hardware, for the same SKU, then that can be captured here. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuFamily = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Family = value ?? null; } /// The name of the SKU. E.g. P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Name = value ?? null; } /// /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuSize = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Size = value ?? null; } /// /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required /// on a PUT. /// - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal)__resourceModelWithAllowedPropertySet).SkuTier = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISkuInternal)Sku).Tier = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__resourceModelWithAllowedPropertySet).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__resourceModelWithAllowedPropertySet).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceInternal)__trackedResource).Type; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -300,8 +321,8 @@ public partial class Workspace : /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); - await eventListener.AssertObjectIsValid(nameof(__resourceModelWithAllowedPropertySet), __resourceModelWithAllowedPropertySet); + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); } /// Creates an new instance. @@ -313,7 +334,7 @@ public Workspace() /// Represents a Workspace definition. public partial interface IWorkspace : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySet + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResource { /// List of applicationGroup resource Ids. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( @@ -348,6 +369,21 @@ public partial interface IWorkspace : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } /// Friendly name of Workspace. [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -359,6 +395,90 @@ public partial interface IWorkspace : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(string) })] + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", + SerializedName = @"managedBy", + PossibleTypes = new [] { typeof(string) })] + string ManagedBy { get; set; } /// ObjectId of Workspace. (internal use) [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -370,6 +490,77 @@ public partial interface IWorkspace : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A user defined name of the 3rd Party Artifact that is being procured.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. ", + SerializedName = @"product", + PossibleTypes = new [] { typeof(string) })] + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"A publisher provided promotion code as provisioned in Data Market for the said product/artifact.", + SerializedName = @"promotionCode", + PossibleTypes = new [] { typeof(string) })] + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the desired product/artifact.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string PlanVersion { get; set; } /// List of private endpoint connection associated with the specified resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -396,11 +587,77 @@ public partial interface IWorkspace : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enabled", "Disabled")] string PublicNetworkAccess { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } } /// Represents a Workspace definition. internal partial interface IWorkspaceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IResourceModelWithAllowedPropertySetInternal + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ITrackedResourceInternal { /// List of applicationGroup resource Ids. System.Collections.Generic.List ApplicationGroupReference { get; set; } @@ -408,10 +665,67 @@ internal partial interface IWorkspaceInternal : bool? CloudPcResource { get; set; } /// Description of Workspace. string Description { get; set; } + /// + /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags + /// are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section + /// 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// + string Etag { get; set; } /// Friendly name of Workspace. string FriendlyName { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + string IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are + /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// + string Kind { get; set; } + /// + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + /// Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template + /// since it is managed by another resource. + /// + string ManagedBy { get; set; } /// ObjectId of Workspace. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } + /// Details of the resource plan. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPlan Plan { get; set; } + /// A user defined name of the 3rd Party Artifact that is being procured. + string PlanName { get; set; } + /// + /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at + /// the time of Data Market onboarding. + /// + string PlanProduct { get; set; } + /// + /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + /// + string PlanPromotionCode { get; set; } + /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + string PlanPublisher { get; set; } + /// The version of the desired product/artifact. + string PlanVersion { get; set; } /// List of private endpoint connection associated with the specified resource System.Collections.Generic.List PrivateEndpointConnection { get; set; } /// Detailed properties for Workspace @@ -422,6 +736,29 @@ internal partial interface IWorkspaceInternal : /// [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Enabled", "Disabled")] string PublicNetworkAccess { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } } } \ No newline at end of file diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.json.cs index 53d0839500b6..0c7ae533d089 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/Workspace.json.cs @@ -84,8 +84,20 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso { return container; } - __resourceModelWithAllowedPropertySet?.ToJson(container, serializationMode); + __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._plan ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._plan.ToJson(null,serializationMode) : null, "plan" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + } + AddIf( null != (((object)this._managedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._managedBy.ToString()) : null, "managedBy" ,container.Add ); AfterToJson(ref container); return container; } @@ -102,8 +114,14 @@ internal Workspace(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runt { return; } - __resourceModelWithAllowedPropertySet = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ResourceModelWithAllowedPropertySet(json); + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.TrackedResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspaceProperties.FromJson(__jsonProperties) : _property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ManagedServiceIdentity.FromJson(__jsonIdentity) : _identity;} + {_plan = If( json?.PropertyT("plan"), out var __jsonPlan) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Plan.FromJson(__jsonPlan) : _plan;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Sku.FromJson(__jsonSku) : _sku;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)_kind;} + {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? (string)__jsonManagedBy : (string)_managedBy;} AfterFromJson(json); } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.cs index 90038b9901be..256eb0ca4a33 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.cs @@ -13,20 +13,17 @@ public partial class WorkspaceList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspaceListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of Workspace definitions. + /// The Workspace items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -40,25 +37,25 @@ public WorkspaceList() public partial interface IWorkspaceList : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { - /// Link to the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"Link to the next page of results.", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of Workspace definitions. + string NextLink { get; set; } + /// The Workspace items on this page [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of Workspace definitions.", + Description = @"The Workspace items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace) })] System.Collections.Generic.List Value { get; set; } @@ -68,9 +65,9 @@ public partial interface IWorkspaceList : internal partial interface IWorkspaceListInternal { - /// Link to the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// List of Workspace definitions. + /// The Workspace items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.json.cs index d97745a573a1..1bf62d554e5c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceList.json.cs @@ -93,10 +93,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.PowerShell.cs index 989935136271..66ae5bbe6863 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell; - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model [System.ComponentModel.TypeConverter(typeof(WorkspacePatchTypeConverter))] public partial class WorkspacePatch { @@ -194,7 +194,7 @@ internal WorkspacePatch(global::System.Management.Automation.PSObject content) AfterDeserializePSObject(content); } } - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model [System.ComponentModel.TypeConverter(typeof(WorkspacePatchTypeConverter))] public partial interface IWorkspacePatch diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.cs index c31953c9da5d..e1b67594f47c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model public partial class WorkspacePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatchInternal @@ -52,7 +52,7 @@ public WorkspacePatch() } } - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model public partial interface IWorkspacePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IJsonSerializable { @@ -114,7 +114,7 @@ public partial interface IWorkspacePatch : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatchTags Tag { get; set; } } - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model internal partial interface IWorkspacePatchInternal { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.json.cs index 0c1588b988c5..dd09a4aedba5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspacePatch.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model public partial class WorkspacePatch { diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.PowerShell.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.PowerShell.cs index 42a29d60589b..7d8b3a8f6e4c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.PowerShell.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.PowerShell.cs @@ -154,6 +154,10 @@ internal WorkspaceProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -199,6 +203,10 @@ internal WorkspaceProperties(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); } + if (content.Contains("OboTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).OboTenantId = (string) content.GetValueForProperty("OboTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePropertiesInternal)this).OboTenantId, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.cs index bdcf30e36c22..6ccb4cdbc716 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.cs @@ -57,6 +57,13 @@ public partial class WorkspaceProperties : [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] public string ObjectId { get => this._objectId; } + /// Backing field for property. + private string _oboTenantId; + + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Origin(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PropertyOrigin.Owned)] + public string OboTenantId { get => this._oboTenantId; set => this._oboTenantId = value; } + /// Backing field for property. private System.Collections.Generic.List _privateEndpointConnection; @@ -139,6 +146,17 @@ public partial interface IWorkspaceProperties : SerializedName = @"objectId", PossibleTypes = new [] { typeof(string) })] string ObjectId { get; } + /// Tenant that the resource is being requested on behalf of. + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + string OboTenantId { get; set; } /// List of private endpoint connection associated with the specified resource [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, @@ -181,6 +199,8 @@ internal partial interface IWorkspacePropertiesInternal string FriendlyName { get; set; } /// ObjectId of Workspace. (internal use) string ObjectId { get; set; } + /// Tenant that the resource is being requested on behalf of. + string OboTenantId { get; set; } /// List of private endpoint connection associated with the specified resource System.Collections.Generic.List PrivateEndpointConnection { get; set; } /// diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.json.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.json.cs index 6564999a5490..0e56674e7a66 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.json.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/api/Models/WorkspaceProperties.json.cs @@ -116,6 +116,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.Jso container.Add("privateEndpointConnections",__r); } } + AddIf( null != (((object)this._oboTenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonString(this._oboTenantId.ToString()) : null, "oboTenantId" ,container.Add ); AfterToJson(ref container); return container; } @@ -139,6 +140,7 @@ internal WorkspaceProperties(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualiz {_cloudPcResource = If( json?.PropertyT("cloudPcResource"), out var __jsonCloudPcResource) ? (bool?)__jsonCloudPcResource : _cloudPcResource;} {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)_publicNetworkAccess;} {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.PrivateEndpointConnection.FromJson(__p) )) ))() : null : _privateEndpointConnection;} + {_oboTenantId = If( json?.PropertyT("oboTenantId"), out var __jsonOboTenantId) ? (string)__jsonOboTenantId : (string)_oboTenantId;} AfterFromJson(json); } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_Disconnect.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_Disconnect.cs index 4b936a739c6e..676172366a17 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_Disconnect.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_Disconnect.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Disconnect a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-09-01-preview")] public partial class DisconnectAzWvdUserSession_Disconnect : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -205,12 +205,12 @@ public partial class DisconnectAzWvdUserSession_Disconnect : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -458,12 +458,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -480,7 +480,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentity.cs index 253260bf699f..ddfacb3c30db 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Disconnect a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-09-01-preview")] public partial class DisconnectAzWvdUserSession_DisconnectViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class DisconnectAzWvdUserSession_DisconnectViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool.cs index 16011b5c301f..5e0bd302aacf 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Disconnect a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-09-01-preview")] public partial class DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -166,12 +166,12 @@ public partial class DisconnectAzWvdUserSession_DisconnectViaIdentityHostPool : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost.cs index 64dfb7ba093b..78eabfe9ebac 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Disconnect a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect", ApiVersion = "2025-09-01-preview")] public partial class DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -152,12 +152,12 @@ public partial class DisconnectAzWvdUserSession_DisconnectViaIdentitySessionHost /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -430,12 +430,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -452,7 +452,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -485,7 +485,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs index fc3125587870..b8e7d5e2ae6e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_Expand", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] public partial class ExpandAzWvdMsixImage_Expand : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -189,12 +192,12 @@ public partial class ExpandAzWvdMsixImage_Expand : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -444,12 +447,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -466,7 +469,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs index 527c8d095d9b..ca091e5235ca 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] public partial class ExpandAzWvdMsixImage_ExpandExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -189,12 +192,12 @@ public partial class ExpandAzWvdMsixImage_ExpandExpanded : global::System.Manage /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -444,12 +447,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -466,7 +469,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs index 88f557b37172..ec29a2119519 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] public partial class ExpandAzWvdMsixImage_ExpandViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -150,12 +153,12 @@ public partial class ExpandAzWvdMsixImage_ExpandViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs index 0a5d0b2642eb..b517648bfb11 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] public partial class ExpandAzWvdMsixImage_ExpandViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -150,12 +153,12 @@ public partial class ExpandAzWvdMsixImage_ExpandViaIdentityExpanded : global::Sy /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs index 473e55d39aab..3599f8bacaff 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class ExpandAzWvdMsixImage_ExpandViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -191,12 +194,12 @@ public partial class ExpandAzWvdMsixImage_ExpandViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -446,12 +449,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -468,7 +471,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs index 766413f40538..8cc1352cea6a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs @@ -10,15 +10,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Expands and Lists MSIX packages in an Image, given the Image Path. + /// + /// Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally + /// to match the previous APIs. + /// /// /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.\nThis action uses incorrect Msix casing intentionally to match the previous APIs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class ExpandAzWvdMsixImage_ExpandViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -189,12 +192,12 @@ public partial class ExpandAzWvdMsixImage_ExpandViaJsonString : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -444,12 +447,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -466,7 +469,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_Get.cs index eeffe49ab16a..489cbc337e50 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_Get.cs @@ -10,17 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdActiveSessionHostConfiguration_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ActiveSessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdActiveSessionHostConfiguration_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -171,12 +169,12 @@ public partial class GetAzWvdActiveSessionHostConfiguration_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -426,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -448,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_GetViaIdentity.cs index f6ff7d410375..ab0073b69ae7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_GetViaIdentity.cs @@ -10,17 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// - /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations. - /// + /// Get a ActiveSessionHostConfiguration. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdActiveSessionHostConfiguration_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for get operations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ActiveSessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdActiveSessionHostConfiguration_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -132,12 +130,12 @@ public partial class GetAzWvdActiveSessionHostConfiguration_GetViaIdentity : glo /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_List.cs index 46cfb179afd0..fea8d1f034f2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdActiveSessionHostConfiguration_List.cs @@ -10,15 +10,17 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List activeSessionHostConfigurations. + /// + /// Operation to list the ActiveSessionHostConfigurations associated with the HostPool + /// /// /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdActiveSessionHostConfiguration_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IActiveSessionHostConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List activeSessionHostConfigurations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Operation to list the ActiveSessionHostConfigurations associated with the HostPool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdActiveSessionHostConfiguration_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -175,12 +177,12 @@ public partial class GetAzWvdActiveSessionHostConfiguration_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -430,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -452,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs index 5f082e17a2fd..5fb90e590b87 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an app attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdAppAttachPackage_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzWvdAppAttachPackage_Get : global::System.Management.Au /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs index 759f18581315..6d3ca0c24f81 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an app attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdAppAttachPackage_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs index f0e69551ae93..b59c7b8901ba 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List App Attach packages in resource group. + /// List App Attach packages in subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages" + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdAppAttachPackage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -83,13 +83,13 @@ public partial class GetAzWvdAppAttachPackage_List : global::System.Management.A private string _filter; /// - /// OData filter expression. Valid properties for filtering are package name, host pool, package owner name, and custom data. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are package name, host pool, package owner name, and custom data.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are package name, host pool, and resource group.")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"OData filter expression. Valid properties for filtering are package name, host pool, package owner name, and custom data.", + Description = @"OData filter expression. Valid properties for filtering are package name, host pool, and resource group.", SerializedName = @"$filter", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] @@ -139,20 +139,6 @@ public partial class GetAzWvdAppAttachPackage_List : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -388,13 +374,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AppAttachPackageListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); + await this.Client.AppAttachPackageListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -526,7 +512,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AppAttachPackageListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.AppAttachPackageListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs index be77e7c628b7..9bf50333b45a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List App Attach packages in subscription. + /// List App Attach packages in resource group. /// - /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdAppAttachPackage_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -83,14 +83,13 @@ public partial class GetAzWvdAppAttachPackage_List1 : global::System.Management. private string _filter; /// - /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, - /// and custom data. + /// OData filter expression. Valid properties for filtering are package name and host pool. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are package name and host pool.")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.", + Description = @"OData filter expression. Valid properties for filtering are package name and host pool.", SerializedName = @"$filter", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] @@ -140,6 +139,20 @@ public partial class GetAzWvdAppAttachPackage_List1 : global::System.Management. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -375,13 +388,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AppAttachPackageListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); + await this.Client.AppAttachPackageListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -513,7 +526,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AppAttachPackageListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.AppAttachPackageListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs index 1c7317db6194..e4de5d32cf5d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplicationGroup_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -170,12 +170,12 @@ public partial class GetAzWvdApplicationGroup_Get : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,12 +425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,7 +447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs index 94d6ce9c8ae8..f129f456f109 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplicationGroup_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdApplicationGroup_GetViaIdentity : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs index 9a8d06da8482..4b26bcd3135b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List applicationGroups. + /// List applicationGroups in subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups" + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplicationGroup_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -107,37 +107,9 @@ public partial class GetAzWvdApplicationGroup_List : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - /// Backing field for property. - private int _initialSkip; - - /// Initial number of items to skip. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Initial number of items to skip.", - SerializedName = @"initialSkip", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } - /// 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 global::System.Management.Automation.SwitchParameter _isDescending; - - /// Indicates whether the collection is descending. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether the collection is descending.", - SerializedName = @"isDescending", - PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -146,20 +118,6 @@ public partial class GetAzWvdApplicationGroup_List : global::System.Management.A /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private int _pageSize; - - /// Number of items per page. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Number of items per page.", - SerializedName = @"pageSize", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int PageSize { get => this._pageSize; set => this._pageSize = value; } - /// /// The instance of the that the remote call will use. /// @@ -181,20 +139,6 @@ public partial class GetAzWvdApplicationGroup_List : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -219,12 +163,12 @@ public partial class GetAzWvdApplicationGroup_List : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -430,13 +374,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationGroupsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.ApplicationGroupsListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -474,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -496,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -568,7 +512,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationGroupsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.ApplicationGroupsListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs index 9ef8623efe76..5437ef281e71 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List applicationGroups in subscription. + /// List applicationGroups. /// - /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups in subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplicationGroup_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -107,9 +107,37 @@ public partial class GetAzWvdApplicationGroup_List1 : global::System.Management. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private int _initialSkip; + + /// Initial number of items to skip. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Initial number of items to skip.", + SerializedName = @"initialSkip", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } + /// 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 global::System.Management.Automation.SwitchParameter _isDescending; + + /// Indicates whether the collection is descending. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the collection is descending.", + SerializedName = @"isDescending", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -118,6 +146,20 @@ public partial class GetAzWvdApplicationGroup_List1 : global::System.Management. /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private int _pageSize; + + /// Number of items per page. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Number of items per page.", + SerializedName = @"pageSize", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int PageSize { get => this._pageSize; set => this._pageSize = value; } + /// /// The instance of the that the remote call will use. /// @@ -139,6 +181,20 @@ public partial class GetAzWvdApplicationGroup_List1 : global::System.Management. [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -163,12 +219,12 @@ public partial class GetAzWvdApplicationGroup_List1 : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -374,13 +430,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationGroupsListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); + await this.Client.ApplicationGroupsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -418,12 +474,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 +496,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -512,7 +568,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationGroupsListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.ApplicationGroupsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs index 26ca4566d86f..7857441fbf34 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplication_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -185,12 +185,12 @@ public partial class GetAzWvdApplication_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs index b59064962fc0..ee3d345282fc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplication_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdApplication_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs index 5e9513232961..b5390f51fd57 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplication_GetViaIdentityApplicationGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -145,12 +145,12 @@ public partial class GetAzWvdApplication_GetViaIdentityApplicationGroup : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs index f9259ca6d480..6ffc88e4904e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdApplication_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -218,12 +218,12 @@ public partial class GetAzWvdApplication_List : global::System.Management.Automa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -473,12 +473,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -495,7 +495,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs index df942a1809f1..cfc026c38533 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdDesktop_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -184,12 +184,12 @@ public partial class GetAzWvdDesktop_Get : global::System.Management.Automation. /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -439,12 +439,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs index 6e0fc3a19faf..a7fab2b4fc59 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdDesktop_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdDesktop_GetViaIdentity : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs index 1245187e4a10..7bb58018964e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdDesktop_GetViaIdentityApplicationGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -145,12 +145,12 @@ public partial class GetAzWvdDesktop_GetViaIdentityApplicationGroup : global::Sy /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs index 33bafe05f1b9..87438cb2b187 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List desktops.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdDesktop_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -217,12 +217,12 @@ public partial class GetAzWvdDesktop_List : global::System.Management.Automation /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs index 804378184d69..11c33e43bbd6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationTokenList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Operation to list the RegistrationTokens associated with the HostPool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPoolRegistrationToken_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -175,12 +175,12 @@ public partial class GetAzWvdHostPoolRegistrationToken_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -433,12 +433,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -455,7 +455,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs index 2d3265d07335..fd63143ead6a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Registration token of the host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPoolRegistrationToken_Retrieve : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -169,12 +169,12 @@ public partial class GetAzWvdHostPoolRegistrationToken_Retrieve : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -427,12 +427,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -449,7 +449,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs index 574cd55d627a..6c82502cb572 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Registration token of the host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity : glo /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -405,12 +405,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -427,7 +427,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs index 92b38c5be10b..94b7b0e6cc5c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPool_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -170,12 +170,12 @@ public partial class GetAzWvdHostPool_Get : global::System.Management.Automation /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,12 +425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,7 +447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs index 05d25b3ca248..d03263a6844f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPool_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdHostPool_GetViaIdentity : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs index d61b8b7e806f..dcfb5eacc0da 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List hostPools. + /// List hostPools in subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPool_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -165,20 +165,6 @@ public partial class GetAzWvdHostPool_List : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -203,12 +189,12 @@ public partial class GetAzWvdHostPool_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -414,13 +400,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.HostPoolsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.HostPoolsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -458,12 +444,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -480,7 +466,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -552,7 +538,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.HostPoolsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.HostPoolsList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs index 53892fad6a75..b91c7f58c48a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List hostPools in subscription. + /// List hostPools. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools in subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdHostPool_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -165,6 +165,20 @@ public partial class GetAzWvdHostPool_List1 : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -189,12 +203,12 @@ public partial class GetAzWvdHostPool_List1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -400,13 +414,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.HostPoolsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.HostPoolsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -444,12 +458,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -466,7 +480,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -538,7 +552,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.HostPoolsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.HostPoolsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs index 709436ee2d0d..7553863cc916 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Get a msixpackage. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdMsixPackage_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -186,12 +186,12 @@ public partial class GetAzWvdMsixPackage_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -441,12 +441,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -463,7 +463,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs index 70083dc770aa..e7bf5d11b9f0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Get a msixpackage. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdMsixPackage_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdMsixPackage_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs index cbd3df3fec25..ed4355db0f84 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Get a msixpackage. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_GetViaIdentityHostPool")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdMsixPackage_GetViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -147,12 +147,12 @@ public partial class GetAzWvdMsixPackage_GetViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -420,12 +420,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -442,7 +442,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs index f3ca429b00be..87e504847941 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// List MSIX packages in hostpool. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List MSIX packages in hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdMsixPackage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -217,12 +217,12 @@ public partial class GetAzWvdMsixPackage_List : global::System.Management.Automa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs index cdc83bbc5298..b73bf2ede439 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -73,6 +73,20 @@ public partial class GetAzWvdPrivateEndpointConnection_Get : global::System.Mana /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _hostPoolName; + + /// The name of the host pool within the specified resource group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the host pool within the specified resource group", + SerializedName = @"hostPoolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -99,12 +113,12 @@ public partial class GetAzWvdPrivateEndpointConnection_Get : global::System.Mana /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -165,31 +179,17 @@ public partial class GetAzWvdPrivateEndpointConnection_Get : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Backing field for property. - private string _workspaceName; - - /// The name of the workspace - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the workspace", - SerializedName = @"workspaceName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -395,13 +395,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsGetByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, Name, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -439,12 +439,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs index 6cb221741cfc..a7e09b9fd6dc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_Get1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_Get1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -73,20 +73,6 @@ public partial class GetAzWvdPrivateEndpointConnection_Get1 : global::System.Man /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _hostPoolName; - - /// The name of the host pool within the specified resource group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the host pool within the specified resource group", - SerializedName = @"hostPoolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } - /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -113,12 +99,12 @@ public partial class GetAzWvdPrivateEndpointConnection_Get1 : global::System.Man /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -179,17 +165,31 @@ public partial class GetAzWvdPrivateEndpointConnection_Get1 : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Backing field for property. + private string _workspaceName; + + /// The name of the workspace + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the workspace", + SerializedName = @"workspaceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -395,13 +395,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsGetByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, Name, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -439,12 +439,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs index e7dbb33987ae..405f80b834cb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentity : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -341,7 +341,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.PrivateEndpointConnectionsGetByWorkspaceViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByHostPoolViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -354,15 +354,15 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.WorkspaceName) + if (null == InputObject.HostPoolName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.WorkspaceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.HostPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.PrivateEndpointConnectionName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateEndpointConnectionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.PrivateEndpointConnectionsGetByWorkspace(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.WorkspaceName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByHostPool(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs index 3e7c165f7364..b8d015b7ae10 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentity1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentity1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentity1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -341,7 +341,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.PrivateEndpointConnectionsGetByHostPoolViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByWorkspaceViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -354,15 +354,15 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.HostPoolName) + if (null == InputObject.WorkspaceName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.HostPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.WorkspaceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.PrivateEndpointConnectionName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateEndpointConnectionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.PrivateEndpointConnectionsGetByHostPool(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsGetByWorkspace(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.WorkspaceName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs index 835d44bbf231..f3f07bc3d321 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentityHostPool")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -107,12 +107,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool : /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -145,12 +145,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs index 228784e8e212..39fb31e7debc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get a private endpoint connection. + /// Get a PrivateEndpointConnectionWithSystemData /// /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentityWorkspace")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace : /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -145,12 +145,12 @@ public partial class GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs index ac693112decc..ddd76aa3eaf9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List private endpoint connections. + /// List private endpoint connections associated with hostpool. /// - /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections" + /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections associated with hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,6 +79,20 @@ public partial class GetAzWvdPrivateEndpointConnection_List : global::System.Man /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _hostPoolName; + + /// The name of the host pool within the specified resource group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the host pool within the specified resource group", + SerializedName = @"hostPoolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -91,9 +105,37 @@ public partial class GetAzWvdPrivateEndpointConnection_List : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private int _initialSkip; + + /// Initial number of items to skip. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Initial number of items to skip.", + SerializedName = @"initialSkip", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } + /// 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 global::System.Management.Automation.SwitchParameter _isDescending; + + /// Indicates whether the collection is descending. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the collection is descending.", + SerializedName = @"isDescending", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -102,6 +144,20 @@ public partial class GetAzWvdPrivateEndpointConnection_List : global::System.Man /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private int _pageSize; + + /// Number of items per page. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Number of items per page.", + SerializedName = @"pageSize", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int PageSize { get => this._pageSize; set => this._pageSize = value; } + /// /// The instance of the that the remote call will use. /// @@ -156,31 +212,17 @@ public partial class GetAzWvdPrivateEndpointConnection_List : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Backing field for property. - private string _workspaceName; - - /// The name of the workspace - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the workspace", - SerializedName = @"workspaceName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -386,13 +428,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsListByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -430,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -452,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -524,7 +566,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsListByWorkspace_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs index ab65f7c88b09..fb2e70a1786e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List private endpoint connections associated with hostpool. + /// List private endpoint connections associated with Workspace. /// - /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections" + /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections associated with hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections associated with Workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateEndpointConnection_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,20 +79,6 @@ public partial class GetAzWvdPrivateEndpointConnection_List1 : global::System.Ma /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _hostPoolName; - - /// The name of the host pool within the specified resource group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the host pool within the specified resource group", - SerializedName = @"hostPoolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } - /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -105,37 +91,9 @@ public partial class GetAzWvdPrivateEndpointConnection_List1 : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - /// Backing field for property. - private int _initialSkip; - - /// Initial number of items to skip. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Initial number of items to skip.", - SerializedName = @"initialSkip", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } - /// 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 global::System.Management.Automation.SwitchParameter _isDescending; - - /// Indicates whether the collection is descending. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether the collection is descending.", - SerializedName = @"isDescending", - PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -144,20 +102,6 @@ public partial class GetAzWvdPrivateEndpointConnection_List1 : global::System.Ma /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private int _pageSize; - - /// Number of items per page. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Number of items per page.", - SerializedName = @"pageSize", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int PageSize { get => this._pageSize; set => this._pageSize = value; } - /// /// The instance of the that the remote call will use. /// @@ -212,17 +156,31 @@ public partial class GetAzWvdPrivateEndpointConnection_List1 : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Backing field for property. + private string _workspaceName; + + /// The name of the workspace + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the workspace", + SerializedName = @"workspaceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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,13 +386,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsListByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -472,12 +430,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +452,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -566,7 +524,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsListByWorkspace_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs index 27a597994639..0d8b24a7708c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List the private link resources available for this workspace. + /// List the private link resources available for this hostpool. /// - /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources" + /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateLinkResource_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this workspace.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateLinkResource_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,6 +79,20 @@ public partial class GetAzWvdPrivateLinkResource_List : global::System.Managemen /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _hostPoolName; + + /// The name of the host pool within the specified resource group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the host pool within the specified resource group", + SerializedName = @"hostPoolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -198,31 +212,17 @@ public partial class GetAzWvdPrivateLinkResource_List : global::System.Managemen [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Backing field for property. - private string _workspaceName; - - /// The name of the workspace - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the workspace", - SerializedName = @"workspaceName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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,13 +428,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateLinkResourcesListByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.PrivateLinkResourcesListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -566,7 +566,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateLinkResourcesListByWorkspace_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateLinkResourcesListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs index 8463b694e812..bf858b0c7d4e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List the private link resources available for this hostpool. + /// List the private link resources available for this workspace. /// - /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources" + /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateLinkResource_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdPrivateLinkResource_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,20 +79,6 @@ public partial class GetAzWvdPrivateLinkResource_List1 : global::System.Manageme /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _hostPoolName; - - /// The name of the host pool within the specified resource group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the host pool within the specified resource group", - SerializedName = @"hostPoolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } - /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -212,17 +198,31 @@ public partial class GetAzWvdPrivateLinkResource_List1 : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Backing field for property. + private string _workspaceName; + + /// The name of the workspace + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the workspace", + SerializedName = @"workspaceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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,13 +428,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateLinkResourcesListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.PrivateLinkResourcesListByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -566,7 +566,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateLinkResourcesListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateLinkResourcesListByWorkspace_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs index 73e9fb82b9c2..37c72aa25785 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPersonalSchedule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -183,12 +183,12 @@ public partial class GetAzWvdScalingPlanPersonalSchedule_Get : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -438,12 +438,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -460,7 +460,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs index 695fe02b3cd9..fc00dc3f4c2c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity : global /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs index fb19a6f361f1..5dd99e8681e1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -144,12 +144,12 @@ public partial class GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPl /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs index 7afc02d1a7c8..64196a06a25d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List ScalingPlanPersonalSchedules.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPersonalSchedule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -217,12 +217,12 @@ public partial class GetAzWvdScalingPlanPersonalSchedule_List : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs index 2defcc040c9f..842abe66b256 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPooledSchedule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -183,12 +183,12 @@ public partial class GetAzWvdScalingPlanPooledSchedule_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -438,12 +438,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -460,7 +460,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs index eb891e6e21b7..60f250bd32e3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPooledSchedule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdScalingPlanPooledSchedule_GetViaIdentity : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs index d16b3c7fe286..a118e264b5ee 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -144,12 +144,12 @@ public partial class GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -417,12 +417,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -439,7 +439,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs index a41f93b14869..bbf811f67705 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List ScalingPlanPooledSchedules.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlanPooledSchedule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -217,12 +217,12 @@ public partial class GetAzWvdScalingPlanPooledSchedule_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs index 61919335c7d2..cdb29ce958d2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlan_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -170,12 +170,12 @@ public partial class GetAzWvdScalingPlan_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,12 +425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,7 +447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs index 33e1d28064e8..110e03519d04 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlan_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdScalingPlan_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs index 2ac5beaaeb16..2214c7671f62 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List scaling plans. + /// List scaling plans in subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans" + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlan_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -165,20 +165,6 @@ public partial class GetAzWvdScalingPlan_List : global::System.Management.Automa [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -203,12 +189,12 @@ public partial class GetAzWvdScalingPlan_List : global::System.Management.Automa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -414,13 +400,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -458,12 +444,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -480,7 +466,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -552,7 +538,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs index 33d322a5653e..08186285dd09 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List scaling plans in subscription. + /// List scaling plan associated with hostpool. /// - /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans" + /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans in subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plan associated with hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlan_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,6 +79,20 @@ public partial class GetAzWvdScalingPlan_List1 : global::System.Management.Autom /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _hostPoolName; + + /// The name of the host pool within the specified resource group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the host pool within the specified resource group", + SerializedName = @"hostPoolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -165,6 +179,20 @@ public partial class GetAzWvdScalingPlan_List1 : global::System.Management.Autom [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -189,12 +217,12 @@ public partial class GetAzWvdScalingPlan_List1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -400,13 +428,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListBySubscription(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -444,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -466,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -538,7 +566,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs index 9632ed5ac589..0194214aec8c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List scaling plan associated with hostpool. + /// List scaling plans. /// - /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List2")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plan associated with hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdScalingPlan_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,20 +79,6 @@ public partial class GetAzWvdScalingPlan_List2 : global::System.Management.Autom /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _hostPoolName; - - /// The name of the host pool within the specified resource group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the host pool within the specified resource group", - SerializedName = @"hostPoolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } - /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -217,12 +203,12 @@ public partial class GetAzWvdScalingPlan_List2 : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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,13 +414,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -472,12 +458,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +480,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -566,7 +552,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ScalingPlansListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.ScalingPlansListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_Get.cs index e928ac678a51..d1b84379e5bd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostConfiguration_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -169,12 +169,12 @@ public partial class GetAzWvdSessionHostConfiguration_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_GetViaIdentity.cs index 2af7d61c973f..51fda9113610 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostConfiguration_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdSessionHostConfiguration_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_List.cs index 72fd7b6793b7..1c537bda30f4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostConfiguration_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List sessionHostConfigurations. + /// List SessionHostConfigurations. /// /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHostConfiguration_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List sessionHostConfigurations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List SessionHostConfigurations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostConfiguration_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -175,12 +175,12 @@ public partial class GetAzWvdSessionHostConfiguration_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -430,12 +430,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -452,7 +452,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_Get.cs index b17d0e4b12e4..83f7c25663ca 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostManagement_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -169,12 +169,12 @@ public partial class GetAzWvdSessionHostManagement_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_GetViaIdentity.cs index 6f1f4197277a..34b7514048f0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostManagement_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdSessionHostManagement_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_List.cs index 7f3506314d6b..05ffb2225fb2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagement_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List SessionHostManagements by hostPool. + /// List SessionHostManagements. /// /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHostManagement_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List SessionHostManagements by hostPool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List SessionHostManagements.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostManagement_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -175,12 +175,12 @@ public partial class GetAzWvdSessionHostManagement_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -430,12 +430,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -452,7 +452,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_Get.cs index 36305dfb51cd..c3822edc7a0e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHostManagementsUpdateStatus_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatus))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the session host get status for a given hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostManagementUpdateStatus.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostManagementsUpdateStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_GetViaIdentity.cs index 425ecb5c1cb6..37c74a7ff55e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostManagementsUpdateStatus_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Get the session host get status for a given hostpool. + /// Get a SessionHostManagementUpdateStatus. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHostManagementsUpdateStatus_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementUpdateStatus))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the session host get status for a given hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a SessionHostManagementUpdateStatus.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostUpdateStatuses/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostManagementsUpdateStatus_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_Get.cs index ac997cc2e97a..462e48819768 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the session host provisioning status for a given hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostProvisioningStatuses/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostProvisioningStatuses/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostProvisioningStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_GetViaIdentity.cs index 8f4a7d39a590..93c4fea174dd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHostProvisioningStatus_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementProvisioningStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get the session host provisioning status for a given hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostProvisioningStatuses/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/sessionHostProvisioningStatuses/default", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHostProvisioningStatus_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs index d6c00bd7ec2d..cb5ff2828505 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHost_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -184,12 +184,12 @@ public partial class GetAzWvdSessionHost_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -439,12 +439,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs index 3afee35ff2e7..36f621b8f9a1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHost_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdSessionHost_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs index 95275b8a0041..6bc89c3e8ddb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHost_GetViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -145,12 +145,12 @@ public partial class GetAzWvdSessionHost_GetViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs index 9085bc28d568..8786d90ed9e2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List sessionHosts.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdSessionHost_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -231,12 +231,12 @@ public partial class GetAzWvdSessionHost_List : global::System.Management.Automa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -486,12 +486,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -508,7 +508,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs index a62b88b95696..319eb4c172fa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IStartMenuItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List start menu items in the given application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/startMenuItems", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/startMenuItems", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdStartMenuItem_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -217,12 +217,12 @@ public partial class GetAzWvdStartMenuItem_List : global::System.Management.Auto /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -494,7 +494,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs index bca07887c7a3..8755028e04e6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -198,12 +198,12 @@ public partial class GetAzWvdUserSession_Get : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs index b7c7537ac4b4..850ad233a7e3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdUserSession_GetViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs index 45f06beca73c..05261b17a6c2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_GetViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -159,12 +159,12 @@ public partial class GetAzWvdUserSession_GetViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs index 1d54166da006..4618b949dd57 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_GetViaIdentitySessionHost : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -145,12 +145,12 @@ public partial class GetAzWvdUserSession_GetViaIdentitySessionHost : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs index 4d62ef76c00a..259dd34d8151 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// List userSessions. /// - /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List userSessions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,22 +79,6 @@ public partial class GetAzWvdUserSession_List : global::System.Management.Automa /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _filter; - - /// - /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.", - SerializedName = @"$filter", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public string Filter { get => this._filter; set => this._filter = value; } - /// Backing field for property. private string _hostPoolName; @@ -209,6 +193,20 @@ public partial class GetAzWvdUserSession_List : global::System.Management.Automa [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. + private string _sessionHostName; + + /// The name of the session host within the specified host pool + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the session host within the specified host pool")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the session host within the specified host pool", + SerializedName = @"sessionHostName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string SessionHostName { get => this._sessionHostName; set => this._sessionHostName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -233,12 +231,12 @@ public partial class GetAzWvdUserSession_List : global::System.Management.Automa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -444,13 +442,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UserSessionsListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.UserSessionsList(SubscriptionId, ResourceGroupName, HostPoolName, SessionHostName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,SessionHostName=SessionHostName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -488,12 +486,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -510,7 +508,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -582,7 +580,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UserSessionsListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.UserSessionsList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs index 80bdec65ddf9..53f47b93827b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List userSessions. + /// A synchronous resource action. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions" + /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List userSessions.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"A synchronous resource action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdUserSession_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -79,6 +79,22 @@ public partial class GetAzWvdUserSession_List1 : global::System.Management.Autom /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _filter; + + /// + /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.", + SerializedName = @"$filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + /// Backing field for property. private string _hostPoolName; @@ -193,20 +209,6 @@ public partial class GetAzWvdUserSession_List1 : global::System.Management.Autom [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. - private string _sessionHostName; - - /// The name of the session host within the specified host pool - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the session host within the specified host pool")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the session host within the specified host pool", - SerializedName = @"sessionHostName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string SessionHostName { get => this._sessionHostName; set => this._sessionHostName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -231,12 +233,12 @@ public partial class GetAzWvdUserSession_List1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -442,13 +444,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UserSessionsList(SubscriptionId, ResourceGroupName, HostPoolName, SessionHostName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.UserSessionsListByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,SessionHostName=SessionHostName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -486,12 +488,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -508,7 +510,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -580,7 +582,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UserSessionsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.UserSessionsListByHostPool_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs index c772751ba6f6..ede22c0f5961 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdWorkspace_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -170,12 +170,12 @@ public partial class GetAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -425,12 +425,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -447,7 +447,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs index 477097e23904..90459041b925 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdWorkspace_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -130,12 +130,12 @@ public partial class GetAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs index 6f90ef57779b..f993e743febb 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List workspaces. + /// List workspaces in subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces" + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdWorkspace_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -91,37 +91,9 @@ public partial class GetAzWvdWorkspace_List : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - /// Backing field for property. - private int _initialSkip; - - /// Initial number of items to skip. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Initial number of items to skip.", - SerializedName = @"initialSkip", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } - /// 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 global::System.Management.Automation.SwitchParameter _isDescending; - - /// Indicates whether the collection is descending. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether the collection is descending.", - SerializedName = @"isDescending", - PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -130,20 +102,6 @@ public partial class GetAzWvdWorkspace_List : global::System.Management.Automati /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private int _pageSize; - - /// Number of items per page. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Number of items per page.", - SerializedName = @"pageSize", - PossibleTypes = new [] { typeof(int) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] - public int PageSize { get => this._pageSize; set => this._pageSize = value; } - /// /// The instance of the that the remote call will use. /// @@ -165,20 +123,6 @@ public partial class GetAzWvdWorkspace_List : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -203,12 +147,12 @@ public partial class GetAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -414,13 +358,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.WorkspacesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.WorkspacesListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -458,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -480,7 +424,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -552,7 +496,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.WorkspacesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.WorkspacesListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs index caa547f7b672..bccba6382415 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// List workspaces in subscription. + /// List workspaces. /// - /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces in subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces", ApiVersion = "2025-09-01-preview")] public partial class GetAzWvdWorkspace_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -91,9 +91,37 @@ public partial class GetAzWvdWorkspace_List1 : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private int _initialSkip; + + /// Initial number of items to skip. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Initial number of items to skip.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Initial number of items to skip.", + SerializedName = @"initialSkip", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int InitialSkip { get => this._initialSkip; set => this._initialSkip = value; } + /// 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 global::System.Management.Automation.SwitchParameter _isDescending; + + /// Indicates whether the collection is descending. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the collection is descending.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the collection is descending.", + SerializedName = @"isDescending", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter IsDescending { get => this._isDescending; set => this._isDescending = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -102,6 +130,20 @@ public partial class GetAzWvdWorkspace_List1 : global::System.Management.Automat /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private int _pageSize; + + /// Number of items per page. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of items per page.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Number of items per page.", + SerializedName = @"pageSize", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] + public int PageSize { get => this._pageSize; set => this._pageSize = value; } + /// /// The instance of the that the remote call will use. /// @@ -123,6 +165,20 @@ public partial class GetAzWvdWorkspace_List1 : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -147,12 +203,12 @@ public partial class GetAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -358,13 +414,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.WorkspacesListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.WorkspacesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?), this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PageSize=this.InvocationInformation.BoundParameters.ContainsKey("PageSize") ? PageSize : default(int?),IsDescending=this.InvocationInformation.BoundParameters.ContainsKey("IsDescending") ? IsDescending : default(global::System.Management.Automation.SwitchParameter?),InitialSkip=this.InvocationInformation.BoundParameters.ContainsKey("InitialSkip") ? InitialSkip : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -402,12 +458,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -424,7 +480,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -496,7 +552,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.WorkspacesListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.WorkspacesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_Import.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_Import.cs index eb650880e8f5..1eef0aa85a4a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_Import.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_Import.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] public partial class ImportAzWvdAppAttachPackageInfo_Import : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportExpanded.cs index 65b2a2d724d9..049126e9013a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] public partial class ImportAzWvdAppAttachPackageInfo_ImportExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentity.cs index 6ec54877bf50..5e130c09214e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] public partial class ImportAzWvdAppAttachPackageInfo_ImportViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentityExpanded.cs index 2f632f81326e..b9fdb6d40a0c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] public partial class ImportAzWvdAppAttachPackageInfo_ImportViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonFilePath.cs index cf422f4642d9..5d732b3a8ca1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class ImportAzWvdAppAttachPackageInfo_ImportViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonString.cs index 18ba8c409232..40594289735c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ImportAzWvdAppAttachPackageInfo_ImportViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Gets information from a package given the path to the package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class ImportAzWvdAppAttachPackageInfo_ImportViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostExpanded.cs index 30cf11f3fca9..d787814e9e5d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control provisioning of a hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdCancelSessionHostProvisioning_PostExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class InvokeAzWvdCancelSessionHostProvisioning_PostExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameter _hostPoolProvisioningControlParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolProvisioningControlParameter(); /// when specified, runs this cmdlet as a PowerShell job @@ -567,7 +567,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExpanded.cs index 9e1e596919fb..cbc650e820ce 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control provisioning of a hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class InvokeAzWvdCancelSessionHostProvisioning_PostViaIdentityExp /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents properties for a hostpool provisioning control request. + /// Object containing control action for hostpool provisioning. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolProvisioningControlParameter _hostPoolProvisioningControlParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolProvisioningControlParameter(); /// when specified, runs this cmdlet as a PowerShell job @@ -548,7 +548,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonFilePath.cs index 696feef3ef85..a6bd850eca7b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control provisioning of a hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -571,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonString.cs index 423203b0bb15..45ab3f270877 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control provisioning of a hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostProvisioning", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdCancelSessionHostProvisioning_PostViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_Post.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_Post.cs index fde085f50db3..091e1a27ac3d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_Post.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_Post.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_Post", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdControlSessionHostUpdate_Post : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -86,12 +86,12 @@ public partial class InvokeAzWvdControlSessionHostUpdate_Post : global::System.M /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter _hostPoolUpdateControlParameter; - /// Represents properties for a hostpool update control request. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents properties for a hostpool update control request.", ValueFromPipeline = true)] + /// Object containing control action for hostpool update. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Object containing control action for hostpool update.", ValueFromPipeline = true)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Represents properties for a hostpool update control request.", + Description = @"Object containing control action for hostpool update.", SerializedName = @"hostPoolUpdateControlParameter", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] @@ -567,7 +567,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostExpanded.cs index fff3743b69c0..0459dd135e2e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_PostExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdControlSessionHostUpdate_PostExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class InvokeAzWvdControlSessionHostUpdate_PostExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter _hostPoolUpdateControlParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolUpdateControlParameter(); /// Action types for controlling hostpool update. @@ -581,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentity.cs index 2da410799c27..5a57cef05c51 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_PostViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdControlSessionHostUpdate_PostViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -72,12 +72,12 @@ public partial class InvokeAzWvdControlSessionHostUpdate_PostViaIdentity : globa /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter _hostPoolUpdateControlParameter; - /// Represents properties for a hostpool update control request. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents properties for a hostpool update control request.", ValueFromPipeline = true)] + /// Object containing control action for hostpool update. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Object containing control action for hostpool update.", ValueFromPipeline = true)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Represents properties for a hostpool update control request.", + Description = @"Object containing control action for hostpool update.", SerializedName = @"hostPoolUpdateControlParameter", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] @@ -545,7 +545,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded.cs index aa5ca01aaf5c..c5e06bcfa0ff 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_PostViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class InvokeAzWvdControlSessionHostUpdate_PostViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents properties for a hostpool update control request. + /// Object containing control action for hostpool update. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPoolUpdateControlParameter _hostPoolUpdateControlParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.HostPoolUpdateControlParameter(); /// Action types for controlling hostpool update. @@ -561,7 +561,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonFilePath.cs index 3f032db278e3..059581c38356 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonFilePath.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_PostViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdControlSessionHostUpdate_PostViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonString.cs index 2472ca742f2e..7ec53df657cd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdControlSessionHostUpdate_PostViaJsonString.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Control post of a hostpool. + /// Control actions on a session host post /// /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzWvdControlSessionHostUpdate_PostViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control post of a hostpool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Control actions on a session host post ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/controlSessionHostUpdate", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdControlSessionHostUpdate_PostViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -567,7 +567,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_Post.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_Post.cs index 6d1e1ac31875..83890c88ab17 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_Post.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_Post.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdInitiateSessionHostUpdate_Post : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostExpanded.cs index 32c361949279..97571bfa6141 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdInitiateSessionHostUpdate_PostExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -224,13 +224,13 @@ public partial class InvokeAzWvdInitiateSessionHostUpdate_PostExpanded : global: PossibleTypes = new [] { typeof(int) })] public int UpdateLogOffDelayMinute { get => _updateSessionHostsRequestBody.UpdateLogOffDelayMinute ?? default(int); set => _updateSessionHostsRequestBody.UpdateLogOffDelayMinute = value; } - /// Log off message sent to user for logoff. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff.")] + /// Log off message sent to user for logoff. Default value is an empty string. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff. Default value is an empty string.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] public string UpdateLogOffMessage { get => _updateSessionHostsRequestBody.UpdateLogOffMessage ?? null; set => _updateSessionHostsRequestBody.UpdateLogOffMessage = value; } @@ -559,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentity.cs index 67f013d12143..8be82b162c31 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpanded.cs index f4435d96f7dd..572a1f2248ae 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -185,13 +185,13 @@ public partial class InvokeAzWvdInitiateSessionHostUpdate_PostViaIdentityExpande PossibleTypes = new [] { typeof(int) })] public int UpdateLogOffDelayMinute { get => _updateSessionHostsRequestBody.UpdateLogOffDelayMinute ?? default(int); set => _updateSessionHostsRequestBody.UpdateLogOffDelayMinute = value; } - /// Log off message sent to user for logoff. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff.")] + /// Log off message sent to user for logoff. Default value is an empty string. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff. Default value is an empty string.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] public string UpdateLogOffMessage { get => _updateSessionHostsRequestBody.UpdateLogOffMessage ?? null; set => _updateSessionHostsRequestBody.UpdateLogOffMessage = value; } @@ -540,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonFilePath.cs index 8da1be9a962e..0aa852dc9be6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonString.cs index 7d7eab970bd6..6a4abe40ea22 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Initiates a hostpool post or schedule an post for the future.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default/initiateSessionHostUpdate", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class InvokeAzWvdInitiateSessionHostUpdate_PostViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_Retry.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_Retry.cs index 44e43e673cf7..033f1ff220bc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_Retry.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_Retry.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Retry provisioning on a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdRetrySessionHostProvisioning_Retry : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -190,12 +190,12 @@ public partial class InvokeAzWvdRetrySessionHostProvisioning_Retry : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -348,7 +348,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'SessionHostRetryProvisioning' operation")) + if (ShouldProcess($"Call remote 'SessionHostsRetryProvisioning' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -400,7 +400,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SessionHostRetryProvisioning(SubscriptionId, ResourceGroupName, HostPoolName, SessionHostName, onOk, onDefault, this, Pipeline); + await this.Client.SessionHostsRetryProvisioning(SubscriptionId, ResourceGroupName, HostPoolName, SessionHostName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) @@ -443,12 +443,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -465,7 +465,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity.cs index 2eb2c39fed41..df207a16ef4e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Retry provisioning on a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentity : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -295,7 +295,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'SessionHostRetryProvisioning' operation")) + if (ShouldProcess($"Call remote 'SessionHostsRetryProvisioning' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -349,7 +349,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.SessionHostRetryProvisioningViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + await this.Client.SessionHostsRetryProvisioningViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -370,7 +370,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SessionHostName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.SessionHostRetryProvisioning(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.SessionHostName ?? null, onOk, onDefault, this, Pipeline); + await this.Client.SessionHostsRetryProvisioning(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.SessionHostName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -414,12 +414,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -436,7 +436,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -469,7 +469,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHostPool.cs index 48d12a6884f5..c77f1b157f29 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Retry provisioning on a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning", ApiVersion = "2025-09-01-preview")] public partial class InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class InvokeAzWvdRetrySessionHostProvisioning_RetryViaIdentityHos /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -310,7 +310,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'SessionHostRetryProvisioning' operation")) + if (ShouldProcess($"Call remote 'SessionHostsRetryProvisioning' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -365,7 +365,7 @@ protected override void ProcessRecord() if (HostPoolInputObject?.Id != null) { this.HostPoolInputObject.Id += $"/sessionHosts/{(global::System.Uri.EscapeDataString(this.SessionHostName.ToString()))}"; - await this.Client.SessionHostRetryProvisioningViaIdentity(HostPoolInputObject.Id, onOk, onDefault, this, Pipeline); + await this.Client.SessionHostsRetryProvisioningViaIdentity(HostPoolInputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -382,7 +382,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("HostPoolInputObject has null value for HostPoolInputObject.HostPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, HostPoolInputObject) ); } - await this.Client.SessionHostRetryProvisioning(HostPoolInputObject.SubscriptionId ?? null, HostPoolInputObject.ResourceGroupName ?? null, HostPoolInputObject.HostPoolName ?? null, SessionHostName, onOk, onDefault, this, Pipeline); + await this.Client.SessionHostsRetryProvisioning(HostPoolInputObject.SubscriptionId ?? null, HostPoolInputObject.ResourceGroupName ?? null, HostPoolInputObject.HostPoolName ?? null, SessionHostName, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -426,12 +426,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -448,7 +448,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs index 0994459726af..e35c1b01d7de 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -126,45 +126,45 @@ public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } /// Date certificate expires, found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageCertificateExpiry { get => _appAttachPackageBody.ImageCertificateExpiry ?? default(global::System.DateTime); set => _appAttachPackageBody.ImageCertificateExpiry = value; } /// Certificate name found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] public string ImageCertificateName { get => _appAttachPackageBody.ImageCertificateName ?? null; set => _appAttachPackageBody.ImageCertificateName = value; } /// User friendly Name to be displayed in the portal. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] public string ImageDisplayName { get => _appAttachPackageBody.ImageDisplayName ?? null; set => _appAttachPackageBody.ImageDisplayName = value; } /// Make this version of the package the active one across the hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsActive { get => _appAttachPackageBody.ImageIsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackageBody.ImageIsActive = value; } @@ -192,15 +192,13 @@ public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Ma PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsRegularRegistration { get => _appAttachPackageBody.ImageIsRegularRegistration ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackageBody.ImageIsRegularRegistration = value; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ")] + /// Date Package was last updated, found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date Package was last updated, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageLastUpdated { get => _appAttachPackageBody.ImageLastUpdated ?? default(global::System.DateTime); set => _appAttachPackageBody.ImageLastUpdated = value; } @@ -218,94 +216,92 @@ public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Ma /// List of package applications. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications[] ImagePackageApplication { get => _appAttachPackageBody.ImagePackageApplication?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackageBody.ImagePackageApplication = (value != null ? new System.Collections.Generic.List(value) : null); } /// List of package dependencies. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies[] ImagePackageDependency { get => _appAttachPackageBody.ImagePackageDependency?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackageBody.ImagePackageDependency = (value != null ? new System.Collections.Generic.List(value) : null); } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFamilyName { get => _appAttachPackageBody.ImagePackageFamilyName ?? null; set => _appAttachPackageBody.ImagePackageFamilyName = value; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ")] + /// Package Full Name from appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Full Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFullName { get => _appAttachPackageBody.ImagePackageFullName ?? null; set => _appAttachPackageBody.ImagePackageFullName = value; } /// Package Name from appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageName { get => _appAttachPackageBody.ImagePackageName ?? null; set => _appAttachPackageBody.ImagePackageName = value; } /// Relative Path to the package inside the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] public string ImagePackageRelativePath { get => _appAttachPackageBody.ImagePackageRelativePath ?? null; set => _appAttachPackageBody.ImagePackageRelativePath = value; } - /// VHD/CIM/APP-V image path on Network Share. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM/APP-V image path on Network Share.")] + /// VHD/CIM image path on Network Share. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM image path on Network Share.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] public string ImagePath { get => _appAttachPackageBody.ImagePath ?? null; set => _appAttachPackageBody.ImagePath = value; } - /// Package Version found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Version found in the appxmanifest.xml. ")] + /// Package version found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package version found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] public string ImageVersion { get => _appAttachPackageBody.ImageVersion ?? null; set => _appAttachPackageBody.ImageVersion = value; } @@ -313,13 +309,13 @@ public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Ma /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// URL of keyvault location to store certificate - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL of keyvault location to store certificate")] + /// URL path to certificate name located in keyVault + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL path to certificate name located in keyVault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] public string KeyVaultUrl { get => _appAttachPackageBody.KeyVaultUrl ?? null; set => _appAttachPackageBody.KeyVaultUrl = value; } @@ -346,12 +342,12 @@ public partial class NewAzWvdAppAttachPackage_CreateExpanded : global::System.Ma /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs index 6136831a3b24..fc81344fd0f7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdAppAttachPackage_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -115,12 +115,12 @@ public partial class NewAzWvdAppAttachPackage_CreateViaJsonFilePath : global::Sy /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs index 7bbfba7c0717..f8572a37da2d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdAppAttachPackage_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -113,12 +113,12 @@ public partial class NewAzWvdAppAttachPackage_CreateViaJsonString : global::Syst /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs index 4a0146d2c5c2..7c11cd34a6db 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdApplicationGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -167,15 +167,15 @@ public partial class NewAzWvdApplicationGroup_CreateExpanded : global::System.Ma public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", SerializedName = @"kind", PossibleTypes = new [] { typeof(string) })] public string Kind { get => _applicationGroupBody.Kind ?? null; set => _applicationGroupBody.Kind = value; } @@ -229,6 +229,17 @@ public partial class NewAzWvdApplicationGroup_CreateExpanded : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// Tenant that the resource is being requested on behalf of. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant that the resource is being requested on behalf of.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + public string OboTenantId { get => _applicationGroupBody.OboTenantId ?? null; set => _applicationGroupBody.OboTenantId = value; } + /// /// The instance of the that the remote call will use. /// @@ -449,12 +460,12 @@ public partial class NewAzWvdApplicationGroup_CreateExpanded : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -746,12 +757,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -768,7 +779,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs index d5f10ab50206..5104ede34d35 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdApplicationGroup_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -198,12 +198,12 @@ public partial class NewAzWvdApplicationGroup_CreateViaJsonFilePath : global::Sy /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -495,12 +495,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -517,7 +517,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs index 4da9876893b2..ae722c28c61e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdApplicationGroup_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -196,12 +196,12 @@ public partial class NewAzWvdApplicationGroup_CreateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -493,12 +493,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -515,7 +515,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs index 8d5564b62002..a2bd68bbbfcc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdApplication_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -326,12 +326,12 @@ public partial class NewAzWvdApplication_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -623,12 +623,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -645,7 +645,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs index fc690c54b90b..2895637c5920 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdApplication_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -213,12 +213,12 @@ public partial class NewAzWvdApplication_CreateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -510,12 +510,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -532,7 +532,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs index 4c4ef692fe5d..a9d9a93fa6ef 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdApplication_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -211,12 +211,12 @@ public partial class NewAzWvdApplication_CreateViaJsonString : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -508,12 +508,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -530,7 +530,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs index b689ff712c24..d244c3c17da3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -102,6 +102,20 @@ public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter AgentUpdateUseSessionHostLocalTime { get => _hostPoolBody.AgentUpdateUseSessionHostLocalTime ?? default(global::System.Management.Automation.SwitchParameter); set => _hostPoolBody.AgentUpdateUseSessionHostLocalTime = value; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + public string AllowRdpShortPathWithPrivateLink { get => _hostPoolBody.AllowRdpShortPathWithPrivateLink ?? null; set => _hostPoolBody.AllowRdpShortPathWithPrivateLink = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] @@ -134,6 +148,18 @@ public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// DeploymentScope type for HostPool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DeploymentScope type for HostPool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DeploymentScope type for HostPool.", + SerializedName = @"deploymentScope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Geographical", "Regional")] + public string DeploymentScope { get => _hostPoolBody.DeploymentScope ?? null; set => _hostPoolBody.DeploymentScope = value; } + /// Description of HostPool. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Description of HostPool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] @@ -244,15 +270,15 @@ public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", SerializedName = @"kind", PossibleTypes = new [] { typeof(string) })] public string Kind { get => _hostPoolBody.Kind ?? null; set => _hostPoolBody.Kind = value; } @@ -359,6 +385,17 @@ public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// Tenant that the resource is being requested on behalf of. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant that the resource is being requested on behalf of.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + public string OboTenantId { get => _hostPoolBody.OboTenantId ?? null; set => _hostPoolBody.OboTenantId = value; } + /// PersonalDesktopAssignment type for HostPool. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "PersonalDesktopAssignment type for HostPool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] @@ -753,12 +790,12 @@ public partial class NewAzWvdHostPool_CreateExpanded : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -1050,12 +1087,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -1072,7 +1109,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs index 3d1e38a59343..0c792ad0a627 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdHostPool_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -199,12 +199,12 @@ public partial class NewAzWvdHostPool_CreateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -496,12 +496,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -518,7 +518,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs index 380624c1704c..83d2571accac 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdHostPool_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -197,12 +197,12 @@ public partial class NewAzWvdHostPool_CreateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -494,12 +494,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -516,7 +516,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs index c083fca1d8a6..f9048bf2176b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// create a MSIX package. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -74,12 +74,12 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem public global::System.Management.Automation.PSObject DefaultProfile { get; set; } /// User friendly Name to be displayed in the portal. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] public string DisplayName { get => _msixPackageBody.DisplayName ?? null; set => _msixPackageBody.DisplayName = value; } @@ -145,12 +145,12 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Make this version of the package the active one across the hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter IsActive { get => _msixPackageBody.IsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _msixPackageBody.IsActive = value; } @@ -167,12 +167,12 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem public global::System.Management.Automation.SwitchParameter IsRegularRegistration { get => _msixPackageBody.IsRegularRegistration ?? default(global::System.Management.Automation.SwitchParameter); set => _msixPackageBody.IsRegularRegistration = value; } /// Date Package was last updated, found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date Package was last updated, found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date Package was last updated, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date Package was last updated, found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime LastUpdated { get => _msixPackageBody.LastUpdated ?? default(global::System.DateTime); set => _msixPackageBody.LastUpdated = value; } @@ -187,24 +187,24 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem /// List of package applications. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications[] PackageApplication { get => _msixPackageBody.PackageApplication?.ToArray() ?? null /* fixedArrayOf */; set => _msixPackageBody.PackageApplication = (value != null ? new System.Collections.Generic.List(value) : null); } /// List of package dependencies. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies[] PackageDependency { get => _msixPackageBody.PackageDependency?.ToArray() ?? null /* fixedArrayOf */; set => _msixPackageBody.PackageDependency = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -212,34 +212,34 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem /// /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] public string PackageFamilyName { get => _msixPackageBody.PackageFamilyName ?? null; set => _msixPackageBody.PackageFamilyName = value; } /// Package Name from appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] public string PackageName { get => _msixPackageBody.PackageName ?? null; set => _msixPackageBody.PackageName = value; } /// Relative Path to the package inside the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] public string PackageRelativePath { get => _msixPackageBody.PackageRelativePath ?? null; set => _msixPackageBody.PackageRelativePath = value; } @@ -298,13 +298,13 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Package Version found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Version found in the appxmanifest.xml. ")] + /// Package version found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package version found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] public string Version { get => _msixPackageBody.Version ?? null; set => _msixPackageBody.Version = value; } @@ -326,12 +326,12 @@ public partial class NewAzWvdMsixPackage_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -623,12 +623,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -645,7 +645,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs index bee48bb2ad6a..a36fb0f0dfd1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// create a MSIX package. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdMsixPackage_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -214,12 +214,12 @@ public partial class NewAzWvdMsixPackage_CreateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -511,12 +511,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -533,7 +533,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs index 75a30e279554..a62dab8beb8a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// create a MSIX package. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdMsixPackage_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -212,12 +212,12 @@ public partial class NewAzWvdMsixPackage_CreateViaJsonString : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -509,12 +509,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -531,7 +531,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs index f2ab70cdc5e3..2eac927998a7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -65,10 +65,10 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global /// Set of days of the week on which this schedule is active. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Set of days of the week on which this schedule is active.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set of days of the week on which this schedule is active.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"Set of days of the week on which this schedule is active.", SerializedName = @"daysOfWeek", @@ -165,26 +165,26 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global public int OffPeakMinutesToWaitOnLogoff { get => _scalingPlanScheduleBody.OffPeakMinutesToWaitOnLogoff ?? default(int); set => _scalingPlanScheduleBody.OffPeakMinutesToWaitOnLogoff = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int OffPeakStartTimeHour { get => _scalingPlanScheduleBody.OffPeakStartTimeHour; set => _scalingPlanScheduleBody.OffPeakStartTimeHour = value; } + public int OffPeakStartTimeHour { get => _scalingPlanScheduleBody.OffPeakStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.OffPeakStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int OffPeakStartTimeMinute { get => _scalingPlanScheduleBody.OffPeakStartTimeMinute; set => _scalingPlanScheduleBody.OffPeakStartTimeMinute = value; } + public int OffPeakStartTimeMinute { get => _scalingPlanScheduleBody.OffPeakStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.OffPeakStartTimeMinute = value; } /// /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase. @@ -253,26 +253,26 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global public int PeakMinutesToWaitOnLogoff { get => _scalingPlanScheduleBody.PeakMinutesToWaitOnLogoff ?? default(int); set => _scalingPlanScheduleBody.PeakMinutesToWaitOnLogoff = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int PeakStartTimeHour { get => _scalingPlanScheduleBody.PeakStartTimeHour; set => _scalingPlanScheduleBody.PeakStartTimeHour = value; } + public int PeakStartTimeHour { get => _scalingPlanScheduleBody.PeakStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.PeakStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int PeakStartTimeMinute { get => _scalingPlanScheduleBody.PeakStartTimeMinute; set => _scalingPlanScheduleBody.PeakStartTimeMinute = value; } + public int PeakStartTimeMinute { get => _scalingPlanScheduleBody.PeakStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.PeakStartTimeMinute = value; } /// /// The desired configuration of Start VM On Connect for the hostpool during the peak phase. @@ -362,26 +362,26 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global public int RampDownMinutesToWaitOnLogoff { get => _scalingPlanScheduleBody.RampDownMinutesToWaitOnLogoff ?? default(int); set => _scalingPlanScheduleBody.RampDownMinutesToWaitOnLogoff = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int RampDownStartTimeHour { get => _scalingPlanScheduleBody.RampDownStartTimeHour; set => _scalingPlanScheduleBody.RampDownStartTimeHour = value; } + public int RampDownStartTimeHour { get => _scalingPlanScheduleBody.RampDownStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.RampDownStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int RampDownStartTimeMinute { get => _scalingPlanScheduleBody.RampDownStartTimeMinute; set => _scalingPlanScheduleBody.RampDownStartTimeMinute = value; } + public int RampDownStartTimeMinute { get => _scalingPlanScheduleBody.RampDownStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.RampDownStartTimeMinute = value; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase. @@ -464,26 +464,26 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : global public int RampUpMinutesToWaitOnLogoff { get => _scalingPlanScheduleBody.RampUpMinutesToWaitOnLogoff ?? default(int); set => _scalingPlanScheduleBody.RampUpMinutesToWaitOnLogoff = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int RampUpStartTimeHour { get => _scalingPlanScheduleBody.RampUpStartTimeHour; set => _scalingPlanScheduleBody.RampUpStartTimeHour = value; } + public int RampUpStartTimeHour { get => _scalingPlanScheduleBody.RampUpStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.RampUpStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int RampUpStartTimeMinute { get => _scalingPlanScheduleBody.RampUpStartTimeMinute; set => _scalingPlanScheduleBody.RampUpStartTimeMinute = value; } + public int RampUpStartTimeMinute { get => _scalingPlanScheduleBody.RampUpStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.RampUpStartTimeMinute = value; } /// /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session @@ -578,12 +578,12 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -875,12 +875,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -897,7 +897,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs index 2cd24b3729a1..db6f3b0d2871 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -211,12 +211,12 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -508,12 +508,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -530,7 +530,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs index 8a3513cbb1b2..e7c14d5e8cc5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -209,12 +209,12 @@ public partial class NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString : g /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -506,12 +506,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +528,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs index b89996f4e580..07972617e56d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -121,10 +121,10 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: /// Set of days of the week on which this schedule is active. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Set of days of the week on which this schedule is active.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set of days of the week on which this schedule is active.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"Set of days of the week on which this schedule is active.", SerializedName = @"daysOfWeek", @@ -181,26 +181,26 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public string OffPeakLoadBalancingAlgorithm { get => _scalingPlanScheduleBody.OffPeakLoadBalancingAlgorithm ?? null; set => _scalingPlanScheduleBody.OffPeakLoadBalancingAlgorithm = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int OffPeakStartTimeHour { get => _scalingPlanScheduleBody.OffPeakStartTimeHour; set => _scalingPlanScheduleBody.OffPeakStartTimeHour = value; } + public int OffPeakStartTimeHour { get => _scalingPlanScheduleBody.OffPeakStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.OffPeakStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int OffPeakStartTimeMinute { get => _scalingPlanScheduleBody.OffPeakStartTimeMinute; set => _scalingPlanScheduleBody.OffPeakStartTimeMinute = value; } + public int OffPeakStartTimeMinute { get => _scalingPlanScheduleBody.OffPeakStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.OffPeakStartTimeMinute = value; } /// Load balancing algorithm for peak period. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing algorithm for peak period.")] @@ -215,26 +215,26 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public string PeakLoadBalancingAlgorithm { get => _scalingPlanScheduleBody.PeakLoadBalancingAlgorithm ?? null; set => _scalingPlanScheduleBody.PeakLoadBalancingAlgorithm = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int PeakStartTimeHour { get => _scalingPlanScheduleBody.PeakStartTimeHour; set => _scalingPlanScheduleBody.PeakStartTimeHour = value; } + public int PeakStartTimeHour { get => _scalingPlanScheduleBody.PeakStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.PeakStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int PeakStartTimeMinute { get => _scalingPlanScheduleBody.PeakStartTimeMinute; set => _scalingPlanScheduleBody.PeakStartTimeMinute = value; } + public int PeakStartTimeMinute { get => _scalingPlanScheduleBody.PeakStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.PeakStartTimeMinute = value; } /// /// The instance of the that the remote call will use. @@ -258,15 +258,15 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } /// Capacity threshold for ramp down period. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Capacity threshold for ramp down period.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Capacity threshold for ramp down period.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"Capacity threshold for ramp down period.", SerializedName = @"rampDownCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - public int RampDownCapacityThresholdPct { get => _scalingPlanScheduleBody.RampDownCapacityThresholdPct; set => _scalingPlanScheduleBody.RampDownCapacityThresholdPct = value; } + public int RampDownCapacityThresholdPct { get => _scalingPlanScheduleBody.RampDownCapacityThresholdPct ?? default(int); set => _scalingPlanScheduleBody.RampDownCapacityThresholdPct = value; } /// Should users be logged off forcefully from hosts. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should users be logged off forcefully from hosts.")] @@ -314,26 +314,26 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public string RampDownNotificationMessage { get => _scalingPlanScheduleBody.RampDownNotificationMessage ?? null; set => _scalingPlanScheduleBody.RampDownNotificationMessage = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int RampDownStartTimeHour { get => _scalingPlanScheduleBody.RampDownStartTimeHour; set => _scalingPlanScheduleBody.RampDownStartTimeHour = value; } + public int RampDownStartTimeHour { get => _scalingPlanScheduleBody.RampDownStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.RampDownStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int RampDownStartTimeMinute { get => _scalingPlanScheduleBody.RampDownStartTimeMinute; set => _scalingPlanScheduleBody.RampDownStartTimeMinute = value; } + public int RampDownStartTimeMinute { get => _scalingPlanScheduleBody.RampDownStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.RampDownStartTimeMinute = value; } /// Specifies when to stop hosts during ramp down period. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies when to stop hosts during ramp down period.")] @@ -359,15 +359,15 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public int RampDownWaitTimeMinute { get => _scalingPlanScheduleBody.RampDownWaitTimeMinute ?? default(int); set => _scalingPlanScheduleBody.RampDownWaitTimeMinute = value; } /// Capacity threshold for ramp up period. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Capacity threshold for ramp up period.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Capacity threshold for ramp up period.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"Capacity threshold for ramp up period.", SerializedName = @"rampUpCapacityThresholdPct", PossibleTypes = new [] { typeof(int) })] - public int RampUpCapacityThresholdPct { get => _scalingPlanScheduleBody.RampUpCapacityThresholdPct; set => _scalingPlanScheduleBody.RampUpCapacityThresholdPct = value; } + public int RampUpCapacityThresholdPct { get => _scalingPlanScheduleBody.RampUpCapacityThresholdPct ?? default(int); set => _scalingPlanScheduleBody.RampUpCapacityThresholdPct = value; } /// Load balancing algorithm for ramp up period. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Load balancing algorithm for ramp up period.")] @@ -393,26 +393,26 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : global:: public int RampUpMinimumHostsPct { get => _scalingPlanScheduleBody.RampUpMinimumHostsPct ?? default(int); set => _scalingPlanScheduleBody.RampUpMinimumHostsPct = value; } /// The hour. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The hour.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hour.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The hour.", SerializedName = @"hour", PossibleTypes = new [] { typeof(int) })] - public int RampUpStartTimeHour { get => _scalingPlanScheduleBody.RampUpStartTimeHour; set => _scalingPlanScheduleBody.RampUpStartTimeHour = value; } + public int RampUpStartTimeHour { get => _scalingPlanScheduleBody.RampUpStartTimeHour ?? default(int); set => _scalingPlanScheduleBody.RampUpStartTimeHour = value; } /// The minute. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The minute.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minute.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The minute.", SerializedName = @"minute", PossibleTypes = new [] { typeof(int) })] - public int RampUpStartTimeMinute { get => _scalingPlanScheduleBody.RampUpStartTimeMinute; set => _scalingPlanScheduleBody.RampUpStartTimeMinute = value; } + public int RampUpStartTimeMinute { get => _scalingPlanScheduleBody.RampUpStartTimeMinute ?? default(int); set => _scalingPlanScheduleBody.RampUpStartTimeMinute = value; } /// Backing field for property. private string _resourceGroupName; @@ -506,12 +506,12 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -803,12 +803,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -825,7 +825,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs index b2a6f74cc08a..7fc465aa7027 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -211,12 +211,12 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath : g /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -508,12 +508,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -530,7 +530,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs index e466706b08b2..1cf6d738037e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -209,12 +209,12 @@ public partial class NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString : glo /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -506,12 +506,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +528,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs index 507233d8882a..02c200a546fa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdScalingPlan_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -179,15 +179,15 @@ public partial class NewAzWvdScalingPlan_CreateExpanded : global::System.Managem public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", SerializedName = @"kind", PossibleTypes = new [] { typeof(string) })] public string Kind { get => _scalingPlanBody.Kind ?? null; set => _scalingPlanBody.Kind = value; } @@ -336,14 +336,14 @@ public partial class NewAzWvdScalingPlan_CreateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// List of Pooled ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of Pooled ScalingSchedule definitions.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of ScalingPlanPooledSchedule definitions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of Pooled ScalingSchedule definitions.", + Description = @"List of ScalingPlanPooledSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[] Schedule { get => _scalingPlanBody.Schedule?.ToArray() ?? null /* fixedArrayOf */; set => _scalingPlanBody.Schedule = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -473,12 +473,12 @@ public partial class NewAzWvdScalingPlan_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -770,12 +770,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -792,7 +792,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs index bdc535362c15..11ac9f4244a3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlan_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -198,12 +198,12 @@ public partial class NewAzWvdScalingPlan_CreateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -495,12 +495,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -517,7 +517,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs index b602a6965bf3..8c3822d9c31a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdScalingPlan_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -196,12 +196,12 @@ public partial class NewAzWvdScalingPlan_CreateViaJsonString : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -493,12 +493,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -515,7 +515,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateExpanded.cs index 7042dc2612cb..794c3a77aeca 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents a SessionHostConfiguration definition. + /// Schema for SessionHostConfiguration properties. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration _sessionHostConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfiguration(); /// The domain a virtual machine connected to a hostpool will join. @@ -144,13 +144,13 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S PossibleTypes = new [] { typeof(string) })] public string CustomConfigurationScriptUrl { get => _sessionHostConfigurationBody.CustomConfigurationScriptUrl ?? null; set => _sessionHostConfigurationBody.CustomConfigurationScriptUrl = value; } - /// The resource id of the custom image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the custom image.")] + /// The resource ID of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource ID of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] public string CustomInfoResourceId { get => _sessionHostConfigurationBody.CustomInfoResourceId ?? null; set => _sessionHostConfigurationBody.CustomInfoResourceId = value; } @@ -181,14 +181,14 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -283,25 +283,25 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// The disk type used by virtual machine in hostpool session host. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The disk type used by virtual machine in hostpool session host.")] + /// Managed Disk information. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed Disk information.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] public string ManagedDiskType { get => _sessionHostConfigurationBody.ManagedDiskType ?? null; set => _sessionHostConfigurationBody.ManagedDiskType = value; } - /// The exact version of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The exact version of the image.")] + /// The version of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoExactVersion { get => _sessionHostConfigurationBody.MarketplaceInfoExactVersion ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoExactVersion = value; } @@ -328,13 +328,13 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoPublisher { get => _sessionHostConfigurationBody.MarketplaceInfoPublisher ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoPublisher = value; } - /// The sku of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The sku of the image.")] + /// The SKU of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoSku { get => _sessionHostConfigurationBody.MarketplaceInfoSku ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoSku = value; } @@ -439,13 +439,13 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] public string SecurityInfoType { get => _sessionHostConfigurationBody.SecurityInfoType ?? null; set => _sessionHostConfigurationBody.SecurityInfoType = value; } - /// Whether to use vTPM on the virtual machine. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTPM on the virtual machine.")] + /// Whether to use vTpm on the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTpm on the virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SecurityInfoVTpmEnabled { get => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled = value; } @@ -492,14 +492,14 @@ public partial class NewAzWvdSessionHostConfiguration_CreateExpanded : global::S public string VMAdminCredentialsUsernameKeyVaultSecretUri { get => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri ?? null; set => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri = value; } /// - /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided. + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in. It will default to the location of the hostpool if not provided.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in. It will default to the location of the hostpool if not provided")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided.", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] public string VMLocation { get => _sessionHostConfigurationBody.VMLocation ?? null; set => _sessionHostConfigurationBody.VMLocation = value; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonFilePath.cs index cc974495763c..8f649de496d4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdSessionHostConfiguration_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonString.cs index 44aea5483fe8..a9c95cf37969 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostConfiguration_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdSessionHostConfiguration_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateExpanded.cs index dd4fb3502bdd..1cda8188eeb3 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdSessionHostManagement_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -49,7 +49,7 @@ public partial class NewAzWvdSessionHostManagement_CreateExpanded : global::Syst /// private int _responseSize = 0; - /// Represents a SessionHostManagement definition. + /// Schema for SessionHostManagement properties. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement _sessionHostManagementBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagement(); /// Wait for .NET debugger to attach @@ -133,26 +133,27 @@ public partial class NewAzWvdSessionHostManagement_CreateExpanded : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.HttpPipeline Pipeline { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM should be provisioned during a session host provisioning operation.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] public string ProvisioningCanaryPolicy { get => _sessionHostManagementBody.ProvisioningCanaryPolicy ?? null; set => _sessionHostManagementBody.ProvisioningCanaryPolicy = value; } - /// the number of session hosts to exist in the Host Pool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "the number of session hosts to exist in the Host Pool.")] + /// The number of session hosts to exist in the Host Pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The number of session hosts to exist in the Host Pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] public int ProvisioningInstanceCount { get => _sessionHostManagementBody.ProvisioningInstanceCount ?? default(int); set => _sessionHostManagementBody.ProvisioningInstanceCount = value; } @@ -292,12 +293,12 @@ public partial class NewAzWvdSessionHostManagement_CreateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -589,12 +590,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -611,7 +612,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonFilePath.cs index d28b1984fba1..65cff9f0d5ea 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdSessionHostManagement_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -197,12 +197,12 @@ public partial class NewAzWvdSessionHostManagement_CreateViaJsonFilePath : globa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -494,12 +494,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -516,7 +516,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonString.cs index 43b2d9aa640f..ccce78c1387d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdSessionHostManagement_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdSessionHostManagement_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -195,12 +195,12 @@ public partial class NewAzWvdSessionHostManagement_CreateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -492,12 +492,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -514,7 +514,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs index 7251ad0ffb4b..8dab89a15eb4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class NewAzWvdWorkspace_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -156,15 +156,15 @@ public partial class NewAzWvdWorkspace_CreateExpanded : global::System.Managemen public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are /// a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + Description = @"Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", SerializedName = @"kind", PossibleTypes = new [] { typeof(string) })] public string Kind { get => _workspaceBody.Kind ?? null; set => _workspaceBody.Kind = value; } @@ -218,6 +218,17 @@ public partial class NewAzWvdWorkspace_CreateExpanded : global::System.Managemen [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// Tenant that the resource is being requested on behalf of. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant that the resource is being requested on behalf of.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tenant that the resource is being requested on behalf of.", + SerializedName = @"oboTenantId", + PossibleTypes = new [] { typeof(string) })] + public string OboTenantId { get => _workspaceBody.OboTenantId ?? null; set => _workspaceBody.OboTenantId = value; } + /// /// The instance of the that the remote call will use. /// @@ -442,12 +453,12 @@ public partial class NewAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -739,12 +750,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -761,7 +772,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs index c5db90fa2b57..99911e520045 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdWorkspace_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -198,12 +198,12 @@ public partial class NewAzWvdWorkspace_CreateViaJsonFilePath : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -495,12 +495,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -517,7 +517,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs index 553ecd7eb87c..35974dce5476 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class NewAzWvdWorkspace_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -196,12 +196,12 @@ public partial class NewAzWvdWorkspace_CreateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -493,12 +493,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -515,7 +515,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_Delete.cs index 18b72b80c1ce..b1731a680969 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an App Attach Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdAppAttachPackage_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -76,12 +76,12 @@ public partial class RemoveAzWvdAppAttachPackage_Delete : global::System.Managem /// Backing field for property. private global::System.Management.Automation.SwitchParameter _force; - /// Force flag to delete App Attach package. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Force flag to delete App Attach package.")] + /// Allows force delete + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allows force delete")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Force flag to delete App Attach package.", + Description = @"Allows force delete", SerializedName = @"force", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] @@ -113,12 +113,12 @@ public partial class RemoveAzWvdAppAttachPackage_Delete : global::System.Managem /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_DeleteViaIdentity.cs index 85cfc32c3371..09c99af4d40d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdAppAttachPackage_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an App Attach Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdAppAttachPackage_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -76,12 +76,12 @@ public partial class RemoveAzWvdAppAttachPackage_DeleteViaIdentity : global::Sys /// Backing field for property. private global::System.Management.Automation.SwitchParameter _force; - /// Force flag to delete App Attach package. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Force flag to delete App Attach package.")] + /// Allows force delete + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allows force delete")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Force flag to delete App Attach package.", + Description = @"Allows force delete", SerializedName = @"force", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Query)] @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_Delete.cs index a83d1f5ce128..3c006daffaff 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdApplicationGroup_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -177,12 +177,12 @@ public partial class RemoveAzWvdApplicationGroup_Delete : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_DeleteViaIdentity.cs index 1c1dae497db0..d2fabd1cf7a7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplicationGroup_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdApplicationGroup_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdApplicationGroup_DeleteViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -420,12 +420,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -442,7 +442,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_Delete.cs index beff649f0b4e..6e5d202532fa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdApplication_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -192,12 +192,12 @@ public partial class RemoveAzWvdApplication_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -455,12 +455,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -477,7 +477,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -510,7 +510,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -534,7 +534,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentity.cs index 71126806370e..a4ca8e8a677b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdApplication_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdApplication_DeleteViaIdentity : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup.cs index 95e03b43a87b..69c3a87e3818 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -152,12 +152,12 @@ public partial class RemoveAzWvdApplication_DeleteViaIdentityApplicationGroup : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -436,12 +436,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -458,7 +458,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +515,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_Delete.cs index c135f3b2aefc..44f34f3c6c8c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdHostPool_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -191,12 +191,12 @@ public partial class RemoveAzWvdHostPool_Delete : global::System.Management.Auto /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -454,12 +454,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_DeleteViaIdentity.cs index a86b157745aa..9f8ed9be20cc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdHostPool_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdHostPool_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class RemoveAzWvdHostPool_DeleteViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -434,12 +434,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -456,7 +456,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_Delete.cs index 28cdb221e049..95c38c818682 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_Delete.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Remove an MSIX Package. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdMsixPackage_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdMsixPackage_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -193,12 +193,12 @@ public partial class RemoveAzWvdMsixPackage_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -456,12 +456,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -478,7 +478,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentity.cs index 22625fb2a714..f81e28212202 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentity.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Remove an MSIX Package. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdMsixPackage_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdMsixPackage_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdMsixPackage_DeleteViaIdentity : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool.cs index 7de89bf2d964..b176167dd990 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// Remove an MSIX Package. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdMsixPackage_DeleteViaIdentityHostPool", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -154,12 +154,12 @@ public partial class RemoveAzWvdMsixPackage_DeleteViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -438,12 +438,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -460,7 +460,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete.cs index 3d8f442bfcc5..0b045cc683f5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] DeleteByWorkspace=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] DeleteByHostPool=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -73,6 +73,20 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete : global::Syste /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Backing field for property. + private string _hostPoolName; + + /// The name of the host pool within the specified resource group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the host pool within the specified resource group", + SerializedName = @"hostPoolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -99,12 +113,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete : global::Syste /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -172,31 +186,17 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Backing field for property. - private string _workspaceName; - - /// The name of the workspace - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the workspace", - SerializedName = @"workspaceName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -351,7 +351,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByWorkspace' operation")) + if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByHostPool' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -403,12 +403,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsDeleteByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, Name, onOk, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -454,12 +454,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete1.cs index 17674f70c213..5fd87326e255 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_Delete1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] DeleteByHostPool=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] DeleteByWorkspace=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_Delete1", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_Delete1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -73,20 +73,6 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete1 : global::Syst /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _hostPoolName; - - /// The name of the host pool within the specified resource group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the host pool within the specified resource group")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the host pool within the specified resource group", - SerializedName = @"hostPoolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] - public string HostPoolName { get => this._hostPoolName; set => this._hostPoolName = value; } - /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -113,12 +99,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete1 : global::Syst /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -186,17 +172,31 @@ public partial class RemoveAzWvdPrivateEndpointConnection_Delete1 : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Backing field for property. + private string _workspaceName; + + /// The name of the workspace + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the workspace")] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the workspace", + SerializedName = @"workspaceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] + public string WorkspaceName { get => this._workspaceName; set => this._workspaceName = 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -351,7 +351,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByHostPool' operation")) + if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByWorkspace' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -403,12 +403,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateEndpointConnectionsDeleteByHostPool(SubscriptionId, ResourceGroupName, HostPoolName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByWorkspace(SubscriptionId, ResourceGroupName, WorkspaceName, Name, onOk, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,HostPoolName=HostPoolName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,WorkspaceName=WorkspaceName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -454,12 +454,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity.cs index 2b6ce38753d8..162f09532977 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] DeleteByWorkspace=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] DeleteByHostPool=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -297,7 +297,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByWorkspace' operation")) + if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByHostPool' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -351,7 +351,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.PrivateEndpointConnectionsDeleteByWorkspaceViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByHostPoolViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); } else { @@ -364,15 +364,15 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.WorkspaceName) + if (null == InputObject.HostPoolName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.WorkspaceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.HostPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.PrivateEndpointConnectionName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateEndpointConnectionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.PrivateEndpointConnectionsDeleteByWorkspace(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.WorkspaceName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByHostPool(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1.cs index 9953a86a7993..b594eb45ef65 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// - /// [OpenAPI] DeleteByHostPool=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" + /// [OpenAPI] DeleteByWorkspace=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_DeleteViaIdentity1", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentity1 : g /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -297,7 +297,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByHostPool' operation")) + if (ShouldProcess($"Call remote 'PrivateEndpointConnectionsDeleteByWorkspace' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token) ) { @@ -351,7 +351,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.PrivateEndpointConnectionsDeleteByHostPoolViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByWorkspaceViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); } else { @@ -364,15 +364,15 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.HostPoolName) + if (null == InputObject.WorkspaceName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.HostPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.WorkspaceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.PrivateEndpointConnectionName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateEndpointConnectionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.PrivateEndpointConnectionsDeleteByHostPool(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.HostPoolName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.PrivateEndpointConnectionsDeleteByWorkspace(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.WorkspaceName ?? null, InputObject.PrivateEndpointConnectionName ?? null, onOk, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool.cs index e1d605480fdb..4d01f29b6f58 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// /// [OpenAPI] DeleteByHostPool=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -107,12 +107,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostP /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -152,12 +152,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityHostP /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -437,12 +437,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -459,7 +459,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace.cs index df627b11b45b..81c102c9498d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Cmdlets; using System; - /// Remove a connection. + /// Delete a PrivateEndpointConnectionWithSystemData /// /// [OpenAPI] DeleteByWorkspace=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a connection.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Delete a PrivateEndpointConnectionWithSystemData")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorkspace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -99,12 +99,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorks /// Backing field for property. private string _name; - /// The name of the private endpoint connection associated with the Azure resource. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private endpoint connection associated with the Azure resource.")] + /// The name parameter for private endpoint + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name parameter for private endpoint")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private endpoint connection associated with the Azure resource.", + Description = @"The name parameter for private endpoint", SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PrivateEndpointConnectionName")] @@ -152,12 +152,12 @@ public partial class RemoveAzWvdPrivateEndpointConnection_DeleteViaIdentityWorks /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -437,12 +437,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -459,7 +459,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_Delete.cs index c6b0adc3d442..a7d3b1dc2b88 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPersonalSchedule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -190,12 +190,12 @@ public partial class RemoveAzWvdScalingPlanPersonalSchedule_Delete : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -532,7 +532,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity.cs index 50af31a514a8..b5af02ba6625 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentity : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentityScalingPlan.cs index 70bdcd7787a8..3e3378f38359 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class RemoveAzWvdScalingPlanPersonalSchedule_DeleteViaIdentitySca /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -436,12 +436,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -458,7 +458,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +515,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_Delete.cs index 75247ebfb466..9252e388d7af 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPooledSchedule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -190,12 +190,12 @@ public partial class RemoveAzWvdScalingPlanPooledSchedule_Delete : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -532,7 +532,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity.cs index 7beb50ddfee8..eca5032fef9b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScalingPlan.cs index f76407c01806..05e25ce05dca 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class RemoveAzWvdScalingPlanPooledSchedule_DeleteViaIdentityScali /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -436,12 +436,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -458,7 +458,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +515,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_Delete.cs index eaf57510d96a..e6017030e0af 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlan_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -177,12 +177,12 @@ public partial class RemoveAzWvdScalingPlan_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_DeleteViaIdentity.cs index 34070798f5d1..e0aba181d56a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdScalingPlan_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdScalingPlan_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdScalingPlan_DeleteViaIdentity : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -420,12 +420,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -442,7 +442,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_Delete.cs index dc4722f62ac9..9bde49b930f6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdSessionHost_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -205,12 +205,12 @@ public partial class RemoveAzWvdSessionHost_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -468,12 +468,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -490,7 +490,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -523,7 +523,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentity.cs index 97b41ed7e9bd..7a86cf471726 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdSessionHost_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class RemoveAzWvdSessionHost_DeleteViaIdentity : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -438,12 +438,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -460,7 +460,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentityHostPool.cs index bcb3dd5ba407..30176616d963 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdSessionHost_DeleteViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a SessionHost.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdSessionHost_DeleteViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -166,12 +166,12 @@ public partial class RemoveAzWvdSessionHost_DeleteViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -450,12 +450,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -472,7 +472,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -529,7 +529,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_Delete.cs index b04a3bcdc95f..7aab54da91b9 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdUserSession_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -219,12 +219,12 @@ public partial class RemoveAzWvdUserSession_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -482,12 +482,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -504,7 +504,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -537,7 +537,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -561,7 +561,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentity.cs index b8ca504cb5a2..b104fae32c34 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdUserSession_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -151,12 +151,12 @@ public partial class RemoveAzWvdUserSession_DeleteViaIdentity : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -442,12 +442,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -464,7 +464,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentityHostPool.cs index 49e7855e6857..fff97ff97dbe 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdUserSession_DeleteViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -180,12 +180,12 @@ public partial class RemoveAzWvdUserSession_DeleteViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -464,12 +464,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -486,7 +486,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -543,7 +543,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentitySessionHost.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentitySessionHost.cs index 2499c1921353..f46a4d7ecf3e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentitySessionHost.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdUserSession_DeleteViaIdentitySessionHost.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdUserSession_DeleteViaIdentitySessionHost : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -166,12 +166,12 @@ public partial class RemoveAzWvdUserSession_DeleteViaIdentitySessionHost : globa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -454,12 +454,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_Delete.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_Delete.cs index 9ac6166b2a3a..310d16e3e970 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_Delete.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdWorkspace_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -177,12 +177,12 @@ public partial class RemoveAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_DeleteViaIdentity.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_DeleteViaIdentity.cs index 49de8e166db3..0bd988f8180b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_DeleteViaIdentity.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/RemoveAzWvdWorkspace_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Remove a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class RemoveAzWvdWorkspace_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -137,12 +137,12 @@ public partial class RemoveAzWvdWorkspace_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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -420,12 +420,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -442,7 +442,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs index 11e438cd7b9a..456e55ca2868 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -229,12 +229,12 @@ public partial class SendAzWvdUserSessionMessage_SendExpanded : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -482,12 +482,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -504,7 +504,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -537,7 +537,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs index 5e201f08d4f2..2ba0515db81a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -162,12 +162,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaIdentityExpanded : globa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -443,12 +443,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -465,7 +465,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs index 1b8e1f17190c..bd201439f697 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -179,12 +179,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaIdentityHostPool : globa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs index 2b7bd38d9130..ca0e89e46267 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -190,12 +190,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -464,12 +464,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -486,7 +486,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs index 55ec289633ca..91ec6d4a39ba 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendViaIdentitySessionHost : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -165,12 +165,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaIdentitySessionHost : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -443,12 +443,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -465,7 +465,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs index 0798ef5b4de6..cf39bf8f8271 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] public partial class SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -176,12 +176,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpan /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -455,12 +455,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -477,7 +477,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -510,7 +510,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs index d0742de9b93e..99b47eaddcb6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class SendAzWvdUserSessionMessage_SendViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -220,12 +220,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -473,12 +473,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -495,7 +495,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -528,7 +528,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs index 752515af60cb..ef4537c527ad 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class SendAzWvdUserSessionMessage_SendViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -218,12 +218,12 @@ public partial class SendAzWvdUserSessionMessage_SendViaJsonString : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -471,12 +471,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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -493,7 +493,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.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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 } @@ -526,7 +526,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs index e4b1782f28f1..a733f17f93b4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -32,7 +32,7 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch _appAttachPackagePatchBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.AppAttachPackagePatch(); /// @@ -126,45 +126,45 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } /// Date certificate expires, found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageCertificateExpiry { get => _appAttachPackagePatchBody.ImageCertificateExpiry ?? default(global::System.DateTime); set => _appAttachPackagePatchBody.ImageCertificateExpiry = value; } /// Certificate name found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] public string ImageCertificateName { get => _appAttachPackagePatchBody.ImageCertificateName ?? null; set => _appAttachPackagePatchBody.ImageCertificateName = value; } /// User friendly Name to be displayed in the portal. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] public string ImageDisplayName { get => _appAttachPackagePatchBody.ImageDisplayName ?? null; set => _appAttachPackagePatchBody.ImageDisplayName = value; } /// Make this version of the package the active one across the hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsActive { get => _appAttachPackagePatchBody.ImageIsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackagePatchBody.ImageIsActive = value; } @@ -192,15 +192,13 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsRegularRegistration { get => _appAttachPackagePatchBody.ImageIsRegularRegistration ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackagePatchBody.ImageIsRegularRegistration = value; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ")] + /// Date Package was last updated, found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date Package was last updated, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageLastUpdated { get => _appAttachPackagePatchBody.ImageLastUpdated ?? default(global::System.DateTime); set => _appAttachPackagePatchBody.ImageLastUpdated = value; } @@ -218,94 +216,92 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System /// List of package applications. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications[] ImagePackageApplication { get => _appAttachPackagePatchBody.ImagePackageApplication?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackagePatchBody.ImagePackageApplication = (value != null ? new System.Collections.Generic.List(value) : null); } /// List of package dependencies. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies[] ImagePackageDependency { get => _appAttachPackagePatchBody.ImagePackageDependency?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackagePatchBody.ImagePackageDependency = (value != null ? new System.Collections.Generic.List(value) : null); } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFamilyName { get => _appAttachPackagePatchBody.ImagePackageFamilyName ?? null; set => _appAttachPackagePatchBody.ImagePackageFamilyName = value; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ")] + /// Package Full Name from appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Full Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFullName { get => _appAttachPackagePatchBody.ImagePackageFullName ?? null; set => _appAttachPackagePatchBody.ImagePackageFullName = value; } /// Package Name from appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageName { get => _appAttachPackagePatchBody.ImagePackageName ?? null; set => _appAttachPackagePatchBody.ImagePackageName = value; } /// Relative Path to the package inside the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] public string ImagePackageRelativePath { get => _appAttachPackagePatchBody.ImagePackageRelativePath ?? null; set => _appAttachPackagePatchBody.ImagePackageRelativePath = value; } - /// VHD/CIM/APP-V image path on Network Share. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM/APP-V image path on Network Share.")] + /// VHD/CIM image path on Network Share. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM image path on Network Share.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] public string ImagePath { get => _appAttachPackagePatchBody.ImagePath ?? null; set => _appAttachPackagePatchBody.ImagePath = value; } - /// Package Version found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Version found in the appxmanifest.xml. ")] + /// Package version found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package version found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] public string ImageVersion { get => _appAttachPackagePatchBody.ImageVersion ?? null; set => _appAttachPackagePatchBody.ImageVersion = value; } @@ -313,13 +309,13 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// URL of keyvault location to store certificate - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL of keyvault location to store certificate")] + /// URL path to certificate name located in keyVault + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL path to certificate name located in keyVault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] public string KeyVaultUrl { get => _appAttachPackagePatchBody.KeyVaultUrl ?? null; set => _appAttachPackagePatchBody.KeyVaultUrl = value; } @@ -335,12 +331,12 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] @@ -348,14 +344,14 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateExpanded : global::System public string Name { get => this._name; set => this._name = value; } /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Lookback url to third party control plane, should be null for first party packages")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Lookback url to third party control plane, is null for native app attach packages")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Lookback url to third party control plane, should be null for first party packages", + Description = @"Lookback url to third party control plane, is null for native app attach packages", SerializedName = @"packageLookbackUrl", PossibleTypes = new [] { typeof(string) })] public string PackageLookbackUrl { get => _appAttachPackagePatchBody.PackageLookbackUrl ?? null; set => _appAttachPackagePatchBody.PackageLookbackUrl = value; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs index 392e569557e3..b88732b4ba84 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -32,7 +32,7 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; - /// Schema for patchable App Attach Package properties. + /// Schema for updatable App Attach Package properties. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackagePatch _appAttachPackagePatchBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.AppAttachPackagePatch(); /// @@ -126,45 +126,45 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } /// Date certificate expires, found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date certificate expires, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date certificate expires, found in the appxmanifest.xml. ", + Description = @"Date certificate expires, found in the appxmanifest.xml.", SerializedName = @"certificateExpiry", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageCertificateExpiry { get => _appAttachPackagePatchBody.ImageCertificateExpiry ?? default(global::System.DateTime); set => _appAttachPackagePatchBody.ImageCertificateExpiry = value; } /// Certificate name found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Certificate name found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Certificate name found in the appxmanifest.xml. ", + Description = @"Certificate name found in the appxmanifest.xml.", SerializedName = @"certificateName", PossibleTypes = new [] { typeof(string) })] public string ImageCertificateName { get => _appAttachPackagePatchBody.ImageCertificateName ?? null; set => _appAttachPackagePatchBody.ImageCertificateName = value; } /// User friendly Name to be displayed in the portal. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User friendly Name to be displayed in the portal.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"User friendly Name to be displayed in the portal. ", + Description = @"User friendly Name to be displayed in the portal.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] public string ImageDisplayName { get => _appAttachPackagePatchBody.ImageDisplayName ?? null; set => _appAttachPackagePatchBody.ImageDisplayName = value; } /// Make this version of the package the active one across the hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Make this version of the package the active one across the hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Make this version of the package the active one across the hostpool. ", + Description = @"Make this version of the package the active one across the hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsActive { get => _appAttachPackagePatchBody.ImageIsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackagePatchBody.ImageIsActive = value; } @@ -192,15 +192,13 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ImageIsRegularRegistration { get => _appAttachPackagePatchBody.ImageIsRegularRegistration ?? default(global::System.Management.Automation.SwitchParameter); set => _appAttachPackagePatchBody.ImageIsRegularRegistration = value; } - /// - /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ")] + /// Date Package was last updated, found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Date Package was last updated, found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml. ", + Description = @"Date Package was last updated, found in the appxmanifest.xml.", SerializedName = @"lastUpdated", PossibleTypes = new [] { typeof(global::System.DateTime) })] public global::System.DateTime ImageLastUpdated { get => _appAttachPackagePatchBody.ImageLastUpdated ?? default(global::System.DateTime); set => _appAttachPackagePatchBody.ImageLastUpdated = value; } @@ -218,94 +216,92 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo /// List of package applications. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package applications. ", + Description = @"List of package applications.", SerializedName = @"packageApplications", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications[] ImagePackageApplication { get => _appAttachPackagePatchBody.ImagePackageApplication?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackagePatchBody.ImagePackageApplication = (value != null ? new System.Collections.Generic.List(value) : null); } /// List of package dependencies. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of package dependencies.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of package dependencies. ", + Description = @"List of package dependencies.", SerializedName = @"packageDependencies", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies[] ImagePackageDependency { get => _appAttachPackagePatchBody.ImagePackageDependency?.ToArray() ?? null /* fixedArrayOf */; set => _appAttachPackagePatchBody.ImagePackageDependency = (value != null ? new System.Collections.Generic.List(value) : null); } /// - /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml. ", + Description = @"Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.", SerializedName = @"packageFamilyName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFamilyName { get => _appAttachPackagePatchBody.ImagePackageFamilyName ?? null; set => _appAttachPackagePatchBody.ImagePackageFamilyName = value; } - /// - /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ")] + /// Package Full Name from appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Full Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml. ", + Description = @"Package Full Name from appxmanifest.xml.", SerializedName = @"packageFullName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageFullName { get => _appAttachPackagePatchBody.ImagePackageFullName ?? null; set => _appAttachPackagePatchBody.ImagePackageFullName = value; } /// Package Name from appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Name from appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Name from appxmanifest.xml. ", + Description = @"Package Name from appxmanifest.xml.", SerializedName = @"packageName", PossibleTypes = new [] { typeof(string) })] public string ImagePackageName { get => _appAttachPackagePatchBody.ImagePackageName ?? null; set => _appAttachPackagePatchBody.ImagePackageName = value; } /// Relative Path to the package inside the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Relative Path to the package inside the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Relative Path to the package inside the image. ", + Description = @"Relative Path to the package inside the image.", SerializedName = @"packageRelativePath", PossibleTypes = new [] { typeof(string) })] public string ImagePackageRelativePath { get => _appAttachPackagePatchBody.ImagePackageRelativePath ?? null; set => _appAttachPackagePatchBody.ImagePackageRelativePath = value; } - /// VHD/CIM/APP-V image path on Network Share. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM/APP-V image path on Network Share.")] + /// VHD/CIM image path on Network Share. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "VHD/CIM image path on Network Share.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"VHD/CIM/APP-V image path on Network Share.", + Description = @"VHD/CIM image path on Network Share.", SerializedName = @"imagePath", PossibleTypes = new [] { typeof(string) })] public string ImagePath { get => _appAttachPackagePatchBody.ImagePath ?? null; set => _appAttachPackagePatchBody.ImagePath = value; } - /// Package Version found in the appxmanifest.xml. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package Version found in the appxmanifest.xml. ")] + /// Package version found in the appxmanifest.xml. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Package version found in the appxmanifest.xml.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Package Version found in the appxmanifest.xml. ", + Description = @"Package version found in the appxmanifest.xml.", SerializedName = @"version", PossibleTypes = new [] { typeof(string) })] public string ImageVersion { get => _appAttachPackagePatchBody.ImageVersion ?? null; set => _appAttachPackagePatchBody.ImageVersion = value; } @@ -321,13 +317,13 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// URL of keyvault location to store certificate - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL of keyvault location to store certificate")] + /// URL path to certificate name located in keyVault + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "URL path to certificate name located in keyVault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"URL of keyvault location to store certificate", + Description = @"URL path to certificate name located in keyVault", SerializedName = @"keyVaultURL", PossibleTypes = new [] { typeof(string) })] public string KeyVaultUrl { get => _appAttachPackagePatchBody.KeyVaultUrl ?? null; set => _appAttachPackagePatchBody.KeyVaultUrl = value; } @@ -341,14 +337,14 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded : glo global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// - /// Lookback url to third party control plane, should be null for first party packages + /// Lookback url to third party control plane, is null for native app attach packages /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Lookback url to third party control plane, should be null for first party packages")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Lookback url to third party control plane, is null for native app attach packages")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Lookback url to third party control plane, should be null for first party packages", + Description = @"Lookback url to third party control plane, is null for native app attach packages", SerializedName = @"packageLookbackUrl", PossibleTypes = new [] { typeof(string) })] public string PackageLookbackUrl { get => _appAttachPackagePatchBody.PackageLookbackUrl ?? null; set => _appAttachPackagePatchBody.PackageLookbackUrl = value; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs index 0f2d4ccd7b79..6ad135b209f7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -115,12 +115,12 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath : global: /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs index f4f550b4c0da..25fec2c45eb1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdAppAttachPackage_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -113,12 +113,12 @@ public partial class UpdateAzWvdAppAttachPackage_UpdateViaJsonString : global::S /// Backing field for property. private string _name; - /// The name of the App Attach package arm object - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package arm object")] + /// The name of the App Attach package + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the App Attach package")] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the App Attach package arm object", + Description = @"The name of the App Attach package", SerializedName = @"appAttachPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AppAttachPackageName")] diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs index 8d376d902e76..fba2ea937cb6 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplicationGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -218,12 +218,12 @@ public partial class UpdateAzWvdApplicationGroup_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -473,12 +473,12 @@ public UpdateAzWvdApplicationGroup_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -495,7 +495,7 @@ public UpdateAzWvdApplicationGroup_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs index 1532471ba36d..d2f98b6ffefc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -178,12 +178,12 @@ public partial class UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded : glo /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,12 @@ public UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,7 @@ public UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs index b4185f6a545e..483e55434f62 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -186,12 +186,12 @@ public partial class UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -441,12 +441,12 @@ public UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -463,7 +463,7 @@ public UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs index 43c1d8b304fe..05cbd8c9e1b5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdApplicationGroup_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -184,12 +184,12 @@ public partial class UpdateAzWvdApplicationGroup_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -439,12 +439,12 @@ public UpdateAzWvdApplicationGroup_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,7 @@ public UpdateAzWvdApplicationGroup_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs index 08ae3e9a030d..ae4dfc7e50cc 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplication_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -309,29 +309,17 @@ public partial class UpdateAzWvdApplication_UpdateExpanded : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get => _applicationBody.Tag ?? null /* object */; set => _applicationBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -581,12 +569,12 @@ public UpdateAzWvdApplication_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -603,7 +591,7 @@ public UpdateAzWvdApplication_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs index 2c1ebffd7688..0d1257a75cc5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -159,12 +159,12 @@ public partial class UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -435,12 +435,12 @@ public UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -457,7 +457,7 @@ public UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs index 0ccaedbd68fc..5a101ae745ec 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -269,29 +269,17 @@ public partial class UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExp PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ShowInPortal { get => _applicationBody.ShowInPortal ?? default(global::System.Management.Automation.SwitchParameter); set => _applicationBody.ShowInPortal = value; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get => _applicationBody.Tag ?? null /* object */; set => _applicationBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -563,12 +551,12 @@ public UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -585,7 +573,7 @@ public UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs index 887ac77991dc..44f66e0aac0b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdApplication_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -254,29 +254,17 @@ public partial class UpdateAzWvdApplication_UpdateViaIdentityExpanded : global:: PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter ShowInPortal { get => _applicationBody.ShowInPortal ?? default(global::System.Management.Automation.SwitchParameter); set => _applicationBody.ShowInPortal = value; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationPatchTags Tag { get => _applicationBody.Tag ?? null /* object */; set => _applicationBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -550,12 +538,12 @@ public UpdateAzWvdApplication_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -572,7 +560,7 @@ public UpdateAzWvdApplication_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs index cd607823a10b..8dc05b36a9c7 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdApplication_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -201,12 +201,12 @@ public partial class UpdateAzWvdApplication_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -456,12 +456,12 @@ public UpdateAzWvdApplication_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -478,7 +478,7 @@ public UpdateAzWvdApplication_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs index 54a8bbd66499..f9a44cafe00a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdApplication_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -199,12 +199,12 @@ public partial class UpdateAzWvdApplication_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -454,12 +454,12 @@ public UpdateAzWvdApplication_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,7 @@ public UpdateAzWvdApplication_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs index a8df8615527c..43f7de2fdd40 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdDesktop_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -204,29 +204,17 @@ public partial class UpdateAzWvdDesktop_UpdateExpanded : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get => _desktopBody.Tag ?? null /* object */; set => _desktopBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -476,12 +464,12 @@ public UpdateAzWvdDesktop_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -498,7 +486,7 @@ public UpdateAzWvdDesktop_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs index 2bddfe7c0d11..6fdfa2f342e5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -159,12 +159,12 @@ public partial class UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -435,12 +435,12 @@ public UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -457,7 +457,7 @@ public UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs index 12172a831999..00539cdaab24 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -165,29 +165,17 @@ public partial class UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpande [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get => _desktopBody.Tag ?? null /* object */; set => _desktopBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -458,12 +446,12 @@ public UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -480,7 +468,7 @@ public UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs index 3155bf391a50..e064dc99e311 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdDesktop_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -150,29 +150,17 @@ public partial class UpdateAzWvdDesktop_UpdateViaIdentityExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// tags to be updated - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "tags to be updated")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"tags to be updated", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopPatchTags Tag { get => _desktopBody.Tag ?? null /* object */; set => _desktopBody.Tag = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -446,12 +434,12 @@ public UpdateAzWvdDesktop_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -468,7 +456,7 @@ public UpdateAzWvdDesktop_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs index 5f833d1455f7..5655ed259c25 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdDesktop_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -200,12 +200,12 @@ public partial class UpdateAzWvdDesktop_UpdateViaJsonFilePath : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -455,12 +455,12 @@ public UpdateAzWvdDesktop_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -477,7 +477,7 @@ public UpdateAzWvdDesktop_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs index 2e30d610d830..8073d29c5ef5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdDesktop_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -198,12 +198,12 @@ public partial class UpdateAzWvdDesktop_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -453,12 +453,12 @@ public UpdateAzWvdDesktop_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -475,7 +475,7 @@ public UpdateAzWvdDesktop_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs index 7b5c3f4d4fb8..af998b221841 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdHostPool_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -102,6 +102,20 @@ public partial class UpdateAzWvdHostPool_UpdateExpanded : global::System.Managem PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter AgentUpdateUseSessionHostLocalTime { get => _hostPoolBody.AgentUpdateUseSessionHostLocalTime ?? default(global::System.Management.Automation.SwitchParameter); set => _hostPoolBody.AgentUpdateUseSessionHostLocalTime = value; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + public string AllowRdpShortPathWithPrivateLink { get => _hostPoolBody.AllowRdpShortPathWithPrivateLink ?? null; set => _hostPoolBody.AllowRdpShortPathWithPrivateLink = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] @@ -187,6 +201,36 @@ public partial class UpdateAzWvdHostPool_UpdateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + public string IdentityType { get => _hostPoolBody.IdentityType ?? null; set => _hostPoolBody.IdentityType = value; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => _hostPoolBody.IdentityUserAssignedIdentity ?? null /* object */; set => _hostPoolBody.IdentityUserAssignedIdentity = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -505,12 +549,12 @@ public partial class UpdateAzWvdHostPool_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -760,12 +804,12 @@ public UpdateAzWvdHostPool_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -782,7 +826,7 @@ public UpdateAzWvdHostPool_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs index d76fdf5bb6df..56a41f918e55 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdHostPool_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -102,6 +102,20 @@ public partial class UpdateAzWvdHostPool_UpdateViaIdentityExpanded : global::Sys PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter AgentUpdateUseSessionHostLocalTime { get => _hostPoolBody.AgentUpdateUseSessionHostLocalTime ?? default(global::System.Management.Automation.SwitchParameter); set => _hostPoolBody.AgentUpdateUseSessionHostLocalTime = value; } + /// + /// Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Controls if the use of RDPShortPath transport is allowed, possibly bypassing Private Link routes.", + SerializedName = @"allowRDPShortPathWithPrivateLink", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Disabled", "Enabled")] + public string AllowRdpShortPathWithPrivateLink { get => _hostPoolBody.AllowRdpShortPathWithPrivateLink ?? null; set => _hostPoolBody.AllowRdpShortPathWithPrivateLink = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] @@ -187,6 +201,36 @@ public partial class UpdateAzWvdHostPool_UpdateViaIdentityExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] + public string IdentityType { get => _hostPoolBody.IdentityType ?? null; set => _hostPoolBody.IdentityType = value; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => _hostPoolBody.IdentityUserAssignedIdentity ?? null /* object */; set => _hostPoolBody.IdentityUserAssignedIdentity = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity _inputObject; @@ -465,12 +509,12 @@ public partial class UpdateAzWvdHostPool_UpdateViaIdentityExpanded : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -740,12 +784,12 @@ public UpdateAzWvdHostPool_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -762,7 +806,7 @@ public UpdateAzWvdHostPool_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs index c78661cbb728..2d2f5329d00f 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdHostPool_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -187,12 +187,12 @@ public partial class UpdateAzWvdHostPool_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -442,12 +442,12 @@ public UpdateAzWvdHostPool_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -464,7 +464,7 @@ public UpdateAzWvdHostPool_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs index 39d75cfdb211..725b47c6519e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdHostPool_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -185,12 +185,12 @@ public partial class UpdateAzWvdHostPool_UpdateViaJsonString : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,12 @@ public UpdateAzWvdHostPool_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,7 @@ public UpdateAzWvdHostPool_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs index ad39faf5a574..b647dfba288e 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdMsixPackage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -134,12 +134,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateExpanded : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Set a version of the package to be active across hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Set a version of the package to be active across hostpool. ", + Description = @"Set a version of the package to be active across hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter IsActive { get => _msixPackageBody.IsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _msixPackageBody.IsActive = value; } @@ -222,12 +222,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -477,12 +477,12 @@ public UpdateAzWvdMsixPackage_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -499,7 +499,7 @@ public UpdateAzWvdMsixPackage_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs index 317698e65361..ebf110f40025 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -111,12 +111,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded : global:: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Set a version of the package to be active across hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Set a version of the package to be active across hostpool. ", + Description = @"Set a version of the package to be active across hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter IsActive { get => _msixPackageBody.IsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _msixPackageBody.IsActive = value; } @@ -166,12 +166,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -445,12 +445,12 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -467,7 +467,7 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs index 8318550e7d87..8e9783523d2b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityHostPool", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -161,12 +161,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -437,12 +437,12 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -459,7 +459,7 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs index 0aebe546ae7c..b6139cbadc89 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -128,12 +128,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded : public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Set a version of the package to be active across hostpool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool. ")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set a version of the package to be active across hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Set a version of the package to be active across hostpool. ", + Description = @"Set a version of the package to be active across hostpool.", SerializedName = @"isActive", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter IsActive { get => _msixPackageBody.IsActive ?? default(global::System.Management.Automation.SwitchParameter); set => _msixPackageBody.IsActive = value; } @@ -183,12 +183,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -459,12 +459,12 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -481,7 +481,7 @@ public UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs index 2d030b4e3838..1f2c0f56cd1c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdMsixPackage_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -202,12 +202,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -457,12 +457,12 @@ public UpdateAzWvdMsixPackage_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -479,7 +479,7 @@ public UpdateAzWvdMsixPackage_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs index 72b690b82c52..2bf77698596a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// update an MSIX Package. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdMsixPackage_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -200,12 +200,12 @@ public partial class UpdateAzWvdMsixPackage_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -455,12 +455,12 @@ public UpdateAzWvdMsixPackage_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -477,7 +477,7 @@ public UpdateAzWvdMsixPackage_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs index 896a24e699d2..269516fd3e5a 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -566,12 +566,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded : glo /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -821,12 +821,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -843,7 +843,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs index 197b4b3bf1e9..a813c407b64b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -513,12 +513,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExp /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -793,12 +793,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -815,7 +815,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs index c0b83c7383f9..7624fb71b6e5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -158,12 +158,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentitySca /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -435,12 +435,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -457,7 +457,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs index 96d9469092f9..613f8df7aae1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -527,12 +527,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentitySca /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -804,12 +804,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpand /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -826,7 +826,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpand if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs index 056d40ffe1be..eedffa943a52 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -199,12 +199,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePat /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -454,12 +454,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs index db3a0b68cf92..282616fbc3a1 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -197,12 +197,12 @@ public partial class UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -452,12 +452,12 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -474,7 +474,7 @@ public UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs index f9540a7380bc..f72f5a68e7ec 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -494,12 +494,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded : globa /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -749,12 +749,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -771,7 +771,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs index d90accec473f..bb66d88e8053 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -441,12 +441,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpan /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -721,12 +721,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -743,7 +743,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs index 4ec3cd0a09e4..c3d6c3bb2fe2 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -158,12 +158,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScali /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -435,12 +435,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -457,7 +457,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs index a2273c9a7d78..81a2ecc00ff4 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -455,12 +455,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScali /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -732,12 +732,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -754,7 +754,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs index 43f27ae18172..21fb2a5460d5 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -199,12 +199,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -454,12 +454,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -476,7 +476,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs index a60f8a9daa38..ec0de570979c 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -197,12 +197,12 @@ public partial class UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -452,12 +452,12 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -474,7 +474,7 @@ public UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs index b31bb6adcbc7..e2a56ea50890 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlan_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -194,14 +194,14 @@ public partial class UpdateAzWvdScalingPlan_UpdateExpanded : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List Pooled ScalingSchedule definitions.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of ScalingSchedule definitions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List Pooled ScalingSchedule definitions.", + Description = @"List of ScalingSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[] Schedule { get => _scalingPlanBody.Schedule?.ToArray() ?? null /* fixedArrayOf */; set => _scalingPlanBody.Schedule = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -253,12 +253,12 @@ public partial class UpdateAzWvdScalingPlan_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -508,12 +508,12 @@ public UpdateAzWvdScalingPlan_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -530,7 +530,7 @@ public UpdateAzWvdScalingPlan_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs index fb968f721989..7c43e91cf5fd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -173,14 +173,14 @@ public partial class UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// List Pooled ScalingSchedule definitions. + /// List of ScalingSchedule definitions. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List Pooled ScalingSchedule definitions.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of ScalingSchedule definitions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List Pooled ScalingSchedule definitions.", + Description = @"List of ScalingSchedule definitions.", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule) })] public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingSchedule[] Schedule { get => _scalingPlanBody.Schedule?.ToArray() ?? null /* fixedArrayOf */; set => _scalingPlanBody.Schedule = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -213,12 +213,12 @@ public partial class UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -488,12 +488,12 @@ public UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -510,7 +510,7 @@ public UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs index f979b5d275e7..e07b94622a44 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlan_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -186,12 +186,12 @@ public partial class UpdateAzWvdScalingPlan_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -441,12 +441,12 @@ public UpdateAzWvdScalingPlan_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -463,7 +463,7 @@ public UpdateAzWvdScalingPlan_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs index a8e3969c15f8..60f9468e8028 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdScalingPlan_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -184,12 +184,12 @@ public partial class UpdateAzWvdScalingPlan_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -439,12 +439,12 @@ public UpdateAzWvdScalingPlan_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,7 @@ public UpdateAzWvdScalingPlan_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateExpanded.cs index c525b27e2273..9e7f31192709 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch _sessionHostConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationPatch(); /// when specified, runs this cmdlet as a PowerShell job @@ -111,13 +111,13 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global PossibleTypes = new [] { typeof(string) })] public string CustomConfigurationScriptUrl { get => _sessionHostConfigurationBody.CustomConfigurationScriptUrl ?? null; set => _sessionHostConfigurationBody.CustomConfigurationScriptUrl = value; } - /// The resource id of the custom image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the custom image.")] + /// The resource ID of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource ID of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] public string CustomInfoResourceId { get => _sessionHostConfigurationBody.CustomInfoResourceId ?? null; set => _sessionHostConfigurationBody.CustomInfoResourceId = value; } @@ -148,14 +148,14 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -238,25 +238,25 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// The disk type used by virtual machine in hostpool session host. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The disk type used by virtual machine in hostpool session host.")] + /// Managed Disk information. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed Disk information.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] public string ManagedDiskType { get => _sessionHostConfigurationBody.ManagedDiskType ?? null; set => _sessionHostConfigurationBody.ManagedDiskType = value; } - /// The exact version of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The exact version of the image.")] + /// The version of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoExactVersion { get => _sessionHostConfigurationBody.MarketplaceInfoExactVersion ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoExactVersion = value; } @@ -283,13 +283,13 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoPublisher { get => _sessionHostConfigurationBody.MarketplaceInfoPublisher ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoPublisher = value; } - /// The sku of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The sku of the image.")] + /// The SKU of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoSku { get => _sessionHostConfigurationBody.MarketplaceInfoSku ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoSku = value; } @@ -380,25 +380,27 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SecurityInfoSecureBootEnabled { get => _sessionHostConfigurationBody.SecurityInfoSecureBootEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _sessionHostConfigurationBody.SecurityInfoSecureBootEnabled = value; } - /// The security type used by virtual machine in hostpool session host. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The security type used by virtual machine in hostpool session host.")] + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The security type used by virtual machine in hostpool session host. Default is Standard.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The security type used by virtual machine in hostpool session host.", + Description = @"The security type used by virtual machine in hostpool session host. Default is Standard.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] public string SecurityInfoType { get => _sessionHostConfigurationBody.SecurityInfoType ?? null; set => _sessionHostConfigurationBody.SecurityInfoType = value; } - /// Whether to use vTPM on the virtual machine. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTPM on the virtual machine.")] + /// Whether to use vTpm on the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTpm on the virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SecurityInfoVTpmEnabled { get => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled = value; } @@ -444,13 +446,15 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateExpanded : global PossibleTypes = new [] { typeof(string) })] public string VMAdminCredentialsUsernameKeyVaultSecretUri { get => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri ?? null; set => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri = value; } - /// The Location for the session host to be created in - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in")] + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in. It will default to the location of the hostpool if not provided")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The Location for the session host to be created in", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] public string VMLocation { get => _sessionHostConfigurationBody.VMLocation ?? null; set => _sessionHostConfigurationBody.VMLocation = value; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpanded.cs index 8f6c9c5e56ba..20913559dc69 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -40,7 +40,7 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// Represents a SessionHostConfigurationPatch definition. + /// SessionHostConfiguration properties that can be patched. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfigurationPatch _sessionHostConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostConfigurationPatch(); /// when specified, runs this cmdlet as a PowerShell job @@ -111,13 +111,13 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand PossibleTypes = new [] { typeof(string) })] public string CustomConfigurationScriptUrl { get => _sessionHostConfigurationBody.CustomConfigurationScriptUrl ?? null; set => _sessionHostConfigurationBody.CustomConfigurationScriptUrl = value; } - /// The resource id of the custom image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the custom image.")] + /// The resource ID of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource ID of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The resource id of the custom image.", + Description = @"The resource ID of the image.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] public string CustomInfoResourceId { get => _sessionHostConfigurationBody.CustomInfoResourceId ?? null; set => _sessionHostConfigurationBody.CustomInfoResourceId = value; } @@ -148,14 +148,14 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand /// Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if /// one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes - /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + /// to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'", + Description = @"Gets or sets specifies the ephemeral disk placement for operating system disk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'.", SerializedName = @"placement", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("CacheDisk", "ResourceDisk")] @@ -232,25 +232,25 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// The disk type used by virtual machine in hostpool session host. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The disk type used by virtual machine in hostpool session host.")] + /// Managed Disk information. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed Disk information.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The disk type used by virtual machine in hostpool session host.", + Description = @"Managed Disk information.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard_LRS", "Premium_LRS", "StandardSSD_LRS")] public string ManagedDiskType { get => _sessionHostConfigurationBody.ManagedDiskType ?? null; set => _sessionHostConfigurationBody.ManagedDiskType = value; } - /// The exact version of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The exact version of the image.")] + /// The version of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The exact version of the image.", + Description = @"The version of the image.", SerializedName = @"exactVersion", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoExactVersion { get => _sessionHostConfigurationBody.MarketplaceInfoExactVersion ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoExactVersion = value; } @@ -277,13 +277,13 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoPublisher { get => _sessionHostConfigurationBody.MarketplaceInfoPublisher ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoPublisher = value; } - /// The sku of the image. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The sku of the image.")] + /// The SKU of the image. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU of the image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The sku of the image.", + Description = @"The SKU of the image.", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] public string MarketplaceInfoSku { get => _sessionHostConfigurationBody.MarketplaceInfoSku ?? null; set => _sessionHostConfigurationBody.MarketplaceInfoSku = value; } @@ -360,25 +360,27 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SecurityInfoSecureBootEnabled { get => _sessionHostConfigurationBody.SecurityInfoSecureBootEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _sessionHostConfigurationBody.SecurityInfoSecureBootEnabled = value; } - /// The security type used by virtual machine in hostpool session host. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The security type used by virtual machine in hostpool session host.")] + /// + /// The security type used by virtual machine in hostpool session host. Default is Standard. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The security type used by virtual machine in hostpool session host. Default is Standard.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The security type used by virtual machine in hostpool session host.", + Description = @"The security type used by virtual machine in hostpool session host. Default is Standard.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Standard", "TrustedLaunch", "ConfidentialVM")] public string SecurityInfoType { get => _sessionHostConfigurationBody.SecurityInfoType ?? null; set => _sessionHostConfigurationBody.SecurityInfoType = value; } - /// Whether to use vTPM on the virtual machine. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTPM on the virtual machine.")] + /// Whether to use vTpm on the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to use vTpm on the virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Whether to use vTPM on the virtual machine.", + Description = @"Whether to use vTpm on the virtual machine.", SerializedName = @"vTpmEnabled", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SecurityInfoVTpmEnabled { get => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _sessionHostConfigurationBody.SecurityInfoVTpmEnabled = value; } @@ -405,13 +407,15 @@ public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaIdentityExpand PossibleTypes = new [] { typeof(string) })] public string VMAdminCredentialsUsernameKeyVaultSecretUri { get => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri ?? null; set => _sessionHostConfigurationBody.VMAdminCredentialsUsernameKeyVaultSecretUri = value; } - /// The Location for the session host to be created in - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in")] + /// + /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Location for the session host to be created in. It will default to the location of the hostpool if not provided")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The Location for the session host to be created in", + Description = @"The Location for the session host to be created in. It will default to the location of the hostpool if not provided", SerializedName = @"vmLocation", PossibleTypes = new [] { typeof(string) })] public string VMLocation { get => _sessionHostConfigurationBody.VMLocation ?? null; set => _sessionHostConfigurationBody.VMLocation = value; } diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonFilePath.cs index ce74511229bc..c0a388304626 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonString.cs index df959974f500..160d8b407912 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostConfiguration_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostConfiguration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostConfigurations/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHostConfiguration_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, diff --git a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateExpanded.cs index b550e038ec8c..074b3a4266e8 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHostManagement_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -49,7 +49,7 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateExpanded : global::S /// private int _responseSize = 0; - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch _sessionHostManagementBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementPatch(); /// Wait for .NET debugger to attach @@ -133,26 +133,27 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateExpanded : global::S public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.HttpPipeline Pipeline { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM should be provisioned during a session host provisioning operation.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] public string ProvisioningCanaryPolicy { get => _sessionHostManagementBody.ProvisioningCanaryPolicy ?? null; set => _sessionHostManagementBody.ProvisioningCanaryPolicy = value; } - /// the number of session hosts to exist in the Host Pool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "the number of session hosts to exist in the Host Pool.")] + /// The number of session hosts to exist in the Host Pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The number of session hosts to exist in the Host Pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] public int ProvisioningInstanceCount { get => _sessionHostManagementBody.ProvisioningInstanceCount ?? default(int); set => _sessionHostManagementBody.ProvisioningInstanceCount = value; } @@ -253,13 +254,13 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateExpanded : global::S PossibleTypes = new [] { typeof(int) })] public int UpdateLogOffDelayMinute { get => _sessionHostManagementBody.UpdateLogOffDelayMinute ?? default(int); set => _sessionHostManagementBody.UpdateLogOffDelayMinute = value; } - /// Log off message sent to user for logoff. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff.")] + /// Log off message sent to user for logoff. Default value is an empty string. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff. Default value is an empty string.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] public string UpdateLogOffMessage { get => _sessionHostManagementBody.UpdateLogOffMessage ?? null; set => _sessionHostManagementBody.UpdateLogOffMessage = value; } @@ -280,12 +281,12 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -535,12 +536,12 @@ public UpdateAzWvdSessionHostManagement_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -557,7 +558,7 @@ public UpdateAzWvdSessionHostManagement_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded.cs index 9b59fe76dd27..1303fe067371 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -49,7 +49,7 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded /// private int _responseSize = 0; - /// Represents a SessionHostManagementPatch definition. + /// SessionHostManagement properties that can be patched. private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagementPatch _sessionHostManagementBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.SessionHostManagementPatch(); /// Wait for .NET debugger to attach @@ -127,26 +127,27 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded public Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.HttpPipeline Pipeline { get; set; } /// - /// Policy on whether a Canary VM should be provisioned during a session host provisioning operation. + /// Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning + /// operation. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM should be provisioned during a session host provisioning operation.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Policy on whether a Canary VM should be provisioned during a session host provisioning operation.", + Description = @"Policy on whether a Canary VM(a single VM to validate the configuration) should be provisioned during a session host provisioning operation.", SerializedName = @"canaryPolicy", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.PSArgumentCompleterAttribute("Auto", "Never", "Always")] public string ProvisioningCanaryPolicy { get => _sessionHostManagementBody.ProvisioningCanaryPolicy ?? null; set => _sessionHostManagementBody.ProvisioningCanaryPolicy = value; } - /// the number of session hosts to exist in the Host Pool. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "the number of session hosts to exist in the Host Pool.")] + /// The number of session hosts to exist in the Host Pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The number of session hosts to exist in the Host Pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"the number of session hosts to exist in the Host Pool.", + Description = @"The number of session hosts to exist in the Host Pool.", SerializedName = @"instanceCount", PossibleTypes = new [] { typeof(int) })] public int ProvisioningInstanceCount { get => _sessionHostManagementBody.ProvisioningInstanceCount ?? default(int); set => _sessionHostManagementBody.ProvisioningInstanceCount = value; } @@ -214,13 +215,13 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded PossibleTypes = new [] { typeof(int) })] public int UpdateLogOffDelayMinute { get => _sessionHostManagementBody.UpdateLogOffDelayMinute ?? default(int); set => _sessionHostManagementBody.UpdateLogOffDelayMinute = value; } - /// Log off message sent to user for logoff. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff.")] + /// Log off message sent to user for logoff. Default value is an empty string. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log off message sent to user for logoff. Default value is an empty string.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Log off message sent to user for logoff.", + Description = @"Log off message sent to user for logoff. Default value is an empty string.", SerializedName = @"logOffMessage", PossibleTypes = new [] { typeof(string) })] public string UpdateLogOffMessage { get => _sessionHostManagementBody.UpdateLogOffMessage ?? null; set => _sessionHostManagementBody.UpdateLogOffMessage = value; } @@ -241,12 +242,12 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -516,12 +517,12 @@ public UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -538,7 +539,7 @@ public UpdateAzWvdSessionHostManagement_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath.cs index 5d9dd57f0e85..43fedd8cabfd 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -185,12 +185,12 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -440,12 +440,12 @@ public UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -462,7 +462,7 @@ public UpdateAzWvdSessionHostManagement_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonString.cs index 0331315612e9..3c6fe891b0de 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHostManagement_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHostManagement))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a SessionHostManagement.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHostManagements/default", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHostManagement_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -183,12 +183,12 @@ public partial class UpdateAzWvdSessionHostManagement_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -438,12 +438,12 @@ public UpdateAzWvdSessionHostManagement_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -460,7 +460,7 @@ public UpdateAzWvdSessionHostManagement_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs index 95a6a68c28d0..7bbbb8db569d 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHost_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -234,12 +234,12 @@ public partial class UpdateAzWvdSessionHost_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -489,12 +489,12 @@ public UpdateAzWvdSessionHost_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -511,7 +511,7 @@ public UpdateAzWvdSessionHost_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs index c2226b6fd15c..5254041293ec 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHost_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -180,12 +180,12 @@ public partial class UpdateAzWvdSessionHost_UpdateViaIdentityExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -459,12 +459,12 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -481,7 +481,7 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs index ab195288a16a..b1cb47869e62 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHost_UpdateViaIdentityHostPool : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -173,12 +173,12 @@ public partial class UpdateAzWvdSessionHost_UpdateViaIdentityHostPool : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -449,12 +449,12 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityHostPool() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -471,7 +471,7 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityHostPool() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs index 9447942d83fa..e7a7f7482189 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -195,12 +195,12 @@ public partial class UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded : /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -471,12 +471,12 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -493,7 +493,7 @@ public UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs index 28183700f421..3ffc77634360 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHost_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -214,12 +214,12 @@ public partial class UpdateAzWvdSessionHost_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -469,12 +469,12 @@ public UpdateAzWvdSessionHost_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -491,7 +491,7 @@ public UpdateAzWvdSessionHost_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs index e7236a505754..bf0ab0339aba 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdSessionHost_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -212,12 +212,12 @@ public partial class UpdateAzWvdSessionHost_UpdateViaJsonString : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -467,12 +467,12 @@ public UpdateAzWvdSessionHost_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -489,7 +489,7 @@ public UpdateAzWvdSessionHost_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs index 9749fd1c85db..77db5d55655b 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdWorkspace_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -49,7 +49,7 @@ public partial class UpdateAzWvdWorkspace_UpdateExpanded : global::System.Manage /// private int _responseSize = 0; - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch _workspaceBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspacePatch(); /// List of applicationGroup links. @@ -231,12 +231,12 @@ public partial class UpdateAzWvdWorkspace_UpdateExpanded : global::System.Manage /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -486,12 +486,12 @@ public UpdateAzWvdWorkspace_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -508,7 +508,7 @@ public UpdateAzWvdWorkspace_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs index 74d2d8a49ccd..f8628ee81a32 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] public partial class UpdateAzWvdWorkspace_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IContext @@ -49,7 +49,7 @@ public partial class UpdateAzWvdWorkspace_UpdateViaIdentityExpanded : global::Sy /// private int _responseSize = 0; - /// Workspace properties that can be patched. + /// Workspace properties that can be patched.A patch model private Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspacePatch _workspaceBody = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.WorkspacePatch(); /// List of applicationGroup links. @@ -191,12 +191,12 @@ public partial class UpdateAzWvdWorkspace_UpdateViaIdentityExpanded : global::Sy /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -466,12 +466,12 @@ public UpdateAzWvdWorkspace_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -488,7 +488,7 @@ public UpdateAzWvdWorkspace_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs index ff9f79fdc383..c839be7a5927 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdWorkspace_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -186,12 +186,12 @@ public partial class UpdateAzWvdWorkspace_UpdateViaJsonFilePath : 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -441,12 +441,12 @@ public UpdateAzWvdWorkspace_UpdateViaJsonFilePath() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -463,7 +463,7 @@ public UpdateAzWvdWorkspace_UpdateViaJsonFilePath() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs index 3641263f294d..f7f2588ed0aa 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-03-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}", ApiVersion = "2025-09-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.NotSuggestDefaultParameterSet] public partial class UpdateAzWvdWorkspace_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.IEventListener, @@ -184,12 +184,12 @@ public partial class UpdateAzWvdWorkspace_UpdateViaJsonString : global::System.M /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 @@ -439,12 +439,12 @@ public UpdateAzWvdWorkspace_UpdateViaJsonString() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IErrorResponse /// 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 ) { @@ -461,7 +461,7 @@ public UpdateAzWvdWorkspace_UpdateViaJsonString() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.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/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/runtime/Context.cs b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/runtime/Context.cs index d715dbeb1569..aa8caa3059a0 100644 --- a/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/runtime/Context.cs +++ b/generated/DesktopVirtualization/DesktopVirtualization.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext {