@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 { MsixImages } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -60,12 +61,16 @@ export class MsixImagesImpl implements MsixImages {
|
|
|
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.expandPagingPage(
|
|
65
69
|
resourceGroupName,
|
|
66
70
|
hostPoolName,
|
|
67
71
|
msixImageURI,
|
|
68
|
-
options
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
69
74
|
);
|
|
70
75
|
}
|
|
71
76
|
};
|
|
@@ -75,16 +80,23 @@ export class MsixImagesImpl implements MsixImages {
|
|
|
75
80
|
resourceGroupName: string,
|
|
76
81
|
hostPoolName: string,
|
|
77
82
|
msixImageURI: MsixImageURI,
|
|
78
|
-
options?: MsixImagesExpandOptionalParams
|
|
83
|
+
options?: MsixImagesExpandOptionalParams,
|
|
84
|
+
settings?: PageSettings
|
|
79
85
|
): AsyncIterableIterator<ExpandMsixImage[]> {
|
|
80
|
-
let result
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
let result: MsixImagesExpandResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._expand(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
hostPoolName,
|
|
92
|
+
msixImageURI,
|
|
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._expandNext(
|
|
90
102
|
resourceGroupName,
|
|
@@ -94,7 +106,9 @@ export class MsixImagesImpl implements MsixImages {
|
|
|
94
106
|
options
|
|
95
107
|
);
|
|
96
108
|
continuationToken = result.nextLink;
|
|
97
|
-
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
98
112
|
}
|
|
99
113
|
}
|
|
100
114
|
|
|
@@ -192,7 +206,6 @@ const expandNextOperationSpec: coreClient.OperationSpec = {
|
|
|
192
206
|
bodyMapper: Mappers.CloudError
|
|
193
207
|
}
|
|
194
208
|
},
|
|
195
|
-
queryParameters: [Parameters.apiVersion],
|
|
196
209
|
urlParameters: [
|
|
197
210
|
Parameters.$host,
|
|
198
211
|
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 { MsixPackages } 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
|
MsixPackage,
|
|
17
18
|
MsixPackagesListNextOptionalParams,
|
|
18
19
|
MsixPackagesListOptionalParams,
|
|
20
|
+
MsixPackagesListResponse,
|
|
19
21
|
MsixPackagesGetOptionalParams,
|
|
20
22
|
MsixPackagesGetResponse,
|
|
21
23
|
MsixPackagesCreateOrUpdateOptionalParams,
|
|
@@ -23,7 +25,6 @@ import {
|
|
|
23
25
|
MsixPackagesDeleteOptionalParams,
|
|
24
26
|
MsixPackagesUpdateOptionalParams,
|
|
25
27
|
MsixPackagesUpdateResponse,
|
|
26
|
-
MsixPackagesListResponse,
|
|
27
28
|
MsixPackagesListNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -59,8 +60,16 @@ export class MsixPackagesImpl implements MsixPackages {
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
-
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
67
|
+
return this.listPagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
hostPoolName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
64
73
|
}
|
|
65
74
|
};
|
|
66
75
|
}
|
|
@@ -68,11 +77,18 @@ export class MsixPackagesImpl implements MsixPackages {
|
|
|
68
77
|
private async *listPagingPage(
|
|
69
78
|
resourceGroupName: string,
|
|
70
79
|
hostPoolName: string,
|
|
71
|
-
options?: MsixPackagesListOptionalParams
|
|
80
|
+
options?: MsixPackagesListOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
72
82
|
): AsyncIterableIterator<MsixPackage[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
let result: MsixPackagesListResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._list(resourceGroupName, hostPoolName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
76
92
|
while (continuationToken) {
|
|
77
93
|
result = await this._listNext(
|
|
78
94
|
resourceGroupName,
|
|
@@ -81,7 +97,9 @@ export class MsixPackagesImpl implements MsixPackages {
|
|
|
81
97
|
options
|
|
82
98
|
);
|
|
83
99
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
85
103
|
}
|
|
86
104
|
}
|
|
87
105
|
|
|
@@ -336,7 +354,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
336
354
|
bodyMapper: Mappers.CloudError
|
|
337
355
|
}
|
|
338
356
|
},
|
|
339
|
-
queryParameters: [
|
|
357
|
+
queryParameters: [
|
|
358
|
+
Parameters.apiVersion,
|
|
359
|
+
Parameters.pageSize,
|
|
360
|
+
Parameters.isDescending,
|
|
361
|
+
Parameters.initialSkip
|
|
362
|
+
],
|
|
340
363
|
urlParameters: [
|
|
341
364
|
Parameters.$host,
|
|
342
365
|
Parameters.subscriptionId,
|
|
@@ -357,7 +380,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
357
380
|
bodyMapper: Mappers.CloudError
|
|
358
381
|
}
|
|
359
382
|
},
|
|
360
|
-
queryParameters: [Parameters.apiVersion],
|
|
361
383
|
urlParameters: [
|
|
362
384
|
Parameters.$host,
|
|
363
385
|
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 { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<ResourceProviderOperation[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -130,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
130
143
|
bodyMapper: Mappers.CloudError
|
|
131
144
|
}
|
|
132
145
|
},
|
|
133
|
-
queryParameters: [Parameters.apiVersion],
|
|
134
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
147
|
headerParameters: [Parameters.accept],
|
|
136
148
|
serializer
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { ScalingPlanPooledSchedules } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
|
|
16
|
+
import {
|
|
17
|
+
ScalingPlanPooledSchedule,
|
|
18
|
+
ScalingPlanPooledSchedulesListNextOptionalParams,
|
|
19
|
+
ScalingPlanPooledSchedulesListOptionalParams,
|
|
20
|
+
ScalingPlanPooledSchedulesListResponse,
|
|
21
|
+
ScalingPlanPooledSchedulesGetOptionalParams,
|
|
22
|
+
ScalingPlanPooledSchedulesGetResponse,
|
|
23
|
+
ScalingPlanPooledSchedulesCreateOptionalParams,
|
|
24
|
+
ScalingPlanPooledSchedulesCreateResponse,
|
|
25
|
+
ScalingPlanPooledSchedulesDeleteOptionalParams,
|
|
26
|
+
ScalingPlanPooledSchedulesUpdateOptionalParams,
|
|
27
|
+
ScalingPlanPooledSchedulesUpdateResponse,
|
|
28
|
+
ScalingPlanPooledSchedulesListNextResponse
|
|
29
|
+
} from "../models";
|
|
30
|
+
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing ScalingPlanPooledSchedules operations. */
|
|
33
|
+
export class ScalingPlanPooledSchedulesImpl
|
|
34
|
+
implements ScalingPlanPooledSchedules {
|
|
35
|
+
private readonly client: DesktopVirtualizationAPIClient;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initialize a new instance of the class ScalingPlanPooledSchedules class.
|
|
39
|
+
* @param client Reference to the service client
|
|
40
|
+
*/
|
|
41
|
+
constructor(client: DesktopVirtualizationAPIClient) {
|
|
42
|
+
this.client = client;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* List ScalingPlanPooledSchedules.
|
|
47
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
48
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
public list(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
scalingPlanName: string,
|
|
54
|
+
options?: ScalingPlanPooledSchedulesListOptionalParams
|
|
55
|
+
): PagedAsyncIterableIterator<ScalingPlanPooledSchedule> {
|
|
56
|
+
const iter = this.listPagingAll(
|
|
57
|
+
resourceGroupName,
|
|
58
|
+
scalingPlanName,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
return {
|
|
62
|
+
next() {
|
|
63
|
+
return iter.next();
|
|
64
|
+
},
|
|
65
|
+
[Symbol.asyncIterator]() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
72
|
+
return this.listPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
scalingPlanName,
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listPagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
scalingPlanName: string,
|
|
85
|
+
options?: ScalingPlanPooledSchedulesListOptionalParams,
|
|
86
|
+
settings?: PageSettings
|
|
87
|
+
): AsyncIterableIterator<ScalingPlanPooledSchedule[]> {
|
|
88
|
+
let result: ScalingPlanPooledSchedulesListResponse;
|
|
89
|
+
let continuationToken = settings?.continuationToken;
|
|
90
|
+
if (!continuationToken) {
|
|
91
|
+
result = await this._list(resourceGroupName, scalingPlanName, options);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
97
|
+
while (continuationToken) {
|
|
98
|
+
result = await this._listNext(
|
|
99
|
+
resourceGroupName,
|
|
100
|
+
scalingPlanName,
|
|
101
|
+
continuationToken,
|
|
102
|
+
options
|
|
103
|
+
);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
private async *listPagingAll(
|
|
112
|
+
resourceGroupName: string,
|
|
113
|
+
scalingPlanName: string,
|
|
114
|
+
options?: ScalingPlanPooledSchedulesListOptionalParams
|
|
115
|
+
): AsyncIterableIterator<ScalingPlanPooledSchedule> {
|
|
116
|
+
for await (const page of this.listPagingPage(
|
|
117
|
+
resourceGroupName,
|
|
118
|
+
scalingPlanName,
|
|
119
|
+
options
|
|
120
|
+
)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Get a ScalingPlanPooledSchedule.
|
|
127
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
128
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
129
|
+
* @param scalingPlanScheduleName The name of the ScalingPlanSchedule
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
get(
|
|
133
|
+
resourceGroupName: string,
|
|
134
|
+
scalingPlanName: string,
|
|
135
|
+
scalingPlanScheduleName: string,
|
|
136
|
+
options?: ScalingPlanPooledSchedulesGetOptionalParams
|
|
137
|
+
): Promise<ScalingPlanPooledSchedulesGetResponse> {
|
|
138
|
+
return this.client.sendOperationRequest(
|
|
139
|
+
{ resourceGroupName, scalingPlanName, scalingPlanScheduleName, options },
|
|
140
|
+
getOperationSpec
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Create or update a ScalingPlanPooledSchedule.
|
|
146
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
147
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
148
|
+
* @param scalingPlanScheduleName The name of the ScalingPlanSchedule
|
|
149
|
+
* @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule definitions.
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
create(
|
|
153
|
+
resourceGroupName: string,
|
|
154
|
+
scalingPlanName: string,
|
|
155
|
+
scalingPlanScheduleName: string,
|
|
156
|
+
scalingPlanSchedule: ScalingPlanPooledSchedule,
|
|
157
|
+
options?: ScalingPlanPooledSchedulesCreateOptionalParams
|
|
158
|
+
): Promise<ScalingPlanPooledSchedulesCreateResponse> {
|
|
159
|
+
return this.client.sendOperationRequest(
|
|
160
|
+
{
|
|
161
|
+
resourceGroupName,
|
|
162
|
+
scalingPlanName,
|
|
163
|
+
scalingPlanScheduleName,
|
|
164
|
+
scalingPlanSchedule,
|
|
165
|
+
options
|
|
166
|
+
},
|
|
167
|
+
createOperationSpec
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Remove a ScalingPlanPooledSchedule.
|
|
173
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
174
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
175
|
+
* @param scalingPlanScheduleName The name of the ScalingPlanSchedule
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
delete(
|
|
179
|
+
resourceGroupName: string,
|
|
180
|
+
scalingPlanName: string,
|
|
181
|
+
scalingPlanScheduleName: string,
|
|
182
|
+
options?: ScalingPlanPooledSchedulesDeleteOptionalParams
|
|
183
|
+
): Promise<void> {
|
|
184
|
+
return this.client.sendOperationRequest(
|
|
185
|
+
{ resourceGroupName, scalingPlanName, scalingPlanScheduleName, options },
|
|
186
|
+
deleteOperationSpec
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Update a ScalingPlanPooledSchedule.
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
194
|
+
* @param scalingPlanScheduleName The name of the ScalingPlanSchedule
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
update(
|
|
198
|
+
resourceGroupName: string,
|
|
199
|
+
scalingPlanName: string,
|
|
200
|
+
scalingPlanScheduleName: string,
|
|
201
|
+
options?: ScalingPlanPooledSchedulesUpdateOptionalParams
|
|
202
|
+
): Promise<ScalingPlanPooledSchedulesUpdateResponse> {
|
|
203
|
+
return this.client.sendOperationRequest(
|
|
204
|
+
{ resourceGroupName, scalingPlanName, scalingPlanScheduleName, options },
|
|
205
|
+
updateOperationSpec
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* List ScalingPlanPooledSchedules.
|
|
211
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
212
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
213
|
+
* @param options The options parameters.
|
|
214
|
+
*/
|
|
215
|
+
private _list(
|
|
216
|
+
resourceGroupName: string,
|
|
217
|
+
scalingPlanName: string,
|
|
218
|
+
options?: ScalingPlanPooledSchedulesListOptionalParams
|
|
219
|
+
): Promise<ScalingPlanPooledSchedulesListResponse> {
|
|
220
|
+
return this.client.sendOperationRequest(
|
|
221
|
+
{ resourceGroupName, scalingPlanName, options },
|
|
222
|
+
listOperationSpec
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* ListNext
|
|
228
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
229
|
+
* @param scalingPlanName The name of the scaling plan.
|
|
230
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
231
|
+
* @param options The options parameters.
|
|
232
|
+
*/
|
|
233
|
+
private _listNext(
|
|
234
|
+
resourceGroupName: string,
|
|
235
|
+
scalingPlanName: string,
|
|
236
|
+
nextLink: string,
|
|
237
|
+
options?: ScalingPlanPooledSchedulesListNextOptionalParams
|
|
238
|
+
): Promise<ScalingPlanPooledSchedulesListNextResponse> {
|
|
239
|
+
return this.client.sendOperationRequest(
|
|
240
|
+
{ resourceGroupName, scalingPlanName, nextLink, options },
|
|
241
|
+
listNextOperationSpec
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
// Operation Specifications
|
|
246
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
247
|
+
|
|
248
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
249
|
+
path:
|
|
250
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}",
|
|
251
|
+
httpMethod: "GET",
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
bodyMapper: Mappers.ScalingPlanPooledSchedule
|
|
255
|
+
},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.CloudError
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.subscriptionId,
|
|
264
|
+
Parameters.resourceGroupName,
|
|
265
|
+
Parameters.scalingPlanName,
|
|
266
|
+
Parameters.scalingPlanScheduleName
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
272
|
+
path:
|
|
273
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}",
|
|
274
|
+
httpMethod: "PUT",
|
|
275
|
+
responses: {
|
|
276
|
+
200: {
|
|
277
|
+
bodyMapper: Mappers.ScalingPlanPooledSchedule
|
|
278
|
+
},
|
|
279
|
+
201: {
|
|
280
|
+
bodyMapper: Mappers.ScalingPlanPooledSchedule
|
|
281
|
+
},
|
|
282
|
+
default: {
|
|
283
|
+
bodyMapper: Mappers.CloudError
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
requestBody: Parameters.scalingPlanSchedule,
|
|
287
|
+
queryParameters: [Parameters.apiVersion],
|
|
288
|
+
urlParameters: [
|
|
289
|
+
Parameters.$host,
|
|
290
|
+
Parameters.subscriptionId,
|
|
291
|
+
Parameters.resourceGroupName,
|
|
292
|
+
Parameters.scalingPlanName,
|
|
293
|
+
Parameters.scalingPlanScheduleName
|
|
294
|
+
],
|
|
295
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
296
|
+
mediaType: "json",
|
|
297
|
+
serializer
|
|
298
|
+
};
|
|
299
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
300
|
+
path:
|
|
301
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}",
|
|
302
|
+
httpMethod: "DELETE",
|
|
303
|
+
responses: {
|
|
304
|
+
200: {},
|
|
305
|
+
204: {},
|
|
306
|
+
default: {
|
|
307
|
+
bodyMapper: Mappers.CloudError
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
|
+
urlParameters: [
|
|
312
|
+
Parameters.$host,
|
|
313
|
+
Parameters.subscriptionId,
|
|
314
|
+
Parameters.resourceGroupName,
|
|
315
|
+
Parameters.scalingPlanName,
|
|
316
|
+
Parameters.scalingPlanScheduleName
|
|
317
|
+
],
|
|
318
|
+
headerParameters: [Parameters.accept],
|
|
319
|
+
serializer
|
|
320
|
+
};
|
|
321
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
322
|
+
path:
|
|
323
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}",
|
|
324
|
+
httpMethod: "PATCH",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
bodyMapper: Mappers.ScalingPlanPooledSchedule
|
|
328
|
+
},
|
|
329
|
+
default: {
|
|
330
|
+
bodyMapper: Mappers.CloudError
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
requestBody: Parameters.scalingPlanSchedule1,
|
|
334
|
+
queryParameters: [Parameters.apiVersion],
|
|
335
|
+
urlParameters: [
|
|
336
|
+
Parameters.$host,
|
|
337
|
+
Parameters.subscriptionId,
|
|
338
|
+
Parameters.resourceGroupName,
|
|
339
|
+
Parameters.scalingPlanName,
|
|
340
|
+
Parameters.scalingPlanScheduleName
|
|
341
|
+
],
|
|
342
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
343
|
+
mediaType: "json",
|
|
344
|
+
serializer
|
|
345
|
+
};
|
|
346
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
347
|
+
path:
|
|
348
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules",
|
|
349
|
+
httpMethod: "GET",
|
|
350
|
+
responses: {
|
|
351
|
+
200: {
|
|
352
|
+
bodyMapper: Mappers.ScalingPlanPooledScheduleList
|
|
353
|
+
},
|
|
354
|
+
default: {
|
|
355
|
+
bodyMapper: Mappers.CloudError
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
queryParameters: [
|
|
359
|
+
Parameters.apiVersion,
|
|
360
|
+
Parameters.pageSize,
|
|
361
|
+
Parameters.isDescending,
|
|
362
|
+
Parameters.initialSkip
|
|
363
|
+
],
|
|
364
|
+
urlParameters: [
|
|
365
|
+
Parameters.$host,
|
|
366
|
+
Parameters.subscriptionId,
|
|
367
|
+
Parameters.resourceGroupName,
|
|
368
|
+
Parameters.scalingPlanName
|
|
369
|
+
],
|
|
370
|
+
headerParameters: [Parameters.accept],
|
|
371
|
+
serializer
|
|
372
|
+
};
|
|
373
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
374
|
+
path: "{nextLink}",
|
|
375
|
+
httpMethod: "GET",
|
|
376
|
+
responses: {
|
|
377
|
+
200: {
|
|
378
|
+
bodyMapper: Mappers.ScalingPlanPooledScheduleList
|
|
379
|
+
},
|
|
380
|
+
default: {
|
|
381
|
+
bodyMapper: Mappers.CloudError
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
urlParameters: [
|
|
385
|
+
Parameters.$host,
|
|
386
|
+
Parameters.nextLink,
|
|
387
|
+
Parameters.subscriptionId,
|
|
388
|
+
Parameters.resourceGroupName,
|
|
389
|
+
Parameters.scalingPlanName
|
|
390
|
+
],
|
|
391
|
+
headerParameters: [Parameters.accept],
|
|
392
|
+
serializer
|
|
393
|
+
};
|