@azure/arm-desktopvirtualization 1.0.0-beta.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -14
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +2105 -1945
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsCreateOrUpdateSample.js +12 -8
- package/dist-esm/samples-dev/applicationGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/applicationGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsGetSample.js +12 -4
- package/dist-esm/samples-dev/applicationGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsListByResourceGroupSample.js +19 -5
- package/dist-esm/samples-dev/applicationGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsListBySubscriptionSample.js +11 -3
- package/dist-esm/samples-dev/applicationGroupsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGroupsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/applicationGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +12 -4
- package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListSample.js +21 -5
- package/dist-esm/samples-dev/applicationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/desktopsGetSample.js +12 -4
- package/dist-esm/samples-dev/desktopsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/desktopsListSample.js +21 -5
- package/dist-esm/samples-dev/desktopsListSample.js.map +1 -1
- package/dist-esm/samples-dev/desktopsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/desktopsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsCreateOrUpdateSample.js +21 -9
- package/dist-esm/samples-dev/hostPoolsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/hostPoolsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsGetSample.js +12 -4
- package/dist-esm/samples-dev/hostPoolsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsListByResourceGroupSample.js +21 -5
- package/dist-esm/samples-dev/hostPoolsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsListSample.js +20 -4
- package/dist-esm/samples-dev/hostPoolsListSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsRetrieveRegistrationTokenSample.js +12 -4
- package/dist-esm/samples-dev/hostPoolsRetrieveRegistrationTokenSample.js.map +1 -1
- package/dist-esm/samples-dev/hostPoolsUpdateSample.js +21 -5
- package/dist-esm/samples-dev/hostPoolsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/msixImagesExpandSample.js +12 -4
- package/dist-esm/samples-dev/msixImagesExpandSample.js.map +1 -1
- package/dist-esm/samples-dev/msixPackagesCreateOrUpdateSample.js +14 -6
- package/dist-esm/samples-dev/msixPackagesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/msixPackagesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/msixPackagesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/msixPackagesGetSample.js +12 -4
- package/dist-esm/samples-dev/msixPackagesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/msixPackagesListSample.js +21 -5
- package/dist-esm/samples-dev/msixPackagesListSample.js.map +1 -1
- package/dist-esm/samples-dev/msixPackagesUpdateSample.js +12 -4
- package/dist-esm/samples-dev/msixPackagesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesCreateSample.js +58 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesGetSample.js +40 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{privateEndpointConnectionsListByWorkspaceSample.js → scalingPlanPooledSchedulesListSample.js} +26 -10
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesListSample.js.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesUpdateSample.js +52 -0
- package/dist-esm/samples-dev/scalingPlanPooledSchedulesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/scalingPlansCreateSample.js +12 -4
- package/dist-esm/samples-dev/scalingPlansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansDeleteSample.js +12 -4
- package/dist-esm/samples-dev/scalingPlansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansGetSample.js +12 -4
- package/dist-esm/samples-dev/scalingPlansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansListByHostPoolSample.js +21 -5
- package/dist-esm/samples-dev/scalingPlansListByHostPoolSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansListByResourceGroupSample.js +21 -5
- package/dist-esm/samples-dev/scalingPlansListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansListBySubscriptionSample.js +20 -4
- package/dist-esm/samples-dev/scalingPlansListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/scalingPlansUpdateSample.js +12 -4
- package/dist-esm/samples-dev/scalingPlansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sessionHostsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/sessionHostsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sessionHostsGetSample.js +12 -4
- package/dist-esm/samples-dev/sessionHostsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sessionHostsListSample.js +21 -5
- package/dist-esm/samples-dev/sessionHostsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sessionHostsUpdateSample.js +14 -5
- package/dist-esm/samples-dev/sessionHostsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/startMenuItemsListSample.js +12 -4
- package/dist-esm/samples-dev/startMenuItemsListSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/userSessionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsDisconnectSample.js +12 -4
- package/dist-esm/samples-dev/userSessionsDisconnectSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsGetSample.js +12 -4
- package/dist-esm/samples-dev/userSessionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsListByHostPoolSample.js +21 -5
- package/dist-esm/samples-dev/userSessionsListByHostPoolSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsListSample.js +21 -5
- package/dist-esm/samples-dev/userSessionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/userSessionsSendMessageSample.js +12 -4
- package/dist-esm/samples-dev/userSessionsSendMessageSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +12 -4
- package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +21 -5
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +11 -3
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +12 -5
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
- package/dist-esm/src/desktopVirtualizationAPIClient.d.ts +4 -3
- package/dist-esm/src/desktopVirtualizationAPIClient.d.ts.map +1 -1
- package/dist-esm/src/desktopVirtualizationAPIClient.js +52 -22
- package/dist-esm/src/desktopVirtualizationAPIClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +363 -272
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +60 -37
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +439 -215
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +51 -16
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationGroups.js +44 -17
- package/dist-esm/src/operations/applicationGroups.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +25 -9
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/desktops.d.ts.map +1 -1
- package/dist-esm/src/operations/desktops.js +25 -9
- package/dist-esm/src/operations/desktops.js.map +1 -1
- package/dist-esm/src/operations/hostPools.d.ts.map +1 -1
- package/dist-esm/src/operations/hostPools.js +49 -18
- package/dist-esm/src/operations/hostPools.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/msixImages.d.ts.map +1 -1
- package/dist-esm/src/operations/msixImages.js +19 -8
- package/dist-esm/src/operations/msixImages.js.map +1 -1
- package/dist-esm/src/operations/msixPackages.d.ts.map +1 -1
- package/dist-esm/src/operations/msixPackages.js +25 -9
- package/dist-esm/src/operations/msixPackages.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/scalingPlanPooledSchedules.d.ts +71 -0
- package/dist-esm/src/operations/scalingPlanPooledSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/scalingPlanPooledSchedules.js +294 -0
- package/dist-esm/src/operations/scalingPlanPooledSchedules.js.map +1 -0
- package/dist-esm/src/operations/scalingPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/scalingPlans.js +73 -27
- package/dist-esm/src/operations/scalingPlans.js.map +1 -1
- package/dist-esm/src/operations/sessionHosts.d.ts.map +1 -1
- package/dist-esm/src/operations/sessionHosts.js +25 -9
- package/dist-esm/src/operations/sessionHosts.js.map +1 -1
- package/dist-esm/src/operations/startMenuItems.d.ts.map +1 -1
- package/dist-esm/src/operations/startMenuItems.js +25 -9
- package/dist-esm/src/operations/startMenuItems.js.map +1 -1
- package/dist-esm/src/operations/userSessions.d.ts.map +1 -1
- package/dist-esm/src/operations/userSessions.js +50 -18
- package/dist-esm/src/operations/userSessions.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +43 -17
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/scalingPlanPooledSchedules.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/scalingPlanPooledSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{privateEndpointConnections.js → scalingPlanPooledSchedules.js} +1 -1
- package/dist-esm/src/operationsInterfaces/scalingPlanPooledSchedules.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +20 -15
- package/review/arm-desktopvirtualization.api.md +309 -387
- package/src/desktopVirtualizationAPIClient.ts +67 -31
- package/src/index.ts +1 -0
- package/src/models/index.ts +416 -332
- package/src/models/mappers.ts +497 -249
- package/src/models/parameters.ts +59 -19
- package/src/operations/applicationGroups.ts +53 -20
- package/src/operations/applications.ts +33 -15
- package/src/operations/desktops.ts +33 -15
- package/src/operations/hostPools.ts +58 -21
- package/src/operations/index.ts +1 -2
- package/src/operations/msixImages.ts +27 -14
- package/src/operations/msixPackages.ts +33 -11
- package/src/operations/operations.ts +21 -9
- package/src/operations/scalingPlanPooledSchedules.ts +393 -0
- package/src/operations/scalingPlans.ts +89 -35
- package/src/operations/sessionHosts.ts +33 -11
- package/src/operations/startMenuItems.ts +32 -14
- package/src/operations/userSessions.ts +66 -30
- package/src/operations/workspaces.ts +52 -20
- package/src/operationsInterfaces/index.ts +1 -2
- package/src/operationsInterfaces/scalingPlanPooledSchedules.ts +90 -0
- package/src/pagingHelper.ts +39 -0
- package/types/arm-desktopvirtualization.d.ts +438 -406
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByHostPoolSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByHostPoolSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByHostPoolSample.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByHostPoolSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByHostPoolSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByHostPoolSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByHostPoolSample.js +0 -45
- package/dist-esm/samples-dev/privateEndpointConnectionsListByHostPoolSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByWorkspaceSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.js +0 -39
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.js +0 -39
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByHostPoolSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByHostPoolSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByHostPoolSample.js +0 -45
- package/dist-esm/samples-dev/privateLinkResourcesListByHostPoolSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByWorkspaceSample.js +0 -45
- package/dist-esm/samples-dev/privateLinkResourcesListByWorkspaceSample.js.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +0 -118
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +0 -483
- package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +0 -62
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.js +0 -249
- package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +0 -76
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +0 -20
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +0 -9
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/src/operations/privateEndpointConnections.ts +0 -652
- package/src/operations/privateLinkResources.ts +0 -344
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -140
- package/src/operationsInterfaces/privateLinkResources.ts +0 -41
package/src/models/parameters.ts
CHANGED
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
WorkspacePatch as WorkspacePatchMapper,
|
|
17
17
|
ScalingPlan as ScalingPlanMapper,
|
|
18
18
|
ScalingPlanPatch as ScalingPlanPatchMapper,
|
|
19
|
+
ScalingPlanPooledSchedule as ScalingPlanPooledScheduleMapper,
|
|
20
|
+
ScalingPlanPooledSchedulePatch as ScalingPlanPooledSchedulePatchMapper,
|
|
19
21
|
ApplicationGroup as ApplicationGroupMapper,
|
|
20
22
|
ApplicationGroupPatch as ApplicationGroupPatchMapper,
|
|
21
23
|
Application as ApplicationMapper,
|
|
@@ -27,8 +29,7 @@ import {
|
|
|
27
29
|
SessionHostPatch as SessionHostPatchMapper,
|
|
28
30
|
MsixPackage as MsixPackageMapper,
|
|
29
31
|
MsixPackagePatch as MsixPackagePatchMapper,
|
|
30
|
-
MsixImageURI as MsixImageURIMapper
|
|
31
|
-
PrivateEndpointConnection as PrivateEndpointConnectionMapper
|
|
32
|
+
MsixImageURI as MsixImageURIMapper
|
|
32
33
|
} from "../models/mappers";
|
|
33
34
|
|
|
34
35
|
export const accept: OperationParameter = {
|
|
@@ -58,7 +59,7 @@ export const $host: OperationURLParameter = {
|
|
|
58
59
|
export const apiVersion: OperationQueryParameter = {
|
|
59
60
|
parameterPath: "apiVersion",
|
|
60
61
|
mapper: {
|
|
61
|
-
defaultValue: "
|
|
62
|
+
defaultValue: "2022-09-09",
|
|
62
63
|
isConstant: true,
|
|
63
64
|
serializedName: "api-version",
|
|
64
65
|
type: {
|
|
@@ -145,6 +146,36 @@ export const workspace1: OperationParameter = {
|
|
|
145
146
|
mapper: WorkspacePatchMapper
|
|
146
147
|
};
|
|
147
148
|
|
|
149
|
+
export const pageSize: OperationQueryParameter = {
|
|
150
|
+
parameterPath: ["options", "pageSize"],
|
|
151
|
+
mapper: {
|
|
152
|
+
serializedName: "pageSize",
|
|
153
|
+
type: {
|
|
154
|
+
name: "Number"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export const isDescending: OperationQueryParameter = {
|
|
160
|
+
parameterPath: ["options", "isDescending"],
|
|
161
|
+
mapper: {
|
|
162
|
+
serializedName: "isDescending",
|
|
163
|
+
type: {
|
|
164
|
+
name: "Boolean"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export const initialSkip: OperationQueryParameter = {
|
|
170
|
+
parameterPath: ["options", "initialSkip"],
|
|
171
|
+
mapper: {
|
|
172
|
+
serializedName: "initialSkip",
|
|
173
|
+
type: {
|
|
174
|
+
name: "Number"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
148
179
|
export const scalingPlanName: OperationURLParameter = {
|
|
149
180
|
parameterPath: "scalingPlanName",
|
|
150
181
|
mapper: {
|
|
@@ -185,6 +216,31 @@ export const hostPoolName: OperationURLParameter = {
|
|
|
185
216
|
}
|
|
186
217
|
};
|
|
187
218
|
|
|
219
|
+
export const scalingPlanScheduleName: OperationURLParameter = {
|
|
220
|
+
parameterPath: "scalingPlanScheduleName",
|
|
221
|
+
mapper: {
|
|
222
|
+
constraints: {
|
|
223
|
+
MaxLength: 64,
|
|
224
|
+
MinLength: 1
|
|
225
|
+
},
|
|
226
|
+
serializedName: "scalingPlanScheduleName",
|
|
227
|
+
required: true,
|
|
228
|
+
type: {
|
|
229
|
+
name: "String"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export const scalingPlanSchedule: OperationParameter = {
|
|
235
|
+
parameterPath: "scalingPlanSchedule",
|
|
236
|
+
mapper: ScalingPlanPooledScheduleMapper
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export const scalingPlanSchedule1: OperationParameter = {
|
|
240
|
+
parameterPath: ["options", "scalingPlanSchedule"],
|
|
241
|
+
mapper: ScalingPlanPooledSchedulePatchMapper
|
|
242
|
+
};
|
|
243
|
+
|
|
188
244
|
export const applicationGroupName: OperationURLParameter = {
|
|
189
245
|
parameterPath: "applicationGroupName",
|
|
190
246
|
mapper: {
|
|
@@ -354,19 +410,3 @@ export const msixImageURI: OperationParameter = {
|
|
|
354
410
|
parameterPath: "msixImageURI",
|
|
355
411
|
mapper: MsixImageURIMapper
|
|
356
412
|
};
|
|
357
|
-
|
|
358
|
-
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
359
|
-
parameterPath: "privateEndpointConnectionName",
|
|
360
|
-
mapper: {
|
|
361
|
-
serializedName: "privateEndpointConnectionName",
|
|
362
|
-
required: true,
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
export const connection: OperationParameter = {
|
|
370
|
-
parameterPath: "connection",
|
|
371
|
-
mapper: PrivateEndpointConnectionMapper
|
|
372
|
-
};
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ApplicationGroups } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,8 +17,10 @@ import {
|
|
|
16
17
|
ApplicationGroup,
|
|
17
18
|
ApplicationGroupsListByResourceGroupNextOptionalParams,
|
|
18
19
|
ApplicationGroupsListByResourceGroupOptionalParams,
|
|
20
|
+
ApplicationGroupsListByResourceGroupResponse,
|
|
19
21
|
ApplicationGroupsListBySubscriptionNextOptionalParams,
|
|
20
22
|
ApplicationGroupsListBySubscriptionOptionalParams,
|
|
23
|
+
ApplicationGroupsListBySubscriptionResponse,
|
|
21
24
|
ApplicationGroupsGetOptionalParams,
|
|
22
25
|
ApplicationGroupsGetResponse,
|
|
23
26
|
ApplicationGroupsCreateOrUpdateOptionalParams,
|
|
@@ -25,8 +28,6 @@ import {
|
|
|
25
28
|
ApplicationGroupsDeleteOptionalParams,
|
|
26
29
|
ApplicationGroupsUpdateOptionalParams,
|
|
27
30
|
ApplicationGroupsUpdateResponse,
|
|
28
|
-
ApplicationGroupsListByResourceGroupResponse,
|
|
29
|
-
ApplicationGroupsListBySubscriptionResponse,
|
|
30
31
|
ApplicationGroupsListByResourceGroupNextResponse,
|
|
31
32
|
ApplicationGroupsListBySubscriptionNextResponse
|
|
32
33
|
} from "../models";
|
|
@@ -61,19 +62,33 @@ export class ApplicationGroupsImpl implements ApplicationGroups {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
-
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listByResourceGroupPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
66
74
|
}
|
|
67
75
|
};
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
private async *listByResourceGroupPagingPage(
|
|
71
79
|
resourceGroupName: string,
|
|
72
|
-
options?: ApplicationGroupsListByResourceGroupOptionalParams
|
|
80
|
+
options?: ApplicationGroupsListByResourceGroupOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
73
82
|
): AsyncIterableIterator<ApplicationGroup[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
let result: ApplicationGroupsListByResourceGroupResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
77
92
|
while (continuationToken) {
|
|
78
93
|
result = await this._listByResourceGroupNext(
|
|
79
94
|
resourceGroupName,
|
|
@@ -81,7 +96,9 @@ export class ApplicationGroupsImpl implements ApplicationGroups {
|
|
|
81
96
|
options
|
|
82
97
|
);
|
|
83
98
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
85
102
|
}
|
|
86
103
|
}
|
|
87
104
|
|
|
@@ -112,22 +129,34 @@ export class ApplicationGroupsImpl implements ApplicationGroups {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: ApplicationGroupsListBySubscriptionOptionalParams
|
|
142
|
+
options?: ApplicationGroupsListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<ApplicationGroup[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: ApplicationGroupsListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -378,7 +407,13 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
378
407
|
bodyMapper: Mappers.CloudError
|
|
379
408
|
}
|
|
380
409
|
},
|
|
381
|
-
queryParameters: [
|
|
410
|
+
queryParameters: [
|
|
411
|
+
Parameters.apiVersion,
|
|
412
|
+
Parameters.pageSize,
|
|
413
|
+
Parameters.isDescending,
|
|
414
|
+
Parameters.initialSkip,
|
|
415
|
+
Parameters.filter
|
|
416
|
+
],
|
|
382
417
|
urlParameters: [
|
|
383
418
|
Parameters.$host,
|
|
384
419
|
Parameters.subscriptionId,
|
|
@@ -415,7 +450,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
415
450
|
bodyMapper: Mappers.CloudError
|
|
416
451
|
}
|
|
417
452
|
},
|
|
418
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
419
453
|
urlParameters: [
|
|
420
454
|
Parameters.$host,
|
|
421
455
|
Parameters.nextLink,
|
|
@@ -436,7 +470,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
436
470
|
bodyMapper: Mappers.CloudError
|
|
437
471
|
}
|
|
438
472
|
},
|
|
439
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
440
473
|
urlParameters: [
|
|
441
474
|
Parameters.$host,
|
|
442
475
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Applications } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
Application,
|
|
17
18
|
ApplicationsListNextOptionalParams,
|
|
18
19
|
ApplicationsListOptionalParams,
|
|
20
|
+
ApplicationsListResponse,
|
|
19
21
|
ApplicationsGetOptionalParams,
|
|
20
22
|
ApplicationsGetResponse,
|
|
21
23
|
ApplicationsCreateOrUpdateOptionalParams,
|
|
@@ -23,7 +25,6 @@ import {
|
|
|
23
25
|
ApplicationsDeleteOptionalParams,
|
|
24
26
|
ApplicationsUpdateOptionalParams,
|
|
25
27
|
ApplicationsUpdateResponse,
|
|
26
|
-
ApplicationsListResponse,
|
|
27
28
|
ApplicationsListNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -63,11 +64,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
67
71
|
return this.listPagingPage(
|
|
68
72
|
resourceGroupName,
|
|
69
73
|
applicationGroupName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -76,15 +81,22 @@ export class ApplicationsImpl implements Applications {
|
|
|
76
81
|
private async *listPagingPage(
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
applicationGroupName: string,
|
|
79
|
-
options?: ApplicationsListOptionalParams
|
|
84
|
+
options?: ApplicationsListOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<Application[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
let result: ApplicationsListResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._list(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
applicationGroupName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
88
100
|
while (continuationToken) {
|
|
89
101
|
result = await this._listNext(
|
|
90
102
|
resourceGroupName,
|
|
@@ -93,7 +105,9 @@ export class ApplicationsImpl implements Applications {
|
|
|
93
105
|
options
|
|
94
106
|
);
|
|
95
107
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -344,7 +358,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
344
358
|
bodyMapper: Mappers.CloudError
|
|
345
359
|
}
|
|
346
360
|
},
|
|
347
|
-
queryParameters: [
|
|
361
|
+
queryParameters: [
|
|
362
|
+
Parameters.apiVersion,
|
|
363
|
+
Parameters.pageSize,
|
|
364
|
+
Parameters.isDescending,
|
|
365
|
+
Parameters.initialSkip
|
|
366
|
+
],
|
|
348
367
|
urlParameters: [
|
|
349
368
|
Parameters.$host,
|
|
350
369
|
Parameters.subscriptionId,
|
|
@@ -365,7 +384,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
365
384
|
bodyMapper: Mappers.CloudError
|
|
366
385
|
}
|
|
367
386
|
},
|
|
368
|
-
queryParameters: [Parameters.apiVersion],
|
|
369
387
|
urlParameters: [
|
|
370
388
|
Parameters.$host,
|
|
371
389
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Desktops } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,11 +17,11 @@ import {
|
|
|
16
17
|
Desktop,
|
|
17
18
|
DesktopsListNextOptionalParams,
|
|
18
19
|
DesktopsListOptionalParams,
|
|
20
|
+
DesktopsListResponse,
|
|
19
21
|
DesktopsGetOptionalParams,
|
|
20
22
|
DesktopsGetResponse,
|
|
21
23
|
DesktopsUpdateOptionalParams,
|
|
22
24
|
DesktopsUpdateResponse,
|
|
23
|
-
DesktopsListResponse,
|
|
24
25
|
DesktopsListNextResponse
|
|
25
26
|
} from "../models";
|
|
26
27
|
|
|
@@ -60,11 +61,15 @@ export class DesktopsImpl implements Desktops {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
64
68
|
return this.listPagingPage(
|
|
65
69
|
resourceGroupName,
|
|
66
70
|
applicationGroupName,
|
|
67
|
-
options
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
75
|
};
|
|
@@ -73,15 +78,22 @@ export class DesktopsImpl implements Desktops {
|
|
|
73
78
|
private async *listPagingPage(
|
|
74
79
|
resourceGroupName: string,
|
|
75
80
|
applicationGroupName: string,
|
|
76
|
-
options?: DesktopsListOptionalParams
|
|
81
|
+
options?: DesktopsListOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
77
83
|
): AsyncIterableIterator<Desktop[]> {
|
|
78
|
-
let result
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
let result: DesktopsListResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._list(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
applicationGroupName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
85
97
|
while (continuationToken) {
|
|
86
98
|
result = await this._listNext(
|
|
87
99
|
resourceGroupName,
|
|
@@ -90,7 +102,9 @@ export class DesktopsImpl implements Desktops {
|
|
|
90
102
|
options
|
|
91
103
|
);
|
|
92
104
|
continuationToken = result.nextLink;
|
|
93
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
94
108
|
}
|
|
95
109
|
}
|
|
96
110
|
|
|
@@ -245,7 +259,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
245
259
|
bodyMapper: Mappers.CloudError
|
|
246
260
|
}
|
|
247
261
|
},
|
|
248
|
-
queryParameters: [
|
|
262
|
+
queryParameters: [
|
|
263
|
+
Parameters.apiVersion,
|
|
264
|
+
Parameters.pageSize,
|
|
265
|
+
Parameters.isDescending,
|
|
266
|
+
Parameters.initialSkip
|
|
267
|
+
],
|
|
249
268
|
urlParameters: [
|
|
250
269
|
Parameters.$host,
|
|
251
270
|
Parameters.subscriptionId,
|
|
@@ -266,7 +285,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
266
285
|
bodyMapper: Mappers.CloudError
|
|
267
286
|
}
|
|
268
287
|
},
|
|
269
|
-
queryParameters: [Parameters.apiVersion],
|
|
270
288
|
urlParameters: [
|
|
271
289
|
Parameters.$host,
|
|
272
290
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { HostPools } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,8 +17,10 @@ import {
|
|
|
16
17
|
HostPool,
|
|
17
18
|
HostPoolsListByResourceGroupNextOptionalParams,
|
|
18
19
|
HostPoolsListByResourceGroupOptionalParams,
|
|
20
|
+
HostPoolsListByResourceGroupResponse,
|
|
19
21
|
HostPoolsListNextOptionalParams,
|
|
20
22
|
HostPoolsListOptionalParams,
|
|
23
|
+
HostPoolsListResponse,
|
|
21
24
|
HostPoolsGetOptionalParams,
|
|
22
25
|
HostPoolsGetResponse,
|
|
23
26
|
HostPoolsCreateOrUpdateOptionalParams,
|
|
@@ -25,8 +28,6 @@ import {
|
|
|
25
28
|
HostPoolsDeleteOptionalParams,
|
|
26
29
|
HostPoolsUpdateOptionalParams,
|
|
27
30
|
HostPoolsUpdateResponse,
|
|
28
|
-
HostPoolsListByResourceGroupResponse,
|
|
29
|
-
HostPoolsListResponse,
|
|
30
31
|
HostPoolsRetrieveRegistrationTokenOptionalParams,
|
|
31
32
|
HostPoolsRetrieveRegistrationTokenResponse,
|
|
32
33
|
HostPoolsListByResourceGroupNextResponse,
|
|
@@ -63,19 +64,33 @@ export class HostPoolsImpl implements HostPools {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
-
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listByResourceGroupPagingPage(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
options,
|
|
74
|
+
settings
|
|
75
|
+
);
|
|
68
76
|
}
|
|
69
77
|
};
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
private async *listByResourceGroupPagingPage(
|
|
73
81
|
resourceGroupName: string,
|
|
74
|
-
options?: HostPoolsListByResourceGroupOptionalParams
|
|
82
|
+
options?: HostPoolsListByResourceGroupOptionalParams,
|
|
83
|
+
settings?: PageSettings
|
|
75
84
|
): AsyncIterableIterator<HostPool[]> {
|
|
76
|
-
let result
|
|
77
|
-
|
|
78
|
-
|
|
85
|
+
let result: HostPoolsListByResourceGroupResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
93
|
+
}
|
|
79
94
|
while (continuationToken) {
|
|
80
95
|
result = await this._listByResourceGroupNext(
|
|
81
96
|
resourceGroupName,
|
|
@@ -83,7 +98,9 @@ export class HostPoolsImpl implements HostPools {
|
|
|
83
98
|
options
|
|
84
99
|
);
|
|
85
100
|
continuationToken = result.nextLink;
|
|
86
|
-
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
87
104
|
}
|
|
88
105
|
}
|
|
89
106
|
|
|
@@ -114,22 +131,34 @@ export class HostPoolsImpl implements HostPools {
|
|
|
114
131
|
[Symbol.asyncIterator]() {
|
|
115
132
|
return this;
|
|
116
133
|
},
|
|
117
|
-
byPage: () => {
|
|
118
|
-
|
|
134
|
+
byPage: (settings?: PageSettings) => {
|
|
135
|
+
if (settings?.maxPageSize) {
|
|
136
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
137
|
+
}
|
|
138
|
+
return this.listPagingPage(options, settings);
|
|
119
139
|
}
|
|
120
140
|
};
|
|
121
141
|
}
|
|
122
142
|
|
|
123
143
|
private async *listPagingPage(
|
|
124
|
-
options?: HostPoolsListOptionalParams
|
|
144
|
+
options?: HostPoolsListOptionalParams,
|
|
145
|
+
settings?: PageSettings
|
|
125
146
|
): AsyncIterableIterator<HostPool[]> {
|
|
126
|
-
let result
|
|
127
|
-
|
|
128
|
-
|
|
147
|
+
let result: HostPoolsListResponse;
|
|
148
|
+
let continuationToken = settings?.continuationToken;
|
|
149
|
+
if (!continuationToken) {
|
|
150
|
+
result = await this._list(options);
|
|
151
|
+
let page = result.value || [];
|
|
152
|
+
continuationToken = result.nextLink;
|
|
153
|
+
setContinuationToken(page, continuationToken);
|
|
154
|
+
yield page;
|
|
155
|
+
}
|
|
129
156
|
while (continuationToken) {
|
|
130
157
|
result = await this._listNext(continuationToken, options);
|
|
131
158
|
continuationToken = result.nextLink;
|
|
132
|
-
|
|
159
|
+
let page = result.value || [];
|
|
160
|
+
setContinuationToken(page, continuationToken);
|
|
161
|
+
yield page;
|
|
133
162
|
}
|
|
134
163
|
}
|
|
135
164
|
|
|
@@ -394,7 +423,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
394
423
|
bodyMapper: Mappers.CloudError
|
|
395
424
|
}
|
|
396
425
|
},
|
|
397
|
-
queryParameters: [
|
|
426
|
+
queryParameters: [
|
|
427
|
+
Parameters.apiVersion,
|
|
428
|
+
Parameters.pageSize,
|
|
429
|
+
Parameters.isDescending,
|
|
430
|
+
Parameters.initialSkip
|
|
431
|
+
],
|
|
398
432
|
urlParameters: [
|
|
399
433
|
Parameters.$host,
|
|
400
434
|
Parameters.subscriptionId,
|
|
@@ -415,7 +449,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
415
449
|
bodyMapper: Mappers.CloudError
|
|
416
450
|
}
|
|
417
451
|
},
|
|
418
|
-
queryParameters: [
|
|
452
|
+
queryParameters: [
|
|
453
|
+
Parameters.apiVersion,
|
|
454
|
+
Parameters.pageSize,
|
|
455
|
+
Parameters.isDescending,
|
|
456
|
+
Parameters.initialSkip
|
|
457
|
+
],
|
|
419
458
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
420
459
|
headerParameters: [Parameters.accept],
|
|
421
460
|
serializer
|
|
@@ -453,7 +492,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
453
492
|
bodyMapper: Mappers.CloudError
|
|
454
493
|
}
|
|
455
494
|
},
|
|
456
|
-
queryParameters: [Parameters.apiVersion],
|
|
457
495
|
urlParameters: [
|
|
458
496
|
Parameters.$host,
|
|
459
497
|
Parameters.nextLink,
|
|
@@ -474,7 +512,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
474
512
|
bodyMapper: Mappers.CloudError
|
|
475
513
|
}
|
|
476
514
|
},
|
|
477
|
-
queryParameters: [Parameters.apiVersion],
|
|
478
515
|
urlParameters: [
|
|
479
516
|
Parameters.$host,
|
|
480
517
|
Parameters.nextLink,
|
package/src/operations/index.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export * from "./operations";
|
|
10
10
|
export * from "./workspaces";
|
|
11
11
|
export * from "./scalingPlans";
|
|
12
|
+
export * from "./scalingPlanPooledSchedules";
|
|
12
13
|
export * from "./applicationGroups";
|
|
13
14
|
export * from "./startMenuItems";
|
|
14
15
|
export * from "./applications";
|
|
@@ -18,5 +19,3 @@ export * from "./userSessions";
|
|
|
18
19
|
export * from "./sessionHosts";
|
|
19
20
|
export * from "./msixPackages";
|
|
20
21
|
export * from "./msixImages";
|
|
21
|
-
export * from "./privateEndpointConnections";
|
|
22
|
-
export * from "./privateLinkResources";
|