@azure/arm-labservices 2.0.0 → 3.0.0-beta.1
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 +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +70 -78
- package/dist/index.js +6456 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/deleteLab.d.ts +2 -0
- package/dist-esm/samples-dev/deleteLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteLab.js +31 -0
- package/dist-esm/samples-dev/deleteLab.js.map +1 -0
- package/dist-esm/samples-dev/deleteLabPlan.d.ts +2 -0
- package/dist-esm/samples-dev/deleteLabPlan.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteLabPlan.js +31 -0
- package/dist-esm/samples-dev/deleteLabPlan.js.map +1 -0
- package/dist-esm/samples-dev/deleteSchedule.d.ts +2 -0
- package/dist-esm/samples-dev/deleteSchedule.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteSchedule.js +32 -0
- package/dist-esm/samples-dev/deleteSchedule.js.map +1 -0
- package/dist-esm/samples-dev/deleteUser.d.ts +2 -0
- package/dist-esm/samples-dev/deleteUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteUser.js +32 -0
- package/dist-esm/samples-dev/deleteUser.js.map +1 -0
- package/dist-esm/samples-dev/getImage.d.ts +2 -0
- package/dist-esm/samples-dev/getImage.d.ts.map +1 -0
- package/dist-esm/samples-dev/getImage.js +32 -0
- package/dist-esm/samples-dev/getImage.js.map +1 -0
- package/dist-esm/samples-dev/getLab.d.ts +2 -0
- package/dist-esm/samples-dev/getLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/getLab.js +31 -0
- package/dist-esm/samples-dev/getLab.js.map +1 -0
- package/dist-esm/samples-dev/getLabPlan.d.ts +2 -0
- package/dist-esm/samples-dev/getLabPlan.d.ts.map +1 -0
- package/dist-esm/samples-dev/getLabPlan.js +31 -0
- package/dist-esm/samples-dev/getLabPlan.js.map +1 -0
- package/dist-esm/samples-dev/getListSchedule.d.ts +2 -0
- package/dist-esm/samples-dev/getListSchedule.d.ts.map +1 -0
- package/dist-esm/samples-dev/getListSchedule.js +45 -0
- package/dist-esm/samples-dev/getListSchedule.js.map +1 -0
- package/dist-esm/samples-dev/getOperationResult.d.ts +2 -0
- package/dist-esm/samples-dev/getOperationResult.d.ts.map +1 -0
- package/dist-esm/samples-dev/getOperationResult.js +30 -0
- package/dist-esm/samples-dev/getOperationResult.js.map +1 -0
- package/dist-esm/samples-dev/getSchedule.d.ts +2 -0
- package/dist-esm/samples-dev/getSchedule.d.ts.map +1 -0
- package/dist-esm/samples-dev/getSchedule.js +32 -0
- package/dist-esm/samples-dev/getSchedule.js.map +1 -0
- package/dist-esm/samples-dev/getUser.d.ts +2 -0
- package/dist-esm/samples-dev/getUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/getUser.js +32 -0
- package/dist-esm/samples-dev/getUser.js.map +1 -0
- package/dist-esm/samples-dev/getVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/getVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/getVirtualMachine.js +32 -0
- package/dist-esm/samples-dev/getVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/inviteUser.d.ts +2 -0
- package/dist-esm/samples-dev/inviteUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/inviteUser.js +33 -0
- package/dist-esm/samples-dev/inviteUser.js.map +1 -0
- package/dist-esm/samples-dev/listImages.d.ts +2 -0
- package/dist-esm/samples-dev/listImages.d.ts.map +1 -0
- package/dist-esm/samples-dev/listImages.js +45 -0
- package/dist-esm/samples-dev/listImages.js.map +1 -0
- package/dist-esm/samples-dev/listLabPlans.d.ts +2 -0
- package/dist-esm/samples-dev/listLabPlans.d.ts.map +1 -0
- package/dist-esm/samples-dev/listLabPlans.js +43 -0
- package/dist-esm/samples-dev/listLabPlans.js.map +1 -0
- package/dist-esm/samples-dev/listLabs.d.ts +2 -0
- package/dist-esm/samples-dev/listLabs.d.ts.map +1 -0
- package/dist-esm/samples-dev/listLabs.js +43 -0
- package/dist-esm/samples-dev/listLabs.js.map +1 -0
- package/dist-esm/samples-dev/listOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listOperations.js +43 -0
- package/dist-esm/samples-dev/listOperations.js.map +1 -0
- package/dist-esm/samples-dev/listResourceGroupLabPlans.d.ts +2 -0
- package/dist-esm/samples-dev/listResourceGroupLabPlans.d.ts.map +1 -0
- package/dist-esm/samples-dev/listResourceGroupLabPlans.js +44 -0
- package/dist-esm/samples-dev/listResourceGroupLabPlans.js.map +1 -0
- package/dist-esm/samples-dev/listResourceGroupLabs.d.ts +2 -0
- package/dist-esm/samples-dev/listResourceGroupLabs.d.ts.map +1 -0
- package/dist-esm/samples-dev/listResourceGroupLabs.js +44 -0
- package/dist-esm/samples-dev/listResourceGroupLabs.js.map +1 -0
- package/dist-esm/samples-dev/listSkus.d.ts +2 -0
- package/dist-esm/samples-dev/listSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSkus.js +43 -0
- package/dist-esm/samples-dev/listSkus.js.map +1 -0
- package/dist-esm/samples-dev/listUsages.d.ts +2 -0
- package/dist-esm/samples-dev/listUsages.d.ts.map +1 -0
- package/dist-esm/samples-dev/listUsages.js +44 -0
- package/dist-esm/samples-dev/listUsages.js.map +1 -0
- package/dist-esm/samples-dev/listUser.d.ts +2 -0
- package/dist-esm/samples-dev/listUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/listUser.js +45 -0
- package/dist-esm/samples-dev/listUser.js.map +1 -0
- package/dist-esm/samples-dev/listVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/listVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/listVirtualMachine.js +45 -0
- package/dist-esm/samples-dev/listVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/patchImage.d.ts +2 -0
- package/dist-esm/samples-dev/patchImage.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchImage.js +33 -0
- package/dist-esm/samples-dev/patchImage.js.map +1 -0
- package/dist-esm/samples-dev/patchLab.d.ts +2 -0
- package/dist-esm/samples-dev/patchLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchLab.js +32 -0
- package/dist-esm/samples-dev/patchLab.js.map +1 -0
- package/dist-esm/samples-dev/patchLabPlan.d.ts +2 -0
- package/dist-esm/samples-dev/patchLabPlan.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchLabPlan.js +39 -0
- package/dist-esm/samples-dev/patchLabPlan.js.map +1 -0
- package/dist-esm/samples-dev/patchSchedule.d.ts +2 -0
- package/dist-esm/samples-dev/patchSchedule.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchSchedule.js +39 -0
- package/dist-esm/samples-dev/patchSchedule.js.map +1 -0
- package/dist-esm/samples-dev/patchUser.d.ts +2 -0
- package/dist-esm/samples-dev/patchUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchUser.js +33 -0
- package/dist-esm/samples-dev/patchUser.js.map +1 -0
- package/dist-esm/samples-dev/publishLab.d.ts +2 -0
- package/dist-esm/samples-dev/publishLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/publishLab.js +31 -0
- package/dist-esm/samples-dev/publishLab.js.map +1 -0
- package/dist-esm/samples-dev/putImage.d.ts +2 -0
- package/dist-esm/samples-dev/putImage.d.ts.map +1 -0
- package/dist-esm/samples-dev/putImage.js +33 -0
- package/dist-esm/samples-dev/putImage.js.map +1 -0
- package/dist-esm/samples-dev/putLab.d.ts +2 -0
- package/dist-esm/samples-dev/putLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/putLab.js +70 -0
- package/dist-esm/samples-dev/putLab.js.map +1 -0
- package/dist-esm/samples-dev/putLabPlan.d.ts +2 -0
- package/dist-esm/samples-dev/putLabPlan.d.ts.map +1 -0
- package/dist-esm/samples-dev/putLabPlan.js +58 -0
- package/dist-esm/samples-dev/putLabPlan.js.map +1 -0
- package/dist-esm/samples-dev/putSchedule.d.ts +2 -0
- package/dist-esm/samples-dev/putSchedule.d.ts.map +1 -0
- package/dist-esm/samples-dev/putSchedule.js +43 -0
- package/dist-esm/samples-dev/putSchedule.js.map +1 -0
- package/dist-esm/samples-dev/putUser.d.ts +2 -0
- package/dist-esm/samples-dev/putUser.d.ts.map +1 -0
- package/dist-esm/samples-dev/putUser.js +36 -0
- package/dist-esm/samples-dev/putUser.js.map +1 -0
- package/dist-esm/samples-dev/redeployVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/redeployVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/redeployVirtualMachine.js +32 -0
- package/dist-esm/samples-dev/redeployVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/reimageVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/reimageVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/reimageVirtualMachine.js +32 -0
- package/dist-esm/samples-dev/reimageVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/resetPasswordVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/resetPasswordVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/resetPasswordVirtualMachine.js +36 -0
- package/dist-esm/samples-dev/resetPasswordVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/saveImageVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/saveImageVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/saveImageVirtualMachine.js +35 -0
- package/dist-esm/samples-dev/saveImageVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/startVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/startVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/startVirtualMachine.js +32 -0
- package/dist-esm/samples-dev/startVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/stopVirtualMachine.d.ts +2 -0
- package/dist-esm/samples-dev/stopVirtualMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/stopVirtualMachine.js +32 -0
- package/dist-esm/samples-dev/stopVirtualMachine.js.map +1 -0
- package/dist-esm/samples-dev/syncLab.d.ts +2 -0
- package/dist-esm/samples-dev/syncLab.d.ts.map +1 -0
- package/dist-esm/samples-dev/syncLab.js +31 -0
- package/dist-esm/samples-dev/syncLab.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/labServicesClient.d.ts +27 -0
- package/dist-esm/src/labServicesClient.d.ts.map +1 -0
- package/dist-esm/src/labServicesClient.js +60 -0
- package/dist-esm/src/labServicesClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1638 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +60 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +67 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1768 -1224
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +31 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +270 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/images.d.ts +70 -0
- package/dist-esm/src/operations/images.d.ts.map +1 -0
- package/dist-esm/src/operations/images.js +245 -0
- package/dist-esm/src/operations/images.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +6 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +18 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/labPlans.d.ts +134 -0
- package/dist-esm/src/operations/labPlans.d.ts.map +1 -0
- package/dist-esm/src/operations/labPlans.js +590 -0
- package/dist-esm/src/operations/labPlans.js.map +1 -0
- package/dist-esm/src/operations/labs.d.ts +146 -0
- package/dist-esm/src/operations/labs.d.ts.map +1 -0
- package/dist-esm/src/operations/labs.js +658 -0
- package/dist-esm/src/operations/labs.js.map +1 -0
- package/dist-esm/src/operations/operationResults.d.ts +19 -0
- package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
- package/dist-esm/src/operations/operationResults.js +52 -0
- package/dist-esm/src/operations/operationResults.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/schedules.d.ts +94 -0
- package/dist-esm/src/operations/schedules.d.ts.map +1 -0
- package/dist-esm/src/operations/schedules.js +332 -0
- package/dist-esm/src/operations/schedules.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +32 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +124 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +35 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +132 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operations/users.d.ts +138 -0
- package/dist-esm/src/operations/users.d.ts.map +1 -0
- package/dist-esm/src/operations/users.js +520 -0
- package/dist-esm/src/operations/users.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +158 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +579 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
- package/{src/models/operationResultsMappers.ts → dist-esm/src/operationsInterfaces/images.js} +2 -7
- package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +18 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/labPlans.d.ts +98 -0
- package/dist-esm/src/operationsInterfaces/labPlans.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/labPlans.js} +2 -9
- package/dist-esm/src/operationsInterfaces/labPlans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/labs.d.ts +110 -0
- package/dist-esm/src/operationsInterfaces/labs.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/labs.js} +2 -1
- package/dist-esm/src/operationsInterfaces/labs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
- package/{esm/models/operationResultsMappers.js → dist-esm/src/operationsInterfaces/operationResults.js} +2 -2
- package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/schedules.d.ts +67 -0
- package/dist-esm/src/operationsInterfaces/schedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/schedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/schedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/users.d.ts +111 -0
- package/dist-esm/src/operationsInterfaces/users.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/users.js +9 -0
- package/dist-esm/src/operationsInterfaces/users.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +131 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +77 -33
- package/review/arm-labservices.api.md +1208 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/labServicesClient.ts +101 -47
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1402 -1988
- package/src/models/mappers.ts +1816 -1232
- package/src/models/parameters.ts +199 -68
- package/src/operations/images.ts +216 -245
- package/src/operations/index.ts +7 -6
- package/src/operations/labPlans.ts +593 -370
- package/src/operations/labs.ts +656 -394
- package/src/operations/operationResults.ts +35 -48
- package/src/operations/operations.ts +85 -75
- package/src/operations/schedules.ts +301 -297
- package/src/operations/skus.ts +139 -0
- package/src/operations/usages.ts +162 -0
- package/src/operations/users.ts +548 -325
- package/src/operations/virtualMachines.ts +614 -350
- package/src/operationsInterfaces/images.ts +83 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -7
- package/src/operationsInterfaces/labPlans.ts +178 -0
- package/src/operationsInterfaces/labs.ts +193 -0
- package/src/operationsInterfaces/operationResults.ts +25 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/schedules.ts +118 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/usages.ts +24 -0
- package/src/operationsInterfaces/users.ts +195 -0
- package/src/operationsInterfaces/virtualMachines.ts +212 -0
- package/tsconfig.json +5 -4
- package/types/arm-labservices.d.ts +2438 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-labservices.js +0 -5130
- package/dist/arm-labservices.js.map +0 -1
- package/dist/arm-labservices.min.js +0 -1
- package/dist/arm-labservices.min.js.map +0 -1
- package/esm/labServicesClient.d.ts +0 -31
- package/esm/labServicesClient.d.ts.map +0 -1
- package/esm/labServicesClient.js +0 -44
- package/esm/labServicesClient.js.map +0 -1
- package/esm/labServicesClientContext.d.ts +0 -22
- package/esm/labServicesClientContext.d.ts.map +0 -1
- package/esm/labServicesClientContext.js +0 -60
- package/esm/labServicesClientContext.js.map +0 -1
- package/esm/models/imagesMappers.d.ts +0 -2
- package/esm/models/imagesMappers.d.ts.map +0 -1
- package/esm/models/imagesMappers.js +0 -9
- package/esm/models/imagesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2286
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/labPlansMappers.d.ts +0 -2
- package/esm/models/labPlansMappers.d.ts.map +0 -1
- package/esm/models/labPlansMappers.js +0 -9
- package/esm/models/labPlansMappers.js.map +0 -1
- package/esm/models/labsMappers.d.ts +0 -2
- package/esm/models/labsMappers.d.ts.map +0 -1
- package/esm/models/labsMappers.js +0 -9
- package/esm/models/labsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -57
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationResultsMappers.d.ts +0 -2
- package/esm/models/operationResultsMappers.d.ts.map +0 -1
- package/esm/models/operationResultsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -185
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/schedulesMappers.d.ts +0 -2
- package/esm/models/schedulesMappers.d.ts.map +0 -1
- package/esm/models/schedulesMappers.js +0 -9
- package/esm/models/schedulesMappers.js.map +0 -1
- package/esm/models/usersMappers.d.ts +0 -2
- package/esm/models/usersMappers.d.ts.map +0 -1
- package/esm/models/usersMappers.js +0 -9
- package/esm/models/usersMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js +0 -9
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/images.d.ts +0 -147
- package/esm/operations/images.d.ts.map +0 -1
- package/esm/operations/images.js +0 -198
- package/esm/operations/images.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/labPlans.d.ts +0 -202
- package/esm/operations/labPlans.d.ts.map +0 -1
- package/esm/operations/labPlans.js +0 -419
- package/esm/operations/labPlans.js.map +0 -1
- package/esm/operations/labs.d.ts +0 -218
- package/esm/operations/labs.d.ts.map +0 -1
- package/esm/operations/labs.js +0 -462
- package/esm/operations/labs.js.map +0 -1
- package/esm/operations/operationResults.d.ts +0 -32
- package/esm/operations/operationResults.d.ts.map +0 -1
- package/esm/operations/operationResults.js +0 -56
- package/esm/operations/operationResults.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/schedules.d.ts +0 -181
- package/esm/operations/schedules.d.ts.map +0 -1
- package/esm/operations/schedules.js +0 -260
- package/esm/operations/schedules.js.map +0 -1
- package/esm/operations/users.d.ts +0 -191
- package/esm/operations/users.d.ts.map +0 -1
- package/esm/operations/users.js +0 -387
- package/esm/operations/users.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -217
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -425
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/labServicesClientContext.ts +0 -67
- package/src/models/imagesMappers.ts +0 -47
- package/src/models/labPlansMappers.ts +0 -50
- package/src/models/labsMappers.ts +0 -49
- package/src/models/schedulesMappers.ts +0 -47
- package/src/models/usersMappers.ts +0 -48
- package/src/models/virtualMachinesMappers.ts +0 -47
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OperationResults } from "../operationsInterfaces";
|
|
2
|
+
import { LabServicesClient } from "../labServicesClient";
|
|
3
|
+
import { OperationResultsGetOptionalParams, OperationResultsGetResponse } from "../models";
|
|
4
|
+
/** Class containing OperationResults operations. */
|
|
5
|
+
export declare class OperationResultsImpl implements OperationResults {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class OperationResults class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: LabServicesClient);
|
|
12
|
+
/**
|
|
13
|
+
* Returns an azure operation result.
|
|
14
|
+
* @param operationResultId The operation result ID / name.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
get(operationResultId: string, options?: OperationResultsGetOptionalParams): Promise<OperationResultsGetResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=operationResults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationResults.d.ts","sourceRoot":"","sources":["../../../src/operations/operationResults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,WAAW,CAAC;AAEnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;CAMxC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers";
|
|
10
|
+
import * as Parameters from "../models/parameters";
|
|
11
|
+
/** Class containing OperationResults operations. */
|
|
12
|
+
export class OperationResultsImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class OperationResults class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns an azure operation result.
|
|
22
|
+
* @param operationResultId The operation result ID / name.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
get(operationResultId, options) {
|
|
26
|
+
return this.client.sendOperationRequest({ operationResultId, options }, getOperationSpec);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// Operation Specifications
|
|
30
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
31
|
+
const getOperationSpec = {
|
|
32
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/operationResults/{operationResultId}",
|
|
33
|
+
httpMethod: "GET",
|
|
34
|
+
responses: {
|
|
35
|
+
200: {
|
|
36
|
+
bodyMapper: Mappers.OperationResult
|
|
37
|
+
},
|
|
38
|
+
204: {},
|
|
39
|
+
default: {
|
|
40
|
+
bodyMapper: Mappers.ErrorResponse
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
queryParameters: [Parameters.apiVersion],
|
|
44
|
+
urlParameters: [
|
|
45
|
+
Parameters.$host,
|
|
46
|
+
Parameters.subscriptionId,
|
|
47
|
+
Parameters.operationResultId
|
|
48
|
+
],
|
|
49
|
+
headerParameters: [Parameters.accept],
|
|
50
|
+
serializer
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=operationResults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationResults.js","sourceRoot":"","sources":["../../../src/operations/operationResults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,iBAAyB,EACzB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,sGAAsG;IACxG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { LabServicesClient } from "../labServicesClient";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: LabServicesClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of all operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of all operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns a list of all operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
let continuationToken = result.nextLink;
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listPagingAll(options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns a list of all operations.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
_list(options) {
|
|
75
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* ListNext
|
|
79
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
_listNext(nextLink, options) {
|
|
83
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Operation Specifications
|
|
87
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
88
|
+
const listOperationSpec = {
|
|
89
|
+
path: "/providers/Microsoft.LabServices/operations",
|
|
90
|
+
httpMethod: "GET",
|
|
91
|
+
responses: {
|
|
92
|
+
200: {
|
|
93
|
+
bodyMapper: Mappers.OperationListResult
|
|
94
|
+
},
|
|
95
|
+
default: {
|
|
96
|
+
bodyMapper: Mappers.ErrorResponse
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
queryParameters: [Parameters.apiVersion],
|
|
100
|
+
urlParameters: [Parameters.$host],
|
|
101
|
+
headerParameters: [Parameters.accept],
|
|
102
|
+
serializer
|
|
103
|
+
};
|
|
104
|
+
const listNextOperationSpec = {
|
|
105
|
+
path: "{nextLink}",
|
|
106
|
+
httpMethod: "GET",
|
|
107
|
+
responses: {
|
|
108
|
+
200: {
|
|
109
|
+
bodyMapper: Mappers.OperationListResult
|
|
110
|
+
},
|
|
111
|
+
default: {
|
|
112
|
+
bodyMapper: Mappers.ErrorResponse
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
queryParameters: [Parameters.apiVersion],
|
|
116
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
117
|
+
headerParameters: [Parameters.accept],
|
|
118
|
+
serializer
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;aAC1B;QACH,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA1C,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Schedules } from "../operationsInterfaces";
|
|
3
|
+
import { LabServicesClient } from "../labServicesClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { Schedule, SchedulesListByLabOptionalParams, SchedulesGetOptionalParams, SchedulesGetResponse, SchedulesCreateOrUpdateOptionalParams, SchedulesCreateOrUpdateResponse, ScheduleUpdate, SchedulesUpdateOptionalParams, SchedulesUpdateResponse, SchedulesDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing Schedules operations. */
|
|
7
|
+
export declare class SchedulesImpl implements Schedules {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class Schedules class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: LabServicesClient);
|
|
14
|
+
/**
|
|
15
|
+
* Returns a list of all schedules for a lab.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
18
|
+
* in resource URIs.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
listByLab(resourceGroupName: string, labName: string, options?: SchedulesListByLabOptionalParams): PagedAsyncIterableIterator<Schedule>;
|
|
22
|
+
private listByLabPagingPage;
|
|
23
|
+
private listByLabPagingAll;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a list of all schedules for a lab.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
28
|
+
* in resource URIs.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
private _listByLab;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the properties of a lab Schedule.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
36
|
+
* in resource URIs.
|
|
37
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
38
|
+
* in resource URIs.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
get(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesGetOptionalParams): Promise<SchedulesGetResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Operation to create or update a lab schedule.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
46
|
+
* in resource URIs.
|
|
47
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
48
|
+
* in resource URIs.
|
|
49
|
+
* @param body The request body.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
createOrUpdate(resourceGroupName: string, labName: string, scheduleName: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise<SchedulesCreateOrUpdateResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Operation to update a lab schedule.
|
|
55
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
57
|
+
* in resource URIs.
|
|
58
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
59
|
+
* in resource URIs.
|
|
60
|
+
* @param body The request body.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
update(resourceGroupName: string, labName: string, scheduleName: string, body: ScheduleUpdate, options?: SchedulesUpdateOptionalParams): Promise<SchedulesUpdateResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Operation to delete a schedule resource.
|
|
66
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
68
|
+
* in resource URIs.
|
|
69
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
70
|
+
* in resource URIs.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginDelete(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
74
|
+
/**
|
|
75
|
+
* Operation to delete a schedule resource.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
78
|
+
* in resource URIs.
|
|
79
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
80
|
+
* in resource URIs.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
beginDeleteAndWait(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesDeleteOptionalParams): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* ListByLabNext
|
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
88
|
+
* in resource URIs.
|
|
89
|
+
* @param nextLink The nextLink from the previous successful call to the ListByLab method.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
private _listByLabNext;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=schedules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,QAAQ,EAER,gCAAgC,EAEhC,0BAA0B,EAC1B,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,EAC/B,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAE9B,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;;;;OAMG;IACI,SAAS,CACd,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,QAAQ,CAAC;YAexB,mBAAmB;YAoBnB,kBAAkB;IAcjC;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAWlB;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAOhC;;;;;;;;;OASG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,QAAQ,EACd,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,cAAc,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAoDtD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAWvB"}
|
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Schedules operations. */
|
|
16
|
+
export class SchedulesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Schedules class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a list of all schedules for a lab.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
28
|
+
* in resource URIs.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listByLab(resourceGroupName, labName, options) {
|
|
32
|
+
const iter = this.listByLabPagingAll(resourceGroupName, labName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: () => {
|
|
41
|
+
return this.listByLabPagingPage(resourceGroupName, labName, options);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listByLabPagingPage(resourceGroupName, labName, options) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
|
|
47
|
+
let result = yield __await(this._listByLab(resourceGroupName, labName, options));
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
let continuationToken = result.nextLink;
|
|
50
|
+
while (continuationToken) {
|
|
51
|
+
result = yield __await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
yield yield __await(result.value || []);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
listByLabPagingAll(resourceGroupName, labName, options) {
|
|
58
|
+
return __asyncGenerator(this, arguments, function* listByLabPagingAll_1() {
|
|
59
|
+
var e_1, _a;
|
|
60
|
+
try {
|
|
61
|
+
for (var _b = __asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
62
|
+
const page = _c.value;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns a list of all schedules for a lab.
|
|
77
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
79
|
+
* in resource URIs.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
_listByLab(resourceGroupName, labName, options) {
|
|
83
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns the properties of a lab Schedule.
|
|
87
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
88
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
89
|
+
* in resource URIs.
|
|
90
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
91
|
+
* in resource URIs.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
get(resourceGroupName, labName, scheduleName, options) {
|
|
95
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, options }, getOperationSpec);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Operation to create or update a lab schedule.
|
|
99
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
100
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
101
|
+
* in resource URIs.
|
|
102
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
103
|
+
* in resource URIs.
|
|
104
|
+
* @param body The request body.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
createOrUpdate(resourceGroupName, labName, scheduleName, body, options) {
|
|
108
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, createOrUpdateOperationSpec);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Operation to update a lab schedule.
|
|
112
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
113
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
114
|
+
* in resource URIs.
|
|
115
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
116
|
+
* in resource URIs.
|
|
117
|
+
* @param body The request body.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
update(resourceGroupName, labName, scheduleName, body, options) {
|
|
121
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, updateOperationSpec);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Operation to delete a schedule resource.
|
|
125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
127
|
+
* in resource URIs.
|
|
128
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
129
|
+
* in resource URIs.
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
beginDelete(resourceGroupName, labName, scheduleName, options) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
return this.client.sendOperationRequest(args, spec);
|
|
136
|
+
});
|
|
137
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
var _a;
|
|
139
|
+
let currentRawResponse = undefined;
|
|
140
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
141
|
+
const callback = (rawResponse, flatResponse) => {
|
|
142
|
+
currentRawResponse = rawResponse;
|
|
143
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
144
|
+
};
|
|
145
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
146
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
147
|
+
return {
|
|
148
|
+
flatResponse,
|
|
149
|
+
rawResponse: {
|
|
150
|
+
statusCode: currentRawResponse.status,
|
|
151
|
+
body: currentRawResponse.parsedBody,
|
|
152
|
+
headers: currentRawResponse.headers.toJSON()
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, scheduleName, options }, deleteOperationSpec);
|
|
157
|
+
return new LroEngine(lro, {
|
|
158
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
159
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
160
|
+
lroResourceLocationConfig: "location"
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Operation to delete a schedule resource.
|
|
166
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
168
|
+
* in resource URIs.
|
|
169
|
+
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
|
|
170
|
+
* in resource URIs.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
beginDeleteAndWait(resourceGroupName, labName, scheduleName, options) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const poller = yield this.beginDelete(resourceGroupName, labName, scheduleName, options);
|
|
176
|
+
return poller.pollUntilDone();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* ListByLabNext
|
|
181
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
182
|
+
* @param labName The name of the lab that uniquely identifies it within containing lab account. Used
|
|
183
|
+
* in resource URIs.
|
|
184
|
+
* @param nextLink The nextLink from the previous successful call to the ListByLab method.
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
_listByLabNext(resourceGroupName, labName, nextLink, options) {
|
|
188
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// Operation Specifications
|
|
192
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
193
|
+
const listByLabOperationSpec = {
|
|
194
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules",
|
|
195
|
+
httpMethod: "GET",
|
|
196
|
+
responses: {
|
|
197
|
+
200: {
|
|
198
|
+
bodyMapper: Mappers.PagedSchedules
|
|
199
|
+
},
|
|
200
|
+
default: {
|
|
201
|
+
bodyMapper: Mappers.ErrorResponse
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
205
|
+
urlParameters: [
|
|
206
|
+
Parameters.$host,
|
|
207
|
+
Parameters.subscriptionId,
|
|
208
|
+
Parameters.resourceGroupName,
|
|
209
|
+
Parameters.labName
|
|
210
|
+
],
|
|
211
|
+
headerParameters: [Parameters.accept],
|
|
212
|
+
serializer
|
|
213
|
+
};
|
|
214
|
+
const getOperationSpec = {
|
|
215
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
|
|
216
|
+
httpMethod: "GET",
|
|
217
|
+
responses: {
|
|
218
|
+
200: {
|
|
219
|
+
bodyMapper: Mappers.Schedule
|
|
220
|
+
},
|
|
221
|
+
default: {
|
|
222
|
+
bodyMapper: Mappers.ErrorResponse
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
|
+
urlParameters: [
|
|
227
|
+
Parameters.$host,
|
|
228
|
+
Parameters.subscriptionId,
|
|
229
|
+
Parameters.resourceGroupName,
|
|
230
|
+
Parameters.labName,
|
|
231
|
+
Parameters.scheduleName
|
|
232
|
+
],
|
|
233
|
+
headerParameters: [Parameters.accept],
|
|
234
|
+
serializer
|
|
235
|
+
};
|
|
236
|
+
const createOrUpdateOperationSpec = {
|
|
237
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
|
|
238
|
+
httpMethod: "PUT",
|
|
239
|
+
responses: {
|
|
240
|
+
200: {
|
|
241
|
+
bodyMapper: Mappers.Schedule
|
|
242
|
+
},
|
|
243
|
+
201: {
|
|
244
|
+
bodyMapper: Mappers.Schedule
|
|
245
|
+
},
|
|
246
|
+
default: {
|
|
247
|
+
bodyMapper: Mappers.ErrorResponse
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
requestBody: Parameters.body7,
|
|
251
|
+
queryParameters: [Parameters.apiVersion],
|
|
252
|
+
urlParameters: [
|
|
253
|
+
Parameters.$host,
|
|
254
|
+
Parameters.subscriptionId,
|
|
255
|
+
Parameters.resourceGroupName,
|
|
256
|
+
Parameters.labName,
|
|
257
|
+
Parameters.scheduleName
|
|
258
|
+
],
|
|
259
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
260
|
+
mediaType: "json",
|
|
261
|
+
serializer
|
|
262
|
+
};
|
|
263
|
+
const updateOperationSpec = {
|
|
264
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
|
|
265
|
+
httpMethod: "PATCH",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {
|
|
268
|
+
bodyMapper: Mappers.Schedule
|
|
269
|
+
},
|
|
270
|
+
default: {
|
|
271
|
+
bodyMapper: Mappers.ErrorResponse
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
requestBody: Parameters.body8,
|
|
275
|
+
queryParameters: [Parameters.apiVersion],
|
|
276
|
+
urlParameters: [
|
|
277
|
+
Parameters.$host,
|
|
278
|
+
Parameters.subscriptionId,
|
|
279
|
+
Parameters.resourceGroupName,
|
|
280
|
+
Parameters.labName,
|
|
281
|
+
Parameters.scheduleName
|
|
282
|
+
],
|
|
283
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
284
|
+
mediaType: "json",
|
|
285
|
+
serializer
|
|
286
|
+
};
|
|
287
|
+
const deleteOperationSpec = {
|
|
288
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
|
|
289
|
+
httpMethod: "DELETE",
|
|
290
|
+
responses: {
|
|
291
|
+
200: {},
|
|
292
|
+
201: {},
|
|
293
|
+
202: {},
|
|
294
|
+
204: {},
|
|
295
|
+
default: {
|
|
296
|
+
bodyMapper: Mappers.ErrorResponse
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
queryParameters: [Parameters.apiVersion],
|
|
300
|
+
urlParameters: [
|
|
301
|
+
Parameters.$host,
|
|
302
|
+
Parameters.subscriptionId,
|
|
303
|
+
Parameters.resourceGroupName,
|
|
304
|
+
Parameters.labName,
|
|
305
|
+
Parameters.scheduleName
|
|
306
|
+
],
|
|
307
|
+
headerParameters: [Parameters.accept],
|
|
308
|
+
serializer
|
|
309
|
+
};
|
|
310
|
+
const listByLabNextOperationSpec = {
|
|
311
|
+
path: "{nextLink}",
|
|
312
|
+
httpMethod: "GET",
|
|
313
|
+
responses: {
|
|
314
|
+
200: {
|
|
315
|
+
bodyMapper: Mappers.PagedSchedules
|
|
316
|
+
},
|
|
317
|
+
default: {
|
|
318
|
+
bodyMapper: Mappers.ErrorResponse
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
322
|
+
urlParameters: [
|
|
323
|
+
Parameters.$host,
|
|
324
|
+
Parameters.subscriptionId,
|
|
325
|
+
Parameters.resourceGroupName,
|
|
326
|
+
Parameters.nextLink,
|
|
327
|
+
Parameters.labName
|
|
328
|
+
],
|
|
329
|
+
headerParameters: [Parameters.accept],
|
|
330
|
+
serializer
|
|
331
|
+
};
|
|
332
|
+
//# sourceMappingURL=schedules.js.map
|