diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md index 523f1a2f853f..4c73f2d79369 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md @@ -1,15 +1,105 @@ # Release History + +## 1.0.0-beta.5 (2022-12-13) + +**Features** -## 1.0.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group ScalingPlanPooledSchedules + - Added Interface AgentUpdatePatchProperties + - Added Interface AgentUpdateProperties + - Added Interface MaintenanceWindowPatchProperties + - Added Interface MaintenanceWindowProperties + - Added Interface ScalingPlanPooledSchedule + - Added Interface ScalingPlanPooledScheduleList + - Added Interface ScalingPlanPooledSchedulePatch + - Added Interface ScalingPlanPooledSchedulesCreateOptionalParams + - Added Interface ScalingPlanPooledSchedulesDeleteOptionalParams + - Added Interface ScalingPlanPooledSchedulesGetOptionalParams + - Added Interface ScalingPlanPooledSchedulesListNextOptionalParams + - Added Interface ScalingPlanPooledSchedulesListOptionalParams + - Added Interface ScalingPlanPooledSchedulesUpdateOptionalParams + - Added Type Alias DayOfWeek + - Added Type Alias HostpoolPublicNetworkAccess + - Added Type Alias ScalingPlanPooledSchedulesCreateResponse + - Added Type Alias ScalingPlanPooledSchedulesGetResponse + - Added Type Alias ScalingPlanPooledSchedulesListNextResponse + - Added Type Alias ScalingPlanPooledSchedulesListResponse + - Added Type Alias ScalingPlanPooledSchedulesUpdateResponse + - Added Type Alias SessionHostComponentUpdateType + - Interface ApplicationGroupsListByResourceGroupOptionalParams has a new optional parameter initialSkip + - Interface ApplicationGroupsListByResourceGroupOptionalParams has a new optional parameter isDescending + - Interface ApplicationGroupsListByResourceGroupOptionalParams has a new optional parameter pageSize + - Interface ApplicationsListOptionalParams has a new optional parameter initialSkip + - Interface ApplicationsListOptionalParams has a new optional parameter isDescending + - Interface ApplicationsListOptionalParams has a new optional parameter pageSize + - Interface DesktopsListOptionalParams has a new optional parameter initialSkip + - Interface DesktopsListOptionalParams has a new optional parameter isDescending + - Interface DesktopsListOptionalParams has a new optional parameter pageSize + - Interface HostPool has a new optional parameter agentUpdate + - Interface HostPool has a new optional parameter privateEndpointConnections + - Interface HostPoolPatch has a new optional parameter agentUpdate + - Interface HostPoolsListByResourceGroupOptionalParams has a new optional parameter initialSkip + - Interface HostPoolsListByResourceGroupOptionalParams has a new optional parameter isDescending + - Interface HostPoolsListByResourceGroupOptionalParams has a new optional parameter pageSize + - Interface HostPoolsListOptionalParams has a new optional parameter initialSkip + - Interface HostPoolsListOptionalParams has a new optional parameter isDescending + - Interface HostPoolsListOptionalParams has a new optional parameter pageSize + - Interface MsixPackagesListOptionalParams has a new optional parameter initialSkip + - Interface MsixPackagesListOptionalParams has a new optional parameter isDescending + - Interface MsixPackagesListOptionalParams has a new optional parameter pageSize + - Interface PrivateEndpointConnectionsListByHostPoolOptionalParams has a new optional parameter initialSkip + - Interface PrivateEndpointConnectionsListByHostPoolOptionalParams has a new optional parameter isDescending + - Interface PrivateEndpointConnectionsListByHostPoolOptionalParams has a new optional parameter pageSize + - Interface PrivateLinkResourcesListByHostPoolOptionalParams has a new optional parameter initialSkip + - Interface PrivateLinkResourcesListByHostPoolOptionalParams has a new optional parameter isDescending + - Interface PrivateLinkResourcesListByHostPoolOptionalParams has a new optional parameter pageSize + - Interface PrivateLinkResourcesListByWorkspaceOptionalParams has a new optional parameter initialSkip + - Interface PrivateLinkResourcesListByWorkspaceOptionalParams has a new optional parameter isDescending + - Interface PrivateLinkResourcesListByWorkspaceOptionalParams has a new optional parameter pageSize + - Interface ScalingPlansListByHostPoolOptionalParams has a new optional parameter initialSkip + - Interface ScalingPlansListByHostPoolOptionalParams has a new optional parameter isDescending + - Interface ScalingPlansListByHostPoolOptionalParams has a new optional parameter pageSize + - Interface ScalingPlansListByResourceGroupOptionalParams has a new optional parameter initialSkip + - Interface ScalingPlansListByResourceGroupOptionalParams has a new optional parameter isDescending + - Interface ScalingPlansListByResourceGroupOptionalParams has a new optional parameter pageSize + - Interface ScalingPlansListBySubscriptionOptionalParams has a new optional parameter initialSkip + - Interface ScalingPlansListBySubscriptionOptionalParams has a new optional parameter isDescending + - Interface ScalingPlansListBySubscriptionOptionalParams has a new optional parameter pageSize + - Interface SessionHost has a new optional parameter friendlyName + - Interface SessionHostPatch has a new optional parameter friendlyName + - Interface SessionHostsListOptionalParams has a new optional parameter initialSkip + - Interface SessionHostsListOptionalParams has a new optional parameter isDescending + - Interface SessionHostsListOptionalParams has a new optional parameter pageSize + - Interface StartMenuItemsListOptionalParams has a new optional parameter initialSkip + - Interface StartMenuItemsListOptionalParams has a new optional parameter isDescending + - Interface StartMenuItemsListOptionalParams has a new optional parameter pageSize + - Interface UserSessionsListByHostPoolOptionalParams has a new optional parameter initialSkip + - Interface UserSessionsListByHostPoolOptionalParams has a new optional parameter isDescending + - Interface UserSessionsListByHostPoolOptionalParams has a new optional parameter pageSize + - Interface UserSessionsListOptionalParams has a new optional parameter initialSkip + - Interface UserSessionsListOptionalParams has a new optional parameter isDescending + - Interface UserSessionsListOptionalParams has a new optional parameter pageSize + - Interface Workspace has a new optional parameter privateEndpointConnections + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter initialSkip + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter isDescending + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter pageSize + - Added Enum KnownHostpoolPublicNetworkAccess + - Added Enum KnownSessionHostComponentUpdateType -### Other Changes +**Breaking Changes** + - Interface ApplicationGroup no longer has parameter migrationRequest + - Interface ApplicationGroupsListByResourceGroupNextOptionalParams no longer has parameter filter + - Interface ApplicationGroupsListBySubscriptionNextOptionalParams no longer has parameter filter + - Interface HostPool no longer has parameter migrationRequest + - Interface UserSessionsListByHostPoolNextOptionalParams no longer has parameter filter + - Parameter timeZone of interface ScalingPlan is now required + - Type of parameter publicNetworkAccess of interface HostPool is changed from PublicNetworkAccess to HostpoolPublicNetworkAccess + - Type of parameter publicNetworkAccess of interface HostPoolPatch is changed from PublicNetworkAccess to HostpoolPublicNetworkAccess + - Class DesktopVirtualizationAPIClient has a new required parameter scalingPlanPooledSchedules + - Removed Enum KnownOperation + + ## 1.0.0-beta.4 (2022-11-21) **Features** diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json b/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json index 7fe5233d5e5b..fd692fb51718 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956", - "readme": "specification\\desktopvirtualization\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\desktopvirtualization\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "ad3c9be2fa84a91a9a89f057581b4d0bcf29d49c", + "readme": "specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.3", + "use": "@autorest/typescript@6.0.0-rc.4" } \ No newline at end of file diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json index ab996496aea2..2d9a8bcfebea 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json @@ -108,13 +108,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md b/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md index bfcfc0c2100b..d2c8fcee33b1 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md @@ -8,6 +8,22 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; +// @public +export interface AgentUpdatePatchProperties { + maintenanceWindows?: MaintenanceWindowPatchProperties[]; + maintenanceWindowTimeZone?: string; + type?: SessionHostComponentUpdateType; + useSessionHostLocalTime?: boolean; +} + +// @public +export interface AgentUpdateProperties { + maintenanceWindows?: MaintenanceWindowProperties[]; + maintenanceWindowTimeZone?: string; + type?: SessionHostComponentUpdateType; + useSessionHostLocalTime?: boolean; +} + // @public export interface Application extends Resource { applicationType?: RemoteApplicationType; @@ -34,7 +50,6 @@ export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet { description?: string; friendlyName?: string; hostPoolArmPath: string; - migrationRequest?: MigrationRequestProperties; readonly objectId?: string; readonly systemData?: SystemData; readonly workspaceArmPath?: string; @@ -85,7 +100,6 @@ export type ApplicationGroupsGetResponse = ApplicationGroup; // @public export interface ApplicationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -94,6 +108,9 @@ export type ApplicationGroupsListByResourceGroupNextResponse = ApplicationGroupL // @public export interface ApplicationGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -101,7 +118,6 @@ export type ApplicationGroupsListByResourceGroupResponse = ApplicationGroupList; // @public export interface ApplicationGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -186,6 +202,9 @@ export type ApplicationsListNextResponse = ApplicationList; // @public export interface ApplicationsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -219,6 +238,9 @@ export type CommandLineSetting = string; // @public export type CreatedByType = string; +// @public +export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; + // @public export interface Desktop extends Resource { description?: string; @@ -267,6 +289,9 @@ export type DesktopsListNextResponse = DesktopList; // @public export interface DesktopsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -306,6 +331,8 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { // (undocumented) privateLinkResources: PrivateLinkResources; // (undocumented) + scalingPlanPooledSchedules: ScalingPlanPooledSchedules; + // (undocumented) scalingPlans: ScalingPlans; // (undocumented) sessionHosts: SessionHosts; @@ -360,6 +387,7 @@ export type HealthCheckResult = string; // @public export interface HostPool extends ResourceModelWithAllowedPropertySet { + agentUpdate?: AgentUpdateProperties; readonly applicationGroupReferences?: string[]; readonly cloudPcResource?: boolean; customRdpProperty?: string; @@ -368,11 +396,11 @@ export interface HostPool extends ResourceModelWithAllowedPropertySet { hostPoolType: HostPoolType; loadBalancerType: LoadBalancerType; maxSessionLimit?: number; - migrationRequest?: MigrationRequestProperties; readonly objectId?: string; personalDesktopAssignmentType?: PersonalDesktopAssignmentType; preferredAppGroupType: PreferredAppGroupType; - publicNetworkAccess?: PublicNetworkAccess; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + publicNetworkAccess?: HostpoolPublicNetworkAccess; registrationInfo?: RegistrationInfo; ring?: number; ssoadfsAuthority?: string; @@ -393,6 +421,7 @@ export interface HostPoolList { // @public export interface HostPoolPatch extends Resource { + agentUpdate?: AgentUpdatePatchProperties; customRdpProperty?: string; description?: string; friendlyName?: string; @@ -400,7 +429,7 @@ export interface HostPoolPatch extends Resource { maxSessionLimit?: number; personalDesktopAssignmentType?: PersonalDesktopAssignmentType; preferredAppGroupType?: PreferredAppGroupType; - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: HostpoolPublicNetworkAccess; registrationInfo?: RegistrationInfoPatch; ring?: number; ssoadfsAuthority?: string; @@ -415,6 +444,9 @@ export interface HostPoolPatch extends Resource { vmTemplate?: string; } +// @public +export type HostpoolPublicNetworkAccess = string; + // @public export interface HostPools { createOrUpdate(resourceGroupName: string, hostPoolName: string, hostPool: HostPool, options?: HostPoolsCreateOrUpdateOptionalParams): Promise; @@ -454,6 +486,9 @@ export type HostPoolsListByResourceGroupNextResponse = HostPoolList; // @public export interface HostPoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -468,6 +503,9 @@ export type HostPoolsListNextResponse = HostPoolList; // @public export interface HostPoolsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -548,6 +586,14 @@ export enum KnownHealthCheckResult { Unknown = "Unknown" } +// @public +export enum KnownHostpoolPublicNetworkAccess { + Disabled = "Disabled", + Enabled = "Enabled", + EnabledForClientsOnly = "EnabledForClientsOnly", + EnabledForSessionHostsOnly = "EnabledForSessionHostsOnly" +} + // @public export enum KnownHostPoolType { BYODesktop = "BYODesktop", @@ -562,15 +608,6 @@ export enum KnownLoadBalancerType { Persistent = "Persistent" } -// @public -export enum KnownOperation { - Complete = "Complete", - Hide = "Hide", - Revoke = "Revoke", - Start = "Start", - Unhide = "Unhide" -} - // @public export enum KnownPersonalDesktopAssignmentType { Automatic = "Automatic", @@ -634,6 +671,12 @@ export enum KnownScalingScheduleDaysOfWeekItem { Wednesday = "Wednesday" } +// @public +export enum KnownSessionHostComponentUpdateType { + Default = "Default", + Scheduled = "Scheduled" +} + // @public export enum KnownSessionHostLoadBalancingAlgorithm { BreadthFirst = "BreadthFirst", @@ -700,9 +743,15 @@ export interface LogSpecification { } // @public -export interface MigrationRequestProperties { - migrationPath?: string; - operation?: Operation; +export interface MaintenanceWindowPatchProperties { + dayOfWeek?: DayOfWeek; + hour?: number; +} + +// @public +export interface MaintenanceWindowProperties { + dayOfWeek?: DayOfWeek; + hour?: number; } // @public @@ -812,6 +861,9 @@ export type MsixPackagesListNextResponse = MsixPackageList; // @public export interface MsixPackagesListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -825,9 +877,6 @@ export interface MsixPackagesUpdateOptionalParams extends coreClient.OperationOp // @public export type MsixPackagesUpdateResponse = MsixPackage; -// @public -export type Operation = string; - // @public export interface OperationProperties { serviceSpecification?: ServiceSpecification; @@ -876,7 +925,7 @@ export interface PrivateEndpoint { export interface PrivateEndpointConnection extends Resource { privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } // @public @@ -931,6 +980,9 @@ export type PrivateEndpointConnectionsListByHostPoolNextResponse = PrivateEndpoi // @public export interface PrivateEndpointConnectionsListByHostPoolOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1000,6 +1052,9 @@ export type PrivateLinkResourcesListByHostPoolNextResponse = PrivateLinkResource // @public export interface PrivateLinkResourcesListByHostPoolOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1014,6 +1069,9 @@ export type PrivateLinkResourcesListByWorkspaceNextResponse = PrivateLinkResourc // @public export interface PrivateLinkResourcesListByWorkspaceOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1128,7 +1186,7 @@ export interface ScalingPlan extends ResourceModelWithAllowedPropertySet { readonly objectId?: string; schedules?: ScalingSchedule[]; readonly systemData?: SystemData; - timeZone?: string; + timeZone: string; } // @public @@ -1150,6 +1208,107 @@ export interface ScalingPlanPatch { timeZone?: string; } +// @public +export interface ScalingPlanPooledSchedule extends Resource { + daysOfWeek?: DayOfWeek[]; + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + offPeakStartTime?: Time; + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + peakStartTime?: Time; + rampDownCapacityThresholdPct?: number; + rampDownForceLogoffUsers?: boolean; + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampDownMinimumHostsPct?: number; + rampDownNotificationMessage?: string; + rampDownStartTime?: Time; + rampDownStopHostsWhen?: StopHostsWhen; + rampDownWaitTimeMinutes?: number; + rampUpCapacityThresholdPct?: number; + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampUpMinimumHostsPct?: number; + rampUpStartTime?: Time; + readonly systemData?: SystemData; +} + +// @public +export interface ScalingPlanPooledScheduleList { + readonly nextLink?: string; + value?: ScalingPlanPooledSchedule[]; +} + +// @public +export interface ScalingPlanPooledSchedulePatch extends Resource { + daysOfWeek?: DayOfWeek[]; + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + offPeakStartTime?: Time; + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + peakStartTime?: Time; + rampDownCapacityThresholdPct?: number; + rampDownForceLogoffUsers?: boolean; + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampDownMinimumHostsPct?: number; + rampDownNotificationMessage?: string; + rampDownStartTime?: Time; + rampDownStopHostsWhen?: StopHostsWhen; + rampDownWaitTimeMinutes?: number; + rampUpCapacityThresholdPct?: number; + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampUpMinimumHostsPct?: number; + rampUpStartTime?: Time; +} + +// @public +export interface ScalingPlanPooledSchedules { + create(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, scalingPlanSchedule: ScalingPlanPooledSchedule, options?: ScalingPlanPooledSchedulesCreateOptionalParams): Promise; + delete(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesGetOptionalParams): Promise; + list(resourceGroupName: string, scalingPlanName: string, options?: ScalingPlanPooledSchedulesListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesUpdateOptionalParams): Promise; +} + +// @public +export interface ScalingPlanPooledSchedulesCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScalingPlanPooledSchedulesCreateResponse = ScalingPlanPooledSchedule; + +// @public +export interface ScalingPlanPooledSchedulesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ScalingPlanPooledSchedulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScalingPlanPooledSchedulesGetResponse = ScalingPlanPooledSchedule; + +// @public +export interface ScalingPlanPooledSchedulesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScalingPlanPooledSchedulesListNextResponse = ScalingPlanPooledScheduleList; + +// @public +export interface ScalingPlanPooledSchedulesListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; +} + +// @public +export type ScalingPlanPooledSchedulesListResponse = ScalingPlanPooledScheduleList; + +// @public +export interface ScalingPlanPooledSchedulesUpdateOptionalParams extends coreClient.OperationOptions { + scalingPlanSchedule?: ScalingPlanPooledSchedulePatch; +} + +// @public +export type ScalingPlanPooledSchedulesUpdateResponse = ScalingPlanPooledSchedule; + // @public export interface ScalingPlans { create(resourceGroupName: string, scalingPlanName: string, scalingPlan: ScalingPlan, options?: ScalingPlansCreateOptionalParams): Promise; @@ -1188,6 +1347,9 @@ export type ScalingPlansListByHostPoolNextResponse = ScalingPlanList; // @public export interface ScalingPlansListByHostPoolOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1202,6 +1364,9 @@ export type ScalingPlansListByResourceGroupNextResponse = ScalingPlanList; // @public export interface ScalingPlansListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1216,6 +1381,9 @@ export type ScalingPlansListBySubscriptionNextResponse = ScalingPlanList; // @public export interface ScalingPlansListBySubscriptionOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1270,6 +1438,7 @@ export interface SessionHost extends Resource { agentVersion?: string; allowNewSession?: boolean; assignedUser?: string; + friendlyName?: string; lastHeartBeat?: Date; readonly lastUpdateTime?: Date; readonly objectId?: string; @@ -1286,6 +1455,9 @@ export interface SessionHost extends Resource { readonly virtualMachineId?: string; } +// @public +export type SessionHostComponentUpdateType = string; + // @public export interface SessionHostHealthCheckFailureDetails { readonly errorCode?: number; @@ -1313,6 +1485,7 @@ export type SessionHostLoadBalancingAlgorithm = string; export interface SessionHostPatch extends Resource { allowNewSession?: boolean; assignedUser?: string; + friendlyName?: string; } // @public @@ -1344,6 +1517,9 @@ export type SessionHostsListNextResponse = SessionHostList; // @public export interface SessionHostsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1405,6 +1581,9 @@ export type StartMenuItemsListNextResponse = StartMenuItemList; // @public export interface StartMenuItemsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1480,7 +1659,6 @@ export type UserSessionsGetResponse = UserSession; // @public export interface UserSessionsListByHostPoolNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -1489,6 +1667,9 @@ export type UserSessionsListByHostPoolNextResponse = UserSessionList; // @public export interface UserSessionsListByHostPoolOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1503,6 +1684,9 @@ export type UserSessionsListNextResponse = UserSessionList; // @public export interface UserSessionsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1520,6 +1704,7 @@ export interface Workspace extends ResourceModelWithAllowedPropertySet { description?: string; friendlyName?: string; readonly objectId?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; publicNetworkAccess?: PublicNetworkAccess; readonly systemData?: SystemData; } @@ -1578,6 +1763,9 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts index e26cf5b2e4cb..5766a869efa8 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts @@ -17,7 +17,10 @@ import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, WorkspacesImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, ScalingPlansImpl, + ScalingPlanPooledSchedulesImpl, ApplicationGroupsImpl, StartMenuItemsImpl, ApplicationsImpl, @@ -26,14 +29,15 @@ import { UserSessionsImpl, SessionHostsImpl, MsixPackagesImpl, - MsixImagesImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + MsixImagesImpl } from "./operations"; import { Operations, Workspaces, + PrivateEndpointConnections, + PrivateLinkResources, ScalingPlans, + ScalingPlanPooledSchedules, ApplicationGroups, StartMenuItems, Applications, @@ -42,9 +46,7 @@ import { UserSessions, SessionHosts, MsixPackages, - MsixImages, - PrivateEndpointConnections, - PrivateLinkResources + MsixImages } from "./operationsInterfaces"; import { DesktopVirtualizationAPIClientOptionalParams } from "./models"; @@ -133,10 +135,13 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-09-03-preview"; + this.apiVersion = options.apiVersion || "2022-10-14-preview"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.scalingPlans = new ScalingPlansImpl(this); + this.scalingPlanPooledSchedules = new ScalingPlanPooledSchedulesImpl(this); this.applicationGroups = new ApplicationGroupsImpl(this); this.startMenuItems = new StartMenuItemsImpl(this); this.applications = new ApplicationsImpl(this); @@ -146,8 +151,6 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { this.sessionHosts = new SessionHostsImpl(this); this.msixPackages = new MsixPackagesImpl(this); this.msixImages = new MsixImagesImpl(this); - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -181,7 +184,10 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { operations: Operations; workspaces: Workspaces; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; scalingPlans: ScalingPlans; + scalingPlanPooledSchedules: ScalingPlanPooledSchedules; applicationGroups: ApplicationGroups; startMenuItems: StartMenuItems; applications: Applications; @@ -191,6 +197,4 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { sessionHosts: SessionHosts; msixPackages: MsixPackages; msixImages: MsixImages; - privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; } diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts index 16a5fb1c1999..c087221d7c5c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts @@ -95,6 +95,44 @@ export interface SystemData { lastModifiedAt?: Date; } +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + /** 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. */ export interface ResourceModelWithAllowedPropertySet { /** @@ -188,6 +226,28 @@ export interface WorkspacePatch { publicNetworkAccess?: PublicNetworkAccess; } +/** List of private endpoint connection associated with the specified storage account */ +export interface PrivateEndpointConnectionListResultWithSystemData { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnectionWithSystemData[]; + /** + * Link to the next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; + /** + * Link to the next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** List of Workspace definitions. */ export interface WorkspaceList { /** List of Workspace definitions. */ @@ -199,9 +259,9 @@ export interface WorkspaceList { readonly nextLink?: string; } -/** Scaling plan schedule. */ +/** A ScalingPlanPooledSchedule. */ export interface ScalingSchedule { - /** Name of the scaling schedule. */ + /** Name of the ScalingPlanPooledSchedule. */ name?: string; /** Set of days of the week on which this schedule is active. */ daysOfWeek?: ScalingScheduleDaysOfWeekItem[]; @@ -284,31 +344,15 @@ export interface ScalingPlanList { readonly nextLink?: string; } -/** Properties for arm migration. */ -export interface MigrationRequestProperties { - /** The type of operation for migration. */ - operation?: Operation; - /** The path to the legacy object to migrate. */ - migrationPath?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { +/** List of ScalingPlanPooledSchedule definitions. */ +export interface ScalingPlanPooledScheduleList { + /** List of ScalingPlanPooledSchedule definitions. */ + value?: ScalingPlanPooledSchedule[]; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Link to the next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly nextLink?: string; } /** List of ApplicationGroup definitions. */ @@ -403,6 +447,26 @@ export interface RegistrationInfo { registrationTokenOperation?: RegistrationTokenOperation; } +/** The session host configuration for updating agent, monitoring agent, and stack component. */ +export interface AgentUpdateProperties { + /** The type of maintenance for session host components. */ + type?: SessionHostComponentUpdateType; + /** Whether to use localTime of the virtual machine. */ + useSessionHostLocalTime?: boolean; + /** Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. */ + maintenanceWindowTimeZone?: string; + /** List of maintenance windows. Maintenance windows are 2 hours long. */ + maintenanceWindows?: MaintenanceWindowProperties[]; +} + +/** Maintenance window starting hour and day of week. */ +export interface MaintenanceWindowProperties { + /** The update start hour of the day. (0 - 23) */ + hour?: number; + /** Day of the week. */ + dayOfWeek?: DayOfWeek; +} + /** Represents a RegistrationInfo definition. */ export interface RegistrationInfoPatch { /** Expiration time of registration token. */ @@ -411,6 +475,26 @@ export interface RegistrationInfoPatch { registrationTokenOperation?: RegistrationTokenOperation; } +/** The session host configuration for updating agent, monitoring agent, and stack component. */ +export interface AgentUpdatePatchProperties { + /** The type of maintenance for session host components. */ + type?: SessionHostComponentUpdateType; + /** Whether to use localTime of the virtual machine. */ + useSessionHostLocalTime?: boolean; + /** Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. */ + maintenanceWindowTimeZone?: string; + /** List of maintenance windows. Maintenance windows are 2 hours long. */ + maintenanceWindows?: MaintenanceWindowPatchProperties[]; +} + +/** Maintenance window starting hour and day of week. */ +export interface MaintenanceWindowPatchProperties { + /** The update start hour of the day. (0 - 23) */ + hour?: number; + /** Day of the week. */ + dayOfWeek?: DayOfWeek; +} + /** List of HostPool definitions. */ export interface HostPoolList { /** List of HostPool definitions. */ @@ -546,204 +630,116 @@ export interface SendMessage { messageBody?: string; } -/** List of private endpoint connection associated with the specified storage account */ -export interface PrivateEndpointConnectionListResultWithSystemData { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnectionWithSystemData[]; - /** - * Link to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { - /** - * The ARM identifier for Private Endpoint - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; - /** - * Link to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Represents a Workspace definition. */ -export interface Workspace extends ResourceModelWithAllowedPropertySet { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * ObjectId of Workspace. (internal use) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly objectId?: string; - /** Description of Workspace. */ - description?: string; - /** Friendly name of Workspace. */ - friendlyName?: string; - /** List of applicationGroup resource Ids. */ - applicationGroupReferences?: string[]; +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection extends Resource { + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Is cloud pc resource. + * The provisioning state of the private endpoint connection resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cloudPcResource?: boolean; - /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ - publicNetworkAccess?: PublicNetworkAccess; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** Represents a scaling plan definition. */ -export interface ScalingPlan extends ResourceModelWithAllowedPropertySet { +/** A private link resource */ +export interface PrivateLinkResource extends Resource { /** - * Metadata pertaining to creation and last modification of the resource. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly groupId?: string; /** - * ObjectId of scaling plan. (internal use) + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly objectId?: string; - /** Description of scaling plan. */ - description?: string; - /** User friendly name of scaling plan. */ - friendlyName?: string; - /** Timezone of the scaling plan. */ - timeZone?: string; - /** HostPool type for desktop. */ - hostPoolType?: ScalingHostPoolType; - /** Exclusion tag for scaling plan. */ - exclusionTag?: string; - /** List of ScalingSchedule definitions. */ - schedules?: ScalingSchedule[]; - /** List of ScalingHostPoolReference definitions. */ - hostPoolReferences?: ScalingHostPoolReference[]; + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; } -/** Represents a ApplicationGroup definition. */ -export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet { +/** Represents a ScalingPlanPooledSchedule definition. */ +export interface ScalingPlanPooledSchedule extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** - * ObjectId of ApplicationGroup. (internal use) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly objectId?: string; - /** Description of ApplicationGroup. */ - description?: string; - /** Friendly name of ApplicationGroup. */ - friendlyName?: string; - /** HostPool arm path of ApplicationGroup. */ - hostPoolArmPath: string; - /** - * Workspace arm path of ApplicationGroup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceArmPath?: string; - /** Resource Type of ApplicationGroup. */ - applicationGroupType: ApplicationGroupType; - /** The registration info of HostPool. */ - migrationRequest?: MigrationRequestProperties; - /** - * Is cloud pc resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudPcResource?: boolean; + /** Set of days of the week on which this schedule is active. */ + daysOfWeek?: DayOfWeek[]; + /** Starting time for ramp up period. */ + rampUpStartTime?: Time; + /** Load balancing algorithm for ramp up period. */ + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp up period. */ + rampUpMinimumHostsPct?: number; + /** Capacity threshold for ramp up period. */ + rampUpCapacityThresholdPct?: number; + /** Starting time for peak period. */ + peakStartTime?: Time; + /** Load balancing algorithm for peak period. */ + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Starting time for ramp down period. */ + rampDownStartTime?: Time; + /** Load balancing algorithm for ramp down period. */ + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp down period. */ + rampDownMinimumHostsPct?: number; + /** Capacity threshold for ramp down period. */ + rampDownCapacityThresholdPct?: number; + /** Should users be logged off forcefully from hosts. */ + rampDownForceLogoffUsers?: boolean; + /** Specifies when to stop hosts during ramp down period. */ + rampDownStopHostsWhen?: StopHostsWhen; + /** Number of minutes to wait to stop hosts during ramp down period. */ + rampDownWaitTimeMinutes?: number; + /** Notification message for users during ramp down period. */ + rampDownNotificationMessage?: string; + /** Starting time for off-peak period. */ + offPeakStartTime?: Time; + /** Load balancing algorithm for off-peak period. */ + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; } -/** Represents a HostPool definition. */ -export interface HostPool extends ResourceModelWithAllowedPropertySet { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * ObjectId of HostPool. (internal use) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly objectId?: string; - /** Friendly name of HostPool. */ - friendlyName?: string; - /** Description of HostPool. */ - description?: string; - /** HostPool type for desktop. */ - hostPoolType: HostPoolType; - /** PersonalDesktopAssignment type for HostPool. */ - personalDesktopAssignmentType?: PersonalDesktopAssignmentType; - /** Custom rdp property of HostPool. */ - customRdpProperty?: string; - /** The max session limit of HostPool. */ - maxSessionLimit?: number; - /** The type of the load balancer. */ - loadBalancerType: LoadBalancerType; - /** The ring number of HostPool. */ - ring?: number; - /** Is validation environment. */ - validationEnvironment?: boolean; - /** The registration info of HostPool. */ - registrationInfo?: RegistrationInfo; - /** VM template for sessionhosts configuration within hostpool. */ - vmTemplate?: string; - /** - * List of applicationGroup links. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applicationGroupReferences?: string[]; - /** URL to customer ADFS server for signing WVD SSO certificates. */ - ssoadfsAuthority?: string; - /** ClientId for the registered Relying Party used to issue WVD SSO certificates. */ - ssoClientId?: string; - /** Path to Azure KeyVault storing the secret used for communication to ADFS. */ - ssoClientSecretKeyVaultPath?: string; - /** The type of single sign on Secret Type. */ - ssoSecretType?: SSOSecretType; - /** The type of preferred application group type, default to Desktop Application Group */ - preferredAppGroupType: PreferredAppGroupType; - /** The flag to turn on/off StartVMOnConnect feature. */ - startVMOnConnect?: boolean; - /** The registration info of HostPool. */ - migrationRequest?: MigrationRequestProperties; - /** - * Is cloud pc resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudPcResource?: boolean; - /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ - publicNetworkAccess?: PublicNetworkAccess; +/** ScalingPlanPooledSchedule properties that can be patched. */ +export interface ScalingPlanPooledSchedulePatch extends Resource { + /** Set of days of the week on which this schedule is active. */ + daysOfWeek?: DayOfWeek[]; + /** Starting time for ramp up period. */ + rampUpStartTime?: Time; + /** Load balancing algorithm for ramp up period. */ + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp up period. */ + rampUpMinimumHostsPct?: number; + /** Capacity threshold for ramp up period. */ + rampUpCapacityThresholdPct?: number; + /** Starting time for peak period. */ + peakStartTime?: Time; + /** Load balancing algorithm for peak period. */ + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Starting time for ramp down period. */ + rampDownStartTime?: Time; + /** Load balancing algorithm for ramp down period. */ + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp down period. */ + rampDownMinimumHostsPct?: number; + /** Capacity threshold for ramp down period. */ + rampDownCapacityThresholdPct?: number; + /** Should users be logged off forcefully from hosts. */ + rampDownForceLogoffUsers?: boolean; + /** Specifies when to stop hosts during ramp down period. */ + rampDownStopHostsWhen?: StopHostsWhen; + /** Number of minutes to wait to stop hosts during ramp down period. */ + rampDownWaitTimeMinutes?: number; + /** Notification message for users during ramp down period. */ + rampDownNotificationMessage?: string; + /** Starting time for off-peak period. */ + offPeakStartTime?: Time; + /** Load balancing algorithm for off-peak period. */ + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; } -export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {} - -export interface ResourceModelWithAllowedPropertySetSku extends Sku {} - -export interface ResourceModelWithAllowedPropertySetPlan extends Plan {} - /** ApplicationGroup properties that can be patched. */ export interface ApplicationGroupPatch extends Resource { /** tags to be updated */ @@ -879,7 +875,9 @@ export interface HostPoolPatch extends Resource { /** The flag to turn on/off StartVMOnConnect feature. */ startVMOnConnect?: boolean; /** Enabled to allow this resource to be access from the public network */ - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: HostpoolPublicNetworkAccess; + /** The session host configuration for updating agent, monitoring agent, and stack component. */ + agentUpdate?: AgentUpdatePatchProperties; } /** Represents a UserSession definition. */ @@ -938,6 +936,8 @@ export interface SessionHost extends Resource { readonly resourceId?: string; /** User assigned to SessionHost. */ assignedUser?: string; + /** Friendly name of SessionHost */ + friendlyName?: string; /** Status for a SessionHost. */ status?: Status; /** @@ -971,6 +971,8 @@ export interface SessionHostPatch extends Resource { allowNewSession?: boolean; /** User assigned to SessionHost. */ assignedUser?: string; + /** Friendly name of SessionHost */ + friendlyName?: string; } /** Schema for MSIX Package properties. */ @@ -1044,32 +1046,171 @@ export interface ExpandMsixImage extends Resource { packageApplications?: MsixPackageApplications[]; } -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; +/** Represents a Workspace definition. */ +export interface Workspace extends ResourceModelWithAllowedPropertySet { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * ObjectId of Workspace. (internal use) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly objectId?: string; + /** Description of Workspace. */ + description?: string; + /** Friendly name of Workspace. */ + friendlyName?: string; + /** List of applicationGroup resource Ids. */ + applicationGroupReferences?: string[]; + /** + * Is cloud pc resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cloudPcResource?: boolean; + /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * List of private endpoint connection associated with the specified resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; +} + +/** Represents a scaling plan definition. */ +export interface ScalingPlan extends ResourceModelWithAllowedPropertySet { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * ObjectId of scaling plan. (internal use) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly objectId?: string; + /** Description of scaling plan. */ + description?: string; + /** User friendly name of scaling plan. */ + friendlyName?: string; + /** Timezone of the scaling plan. */ + timeZone: string; + /** HostPool type for desktop. */ + hostPoolType?: ScalingHostPoolType; + /** Exclusion tag for scaling plan. */ + exclusionTag?: string; + /** List of ScalingPlanPooledSchedule definitions. */ + schedules?: ScalingSchedule[]; + /** List of ScalingHostPoolReference definitions. */ + hostPoolReferences?: ScalingHostPoolReference[]; +} + +/** Represents a ApplicationGroup definition. */ +export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * ObjectId of ApplicationGroup. (internal use) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly objectId?: string; + /** Description of ApplicationGroup. */ + description?: string; + /** Friendly name of ApplicationGroup. */ + friendlyName?: string; + /** HostPool arm path of ApplicationGroup. */ + hostPoolArmPath: string; + /** + * Workspace arm path of ApplicationGroup. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceArmPath?: string; + /** Resource Type of ApplicationGroup. */ + applicationGroupType: ApplicationGroupType; + /** + * Is cloud pc resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cloudPcResource?: boolean; } -/** A private link resource */ -export interface PrivateLinkResource extends Resource { +/** Represents a HostPool definition. */ +export interface HostPool extends ResourceModelWithAllowedPropertySet { /** - * The private link resource group id. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly systemData?: SystemData; /** - * The private link resource required member names. + * ObjectId of HostPool. (internal use) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; + readonly objectId?: string; + /** Friendly name of HostPool. */ + friendlyName?: string; + /** Description of HostPool. */ + description?: string; + /** HostPool type for desktop. */ + hostPoolType: HostPoolType; + /** PersonalDesktopAssignment type for HostPool. */ + personalDesktopAssignmentType?: PersonalDesktopAssignmentType; + /** Custom rdp property of HostPool. */ + customRdpProperty?: string; + /** The max session limit of HostPool. */ + maxSessionLimit?: number; + /** The type of the load balancer. */ + loadBalancerType: LoadBalancerType; + /** The ring number of HostPool. */ + ring?: number; + /** Is validation environment. */ + validationEnvironment?: boolean; + /** The registration info of HostPool. */ + registrationInfo?: RegistrationInfo; + /** VM template for sessionhosts configuration within hostpool. */ + vmTemplate?: string; + /** + * List of applicationGroup links. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicationGroupReferences?: string[]; + /** URL to customer ADFS server for signing WVD SSO certificates. */ + ssoadfsAuthority?: string; + /** ClientId for the registered Relying Party used to issue WVD SSO certificates. */ + ssoClientId?: string; + /** Path to Azure KeyVault storing the secret used for communication to ADFS. */ + ssoClientSecretKeyVaultPath?: string; + /** The type of single sign on Secret Type. */ + ssoSecretType?: SSOSecretType; + /** The type of preferred application group type, default to Desktop Application Group */ + preferredAppGroupType: PreferredAppGroupType; + /** The flag to turn on/off StartVMOnConnect feature. */ + startVMOnConnect?: boolean; + /** + * Is cloud pc resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cloudPcResource?: boolean; + /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ + publicNetworkAccess?: HostpoolPublicNetworkAccess; + /** The session host configuration for updating agent, monitoring agent, and stack component. */ + agentUpdate?: AgentUpdateProperties; + /** + * List of private endpoint connection associated with the specified resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; } +export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {} + +export interface ResourceModelWithAllowedPropertySetSku extends Sku {} + +export interface ResourceModelWithAllowedPropertySetPlan extends Plan {} + /** The Private Endpoint Connection resource. */ export interface PrivateEndpointConnectionWithSystemData extends PrivateEndpointConnection { @@ -1122,6 +1263,51 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected" +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + /** Known values of {@link ScalingHostPoolType} that the service accepts. */ export enum KnownScalingHostPoolType { /** Users get a new (random) SessionHost every time it connects to the HostPool. */ @@ -1224,33 +1410,6 @@ export enum KnownApplicationGroupType { */ export type ApplicationGroupType = string; -/** Known values of {@link Operation} that the service accepts. */ -export enum KnownOperation { - /** Start the migration. */ - Start = "Start", - /** Revoke the migration. */ - Revoke = "Revoke", - /** Complete the migration. */ - Complete = "Complete", - /** Hide the hostpool. */ - Hide = "Hide", - /** Unhide the hostpool. */ - Unhide = "Unhide" -} - -/** - * Defines values for Operation. \ - * {@link KnownOperation} can be used interchangeably with Operation, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Start**: Start the migration. \ - * **Revoke**: Revoke the migration. \ - * **Complete**: Complete the migration. \ - * **Hide**: Hide the hostpool. \ - * **Unhide**: Unhide the hostpool. - */ -export type Operation = string; - /** Known values of {@link RemoteApplicationType} that the service accepts. */ export enum KnownRemoteApplicationType { /** InBuilt */ @@ -1416,6 +1575,48 @@ export enum KnownPreferredAppGroupType { */ export type PreferredAppGroupType = string; +/** Known values of {@link HostpoolPublicNetworkAccess} that the service accepts. */ +export enum KnownHostpoolPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** EnabledForSessionHostsOnly */ + EnabledForSessionHostsOnly = "EnabledForSessionHostsOnly", + /** EnabledForClientsOnly */ + EnabledForClientsOnly = "EnabledForClientsOnly" +} + +/** + * Defines values for HostpoolPublicNetworkAccess. \ + * {@link KnownHostpoolPublicNetworkAccess} can be used interchangeably with HostpoolPublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **EnabledForSessionHostsOnly** \ + * **EnabledForClientsOnly** + */ +export type HostpoolPublicNetworkAccess = string; + +/** Known values of {@link SessionHostComponentUpdateType} that the service accepts. */ +export enum KnownSessionHostComponentUpdateType { + /** Agent and other agent side components are delivery schedule is controlled by WVD Infra. */ + Default = "Default", + /** TenantAdmin have opted in for Scheduled Component Update feature. */ + Scheduled = "Scheduled" +} + +/** + * Defines values for SessionHostComponentUpdateType. \ + * {@link KnownSessionHostComponentUpdateType} can be used interchangeably with SessionHostComponentUpdateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default**: Agent and other agent side components are delivery schedule is controlled by WVD Infra. \ + * **Scheduled**: TenantAdmin have opted in for Scheduled Component Update feature. + */ +export type SessionHostComponentUpdateType = string; + /** Known values of {@link ApplicationType} that the service accepts. */ export enum KnownApplicationType { /** RemoteApp */ @@ -1541,27 +1742,27 @@ export type UpdateState = string; /** Known values of {@link HealthCheckName} that the service accepts. */ export enum KnownHealthCheckName { - /** Verifies the SessionHost is joined to a domain. If this check fails is classified as fatal as no connection can succeed if the SessionHost is not joined to the domain. */ + /** Verifies the SessionHost is joined to a domain. If this check fails is classified as fatal as no connection can succeed if the SessionHost is not joined to the domain. (Currently Enabled) */ DomainJoinedCheck = "DomainJoinedCheck", - /** Verifies the SessionHost is not experiencing domain trust issues that will prevent authentication on SessionHost at connection time when session is created. If this check fails is classified as fatal as no connection can succeed if we cannot reach the domain for authentication on the SessionHost. */ + /** Verifies the SessionHost is not experiencing domain trust issues that will prevent authentication on SessionHost at connection time when session is created. If this check fails is classified as fatal as no connection can succeed if we cannot reach the domain for authentication on the SessionHost. (Currently Enabled) */ DomainTrustCheck = "DomainTrustCheck", - /** Verifies the FSLogix service is up and running to make sure users' profiles are loaded in the session. If this check fails is classified as fatal as even if the connection can succeed, user experience is bad as the user profile cannot be loaded and user will get a temporary profile in the session. */ + /** Verifies the FSLogix service is up and running to make sure users' profiles are loaded in the session. If this check fails is classified as fatal as even if the connection can succeed, user experience is bad as the user profile cannot be loaded and user will get a temporary profile in the session. (Currently Disabled) */ FSLogixHealthCheck = "FSLogixHealthCheck", - /** Verifies that the SxS stack is up and running so connections can succeed. If this check fails is classified as fatal as no connection can succeed if the SxS stack is not ready. */ + /** Verifies that the SxS stack is up and running so connections can succeed. If this check fails is classified as fatal as no connection can succeed if the SxS stack is not ready. (Currently Enabled) */ SxSStackListenerCheck = "SxSStackListenerCheck", - /** Verifies that the required WVD service and Geneva URLs are reachable from the SessionHost. These URLs are: RdTokenUri, RdBrokerURI, RdDiagnosticsUri and storage blob URLs for agent monitoring (geneva). If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is unable to store warm path data (logs, operations ...). */ + /** Verifies that the required WVD service and Geneva URLs are reachable from the SessionHost. These URLs are: RdTokenUri, RdBrokerURI, RdDiagnosticsUri and storage blob URLs for agent monitoring (geneva). If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is unable to store warm path data (logs, operations ...). (Currently Disabled) */ UrlsAccessibleCheck = "UrlsAccessibleCheck", - /** Verifies that the required Geneva agent is running. If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is missing or running (possibly) older version. */ + /** Verifies that the required Geneva agent is running. If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is missing or running (possibly) older version. (Currently Enabled) */ MonitoringAgentCheck = "MonitoringAgentCheck", - /** Verifies the domain the SessionHost is joined to is still reachable. If this check fails is classified as fatal as no connection can succeed if the domain the SessionHost is joined is not reachable at the time of connection. */ + /** Verifies the domain the SessionHost is joined to is still reachable. If this check fails is classified as fatal as no connection can succeed if the domain the SessionHost is joined is not reachable at the time of connection. (Currently Disabled) */ DomainReachable = "DomainReachable", - /** Verifies whether the WebRTCRedirector component is healthy. The WebRTCRedirector component is used to optimize video and audio performance in Microsoft Teams. This checks whether the component is still running, and whether there is a higher version available. If this check fails, it is non fatal and the machine still can service connections, main issue may be the WebRTCRedirector component has to be restarted or updated. */ + /** Verifies whether the WebRTCRedirector component is healthy. The WebRTCRedirector component is used to optimize video and audio performance in Microsoft Teams. This checks whether the component is still running, and whether there is a higher version available. If this check fails, it is non fatal and the machine still can service connections, main issue may be the WebRTCRedirector component has to be restarted or updated. (Currently Disabled) */ WebRTCRedirectorCheck = "WebRTCRedirectorCheck", - /** Verifies the value of SecurityLayer registration key. If the value is 0 (SecurityLayer.RDP) this check fails with Error code = NativeMethodErrorCode.E_FAIL and is fatal. If the value is 1 (SecurityLayer.Negotiate) this check fails with Error code = NativeMethodErrorCode.ERROR_SUCCESS and is non fatal. */ + /** Verifies the value of SecurityLayer registration key. If the value is 0 (SecurityLayer.RDP) this check fails with Error code = NativeMethodErrorCode.E_FAIL and is fatal. If the value is 1 (SecurityLayer.Negotiate) this check fails with Error code = NativeMethodErrorCode.ERROR_SUCCESS and is non fatal. (Currently Disabled) */ SupportedEncryptionCheck = "SupportedEncryptionCheck", - /** Verifies the metadata service is accessible and return compute properties. */ + /** Verifies the metadata service is accessible and return compute properties. (Currently Enabled) */ MetaDataServiceCheck = "MetaDataServiceCheck", - /** Verifies that the AppAttachService is healthy (there were no issues during package staging). The AppAttachService is used to enable the staging/registration (and eventual deregistration/destaging) of MSIX apps that have been set up by the tenant admin. This checks whether the component had any failures during package staging. Failures in staging will prevent some MSIX apps from working properly for the end user. If this check fails, it is non fatal and the machine still can service connections, main issue may be certain apps will not work for end-users. */ + /** Verifies that the AppAttachService is healthy (there were no issues during package staging). The AppAttachService is used to enable the staging/registration (and eventual deregistration/destaging) of MSIX apps that have been set up by the tenant admin. This checks whether the component had any failures during package staging. Failures in staging will prevent some MSIX apps from working properly for the end user. If this check fails, it is non fatal and the machine still can service connections, main issue may be certain apps will not work for end-users. (Currently Enabled) */ AppAttachHealthCheck = "AppAttachHealthCheck" } @@ -1570,17 +1771,17 @@ export enum KnownHealthCheckName { * {@link KnownHealthCheckName} can be used interchangeably with HealthCheckName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DomainJoinedCheck**: Verifies the SessionHost is joined to a domain. If this check fails is classified as fatal as no connection can succeed if the SessionHost is not joined to the domain. \ - * **DomainTrustCheck**: Verifies the SessionHost is not experiencing domain trust issues that will prevent authentication on SessionHost at connection time when session is created. If this check fails is classified as fatal as no connection can succeed if we cannot reach the domain for authentication on the SessionHost. \ - * **FSLogixHealthCheck**: Verifies the FSLogix service is up and running to make sure users' profiles are loaded in the session. If this check fails is classified as fatal as even if the connection can succeed, user experience is bad as the user profile cannot be loaded and user will get a temporary profile in the session. \ - * **SxSStackListenerCheck**: Verifies that the SxS stack is up and running so connections can succeed. If this check fails is classified as fatal as no connection can succeed if the SxS stack is not ready. \ - * **UrlsAccessibleCheck**: Verifies that the required WVD service and Geneva URLs are reachable from the SessionHost. These URLs are: RdTokenUri, RdBrokerURI, RdDiagnosticsUri and storage blob URLs for agent monitoring (geneva). If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is unable to store warm path data (logs, operations ...). \ - * **MonitoringAgentCheck**: Verifies that the required Geneva agent is running. If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is missing or running (possibly) older version. \ - * **DomainReachable**: Verifies the domain the SessionHost is joined to is still reachable. If this check fails is classified as fatal as no connection can succeed if the domain the SessionHost is joined is not reachable at the time of connection. \ - * **WebRTCRedirectorCheck**: Verifies whether the WebRTCRedirector component is healthy. The WebRTCRedirector component is used to optimize video and audio performance in Microsoft Teams. This checks whether the component is still running, and whether there is a higher version available. If this check fails, it is non fatal and the machine still can service connections, main issue may be the WebRTCRedirector component has to be restarted or updated. \ - * **SupportedEncryptionCheck**: Verifies the value of SecurityLayer registration key. If the value is 0 (SecurityLayer.RDP) this check fails with Error code = NativeMethodErrorCode.E_FAIL and is fatal. If the value is 1 (SecurityLayer.Negotiate) this check fails with Error code = NativeMethodErrorCode.ERROR_SUCCESS and is non fatal. \ - * **MetaDataServiceCheck**: Verifies the metadata service is accessible and return compute properties. \ - * **AppAttachHealthCheck**: Verifies that the AppAttachService is healthy (there were no issues during package staging). The AppAttachService is used to enable the staging\/registration (and eventual deregistration\/destaging) of MSIX apps that have been set up by the tenant admin. This checks whether the component had any failures during package staging. Failures in staging will prevent some MSIX apps from working properly for the end user. If this check fails, it is non fatal and the machine still can service connections, main issue may be certain apps will not work for end-users. + * **DomainJoinedCheck**: Verifies the SessionHost is joined to a domain. If this check fails is classified as fatal as no connection can succeed if the SessionHost is not joined to the domain. (Currently Enabled) \ + * **DomainTrustCheck**: Verifies the SessionHost is not experiencing domain trust issues that will prevent authentication on SessionHost at connection time when session is created. If this check fails is classified as fatal as no connection can succeed if we cannot reach the domain for authentication on the SessionHost. (Currently Enabled) \ + * **FSLogixHealthCheck**: Verifies the FSLogix service is up and running to make sure users' profiles are loaded in the session. If this check fails is classified as fatal as even if the connection can succeed, user experience is bad as the user profile cannot be loaded and user will get a temporary profile in the session. (Currently Disabled) \ + * **SxSStackListenerCheck**: Verifies that the SxS stack is up and running so connections can succeed. If this check fails is classified as fatal as no connection can succeed if the SxS stack is not ready. (Currently Enabled) \ + * **UrlsAccessibleCheck**: Verifies that the required WVD service and Geneva URLs are reachable from the SessionHost. These URLs are: RdTokenUri, RdBrokerURI, RdDiagnosticsUri and storage blob URLs for agent monitoring (geneva). If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is unable to store warm path data (logs, operations ...). (Currently Disabled) \ + * **MonitoringAgentCheck**: Verifies that the required Geneva agent is running. If this check fails, it is non fatal and the machine still can service connections, main issue may be that monitoring agent is missing or running (possibly) older version. (Currently Enabled) \ + * **DomainReachable**: Verifies the domain the SessionHost is joined to is still reachable. If this check fails is classified as fatal as no connection can succeed if the domain the SessionHost is joined is not reachable at the time of connection. (Currently Disabled) \ + * **WebRTCRedirectorCheck**: Verifies whether the WebRTCRedirector component is healthy. The WebRTCRedirector component is used to optimize video and audio performance in Microsoft Teams. This checks whether the component is still running, and whether there is a higher version available. If this check fails, it is non fatal and the machine still can service connections, main issue may be the WebRTCRedirector component has to be restarted or updated. (Currently Disabled) \ + * **SupportedEncryptionCheck**: Verifies the value of SecurityLayer registration key. If the value is 0 (SecurityLayer.RDP) this check fails with Error code = NativeMethodErrorCode.E_FAIL and is fatal. If the value is 1 (SecurityLayer.Negotiate) this check fails with Error code = NativeMethodErrorCode.ERROR_SUCCESS and is non fatal. (Currently Disabled) \ + * **MetaDataServiceCheck**: Verifies the metadata service is accessible and return compute properties. (Currently Enabled) \ + * **AppAttachHealthCheck**: Verifies that the AppAttachService is healthy (there were no issues during package staging). The AppAttachService is used to enable the staging\/registration (and eventual deregistration\/destaging) of MSIX apps that have been set up by the tenant admin. This checks whether the component had any failures during package staging. Failures in staging will prevent some MSIX apps from working properly for the end user. If this check fails, it is non fatal and the machine still can service connections, main issue may be certain apps will not work for end-users. (Currently Enabled) */ export type HealthCheckName = string; @@ -1607,123 +1808,207 @@ export enum KnownHealthCheckResult { * **SessionHostShutdown**: We received a Shutdown notification. */ export type HealthCheckResult = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +/** Defines values for DayOfWeek. */ +export type DayOfWeek = + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday" + | "Sunday"; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected" +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = ResourceProviderOperationList; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = ResourceProviderOperationList; + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Object containing Workspace definitions. */ + workspace?: WorkspacePatch; } -/** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** - */ -export type PrivateEndpointServiceConnectionStatus = string; +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; } -/** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** - */ -export type PrivateEndpointConnectionProvisioningState = string; -/** Defines values for SkuTier. */ -export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceList; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type PrivateEndpointConnectionsListByWorkspaceResponse = PrivateEndpointConnectionListResultWithSystemData; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface PrivateEndpointConnectionsGetByWorkspaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = ResourceProviderOperationList; +/** Contains response data for the getByWorkspace operation. */ +export type PrivateEndpointConnectionsGetByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = ResourceProviderOperationList; - /** Optional parameters. */ -export interface WorkspacesGetOptionalParams +export interface PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; +/** Contains response data for the updateByWorkspace operation. */ +export type PrivateEndpointConnectionsUpdateByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; /** Optional parameters. */ -export interface WorkspacesCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionsListByHostPoolOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the listByHostPool operation. */ +export type PrivateEndpointConnectionsListByHostPoolResponse = PrivateEndpointConnectionListResultWithSystemData; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetByHostPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; +/** Contains response data for the getByHostPool operation. */ +export type PrivateEndpointConnectionsGetByHostPoolResponse = PrivateEndpointConnectionWithSystemData; /** Optional parameters. */ -export interface WorkspacesDeleteOptionalParams +export interface PrivateEndpointConnectionsDeleteByHostPoolOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Object containing Workspace definitions. */ - workspace?: WorkspacePatch; -} +export interface PrivateEndpointConnectionsUpdateByHostPoolOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WorkspacesUpdateResponse = Workspace; +/** Contains response data for the updateByHostPool operation. */ +export type PrivateEndpointConnectionsUpdateByHostPoolResponse = PrivateEndpointConnectionWithSystemData; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceList; +/** Contains response data for the listByWorkspaceNext operation. */ +export type PrivateEndpointConnectionsListByWorkspaceNextResponse = PrivateEndpointConnectionListResultWithSystemData; /** Optional parameters. */ -export interface WorkspacesListBySubscriptionOptionalParams +export interface PrivateEndpointConnectionsListByHostPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceList; +/** Contains response data for the listByHostPoolNext operation. */ +export type PrivateEndpointConnectionsListByHostPoolNextResponse = PrivateEndpointConnectionListResultWithSystemData; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupNextOptionalParams +export interface PrivateLinkResourcesListByWorkspaceOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the listByWorkspace operation. */ +export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface PrivateLinkResourcesListByHostPoolOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the listByHostPool operation. */ +export type PrivateLinkResourcesListByHostPoolResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface PrivateLinkResourcesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; +/** Contains response data for the listByWorkspaceNext operation. */ +export type PrivateLinkResourcesListByWorkspaceNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface WorkspacesListBySubscriptionNextOptionalParams +export interface PrivateLinkResourcesListByHostPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceList; +/** Contains response data for the listByHostPoolNext operation. */ +export type PrivateLinkResourcesListByHostPoolNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ export interface ScalingPlansGetOptionalParams @@ -1755,21 +2040,42 @@ export type ScalingPlansUpdateResponse = ScalingPlan; /** Optional parameters. */ export interface ScalingPlansListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroup operation. */ export type ScalingPlansListByResourceGroupResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listBySubscription operation. */ export type ScalingPlansListBySubscriptionResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListByHostPoolOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByHostPool operation. */ export type ScalingPlansListByHostPoolResponse = ScalingPlanList; @@ -1795,6 +2101,55 @@ export interface ScalingPlansListByHostPoolNextOptionalParams /** Contains response data for the listByHostPoolNext operation. */ export type ScalingPlansListByHostPoolNextResponse = ScalingPlanList; +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ScalingPlanPooledSchedulesGetResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type ScalingPlanPooledSchedulesCreateResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Object containing ScalingPlanPooledSchedule definitions. */ + scalingPlanSchedule?: ScalingPlanPooledSchedulePatch; +} + +/** Contains response data for the update operation. */ +export type ScalingPlanPooledSchedulesUpdateResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesListOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the list operation. */ +export type ScalingPlanPooledSchedulesListResponse = ScalingPlanPooledScheduleList; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ScalingPlanPooledSchedulesListNextResponse = ScalingPlanPooledScheduleList; + /** Optional parameters. */ export interface ApplicationGroupsGetOptionalParams extends coreClient.OperationOptions {} @@ -1826,6 +2181,12 @@ export type ApplicationGroupsUpdateResponse = ApplicationGroup; /** Optional parameters. */ export interface ApplicationGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are applicationGroupType. */ filter?: string; } @@ -1845,27 +2206,28 @@ export type ApplicationGroupsListBySubscriptionResponse = ApplicationGroupList; /** Optional parameters. */ export interface ApplicationGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** OData filter expression. Valid properties for filtering are applicationGroupType. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ApplicationGroupsListByResourceGroupNextResponse = ApplicationGroupList; /** Optional parameters. */ export interface ApplicationGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** OData filter expression. Valid properties for filtering are applicationGroupType. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type ApplicationGroupsListBySubscriptionNextResponse = ApplicationGroupList; /** Optional parameters. */ export interface StartMenuItemsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type StartMenuItemsListResponse = StartMenuItemList; @@ -1907,7 +2269,14 @@ export type ApplicationsUpdateResponse = Application; /** Optional parameters. */ export interface ApplicationsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type ApplicationsListResponse = ApplicationList; @@ -1938,7 +2307,14 @@ export type DesktopsUpdateResponse = Desktop; /** Optional parameters. */ export interface DesktopsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type DesktopsListResponse = DesktopList; @@ -1983,14 +2359,28 @@ export type HostPoolsUpdateResponse = HostPool; /** Optional parameters. */ export interface HostPoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroup operation. */ export type HostPoolsListByResourceGroupResponse = HostPoolList; /** Optional parameters. */ export interface HostPoolsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type HostPoolsListResponse = HostPoolList; @@ -2019,6 +2409,12 @@ export type HostPoolsListNextResponse = HostPoolList; /** Optional parameters. */ export interface UserSessionsListByHostPoolOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. */ filter?: string; } @@ -2042,7 +2438,14 @@ export interface UserSessionsDeleteOptionalParams /** Optional parameters. */ export interface UserSessionsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type UserSessionsListResponse = UserSessionList; @@ -2060,10 +2463,7 @@ export interface UserSessionsSendMessageOptionalParams /** Optional parameters. */ export interface UserSessionsListByHostPoolNextOptionalParams - extends coreClient.OperationOptions { - /** OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByHostPoolNext operation. */ export type UserSessionsListByHostPoolNextResponse = UserSessionList; @@ -2103,7 +2503,14 @@ export type SessionHostsUpdateResponse = SessionHost; /** Optional parameters. */ export interface SessionHostsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type SessionHostsListResponse = SessionHostList; @@ -2145,7 +2552,14 @@ export type MsixPackagesUpdateResponse = MsixPackage; /** Optional parameters. */ export interface MsixPackagesListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type MsixPackagesListResponse = MsixPackageList; @@ -2171,98 +2585,6 @@ export interface MsixImagesExpandNextOptionalParams /** Contains response data for the expandNext operation. */ export type MsixImagesExpandNextResponse = ExpandMsixImageList; -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPool operation. */ -export type PrivateEndpointConnectionsListByHostPoolResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsGetByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByHostPool operation. */ -export type PrivateEndpointConnectionsGetByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateByHostPool operation. */ -export type PrivateEndpointConnectionsUpdateByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type PrivateEndpointConnectionsListByWorkspaceResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsGetByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByWorkspace operation. */ -export type PrivateEndpointConnectionsGetByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateByWorkspace operation. */ -export type PrivateEndpointConnectionsUpdateByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByHostPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPoolNext operation. */ -export type PrivateEndpointConnectionsListByHostPoolNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByWorkspaceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspaceNext operation. */ -export type PrivateEndpointConnectionsListByWorkspaceNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPool operation. */ -export type PrivateLinkResourcesListByHostPoolResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByHostPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPoolNext operation. */ -export type PrivateLinkResourcesListByHostPoolNextResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByWorkspaceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspaceNext operation. */ -export type PrivateLinkResourcesListByWorkspaceNextResponse = PrivateLinkResourceListResult; - /** Optional parameters. */ export interface DesktopVirtualizationAPIClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts index 38097807e3ca..f897b8518688 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts @@ -250,6 +250,79 @@ export const SystemData: coreClient.CompositeMapper = { } }; +export const PrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const ResourceModelWithAllowedPropertySet: coreClient.CompositeMapper = { type: { name: "Composite", @@ -495,6 +568,62 @@ export const WorkspacePatch: coreClient.CompositeMapper = { } }; +export const PrivateEndpointConnectionListResultWithSystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResultWithSystemData", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionWithSystemData" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const WorkspaceList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -809,48 +938,25 @@ export const ScalingPlanList: coreClient.CompositeMapper = { } }; -export const MigrationRequestProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MigrationRequestProperties", - modelProperties: { - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - migrationPath: { - serializedName: "migrationPath", - type: { - name: "String" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { +export const ScalingPlanPooledScheduleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ScalingPlanPooledScheduleList", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingPlanPooledSchedule" + } + } } }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -1111,126 +1217,264 @@ export const RegistrationInfo: coreClient.CompositeMapper = { } }; -export const RegistrationInfoPatch: coreClient.CompositeMapper = { +export const AgentUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistrationInfoPatch", + className: "AgentUpdateProperties", modelProperties: { - expirationTime: { - serializedName: "expirationTime", + type: { + serializedName: "type", type: { - name: "DateTime" + name: "String" } }, - registrationTokenOperation: { - serializedName: "registrationTokenOperation", + useSessionHostLocalTime: { + serializedName: "useSessionHostLocalTime", + type: { + name: "Boolean" + } + }, + maintenanceWindowTimeZone: { + serializedName: "maintenanceWindowTimeZone", type: { name: "String" } - } - } - } -}; - -export const HostPoolList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HostPoolList", - modelProperties: { - value: { - serializedName: "value", + }, + maintenanceWindows: { + serializedName: "maintenanceWindows", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HostPool" + className: "MaintenanceWindowProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const UserSessionList: coreClient.CompositeMapper = { +export const MaintenanceWindowProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserSessionList", + className: "MaintenanceWindowProperties", modelProperties: { - value: { - serializedName: "value", + hour: { + serializedName: "hour", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserSession" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + dayOfWeek: { + serializedName: "dayOfWeek", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] } } } } }; -export const SessionHostHealthCheckReport: coreClient.CompositeMapper = { +export const RegistrationInfoPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SessionHostHealthCheckReport", + className: "RegistrationInfoPatch", modelProperties: { - healthCheckName: { - serializedName: "healthCheckName", - readOnly: true, + expirationTime: { + serializedName: "expirationTime", type: { - name: "String" + name: "DateTime" } }, - healthCheckResult: { - serializedName: "healthCheckResult", - readOnly: true, + registrationTokenOperation: { + serializedName: "registrationTokenOperation", type: { name: "String" } - }, - additionalFailureDetails: { - serializedName: "additionalFailureDetails", - type: { - name: "Composite", - className: "SessionHostHealthCheckFailureDetails" - } } } } }; -export const SessionHostHealthCheckFailureDetails: coreClient.CompositeMapper = { +export const AgentUpdatePatchProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SessionHostHealthCheckFailureDetails", + className: "AgentUpdatePatchProperties", modelProperties: { - message: { - serializedName: "message", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } }, - errorCode: { + useSessionHostLocalTime: { + serializedName: "useSessionHostLocalTime", + type: { + name: "Boolean" + } + }, + maintenanceWindowTimeZone: { + serializedName: "maintenanceWindowTimeZone", + type: { + name: "String" + } + }, + maintenanceWindows: { + serializedName: "maintenanceWindows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowPatchProperties" + } + } + } + } + } + } +}; + +export const MaintenanceWindowPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindowPatchProperties", + modelProperties: { + hour: { + serializedName: "hour", + type: { + name: "Number" + } + }, + dayOfWeek: { + serializedName: "dayOfWeek", + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + } +}; + +export const HostPoolList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HostPoolList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostPool" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserSessionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserSessionList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserSession" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SessionHostHealthCheckReport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SessionHostHealthCheckReport", + modelProperties: { + healthCheckName: { + serializedName: "healthCheckName", + readOnly: true, + type: { + name: "String" + } + }, + healthCheckResult: { + serializedName: "healthCheckResult", + readOnly: true, + type: { + name: "String" + } + }, + additionalFailureDetails: { + serializedName: "additionalFailureDetails", + type: { + name: "Composite", + className: "SessionHostHealthCheckFailureDetails" + } + } + } + } +}; + +export const SessionHostHealthCheckFailureDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SessionHostHealthCheckFailureDetails", + modelProperties: { + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + errorCode: { serializedName: "errorCode", readOnly: true, type: { @@ -1446,41 +1690,28 @@ export const SendMessage: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResultWithSystemData: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResultWithSystemData", + className: "PrivateEndpointConnection", modelProperties: { - value: { - serializedName: "value", + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionWithSystemData" - } - } + name: "Composite", + className: "PrivateEndpoint" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionState" } - } - } - } -}; - -export const PrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -1490,67 +1721,52 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "PrivateLinkResource", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + ...Resource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateLinkResource" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const Workspace: coreClient.CompositeMapper = { +export const ScalingPlanPooledSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "ScalingPlanPooledSchedule", modelProperties: { - ...ResourceModelWithAllowedPropertySet.type.modelProperties, + ...Resource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -1558,45 +1774,138 @@ export const Workspace: coreClient.CompositeMapper = { className: "SystemData" } }, - objectId: { - serializedName: "properties.objectId", - readOnly: true, + daysOfWeek: { + serializedName: "properties.daysOfWeek", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } } }, - description: { - serializedName: "properties.description", + rampUpStartTime: { + serializedName: "properties.rampUpStartTime", type: { - name: "String" + name: "Composite", + className: "Time" } }, - friendlyName: { - serializedName: "properties.friendlyName", + rampUpLoadBalancingAlgorithm: { + serializedName: "properties.rampUpLoadBalancingAlgorithm", type: { name: "String" } }, - applicationGroupReferences: { - serializedName: "properties.applicationGroupReferences", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + rampUpMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampUpMinimumHostsPct", + type: { + name: "Number" } }, - cloudPcResource: { - serializedName: "properties.cloudPcResource", - readOnly: true, + rampUpCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.rampUpCapacityThresholdPct", + type: { + name: "Number" + } + }, + peakStartTime: { + serializedName: "properties.peakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + peakLoadBalancingAlgorithm: { + serializedName: "properties.peakLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownStartTime: { + serializedName: "properties.rampDownStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampDownLoadBalancingAlgorithm: { + serializedName: "properties.rampDownLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownMinimumHostsPct", + type: { + name: "Number" + } + }, + rampDownCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownCapacityThresholdPct", + type: { + name: "Number" + } + }, + rampDownForceLogoffUsers: { + serializedName: "properties.rampDownForceLogoffUsers", type: { name: "Boolean" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + rampDownStopHostsWhen: { + serializedName: "properties.rampDownStopHostsWhen", + type: { + name: "String" + } + }, + rampDownWaitTimeMinutes: { + serializedName: "properties.rampDownWaitTimeMinutes", + type: { + name: "Number" + } + }, + rampDownNotificationMessage: { + serializedName: "properties.rampDownNotificationMessage", + type: { + name: "String" + } + }, + offPeakStartTime: { + serializedName: "properties.offPeakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + offPeakLoadBalancingAlgorithm: { + serializedName: "properties.offPeakLoadBalancingAlgorithm", type: { name: "String" } @@ -1605,26 +1914,165 @@ export const Workspace: coreClient.CompositeMapper = { } }; -export const ScalingPlan: coreClient.CompositeMapper = { +export const ScalingPlanPooledSchedulePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScalingPlan", + className: "ScalingPlanPooledSchedulePatch", modelProperties: { - ...ResourceModelWithAllowedPropertySet.type.modelProperties, - systemData: { - serializedName: "systemData", + ...Resource.type.modelProperties, + daysOfWeek: { + serializedName: "properties.daysOfWeek", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + }, + rampUpStartTime: { + serializedName: "properties.rampUpStartTime", type: { name: "Composite", - className: "SystemData" + className: "Time" } }, - objectId: { - serializedName: "properties.objectId", - readOnly: true, + rampUpLoadBalancingAlgorithm: { + serializedName: "properties.rampUpLoadBalancingAlgorithm", type: { name: "String" } }, + rampUpMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampUpMinimumHostsPct", + type: { + name: "Number" + } + }, + rampUpCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.rampUpCapacityThresholdPct", + type: { + name: "Number" + } + }, + peakStartTime: { + serializedName: "properties.peakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + peakLoadBalancingAlgorithm: { + serializedName: "properties.peakLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownStartTime: { + serializedName: "properties.rampDownStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampDownLoadBalancingAlgorithm: { + serializedName: "properties.rampDownLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownMinimumHostsPct", + type: { + name: "Number" + } + }, + rampDownCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownCapacityThresholdPct", + type: { + name: "Number" + } + }, + rampDownForceLogoffUsers: { + serializedName: "properties.rampDownForceLogoffUsers", + type: { + name: "Boolean" + } + }, + rampDownStopHostsWhen: { + serializedName: "properties.rampDownStopHostsWhen", + type: { + name: "String" + } + }, + rampDownWaitTimeMinutes: { + serializedName: "properties.rampDownWaitTimeMinutes", + type: { + name: "Number" + } + }, + rampDownNotificationMessage: { + serializedName: "properties.rampDownNotificationMessage", + type: { + name: "String" + } + }, + offPeakStartTime: { + serializedName: "properties.offPeakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + offPeakLoadBalancingAlgorithm: { + serializedName: "properties.offPeakLoadBalancingAlgorithm", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGroupPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGroupPatch", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, description: { serializedName: "properties.description", type: { @@ -1636,59 +2084,57 @@ export const ScalingPlan: coreClient.CompositeMapper = { type: { name: "String" } - }, - timeZone: { - serializedName: "properties.timeZone", + } + } + } +}; + +export const StartMenuItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartMenuItem", + modelProperties: { + ...Resource.type.modelProperties, + appAlias: { + serializedName: "properties.appAlias", type: { name: "String" } }, - hostPoolType: { - serializedName: "properties.hostPoolType", + filePath: { + serializedName: "properties.filePath", type: { name: "String" } }, - exclusionTag: { - serializedName: "properties.exclusionTag", + commandLineArguments: { + serializedName: "properties.commandLineArguments", type: { name: "String" } }, - schedules: { - serializedName: "properties.schedules", + iconPath: { + serializedName: "properties.iconPath", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScalingSchedule" - } - } + name: "String" } }, - hostPoolReferences: { - serializedName: "properties.hostPoolReferences", + iconIndex: { + serializedName: "properties.iconIndex", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScalingHostPoolReference" - } - } + name: "Number" } } } } }; -export const ApplicationGroup: coreClient.CompositeMapper = { +export const Application: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGroup", + className: "Application", modelProperties: { - ...ResourceModelWithAllowedPropertySet.type.modelProperties, + ...Resource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -1715,51 +2161,87 @@ export const ApplicationGroup: coreClient.CompositeMapper = { name: "String" } }, - hostPoolArmPath: { - serializedName: "properties.hostPoolArmPath", - required: true, + filePath: { + serializedName: "properties.filePath", type: { name: "String" } }, - workspaceArmPath: { - serializedName: "properties.workspaceArmPath", - readOnly: true, + msixPackageFamilyName: { + serializedName: "properties.msixPackageFamilyName", + nullable: true, type: { name: "String" } }, - applicationGroupType: { - serializedName: "properties.applicationGroupType", + msixPackageApplicationId: { + serializedName: "properties.msixPackageApplicationId", + nullable: true, + type: { + name: "String" + } + }, + applicationType: { + serializedName: "properties.applicationType", + type: { + name: "String" + } + }, + commandLineSetting: { + serializedName: "properties.commandLineSetting", required: true, type: { name: "String" } }, - migrationRequest: { - serializedName: "properties.migrationRequest", + commandLineArguments: { + serializedName: "properties.commandLineArguments", type: { - name: "Composite", - className: "MigrationRequestProperties" + name: "String" } }, - cloudPcResource: { - serializedName: "properties.cloudPcResource", - readOnly: true, + showInPortal: { + serializedName: "properties.showInPortal", type: { name: "Boolean" } + }, + iconPath: { + serializedName: "properties.iconPath", + type: { + name: "String" + } + }, + iconIndex: { + serializedName: "properties.iconIndex", + type: { + name: "Number" + } + }, + iconHash: { + serializedName: "properties.iconHash", + readOnly: true, + type: { + name: "String" + } + }, + iconContent: { + serializedName: "properties.iconContent", + readOnly: true, + type: { + name: "ByteArray" + } } } } }; -export const HostPool: coreClient.CompositeMapper = { +export const Desktop: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HostPool", + className: "Desktop", modelProperties: { - ...ResourceModelWithAllowedPropertySet.type.modelProperties, + ...Resource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -1774,27 +2256,57 @@ export const HostPool: coreClient.CompositeMapper = { name: "String" } }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, friendlyName: { serializedName: "properties.friendlyName", type: { name: "String" } }, - description: { - serializedName: "properties.description", + iconHash: { + serializedName: "properties.iconHash", + readOnly: true, type: { name: "String" } }, - hostPoolType: { - serializedName: "properties.hostPoolType", - required: true, + iconContent: { + serializedName: "properties.iconContent", + readOnly: true, + type: { + name: "ByteArray" + } + } + } + } +}; + +export const HostPoolPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HostPoolPatch", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - personalDesktopAssignmentType: { - serializedName: "properties.personalDesktopAssignmentType", + description: { + serializedName: "properties.description", type: { name: "String" } @@ -1811,9 +2323,14 @@ export const HostPool: coreClient.CompositeMapper = { name: "Number" } }, + personalDesktopAssignmentType: { + serializedName: "properties.personalDesktopAssignmentType", + type: { + name: "String" + } + }, loadBalancerType: { serializedName: "properties.loadBalancerType", - required: true, type: { name: "String" } @@ -1834,7 +2351,7 @@ export const HostPool: coreClient.CompositeMapper = { serializedName: "properties.registrationInfo", type: { name: "Composite", - className: "RegistrationInfo" + className: "RegistrationInfoPatch" } }, vmTemplate: { @@ -1843,18 +2360,6 @@ export const HostPool: coreClient.CompositeMapper = { name: "String" } }, - applicationGroupReferences: { - serializedName: "properties.applicationGroupReferences", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, ssoadfsAuthority: { serializedName: "properties.ssoadfsAuthority", type: { @@ -1881,7 +2386,6 @@ export const HostPool: coreClient.CompositeMapper = { }, preferredAppGroupType: { serializedName: "properties.preferredAppGroupType", - required: true, type: { name: "String" } @@ -1892,133 +2396,81 @@ export const HostPool: coreClient.CompositeMapper = { name: "Boolean" } }, - migrationRequest: { - serializedName: "properties.migrationRequest", - type: { - name: "Composite", - className: "MigrationRequestProperties" - } - }, - cloudPcResource: { - serializedName: "properties.cloudPcResource", - readOnly: true, - type: { - name: "Boolean" - } - }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { name: "String" } + }, + agentUpdate: { + serializedName: "properties.agentUpdate", + type: { + name: "Composite", + className: "AgentUpdatePatchProperties" + } } } } }; -export const ResourceModelWithAllowedPropertySetIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetIdentity", - modelProperties: { - ...Identity.type.modelProperties - } - } -}; - -export const ResourceModelWithAllowedPropertySetSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetSku", - modelProperties: { - ...Sku.type.modelProperties - } - } -}; - -export const ResourceModelWithAllowedPropertySetPlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetPlan", - modelProperties: { - ...Plan.type.modelProperties - } - } -}; - -export const ApplicationGroupPatch: coreClient.CompositeMapper = { +export const UserSession: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGroupPatch", + className: "UserSession", modelProperties: { ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + systemData: { + serializedName: "systemData", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "SystemData" } }, - description: { - serializedName: "properties.description", + objectId: { + serializedName: "properties.objectId", + readOnly: true, type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", - type: { - name: "String" - } - } - } - } -}; - -export const StartMenuItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StartMenuItem", - modelProperties: { - ...Resource.type.modelProperties, - appAlias: { - serializedName: "properties.appAlias", + userPrincipalName: { + serializedName: "properties.userPrincipalName", type: { name: "String" } }, - filePath: { - serializedName: "properties.filePath", + applicationType: { + serializedName: "properties.applicationType", type: { name: "String" } }, - commandLineArguments: { - serializedName: "properties.commandLineArguments", + sessionState: { + serializedName: "properties.sessionState", type: { name: "String" } }, - iconPath: { - serializedName: "properties.iconPath", + activeDirectoryUserName: { + serializedName: "properties.activeDirectoryUserName", type: { name: "String" } }, - iconIndex: { - serializedName: "properties.iconIndex", + createTime: { + serializedName: "properties.createTime", type: { - name: "Number" + name: "DateTime" } } } } }; -export const Application: coreClient.CompositeMapper = { +export const SessionHost: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Application", + className: "SessionHost", modelProperties: { ...Resource.type.modelProperties, systemData: { @@ -2035,97 +2487,149 @@ export const Application: coreClient.CompositeMapper = { name: "String" } }, - description: { - serializedName: "properties.description", + lastHeartBeat: { + serializedName: "properties.lastHeartBeat", type: { - name: "String" + name: "DateTime" } }, - friendlyName: { - serializedName: "properties.friendlyName", + sessions: { + serializedName: "properties.sessions", type: { - name: "String" + name: "Number" } }, - filePath: { - serializedName: "properties.filePath", + agentVersion: { + serializedName: "properties.agentVersion", type: { name: "String" } }, - msixPackageFamilyName: { - serializedName: "properties.msixPackageFamilyName", - nullable: true, + allowNewSession: { + serializedName: "properties.allowNewSession", + type: { + name: "Boolean" + } + }, + virtualMachineId: { + serializedName: "properties.virtualMachineId", + readOnly: true, type: { name: "String" } }, - msixPackageApplicationId: { - serializedName: "properties.msixPackageApplicationId", - nullable: true, + resourceId: { + serializedName: "properties.resourceId", + readOnly: true, type: { name: "String" } }, - applicationType: { - serializedName: "properties.applicationType", + assignedUser: { + serializedName: "properties.assignedUser", type: { name: "String" } }, - commandLineSetting: { - serializedName: "properties.commandLineSetting", - required: true, + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - commandLineArguments: { - serializedName: "properties.commandLineArguments", + status: { + serializedName: "properties.status", type: { name: "String" } }, - showInPortal: { - serializedName: "properties.showInPortal", + statusTimestamp: { + serializedName: "properties.statusTimestamp", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - iconPath: { - serializedName: "properties.iconPath", + osVersion: { + serializedName: "properties.osVersion", type: { name: "String" } }, - iconIndex: { - serializedName: "properties.iconIndex", + sxSStackVersion: { + serializedName: "properties.sxSStackVersion", type: { - name: "Number" + name: "String" } }, - iconHash: { - serializedName: "properties.iconHash", + updateState: { + serializedName: "properties.updateState", + type: { + name: "String" + } + }, + lastUpdateTime: { + serializedName: "properties.lastUpdateTime", readOnly: true, + type: { + name: "DateTime" + } + }, + updateErrorMessage: { + serializedName: "properties.updateErrorMessage", type: { name: "String" } }, - iconContent: { - serializedName: "properties.iconContent", + sessionHostHealthCheckResults: { + serializedName: "properties.sessionHostHealthCheckResults", readOnly: true, type: { - name: "ByteArray" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SessionHostHealthCheckReport" + } + } } } } } }; -export const Desktop: coreClient.CompositeMapper = { +export const SessionHostPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Desktop", + className: "SessionHostPatch", + modelProperties: { + ...Resource.type.modelProperties, + allowNewSession: { + serializedName: "properties.allowNewSession", + type: { + name: "Boolean" + } + }, + assignedUser: { + serializedName: "properties.assignedUser", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + } + } + } +}; + +export const MsixPackage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MsixPackage", modelProperties: { ...Resource.type.modelProperties, systemData: { @@ -2135,169 +2639,225 @@ export const Desktop: coreClient.CompositeMapper = { className: "SystemData" } }, - objectId: { - serializedName: "properties.objectId", - readOnly: true, + imagePath: { + serializedName: "properties.imagePath", type: { name: "String" } }, - description: { - serializedName: "properties.description", + packageName: { + serializedName: "properties.packageName", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + packageFamilyName: { + serializedName: "properties.packageFamilyName", type: { name: "String" } }, - iconHash: { - serializedName: "properties.iconHash", - readOnly: true, + displayName: { + serializedName: "properties.displayName", + nullable: true, type: { name: "String" } }, - iconContent: { - serializedName: "properties.iconContent", - readOnly: true, + packageRelativePath: { + serializedName: "properties.packageRelativePath", type: { - name: "ByteArray" + name: "String" + } + }, + isRegularRegistration: { + serializedName: "properties.isRegularRegistration", + type: { + name: "Boolean" + } + }, + isActive: { + serializedName: "properties.isActive", + type: { + name: "Boolean" + } + }, + packageDependencies: { + serializedName: "properties.packageDependencies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MsixPackageDependencies" + } + } + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + lastUpdated: { + serializedName: "properties.lastUpdated", + type: { + name: "DateTime" + } + }, + packageApplications: { + serializedName: "properties.packageApplications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MsixPackageApplications" + } + } } } } } }; -export const HostPoolPatch: coreClient.CompositeMapper = { +export const MsixPackagePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HostPoolPatch", + className: "MsixPackagePatch", modelProperties: { ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + isActive: { + serializedName: "properties.isActive", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - friendlyName: { - serializedName: "properties.friendlyName", + isRegularRegistration: { + serializedName: "properties.isRegularRegistration", type: { - name: "String" + name: "Boolean" } }, - description: { - serializedName: "properties.description", + displayName: { + serializedName: "properties.displayName", type: { name: "String" } - }, - customRdpProperty: { - serializedName: "properties.customRdpProperty", + } + } + } +}; + +export const ExpandMsixImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpandMsixImage", + modelProperties: { + ...Resource.type.modelProperties, + packageAlias: { + serializedName: "properties.packageAlias", type: { name: "String" } }, - maxSessionLimit: { - serializedName: "properties.maxSessionLimit", - type: { - name: "Number" - } - }, - personalDesktopAssignmentType: { - serializedName: "properties.personalDesktopAssignmentType", + imagePath: { + serializedName: "properties.imagePath", type: { name: "String" } }, - loadBalancerType: { - serializedName: "properties.loadBalancerType", + packageName: { + serializedName: "properties.packageName", type: { name: "String" } }, - ring: { - serializedName: "properties.ring", - type: { - name: "Number" - } - }, - validationEnvironment: { - serializedName: "properties.validationEnvironment", + packageFamilyName: { + serializedName: "properties.packageFamilyName", type: { - name: "Boolean" + name: "String" } }, - registrationInfo: { - serializedName: "properties.registrationInfo", + packageFullName: { + serializedName: "properties.packageFullName", type: { - name: "Composite", - className: "RegistrationInfoPatch" + name: "String" } }, - vmTemplate: { - serializedName: "properties.vmTemplate", + displayName: { + serializedName: "properties.displayName", + nullable: true, type: { name: "String" } }, - ssoadfsAuthority: { - serializedName: "properties.ssoadfsAuthority", + packageRelativePath: { + serializedName: "properties.packageRelativePath", type: { name: "String" } }, - ssoClientId: { - serializedName: "properties.ssoClientId", + isRegularRegistration: { + serializedName: "properties.isRegularRegistration", type: { - name: "String" + name: "Boolean" } }, - ssoClientSecretKeyVaultPath: { - serializedName: "properties.ssoClientSecretKeyVaultPath", + isActive: { + serializedName: "properties.isActive", type: { - name: "String" + name: "Boolean" } }, - ssoSecretType: { - serializedName: "properties.ssoSecretType", + packageDependencies: { + serializedName: "properties.packageDependencies", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MsixPackageDependencies" + } + } } }, - preferredAppGroupType: { - serializedName: "properties.preferredAppGroupType", + version: { + serializedName: "properties.version", type: { name: "String" } }, - startVMOnConnect: { - serializedName: "properties.startVMOnConnect", + lastUpdated: { + serializedName: "properties.lastUpdated", type: { - name: "Boolean" + name: "DateTime" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + packageApplications: { + serializedName: "properties.packageApplications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MsixPackageApplications" + } + } } } } } }; -export const UserSession: coreClient.CompositeMapper = { +export const Workspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserSession", + className: "Workspace", modelProperties: { - ...Resource.type.modelProperties, + ...ResourceModelWithAllowedPropertySet.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -2312,46 +2872,65 @@ export const UserSession: coreClient.CompositeMapper = { name: "String" } }, - userPrincipalName: { - serializedName: "properties.userPrincipalName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - applicationType: { - serializedName: "properties.applicationType", + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - sessionState: { - serializedName: "properties.sessionState", + applicationGroupReferences: { + serializedName: "properties.applicationGroupReferences", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - activeDirectoryUserName: { - serializedName: "properties.activeDirectoryUserName", + cloudPcResource: { + serializedName: "properties.cloudPcResource", + readOnly: true, + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } } }; -export const SessionHost: coreClient.CompositeMapper = { +export const ScalingPlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SessionHost", + className: "ScalingPlan", modelProperties: { - ...Resource.type.modelProperties, + ...ResourceModelWithAllowedPropertySet.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -2366,139 +2945,136 @@ export const SessionHost: coreClient.CompositeMapper = { name: "String" } }, - lastHeartBeat: { - serializedName: "properties.lastHeartBeat", + description: { + serializedName: "properties.description", type: { - name: "DateTime" + name: "String" } }, - sessions: { - serializedName: "properties.sessions", + friendlyName: { + serializedName: "properties.friendlyName", type: { - name: "Number" + name: "String" } }, - agentVersion: { - serializedName: "properties.agentVersion", + timeZone: { + serializedName: "properties.timeZone", + required: true, type: { name: "String" } }, - allowNewSession: { - serializedName: "properties.allowNewSession", + hostPoolType: { + defaultValue: "Pooled", + serializedName: "properties.hostPoolType", type: { - name: "Boolean" + name: "String" } }, - virtualMachineId: { - serializedName: "properties.virtualMachineId", - readOnly: true, + exclusionTag: { + serializedName: "properties.exclusionTag", type: { name: "String" } }, - resourceId: { - serializedName: "properties.resourceId", - readOnly: true, + schedules: { + serializedName: "properties.schedules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingSchedule" + } + } } }, - assignedUser: { - serializedName: "properties.assignedUser", + hostPoolReferences: { + serializedName: "properties.hostPoolReferences", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingHostPoolReference" + } + } } - }, - status: { - serializedName: "properties.status", + } + } + } +}; + +export const ApplicationGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGroup", + modelProperties: { + ...ResourceModelWithAllowedPropertySet.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - statusTimestamp: { - serializedName: "properties.statusTimestamp", + objectId: { + serializedName: "properties.objectId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - osVersion: { - serializedName: "properties.osVersion", + description: { + serializedName: "properties.description", type: { name: "String" } }, - sxSStackVersion: { - serializedName: "properties.sxSStackVersion", + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - updateState: { - serializedName: "properties.updateState", + hostPoolArmPath: { + serializedName: "properties.hostPoolArmPath", + required: true, type: { name: "String" } }, - lastUpdateTime: { - serializedName: "properties.lastUpdateTime", + workspaceArmPath: { + serializedName: "properties.workspaceArmPath", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - updateErrorMessage: { - serializedName: "properties.updateErrorMessage", + applicationGroupType: { + serializedName: "properties.applicationGroupType", + required: true, type: { name: "String" } }, - sessionHostHealthCheckResults: { - serializedName: "properties.sessionHostHealthCheckResults", + cloudPcResource: { + serializedName: "properties.cloudPcResource", readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SessionHostHealthCheckReport" - } - } - } - } - } - } -}; - -export const SessionHostPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SessionHostPatch", - modelProperties: { - ...Resource.type.modelProperties, - allowNewSession: { - serializedName: "properties.allowNewSession", type: { name: "Boolean" } - }, - assignedUser: { - serializedName: "properties.assignedUser", - type: { - name: "String" - } } } } }; -export const MsixPackage: coreClient.CompositeMapper = { +export const HostPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MsixPackage", + className: "HostPool", modelProperties: { - ...Resource.type.modelProperties, + ...ResourceModelWithAllowedPropertySet.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -2506,211 +3082,160 @@ export const MsixPackage: coreClient.CompositeMapper = { className: "SystemData" } }, - imagePath: { - serializedName: "properties.imagePath", + objectId: { + serializedName: "properties.objectId", + readOnly: true, type: { name: "String" } }, - packageName: { - serializedName: "properties.packageName", + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - packageFamilyName: { - serializedName: "properties.packageFamilyName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", - nullable: true, + hostPoolType: { + serializedName: "properties.hostPoolType", + required: true, type: { name: "String" } }, - packageRelativePath: { - serializedName: "properties.packageRelativePath", + personalDesktopAssignmentType: { + serializedName: "properties.personalDesktopAssignmentType", type: { name: "String" } }, - isRegularRegistration: { - serializedName: "properties.isRegularRegistration", - type: { - name: "Boolean" - } - }, - isActive: { - serializedName: "properties.isActive", + customRdpProperty: { + serializedName: "properties.customRdpProperty", type: { - name: "Boolean" + name: "String" } }, - packageDependencies: { - serializedName: "properties.packageDependencies", + maxSessionLimit: { + serializedName: "properties.maxSessionLimit", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MsixPackageDependencies" - } - } + name: "Number" } }, - version: { - serializedName: "properties.version", + loadBalancerType: { + serializedName: "properties.loadBalancerType", + required: true, type: { name: "String" } }, - lastUpdated: { - serializedName: "properties.lastUpdated", + ring: { + serializedName: "properties.ring", type: { - name: "DateTime" + name: "Number" } }, - packageApplications: { - serializedName: "properties.packageApplications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MsixPackageApplications" - } - } - } - } - } - } -}; - -export const MsixPackagePatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MsixPackagePatch", - modelProperties: { - ...Resource.type.modelProperties, - isActive: { - serializedName: "properties.isActive", + validationEnvironment: { + serializedName: "properties.validationEnvironment", type: { name: "Boolean" } }, - isRegularRegistration: { - serializedName: "properties.isRegularRegistration", + registrationInfo: { + serializedName: "properties.registrationInfo", type: { - name: "Boolean" + name: "Composite", + className: "RegistrationInfo" } }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - } - } - } -}; - -export const ExpandMsixImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpandMsixImage", - modelProperties: { - ...Resource.type.modelProperties, - packageAlias: { - serializedName: "properties.packageAlias", + vmTemplate: { + serializedName: "properties.vmTemplate", type: { name: "String" } }, - imagePath: { - serializedName: "properties.imagePath", + applicationGroupReferences: { + serializedName: "properties.applicationGroupReferences", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - packageName: { - serializedName: "properties.packageName", + ssoadfsAuthority: { + serializedName: "properties.ssoadfsAuthority", type: { name: "String" } }, - packageFamilyName: { - serializedName: "properties.packageFamilyName", + ssoClientId: { + serializedName: "properties.ssoClientId", type: { name: "String" } }, - packageFullName: { - serializedName: "properties.packageFullName", + ssoClientSecretKeyVaultPath: { + serializedName: "properties.ssoClientSecretKeyVaultPath", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", - nullable: true, + ssoSecretType: { + serializedName: "properties.ssoSecretType", type: { name: "String" } }, - packageRelativePath: { - serializedName: "properties.packageRelativePath", + preferredAppGroupType: { + serializedName: "properties.preferredAppGroupType", + required: true, type: { name: "String" } }, - isRegularRegistration: { - serializedName: "properties.isRegularRegistration", + startVMOnConnect: { + serializedName: "properties.startVMOnConnect", type: { name: "Boolean" } }, - isActive: { - serializedName: "properties.isActive", + cloudPcResource: { + serializedName: "properties.cloudPcResource", + readOnly: true, type: { name: "Boolean" } }, - packageDependencies: { - serializedName: "properties.packageDependencies", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MsixPackageDependencies" - } - } - } - }, - version: { - serializedName: "properties.version", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - lastUpdated: { - serializedName: "properties.lastUpdated", + agentUpdate: { + serializedName: "properties.agentUpdate", type: { - name: "DateTime" + name: "Composite", + className: "AgentUpdateProperties" } }, - packageApplications: { - serializedName: "properties.packageApplications", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MsixPackageApplications" + className: "PrivateEndpointConnection" } } } @@ -2719,72 +3244,32 @@ export const ExpandMsixImage: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ResourceModelWithAllowedPropertySetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ResourceModelWithAllowedPropertySetIdentity", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } + ...Identity.type.modelProperties } } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const ResourceModelWithAllowedPropertySetSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "ResourceModelWithAllowedPropertySetSku", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + ...Sku.type.modelProperties + } + } +}; + +export const ResourceModelWithAllowedPropertySetPlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetPlan", + modelProperties: { + ...Plan.type.modelProperties } } }; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts index 6c8618a4d9ea..5de5c4a04348 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts @@ -14,8 +14,11 @@ import { import { Workspace as WorkspaceMapper, WorkspacePatch as WorkspacePatchMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, ScalingPlan as ScalingPlanMapper, ScalingPlanPatch as ScalingPlanPatchMapper, + ScalingPlanPooledSchedule as ScalingPlanPooledScheduleMapper, + ScalingPlanPooledSchedulePatch as ScalingPlanPooledSchedulePatchMapper, ApplicationGroup as ApplicationGroupMapper, ApplicationGroupPatch as ApplicationGroupPatchMapper, Application as ApplicationMapper, @@ -27,8 +30,7 @@ import { SessionHostPatch as SessionHostPatchMapper, MsixPackage as MsixPackageMapper, MsixPackagePatch as MsixPackagePatchMapper, - MsixImageURI as MsixImageURIMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper + MsixImageURI as MsixImageURIMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,7 +60,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-09-03-preview", + defaultValue: "2022-10-14-preview", isConstant: true, serializedName: "api-version", type: { @@ -145,6 +147,67 @@ export const workspace1: OperationParameter = { mapper: WorkspacePatchMapper }; +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + serializedName: "pageSize", + type: { + name: "Number" + } + } +}; + +export const isDescending: OperationQueryParameter = { + parameterPath: ["options", "isDescending"], + mapper: { + serializedName: "isDescending", + type: { + name: "Boolean" + } + } +}; + +export const initialSkip: OperationQueryParameter = { + parameterPath: ["options", "initialSkip"], + mapper: { + serializedName: "initialSkip", + type: { + name: "Number" + } + } +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const connection: OperationParameter = { + parameterPath: "connection", + mapper: PrivateEndpointConnectionMapper +}; + +export const hostPoolName: OperationURLParameter = { + parameterPath: "hostPoolName", + mapper: { + constraints: { + MaxLength: 64, + MinLength: 3 + }, + serializedName: "hostPoolName", + required: true, + type: { + name: "String" + } + } +}; + export const scalingPlanName: OperationURLParameter = { parameterPath: "scalingPlanName", mapper: { @@ -170,14 +233,14 @@ export const scalingPlan1: OperationParameter = { mapper: ScalingPlanPatchMapper }; -export const hostPoolName: OperationURLParameter = { - parameterPath: "hostPoolName", +export const scalingPlanScheduleName: OperationURLParameter = { + parameterPath: "scalingPlanScheduleName", mapper: { constraints: { MaxLength: 64, - MinLength: 3 + MinLength: 1 }, - serializedName: "hostPoolName", + serializedName: "scalingPlanScheduleName", required: true, type: { name: "String" @@ -185,6 +248,16 @@ export const hostPoolName: OperationURLParameter = { } }; +export const scalingPlanSchedule: OperationParameter = { + parameterPath: "scalingPlanSchedule", + mapper: ScalingPlanPooledScheduleMapper +}; + +export const scalingPlanSchedule1: OperationParameter = { + parameterPath: ["options", "scalingPlanSchedule"], + mapper: ScalingPlanPooledSchedulePatchMapper +}; + export const applicationGroupName: OperationURLParameter = { parameterPath: "applicationGroupName", mapper: { @@ -354,19 +427,3 @@ export const msixImageURI: OperationParameter = { parameterPath: "msixImageURI", mapper: MsixImageURIMapper }; - -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - serializedName: "privateEndpointConnectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const connection: OperationParameter = { - parameterPath: "connection", - mapper: PrivateEndpointConnectionMapper -}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts index 3c95fc714940..e3b0bac99957 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts @@ -407,7 +407,13 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -444,7 +450,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -465,7 +470,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts index aa2cb26fb7f5..a0723116db12 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts @@ -358,7 +358,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -379,7 +384,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts index 70b231da694f..2c1da01a9b4c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts @@ -259,7 +259,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -280,7 +285,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts index 5c58deb8059f..4b79538e03b9 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts @@ -423,7 +423,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -444,7 +449,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -482,7 +492,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -503,7 +512,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts index 7431743f39da..aadb0f8c625b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts @@ -8,7 +8,10 @@ export * from "./operations"; export * from "./workspaces"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; export * from "./scalingPlans"; +export * from "./scalingPlanPooledSchedules"; export * from "./applicationGroups"; export * from "./startMenuItems"; export * from "./applications"; @@ -18,5 +21,3 @@ export * from "./userSessions"; export * from "./sessionHosts"; export * from "./msixPackages"; export * from "./msixImages"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts index 29b1b89eebe0..f314774d678c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts @@ -206,7 +206,6 @@ const expandNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts index da0836dc207c..31f20773357b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts @@ -354,7 +354,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -375,7 +380,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts index 603c299dfb1c..caec2255e0c4 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts index 879b80e76193..f501e282c80c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts @@ -15,25 +15,25 @@ import * as Parameters from "../models/parameters"; import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; import { PrivateEndpointConnectionWithSystemData, - PrivateEndpointConnectionsListByHostPoolNextOptionalParams, - PrivateEndpointConnectionsListByHostPoolOptionalParams, - PrivateEndpointConnectionsListByHostPoolResponse, PrivateEndpointConnectionsListByWorkspaceNextOptionalParams, PrivateEndpointConnectionsListByWorkspaceOptionalParams, PrivateEndpointConnectionsListByWorkspaceResponse, - PrivateEndpointConnectionsGetByHostPoolOptionalParams, - PrivateEndpointConnectionsGetByHostPoolResponse, - PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, - PrivateEndpointConnection, - PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, - PrivateEndpointConnectionsUpdateByHostPoolResponse, + PrivateEndpointConnectionsListByHostPoolNextOptionalParams, + PrivateEndpointConnectionsListByHostPoolOptionalParams, + PrivateEndpointConnectionsListByHostPoolResponse, PrivateEndpointConnectionsGetByWorkspaceOptionalParams, PrivateEndpointConnectionsGetByWorkspaceResponse, PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams, + PrivateEndpointConnection, PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams, PrivateEndpointConnectionsUpdateByWorkspaceResponse, - PrivateEndpointConnectionsListByHostPoolNextResponse, - PrivateEndpointConnectionsListByWorkspaceNextResponse + PrivateEndpointConnectionsGetByHostPoolOptionalParams, + PrivateEndpointConnectionsGetByHostPoolResponse, + PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, + PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, + PrivateEndpointConnectionsUpdateByHostPoolResponse, + PrivateEndpointConnectionsListByWorkspaceNextResponse, + PrivateEndpointConnectionsListByHostPoolNextResponse } from "../models"; /// @@ -51,19 +51,19 @@ export class PrivateEndpointConnectionsImpl } /** - * List private endpoint connections associated with hostpool. + * List private endpoint connections. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param options The options parameters. */ - public listByHostPool( + public listByWorkspace( resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByHostPoolPagingAll( + const iter = this.listByWorkspacePagingAll( resourceGroupName, - hostPoolName, + workspaceName, options ); return { @@ -77,9 +77,9 @@ export class PrivateEndpointConnectionsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByHostPoolPagingPage( + return this.listByWorkspacePagingPage( resourceGroupName, - hostPoolName, + workspaceName, options, settings ); @@ -87,18 +87,18 @@ export class PrivateEndpointConnectionsImpl }; } - private async *listByHostPoolPagingPage( + private async *listByWorkspacePagingPage( resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams, + workspaceName: string, + options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: PrivateEndpointConnectionsListByHostPoolResponse; + let result: PrivateEndpointConnectionsListByWorkspaceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByHostPool( + result = await this._listByWorkspace( resourceGroupName, - hostPoolName, + workspaceName, options ); let page = result.value || []; @@ -107,9 +107,9 @@ export class PrivateEndpointConnectionsImpl yield page; } while (continuationToken) { - result = await this._listByHostPoolNext( + result = await this._listByWorkspaceNext( resourceGroupName, - hostPoolName, + workspaceName, continuationToken, options ); @@ -120,14 +120,14 @@ export class PrivateEndpointConnectionsImpl } } - private async *listByHostPoolPagingAll( + private async *listByWorkspacePagingAll( resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByHostPoolPagingPage( + for await (const page of this.listByWorkspacePagingPage( resourceGroupName, - hostPoolName, + workspaceName, options )) { yield* page; @@ -135,19 +135,19 @@ export class PrivateEndpointConnectionsImpl } /** - * List private endpoint connections. + * List private endpoint connections associated with hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param options The options parameters. */ - public listByWorkspace( + public listByHostPool( resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateEndpointConnectionsListByHostPoolOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByWorkspacePagingAll( + const iter = this.listByHostPoolPagingAll( resourceGroupName, - workspaceName, + hostPoolName, options ); return { @@ -161,9 +161,9 @@ export class PrivateEndpointConnectionsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByWorkspacePagingPage( + return this.listByHostPoolPagingPage( resourceGroupName, - workspaceName, + hostPoolName, options, settings ); @@ -171,18 +171,18 @@ export class PrivateEndpointConnectionsImpl }; } - private async *listByWorkspacePagingPage( + private async *listByHostPoolPagingPage( resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams, + hostPoolName: string, + options?: PrivateEndpointConnectionsListByHostPoolOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: PrivateEndpointConnectionsListByWorkspaceResponse; + let result: PrivateEndpointConnectionsListByHostPoolResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByWorkspace( + result = await this._listByHostPool( resourceGroupName, - workspaceName, + hostPoolName, options ); let page = result.value || []; @@ -191,9 +191,9 @@ export class PrivateEndpointConnectionsImpl yield page; } while (continuationToken) { - result = await this._listByWorkspaceNext( + result = await this._listByHostPoolNext( resourceGroupName, - workspaceName, + hostPoolName, continuationToken, options ); @@ -204,14 +204,14 @@ export class PrivateEndpointConnectionsImpl } } - private async *listByWorkspacePagingAll( + private async *listByHostPoolPagingAll( resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateEndpointConnectionsListByHostPoolOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByWorkspacePagingPage( + for await (const page of this.listByHostPoolPagingPage( resourceGroupName, - workspaceName, + hostPoolName, options )) { yield* page; @@ -219,239 +219,239 @@ export class PrivateEndpointConnectionsImpl } /** - * List private endpoint connections associated with hostpool. + * List private endpoint connections. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param options The options parameters. */ - private _listByHostPool( + private _listByWorkspace( resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): Promise { + workspaceName: string, + options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, options }, - listByHostPoolOperationSpec + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec ); } /** * Get a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - getByHostPool( + getByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - hostPoolName, + workspaceName, privateEndpointConnectionName, options }, - getByHostPoolOperationSpec + getByWorkspaceOperationSpec ); } /** * Remove a connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - deleteByHostPool( + deleteByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams + options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - hostPoolName, + workspaceName, privateEndpointConnectionName, options }, - deleteByHostPoolOperationSpec + deleteByWorkspaceOperationSpec ); } /** * Approve or reject a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param connection Object containing the updated connection. * @param options The options parameters. */ - updateByHostPool( + updateByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - hostPoolName, + workspaceName, privateEndpointConnectionName, connection, options }, - updateByHostPoolOperationSpec + updateByWorkspaceOperationSpec ); } /** - * List private endpoint connections. + * List private endpoint connections associated with hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param options The options parameters. */ - private _listByWorkspace( + private _listByHostPool( resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): Promise { + hostPoolName: string, + options?: PrivateEndpointConnectionsListByHostPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec + { resourceGroupName, hostPoolName, options }, + listByHostPoolOperationSpec ); } /** * Get a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - getByWorkspace( + getByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - workspaceName, + hostPoolName, privateEndpointConnectionName, options }, - getByWorkspaceOperationSpec + getByHostPoolOperationSpec ); } /** * Remove a connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - deleteByWorkspace( + deleteByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams + options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - workspaceName, + hostPoolName, privateEndpointConnectionName, options }, - deleteByWorkspaceOperationSpec + deleteByHostPoolOperationSpec ); } /** * Approve or reject a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param connection Object containing the updated connection. * @param options The options parameters. */ - updateByWorkspace( + updateByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, - workspaceName, + hostPoolName, privateEndpointConnectionName, connection, options }, - updateByWorkspaceOperationSpec + updateByHostPoolOperationSpec ); } /** - * ListByHostPoolNext + * ListByWorkspaceNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. + * @param workspaceName The name of the workspace + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. * @param options The options parameters. */ - private _listByHostPoolNext( + private _listByWorkspaceNext( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByHostPoolNextOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, nextLink, options }, - listByHostPoolNextOperationSpec + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec ); } /** - * ListByWorkspaceNext + * ListByHostPoolNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param hostPoolName The name of the host pool within the specified resource group + * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. * @param options The options parameters. */ - private _listByWorkspaceNext( + private _listByHostPoolNext( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByWorkspaceNextOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsListByHostPoolNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec + { resourceGroupName, hostPoolName, nextLink, options }, + listByHostPoolNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByHostPoolOperationSpec: coreClient.OperationSpec = { +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { @@ -466,14 +466,14 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer }; -const getByHostPoolOperationSpec: coreClient.OperationSpec = { +const getByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { @@ -488,15 +488,15 @@ const getByHostPoolOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName, + Parameters.workspaceName, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept], serializer }; -const deleteByHostPoolOperationSpec: coreClient.OperationSpec = { +const deleteByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -510,15 +510,15 @@ const deleteByHostPoolOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName, + Parameters.workspaceName, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept], serializer }; -const updateByHostPoolOperationSpec: coreClient.OperationSpec = { +const updateByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { @@ -534,16 +534,16 @@ const updateByHostPoolOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName, + Parameters.workspaceName, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { +const listByHostPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { @@ -553,19 +553,24 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer }; -const getByWorkspaceOperationSpec: coreClient.OperationSpec = { +const getByHostPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { @@ -580,15 +585,15 @@ const getByWorkspaceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer }; -const deleteByWorkspaceOperationSpec: coreClient.OperationSpec = { +const deleteByHostPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -602,15 +607,15 @@ const deleteByWorkspaceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer }; -const updateByWorkspaceOperationSpec: coreClient.OperationSpec = { +const updateByHostPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { @@ -626,14 +631,14 @@ const updateByWorkspaceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, + Parameters.hostPoolName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -644,18 +649,17 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer }; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { +const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -666,13 +670,12 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts index 15d9365483fc..8ffc104d6c7f 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts @@ -15,14 +15,14 @@ import * as Parameters from "../models/parameters"; import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; import { PrivateLinkResource, - PrivateLinkResourcesListByHostPoolNextOptionalParams, - PrivateLinkResourcesListByHostPoolOptionalParams, - PrivateLinkResourcesListByHostPoolResponse, PrivateLinkResourcesListByWorkspaceNextOptionalParams, PrivateLinkResourcesListByWorkspaceOptionalParams, PrivateLinkResourcesListByWorkspaceResponse, - PrivateLinkResourcesListByHostPoolNextResponse, - PrivateLinkResourcesListByWorkspaceNextResponse + PrivateLinkResourcesListByHostPoolNextOptionalParams, + PrivateLinkResourcesListByHostPoolOptionalParams, + PrivateLinkResourcesListByHostPoolResponse, + PrivateLinkResourcesListByWorkspaceNextResponse, + PrivateLinkResourcesListByHostPoolNextResponse } from "../models"; /// @@ -39,19 +39,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { } /** - * List the private link resources available for this hostpool. + * List the private link resources available for this workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param options The options parameters. */ - public listByHostPool( + public listByWorkspace( resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateLinkResourcesListByWorkspaceOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByHostPoolPagingAll( + const iter = this.listByWorkspacePagingAll( resourceGroupName, - hostPoolName, + workspaceName, options ); return { @@ -65,9 +65,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByHostPoolPagingPage( + return this.listByWorkspacePagingPage( resourceGroupName, - hostPoolName, + workspaceName, options, settings ); @@ -75,18 +75,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { }; } - private async *listByHostPoolPagingPage( + private async *listByWorkspacePagingPage( resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams, + workspaceName: string, + options?: PrivateLinkResourcesListByWorkspaceOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: PrivateLinkResourcesListByHostPoolResponse; + let result: PrivateLinkResourcesListByWorkspaceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByHostPool( + result = await this._listByWorkspace( resourceGroupName, - hostPoolName, + workspaceName, options ); let page = result.value || []; @@ -95,9 +95,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { yield page; } while (continuationToken) { - result = await this._listByHostPoolNext( + result = await this._listByWorkspaceNext( resourceGroupName, - hostPoolName, + workspaceName, continuationToken, options ); @@ -108,14 +108,14 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { } } - private async *listByHostPoolPagingAll( + private async *listByWorkspacePagingAll( resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateLinkResourcesListByWorkspaceOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByHostPoolPagingPage( + for await (const page of this.listByWorkspacePagingPage( resourceGroupName, - hostPoolName, + workspaceName, options )) { yield* page; @@ -123,19 +123,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { } /** - * List the private link resources available for this workspace. + * List the private link resources available for this hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param options The options parameters. */ - public listByWorkspace( + public listByHostPool( resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateLinkResourcesListByHostPoolOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByWorkspacePagingAll( + const iter = this.listByHostPoolPagingAll( resourceGroupName, - workspaceName, + hostPoolName, options ); return { @@ -149,9 +149,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByWorkspacePagingPage( + return this.listByHostPoolPagingPage( resourceGroupName, - workspaceName, + hostPoolName, options, settings ); @@ -159,18 +159,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { }; } - private async *listByWorkspacePagingPage( + private async *listByHostPoolPagingPage( resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams, + hostPoolName: string, + options?: PrivateLinkResourcesListByHostPoolOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: PrivateLinkResourcesListByWorkspaceResponse; + let result: PrivateLinkResourcesListByHostPoolResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByWorkspace( + result = await this._listByHostPool( resourceGroupName, - workspaceName, + hostPoolName, options ); let page = result.value || []; @@ -179,9 +179,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { yield page; } while (continuationToken) { - result = await this._listByWorkspaceNext( + result = await this._listByHostPoolNext( resourceGroupName, - workspaceName, + hostPoolName, continuationToken, options ); @@ -192,37 +192,20 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { } } - private async *listByWorkspacePagingAll( + private async *listByHostPoolPagingAll( resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateLinkResourcesListByHostPoolOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByWorkspacePagingPage( + for await (const page of this.listByHostPoolPagingPage( resourceGroupName, - workspaceName, + hostPoolName, options )) { yield* page; } } - /** - * List the private link resources available for this hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - private _listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, options }, - listByHostPoolOperationSpec - ); - } - /** * List the private link resources available for this workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -241,21 +224,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { } /** - * ListByHostPoolNext + * List the private link resources available for this hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hostPoolName The name of the host pool within the specified resource group - * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. * @param options The options parameters. */ - private _listByHostPoolNext( + private _listByHostPool( resourceGroupName: string, hostPoolName: string, - nextLink: string, - options?: PrivateLinkResourcesListByHostPoolNextOptionalParams - ): Promise { + options?: PrivateLinkResourcesListByHostPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, nextLink, options }, - listByHostPoolNextOperationSpec + { resourceGroupName, hostPoolName, options }, + listByHostPoolOperationSpec ); } @@ -277,13 +258,32 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { listByWorkspaceNextOperationSpec ); } + + /** + * ListByHostPoolNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param hostPoolName The name of the host pool within the specified resource group + * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. + * @param options The options parameters. + */ + private _listByHostPoolNext( + resourceGroupName: string, + hostPoolName: string, + nextLink: string, + options?: PrivateLinkResourcesListByHostPoolNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, hostPoolName, nextLink, options }, + listByHostPoolNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByHostPoolOperationSpec: coreClient.OperationSpec = { +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { @@ -293,19 +293,24 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer }; -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { +const listByHostPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources", httpMethod: "GET", responses: { 200: { @@ -315,17 +320,22 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer }; -const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -336,18 +346,17 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostPoolName + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer }; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { +const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -358,13 +367,12 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.hostPoolName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts new file mode 100644 index 000000000000..dd9124d66c97 --- /dev/null +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts @@ -0,0 +1,393 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ScalingPlanPooledSchedules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; +import { + ScalingPlanPooledSchedule, + ScalingPlanPooledSchedulesListNextOptionalParams, + ScalingPlanPooledSchedulesListOptionalParams, + ScalingPlanPooledSchedulesListResponse, + ScalingPlanPooledSchedulesGetOptionalParams, + ScalingPlanPooledSchedulesGetResponse, + ScalingPlanPooledSchedulesCreateOptionalParams, + ScalingPlanPooledSchedulesCreateResponse, + ScalingPlanPooledSchedulesDeleteOptionalParams, + ScalingPlanPooledSchedulesUpdateOptionalParams, + ScalingPlanPooledSchedulesUpdateResponse, + ScalingPlanPooledSchedulesListNextResponse +} from "../models"; + +/// +/** Class containing ScalingPlanPooledSchedules operations. */ +export class ScalingPlanPooledSchedulesImpl + implements ScalingPlanPooledSchedules { + private readonly client: DesktopVirtualizationAPIClient; + + /** + * Initialize a new instance of the class ScalingPlanPooledSchedules class. + * @param client Reference to the service client + */ + constructor(client: DesktopVirtualizationAPIClient) { + this.client = client; + } + + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + scalingPlanName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + scalingPlanName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ScalingPlanPooledSchedulesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, scalingPlanName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + scalingPlanName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + scalingPlanName, + options + )) { + yield* page; + } + } + + /** + * Get a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + getOperationSpec + ); + } + + /** + * Create or update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule definitions. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + scalingPlanSchedule: ScalingPlanPooledSchedule, + options?: ScalingPlanPooledSchedulesCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scalingPlanName, + scalingPlanScheduleName, + scalingPlanSchedule, + options + }, + createOperationSpec + ); + } + + /** + * Remove a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + deleteOperationSpec + ); + } + + /** + * Update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + update( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + updateOperationSpec + ); + } + + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + scalingPlanName: string, + nextLink: string, + options?: ScalingPlanPooledSchedulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + 201: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.scalingPlanSchedule, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.scalingPlanSchedule1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledScheduleList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledScheduleList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts index b06b3e1a5f8f..a8bb181bdb5c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts @@ -531,7 +531,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -552,7 +557,12 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -569,7 +579,12 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -590,7 +605,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -611,7 +625,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -631,7 +644,6 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts index 458ba61eb9f6..f461e7d0e6ec 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts @@ -293,7 +293,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +319,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts index 43dd108d3225..a50df779acb8 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts @@ -169,7 +169,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -190,7 +195,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts index f341e94c6d3f..a6352794fafd 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts @@ -419,7 +419,13 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -488,7 +494,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -556,7 +567,6 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -578,7 +588,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts index e540bea290ff..3f1e91704691 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts @@ -407,7 +407,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -444,7 +449,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -465,7 +469,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts index 7431743f39da..aadb0f8c625b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts @@ -8,7 +8,10 @@ export * from "./operations"; export * from "./workspaces"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; export * from "./scalingPlans"; +export * from "./scalingPlanPooledSchedules"; export * from "./applicationGroups"; export * from "./startMenuItems"; export * from "./applications"; @@ -18,5 +21,3 @@ export * from "./userSessions"; export * from "./sessionHosts"; export * from "./msixPackages"; export * from "./msixImages"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts index d57d4c906c60..b450c877a7c2 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts @@ -9,132 +9,132 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnectionWithSystemData, - PrivateEndpointConnectionsListByHostPoolOptionalParams, PrivateEndpointConnectionsListByWorkspaceOptionalParams, - PrivateEndpointConnectionsGetByHostPoolOptionalParams, - PrivateEndpointConnectionsGetByHostPoolResponse, - PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, - PrivateEndpointConnection, - PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, - PrivateEndpointConnectionsUpdateByHostPoolResponse, + PrivateEndpointConnectionsListByHostPoolOptionalParams, PrivateEndpointConnectionsGetByWorkspaceOptionalParams, PrivateEndpointConnectionsGetByWorkspaceResponse, PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams, + PrivateEndpointConnection, PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams, - PrivateEndpointConnectionsUpdateByWorkspaceResponse + PrivateEndpointConnectionsUpdateByWorkspaceResponse, + PrivateEndpointConnectionsGetByHostPoolOptionalParams, + PrivateEndpointConnectionsGetByHostPoolResponse, + PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, + PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, + PrivateEndpointConnectionsUpdateByHostPoolResponse } from "../models"; /// /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { /** - * List private endpoint connections associated with hostpool. + * List private endpoint connections. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param options The options parameters. */ - listByHostPool( + listByWorkspace( resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams ): PagedAsyncIterableIterator; /** - * List private endpoint connections. + * List private endpoint connections associated with hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param options The options parameters. */ - listByWorkspace( + listByHostPool( resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateEndpointConnectionsListByHostPoolOptionalParams ): PagedAsyncIterableIterator; /** * Get a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - getByHostPool( + getByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams + ): Promise; /** * Remove a connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - deleteByHostPool( + deleteByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams + options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams ): Promise; /** * Approve or reject a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param connection Object containing the updated connection. * @param options The options parameters. */ - updateByHostPool( + updateByWorkspace( resourceGroupName: string, - hostPoolName: string, + workspaceName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams + ): Promise; /** * Get a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - getByWorkspace( + getByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams + ): Promise; /** * Remove a connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param options The options parameters. */ - deleteByWorkspace( + deleteByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams + options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams ): Promise; /** * Approve or reject a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param privateEndpointConnectionName The name of the private endpoint connection associated with the * Azure resource * @param connection Object containing the updated connection. * @param options The options parameters. */ - updateByWorkspace( + updateByHostPool( resourceGroupName: string, - workspaceName: string, + hostPoolName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams + ): Promise; } diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts index e72893f912c2..655405c596ee 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts @@ -9,33 +9,33 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, - PrivateLinkResourcesListByHostPoolOptionalParams, - PrivateLinkResourcesListByWorkspaceOptionalParams + PrivateLinkResourcesListByWorkspaceOptionalParams, + PrivateLinkResourcesListByHostPoolOptionalParams } from "../models"; /// /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { /** - * List the private link resources available for this hostpool. + * List the private link resources available for this workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group + * @param workspaceName The name of the workspace * @param options The options parameters. */ - listByHostPool( + listByWorkspace( resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams + workspaceName: string, + options?: PrivateLinkResourcesListByWorkspaceOptionalParams ): PagedAsyncIterableIterator; /** - * List the private link resources available for this workspace. + * List the private link resources available for this hostpool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param hostPoolName The name of the host pool within the specified resource group * @param options The options parameters. */ - listByWorkspace( + listByHostPool( resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams + hostPoolName: string, + options?: PrivateLinkResourcesListByHostPoolOptionalParams ): PagedAsyncIterableIterator; } diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts new file mode 100644 index 000000000000..87dbec33896d --- /dev/null +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ScalingPlanPooledSchedule, + ScalingPlanPooledSchedulesListOptionalParams, + ScalingPlanPooledSchedulesGetOptionalParams, + ScalingPlanPooledSchedulesGetResponse, + ScalingPlanPooledSchedulesCreateOptionalParams, + ScalingPlanPooledSchedulesCreateResponse, + ScalingPlanPooledSchedulesDeleteOptionalParams, + ScalingPlanPooledSchedulesUpdateOptionalParams, + ScalingPlanPooledSchedulesUpdateResponse +} from "../models"; + +/// +/** Interface representing a ScalingPlanPooledSchedules. */ +export interface ScalingPlanPooledSchedules { + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesGetOptionalParams + ): Promise; + /** + * Create or update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule definitions. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + scalingPlanSchedule: ScalingPlanPooledSchedule, + options?: ScalingPlanPooledSchedulesCreateOptionalParams + ): Promise; + /** + * Remove a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesDeleteOptionalParams + ): Promise; + /** + * Update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + update( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesUpdateOptionalParams + ): Promise; +} diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/pagingHelper.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/pagingHelper.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json index 02d427ad910e..3e6ae96443f3 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-desktopvirtualization": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"