@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
|
@@ -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 { ScalingPlans } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,10 +17,13 @@ import {
|
|
|
16
17
|
ScalingPlan,
|
|
17
18
|
ScalingPlansListByResourceGroupNextOptionalParams,
|
|
18
19
|
ScalingPlansListByResourceGroupOptionalParams,
|
|
20
|
+
ScalingPlansListByResourceGroupResponse,
|
|
19
21
|
ScalingPlansListBySubscriptionNextOptionalParams,
|
|
20
22
|
ScalingPlansListBySubscriptionOptionalParams,
|
|
23
|
+
ScalingPlansListBySubscriptionResponse,
|
|
21
24
|
ScalingPlansListByHostPoolNextOptionalParams,
|
|
22
25
|
ScalingPlansListByHostPoolOptionalParams,
|
|
26
|
+
ScalingPlansListByHostPoolResponse,
|
|
23
27
|
ScalingPlansGetOptionalParams,
|
|
24
28
|
ScalingPlansGetResponse,
|
|
25
29
|
ScalingPlansCreateOptionalParams,
|
|
@@ -27,9 +31,6 @@ import {
|
|
|
27
31
|
ScalingPlansDeleteOptionalParams,
|
|
28
32
|
ScalingPlansUpdateOptionalParams,
|
|
29
33
|
ScalingPlansUpdateResponse,
|
|
30
|
-
ScalingPlansListByResourceGroupResponse,
|
|
31
|
-
ScalingPlansListBySubscriptionResponse,
|
|
32
|
-
ScalingPlansListByHostPoolResponse,
|
|
33
34
|
ScalingPlansListByResourceGroupNextResponse,
|
|
34
35
|
ScalingPlansListBySubscriptionNextResponse,
|
|
35
36
|
ScalingPlansListByHostPoolNextResponse
|
|
@@ -65,19 +66,33 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
65
66
|
[Symbol.asyncIterator]() {
|
|
66
67
|
return this;
|
|
67
68
|
},
|
|
68
|
-
byPage: () => {
|
|
69
|
-
|
|
69
|
+
byPage: (settings?: PageSettings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
73
|
+
return this.listByResourceGroupPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
77
|
+
);
|
|
70
78
|
}
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
private async *listByResourceGroupPagingPage(
|
|
75
83
|
resourceGroupName: string,
|
|
76
|
-
options?: ScalingPlansListByResourceGroupOptionalParams
|
|
84
|
+
options?: ScalingPlansListByResourceGroupOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
77
86
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
78
|
-
let result
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
let result: ScalingPlansListByResourceGroupResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
81
96
|
while (continuationToken) {
|
|
82
97
|
result = await this._listByResourceGroupNext(
|
|
83
98
|
resourceGroupName,
|
|
@@ -85,7 +100,9 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
85
100
|
options
|
|
86
101
|
);
|
|
87
102
|
continuationToken = result.nextLink;
|
|
88
|
-
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
|
|
@@ -116,22 +133,34 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
116
133
|
[Symbol.asyncIterator]() {
|
|
117
134
|
return this;
|
|
118
135
|
},
|
|
119
|
-
byPage: () => {
|
|
120
|
-
|
|
136
|
+
byPage: (settings?: PageSettings) => {
|
|
137
|
+
if (settings?.maxPageSize) {
|
|
138
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
139
|
+
}
|
|
140
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
121
141
|
}
|
|
122
142
|
};
|
|
123
143
|
}
|
|
124
144
|
|
|
125
145
|
private async *listBySubscriptionPagingPage(
|
|
126
|
-
options?: ScalingPlansListBySubscriptionOptionalParams
|
|
146
|
+
options?: ScalingPlansListBySubscriptionOptionalParams,
|
|
147
|
+
settings?: PageSettings
|
|
127
148
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
128
|
-
let result
|
|
129
|
-
|
|
130
|
-
|
|
149
|
+
let result: ScalingPlansListBySubscriptionResponse;
|
|
150
|
+
let continuationToken = settings?.continuationToken;
|
|
151
|
+
if (!continuationToken) {
|
|
152
|
+
result = await this._listBySubscription(options);
|
|
153
|
+
let page = result.value || [];
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
131
158
|
while (continuationToken) {
|
|
132
159
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
133
160
|
continuationToken = result.nextLink;
|
|
134
|
-
|
|
161
|
+
let page = result.value || [];
|
|
162
|
+
setContinuationToken(page, continuationToken);
|
|
163
|
+
yield page;
|
|
135
164
|
}
|
|
136
165
|
}
|
|
137
166
|
|
|
@@ -166,11 +195,15 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
166
195
|
[Symbol.asyncIterator]() {
|
|
167
196
|
return this;
|
|
168
197
|
},
|
|
169
|
-
byPage: () => {
|
|
198
|
+
byPage: (settings?: PageSettings) => {
|
|
199
|
+
if (settings?.maxPageSize) {
|
|
200
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
201
|
+
}
|
|
170
202
|
return this.listByHostPoolPagingPage(
|
|
171
203
|
resourceGroupName,
|
|
172
204
|
hostPoolName,
|
|
173
|
-
options
|
|
205
|
+
options,
|
|
206
|
+
settings
|
|
174
207
|
);
|
|
175
208
|
}
|
|
176
209
|
};
|
|
@@ -179,15 +212,22 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
179
212
|
private async *listByHostPoolPagingPage(
|
|
180
213
|
resourceGroupName: string,
|
|
181
214
|
hostPoolName: string,
|
|
182
|
-
options?: ScalingPlansListByHostPoolOptionalParams
|
|
215
|
+
options?: ScalingPlansListByHostPoolOptionalParams,
|
|
216
|
+
settings?: PageSettings
|
|
183
217
|
): AsyncIterableIterator<ScalingPlan[]> {
|
|
184
|
-
let result
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
218
|
+
let result: ScalingPlansListByHostPoolResponse;
|
|
219
|
+
let continuationToken = settings?.continuationToken;
|
|
220
|
+
if (!continuationToken) {
|
|
221
|
+
result = await this._listByHostPool(
|
|
222
|
+
resourceGroupName,
|
|
223
|
+
hostPoolName,
|
|
224
|
+
options
|
|
225
|
+
);
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
continuationToken = result.nextLink;
|
|
228
|
+
setContinuationToken(page, continuationToken);
|
|
229
|
+
yield page;
|
|
230
|
+
}
|
|
191
231
|
while (continuationToken) {
|
|
192
232
|
result = await this._listByHostPoolNext(
|
|
193
233
|
resourceGroupName,
|
|
@@ -196,7 +236,9 @@ export class ScalingPlansImpl implements ScalingPlans {
|
|
|
196
236
|
options
|
|
197
237
|
);
|
|
198
238
|
continuationToken = result.nextLink;
|
|
199
|
-
|
|
239
|
+
let page = result.value || [];
|
|
240
|
+
setContinuationToken(page, continuationToken);
|
|
241
|
+
yield page;
|
|
200
242
|
}
|
|
201
243
|
}
|
|
202
244
|
|
|
@@ -489,7 +531,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
489
531
|
bodyMapper: Mappers.CloudError
|
|
490
532
|
}
|
|
491
533
|
},
|
|
492
|
-
queryParameters: [
|
|
534
|
+
queryParameters: [
|
|
535
|
+
Parameters.apiVersion,
|
|
536
|
+
Parameters.pageSize,
|
|
537
|
+
Parameters.isDescending,
|
|
538
|
+
Parameters.initialSkip
|
|
539
|
+
],
|
|
493
540
|
urlParameters: [
|
|
494
541
|
Parameters.$host,
|
|
495
542
|
Parameters.subscriptionId,
|
|
@@ -510,7 +557,12 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
|
510
557
|
bodyMapper: Mappers.CloudError
|
|
511
558
|
}
|
|
512
559
|
},
|
|
513
|
-
queryParameters: [
|
|
560
|
+
queryParameters: [
|
|
561
|
+
Parameters.apiVersion,
|
|
562
|
+
Parameters.pageSize,
|
|
563
|
+
Parameters.isDescending,
|
|
564
|
+
Parameters.initialSkip
|
|
565
|
+
],
|
|
514
566
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
515
567
|
headerParameters: [Parameters.accept],
|
|
516
568
|
serializer
|
|
@@ -527,7 +579,12 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = {
|
|
|
527
579
|
bodyMapper: Mappers.CloudError
|
|
528
580
|
}
|
|
529
581
|
},
|
|
530
|
-
queryParameters: [
|
|
582
|
+
queryParameters: [
|
|
583
|
+
Parameters.apiVersion,
|
|
584
|
+
Parameters.pageSize,
|
|
585
|
+
Parameters.isDescending,
|
|
586
|
+
Parameters.initialSkip
|
|
587
|
+
],
|
|
531
588
|
urlParameters: [
|
|
532
589
|
Parameters.$host,
|
|
533
590
|
Parameters.subscriptionId,
|
|
@@ -548,7 +605,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
548
605
|
bodyMapper: Mappers.CloudError
|
|
549
606
|
}
|
|
550
607
|
},
|
|
551
|
-
queryParameters: [Parameters.apiVersion],
|
|
552
608
|
urlParameters: [
|
|
553
609
|
Parameters.$host,
|
|
554
610
|
Parameters.nextLink,
|
|
@@ -569,7 +625,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
569
625
|
bodyMapper: Mappers.CloudError
|
|
570
626
|
}
|
|
571
627
|
},
|
|
572
|
-
queryParameters: [Parameters.apiVersion],
|
|
573
628
|
urlParameters: [
|
|
574
629
|
Parameters.$host,
|
|
575
630
|
Parameters.nextLink,
|
|
@@ -589,7 +644,6 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = {
|
|
|
589
644
|
bodyMapper: Mappers.CloudError
|
|
590
645
|
}
|
|
591
646
|
},
|
|
592
|
-
queryParameters: [Parameters.apiVersion],
|
|
593
647
|
urlParameters: [
|
|
594
648
|
Parameters.$host,
|
|
595
649
|
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 { SessionHosts } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,12 +17,12 @@ import {
|
|
|
16
17
|
SessionHost,
|
|
17
18
|
SessionHostsListNextOptionalParams,
|
|
18
19
|
SessionHostsListOptionalParams,
|
|
20
|
+
SessionHostsListResponse,
|
|
19
21
|
SessionHostsGetOptionalParams,
|
|
20
22
|
SessionHostsGetResponse,
|
|
21
23
|
SessionHostsDeleteOptionalParams,
|
|
22
24
|
SessionHostsUpdateOptionalParams,
|
|
23
25
|
SessionHostsUpdateResponse,
|
|
24
|
-
SessionHostsListResponse,
|
|
25
26
|
SessionHostsListNextResponse
|
|
26
27
|
} from "../models";
|
|
27
28
|
|
|
@@ -57,8 +58,16 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
hostPoolName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
62
71
|
}
|
|
63
72
|
};
|
|
64
73
|
}
|
|
@@ -66,11 +75,18 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
66
75
|
private async *listPagingPage(
|
|
67
76
|
resourceGroupName: string,
|
|
68
77
|
hostPoolName: string,
|
|
69
|
-
options?: SessionHostsListOptionalParams
|
|
78
|
+
options?: SessionHostsListOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
70
80
|
): AsyncIterableIterator<SessionHost[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
let result: SessionHostsListResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(resourceGroupName, hostPoolName, options);
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
setContinuationToken(page, continuationToken);
|
|
88
|
+
yield page;
|
|
89
|
+
}
|
|
74
90
|
while (continuationToken) {
|
|
75
91
|
result = await this._listNext(
|
|
76
92
|
resourceGroupName,
|
|
@@ -79,7 +95,9 @@ export class SessionHostsImpl implements SessionHosts {
|
|
|
79
95
|
options
|
|
80
96
|
);
|
|
81
97
|
continuationToken = result.nextLink;
|
|
82
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
83
101
|
}
|
|
84
102
|
}
|
|
85
103
|
|
|
@@ -275,7 +293,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
275
293
|
bodyMapper: Mappers.CloudError
|
|
276
294
|
}
|
|
277
295
|
},
|
|
278
|
-
queryParameters: [
|
|
296
|
+
queryParameters: [
|
|
297
|
+
Parameters.apiVersion,
|
|
298
|
+
Parameters.pageSize,
|
|
299
|
+
Parameters.isDescending,
|
|
300
|
+
Parameters.initialSkip
|
|
301
|
+
],
|
|
279
302
|
urlParameters: [
|
|
280
303
|
Parameters.$host,
|
|
281
304
|
Parameters.subscriptionId,
|
|
@@ -296,7 +319,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
296
319
|
bodyMapper: Mappers.CloudError
|
|
297
320
|
}
|
|
298
321
|
},
|
|
299
|
-
queryParameters: [Parameters.apiVersion],
|
|
300
322
|
urlParameters: [
|
|
301
323
|
Parameters.$host,
|
|
302
324
|
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 { StartMenuItems } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -56,11 +57,15 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
56
57
|
[Symbol.asyncIterator]() {
|
|
57
58
|
return this;
|
|
58
59
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
+
byPage: (settings?: PageSettings) => {
|
|
61
|
+
if (settings?.maxPageSize) {
|
|
62
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
63
|
+
}
|
|
60
64
|
return this.listPagingPage(
|
|
61
65
|
resourceGroupName,
|
|
62
66
|
applicationGroupName,
|
|
63
|
-
options
|
|
67
|
+
options,
|
|
68
|
+
settings
|
|
64
69
|
);
|
|
65
70
|
}
|
|
66
71
|
};
|
|
@@ -69,15 +74,22 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
69
74
|
private async *listPagingPage(
|
|
70
75
|
resourceGroupName: string,
|
|
71
76
|
applicationGroupName: string,
|
|
72
|
-
options?: StartMenuItemsListOptionalParams
|
|
77
|
+
options?: StartMenuItemsListOptionalParams,
|
|
78
|
+
settings?: PageSettings
|
|
73
79
|
): AsyncIterableIterator<StartMenuItem[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
let result: StartMenuItemsListResponse;
|
|
81
|
+
let continuationToken = settings?.continuationToken;
|
|
82
|
+
if (!continuationToken) {
|
|
83
|
+
result = await this._list(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
applicationGroupName,
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
81
93
|
while (continuationToken) {
|
|
82
94
|
result = await this._listNext(
|
|
83
95
|
resourceGroupName,
|
|
@@ -86,7 +98,9 @@ export class StartMenuItemsImpl implements StartMenuItems {
|
|
|
86
98
|
options
|
|
87
99
|
);
|
|
88
100
|
continuationToken = result.nextLink;
|
|
89
|
-
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
|
|
@@ -155,7 +169,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
155
169
|
bodyMapper: Mappers.CloudError
|
|
156
170
|
}
|
|
157
171
|
},
|
|
158
|
-
queryParameters: [
|
|
172
|
+
queryParameters: [
|
|
173
|
+
Parameters.apiVersion,
|
|
174
|
+
Parameters.pageSize,
|
|
175
|
+
Parameters.isDescending,
|
|
176
|
+
Parameters.initialSkip
|
|
177
|
+
],
|
|
159
178
|
urlParameters: [
|
|
160
179
|
Parameters.$host,
|
|
161
180
|
Parameters.subscriptionId,
|
|
@@ -176,7 +195,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
176
195
|
bodyMapper: Mappers.CloudError
|
|
177
196
|
}
|
|
178
197
|
},
|
|
179
|
-
queryParameters: [Parameters.apiVersion],
|
|
180
198
|
urlParameters: [
|
|
181
199
|
Parameters.$host,
|
|
182
200
|
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 { UserSessions } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,13 +17,13 @@ import {
|
|
|
16
17
|
UserSession,
|
|
17
18
|
UserSessionsListByHostPoolNextOptionalParams,
|
|
18
19
|
UserSessionsListByHostPoolOptionalParams,
|
|
20
|
+
UserSessionsListByHostPoolResponse,
|
|
19
21
|
UserSessionsListNextOptionalParams,
|
|
20
22
|
UserSessionsListOptionalParams,
|
|
21
|
-
|
|
23
|
+
UserSessionsListResponse,
|
|
22
24
|
UserSessionsGetOptionalParams,
|
|
23
25
|
UserSessionsGetResponse,
|
|
24
26
|
UserSessionsDeleteOptionalParams,
|
|
25
|
-
UserSessionsListResponse,
|
|
26
27
|
UserSessionsDisconnectOptionalParams,
|
|
27
28
|
UserSessionsSendMessageOptionalParams,
|
|
28
29
|
UserSessionsListByHostPoolNextResponse,
|
|
@@ -65,11 +66,15 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
65
66
|
[Symbol.asyncIterator]() {
|
|
66
67
|
return this;
|
|
67
68
|
},
|
|
68
|
-
byPage: () => {
|
|
69
|
+
byPage: (settings?: PageSettings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
69
73
|
return this.listByHostPoolPagingPage(
|
|
70
74
|
resourceGroupName,
|
|
71
75
|
hostPoolName,
|
|
72
|
-
options
|
|
76
|
+
options,
|
|
77
|
+
settings
|
|
73
78
|
);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -78,15 +83,22 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
78
83
|
private async *listByHostPoolPagingPage(
|
|
79
84
|
resourceGroupName: string,
|
|
80
85
|
hostPoolName: string,
|
|
81
|
-
options?: UserSessionsListByHostPoolOptionalParams
|
|
86
|
+
options?: UserSessionsListByHostPoolOptionalParams,
|
|
87
|
+
settings?: PageSettings
|
|
82
88
|
): AsyncIterableIterator<UserSession[]> {
|
|
83
|
-
let result
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
let result: UserSessionsListByHostPoolResponse;
|
|
90
|
+
let continuationToken = settings?.continuationToken;
|
|
91
|
+
if (!continuationToken) {
|
|
92
|
+
result = await this._listByHostPool(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
hostPoolName,
|
|
95
|
+
options
|
|
96
|
+
);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
90
102
|
while (continuationToken) {
|
|
91
103
|
result = await this._listByHostPoolNext(
|
|
92
104
|
resourceGroupName,
|
|
@@ -95,7 +107,9 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
95
107
|
options
|
|
96
108
|
);
|
|
97
109
|
continuationToken = result.nextLink;
|
|
98
|
-
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
99
113
|
}
|
|
100
114
|
}
|
|
101
115
|
|
|
@@ -139,12 +153,16 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
139
153
|
[Symbol.asyncIterator]() {
|
|
140
154
|
return this;
|
|
141
155
|
},
|
|
142
|
-
byPage: () => {
|
|
156
|
+
byPage: (settings?: PageSettings) => {
|
|
157
|
+
if (settings?.maxPageSize) {
|
|
158
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
159
|
+
}
|
|
143
160
|
return this.listPagingPage(
|
|
144
161
|
resourceGroupName,
|
|
145
162
|
hostPoolName,
|
|
146
163
|
sessionHostName,
|
|
147
|
-
options
|
|
164
|
+
options,
|
|
165
|
+
settings
|
|
148
166
|
);
|
|
149
167
|
}
|
|
150
168
|
};
|
|
@@ -154,16 +172,23 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
154
172
|
resourceGroupName: string,
|
|
155
173
|
hostPoolName: string,
|
|
156
174
|
sessionHostName: string,
|
|
157
|
-
options?: UserSessionsListOptionalParams
|
|
175
|
+
options?: UserSessionsListOptionalParams,
|
|
176
|
+
settings?: PageSettings
|
|
158
177
|
): AsyncIterableIterator<UserSession[]> {
|
|
159
|
-
let result
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
178
|
+
let result: UserSessionsListResponse;
|
|
179
|
+
let continuationToken = settings?.continuationToken;
|
|
180
|
+
if (!continuationToken) {
|
|
181
|
+
result = await this._list(
|
|
182
|
+
resourceGroupName,
|
|
183
|
+
hostPoolName,
|
|
184
|
+
sessionHostName,
|
|
185
|
+
options
|
|
186
|
+
);
|
|
187
|
+
let page = result.value || [];
|
|
188
|
+
continuationToken = result.nextLink;
|
|
189
|
+
setContinuationToken(page, continuationToken);
|
|
190
|
+
yield page;
|
|
191
|
+
}
|
|
167
192
|
while (continuationToken) {
|
|
168
193
|
result = await this._listNext(
|
|
169
194
|
resourceGroupName,
|
|
@@ -173,7 +198,9 @@ export class UserSessionsImpl implements UserSessions {
|
|
|
173
198
|
options
|
|
174
199
|
);
|
|
175
200
|
continuationToken = result.nextLink;
|
|
176
|
-
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
setContinuationToken(page, continuationToken);
|
|
203
|
+
yield page;
|
|
177
204
|
}
|
|
178
205
|
}
|
|
179
206
|
|
|
@@ -392,7 +419,13 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = {
|
|
|
392
419
|
bodyMapper: Mappers.CloudError
|
|
393
420
|
}
|
|
394
421
|
},
|
|
395
|
-
queryParameters: [
|
|
422
|
+
queryParameters: [
|
|
423
|
+
Parameters.apiVersion,
|
|
424
|
+
Parameters.pageSize,
|
|
425
|
+
Parameters.isDescending,
|
|
426
|
+
Parameters.initialSkip,
|
|
427
|
+
Parameters.filter
|
|
428
|
+
],
|
|
396
429
|
urlParameters: [
|
|
397
430
|
Parameters.$host,
|
|
398
431
|
Parameters.subscriptionId,
|
|
@@ -461,7 +494,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
461
494
|
bodyMapper: Mappers.CloudError
|
|
462
495
|
}
|
|
463
496
|
},
|
|
464
|
-
queryParameters: [
|
|
497
|
+
queryParameters: [
|
|
498
|
+
Parameters.apiVersion,
|
|
499
|
+
Parameters.pageSize,
|
|
500
|
+
Parameters.isDescending,
|
|
501
|
+
Parameters.initialSkip
|
|
502
|
+
],
|
|
465
503
|
urlParameters: [
|
|
466
504
|
Parameters.$host,
|
|
467
505
|
Parameters.subscriptionId,
|
|
@@ -529,7 +567,6 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = {
|
|
|
529
567
|
bodyMapper: Mappers.CloudError
|
|
530
568
|
}
|
|
531
569
|
},
|
|
532
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
533
570
|
urlParameters: [
|
|
534
571
|
Parameters.$host,
|
|
535
572
|
Parameters.nextLink,
|
|
@@ -551,7 +588,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
551
588
|
bodyMapper: Mappers.CloudError
|
|
552
589
|
}
|
|
553
590
|
},
|
|
554
|
-
queryParameters: [Parameters.apiVersion],
|
|
555
591
|
urlParameters: [
|
|
556
592
|
Parameters.$host,
|
|
557
593
|
Parameters.nextLink,
|