@azure/arm-devtestlabs 3.2.0 → 4.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 +14 -0
- package/{LICENSE.txt → LICENSE} +21 -21
- package/README.md +98 -96
- package/dist/index.js +14125 -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/src/devTestLabsClient.d.ts +42 -0
- package/dist-esm/src/devTestLabsClient.d.ts.map +1 -0
- package/dist-esm/src/devTestLabsClient.js +75 -0
- package/dist-esm/src/devTestLabsClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.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 +3339 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +210 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +133 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +2058 -4107
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +65 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +376 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/armTemplates.d.ts +50 -0
- package/dist-esm/src/operations/armTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/armTemplates.js +188 -0
- package/dist-esm/src/operations/armTemplates.js.map +1 -0
- package/dist-esm/src/operations/artifactSources.d.ts +72 -0
- package/dist-esm/src/operations/artifactSources.d.ts.map +1 -0
- package/dist-esm/src/operations/artifactSources.js +285 -0
- package/dist-esm/src/operations/artifactSources.js.map +1 -0
- package/dist-esm/src/operations/artifacts.d.ts +61 -0
- package/dist-esm/src/operations/artifacts.d.ts.map +1 -0
- package/dist-esm/src/operations/artifacts.js +233 -0
- package/dist-esm/src/operations/artifacts.js.map +1 -0
- package/dist-esm/src/operations/costs.d.ts +30 -0
- package/dist-esm/src/operations/costs.d.ts.map +1 -0
- package/dist-esm/src/operations/costs.js +93 -0
- package/dist-esm/src/operations/costs.js.map +1 -0
- package/dist-esm/src/operations/customImages.d.ts +90 -0
- package/dist-esm/src/operations/customImages.d.ts.map +1 -0
- package/dist-esm/src/operations/customImages.js +378 -0
- package/dist-esm/src/operations/customImages.js.map +1 -0
- package/dist-esm/src/operations/disks.d.ts +143 -0
- package/dist-esm/src/operations/disks.d.ts.map +1 -0
- package/dist-esm/src/operations/disks.js +573 -0
- package/dist-esm/src/operations/disks.js.map +1 -0
- package/dist-esm/src/operations/environments.d.ts +99 -0
- package/dist-esm/src/operations/environments.d.ts.map +1 -0
- package/dist-esm/src/operations/environments.js +393 -0
- package/dist-esm/src/operations/environments.js.map +1 -0
- package/dist-esm/src/operations/formulas.d.ts +82 -0
- package/dist-esm/src/operations/formulas.d.ts.map +1 -0
- package/dist-esm/src/operations/formulas.js +335 -0
- package/dist-esm/src/operations/formulas.js.map +1 -0
- package/dist-esm/src/operations/galleryImages.d.ts +38 -0
- package/dist-esm/src/operations/galleryImages.d.ts.map +1 -0
- package/dist-esm/src/operations/galleryImages.js +149 -0
- package/dist-esm/src/operations/galleryImages.js.map +1 -0
- package/dist-esm/src/operations/globalSchedules.d.ts +114 -0
- package/dist-esm/src/operations/globalSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/globalSchedules.js +531 -0
- package/dist-esm/src/operations/globalSchedules.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/labs.d.ts +195 -0
- package/dist-esm/src/operations/labs.d.ts.map +1 -0
- package/dist-esm/src/operations/labs.js +917 -0
- package/dist-esm/src/operations/labs.js.map +1 -0
- package/dist-esm/src/operations/notificationChannels.d.ts +81 -0
- package/dist-esm/src/operations/notificationChannels.d.ts.map +1 -0
- package/dist-esm/src/operations/notificationChannels.js +318 -0
- package/dist-esm/src/operations/notificationChannels.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +20 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +56 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policies.d.ts +79 -0
- package/dist-esm/src/operations/policies.d.ts.map +1 -0
- package/dist-esm/src/operations/policies.js +298 -0
- package/dist-esm/src/operations/policies.js.map +1 -0
- package/dist-esm/src/operations/policySets.d.ts +22 -0
- package/dist-esm/src/operations/policySets.d.ts.map +1 -0
- package/dist-esm/src/operations/policySets.js +58 -0
- package/dist-esm/src/operations/policySets.js.map +1 -0
- package/dist-esm/src/operations/providerOperations.d.ts +32 -0
- package/dist-esm/src/operations/providerOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/providerOperations.js +120 -0
- package/dist-esm/src/operations/providerOperations.js.map +1 -0
- package/dist-esm/src/operations/schedules.d.ts +116 -0
- package/dist-esm/src/operations/schedules.d.ts.map +1 -0
- package/dist-esm/src/operations/schedules.js +478 -0
- package/dist-esm/src/operations/schedules.js.map +1 -0
- package/dist-esm/src/operations/secrets.d.ts +90 -0
- package/dist-esm/src/operations/secrets.d.ts.map +1 -0
- package/dist-esm/src/operations/secrets.js +349 -0
- package/dist-esm/src/operations/secrets.js.map +1 -0
- package/dist-esm/src/operations/serviceFabricSchedules.d.ts +107 -0
- package/dist-esm/src/operations/serviceFabricSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceFabricSchedules.js +437 -0
- package/dist-esm/src/operations/serviceFabricSchedules.js.map +1 -0
- package/dist-esm/src/operations/serviceFabrics.d.ts +144 -0
- package/dist-esm/src/operations/serviceFabrics.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceFabrics.js +581 -0
- package/dist-esm/src/operations/serviceFabrics.js.map +1 -0
- package/dist-esm/src/operations/serviceRunners.d.ts +38 -0
- package/dist-esm/src/operations/serviceRunners.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceRunners.js +124 -0
- package/dist-esm/src/operations/serviceRunners.js.map +1 -0
- package/dist-esm/src/operations/users.d.ts +90 -0
- package/dist-esm/src/operations/users.d.ts.map +1 -0
- package/dist-esm/src/operations/users.js +378 -0
- package/dist-esm/src/operations/users.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineSchedules.d.ts +98 -0
- package/dist-esm/src/operations/virtualMachineSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineSchedules.js +391 -0
- package/dist-esm/src/operations/virtualMachineSchedules.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +292 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +1280 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts +90 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.js +378 -0
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/armTemplates.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/armTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/armTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/armTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/artifactSources.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/artifactSources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/artifactSources.js +9 -0
- package/dist-esm/src/operationsInterfaces/artifactSources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/artifacts.d.ts +34 -0
- package/dist-esm/src/operationsInterfaces/artifacts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/artifacts.js +9 -0
- package/dist-esm/src/operationsInterfaces/artifacts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/costs.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/costs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/costs.js +9 -0
- package/dist-esm/src/operationsInterfaces/costs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customImages.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/customImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/customImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/customImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/disks.d.ts +116 -0
- package/dist-esm/src/operationsInterfaces/disks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/disks.js +9 -0
- package/dist-esm/src/operationsInterfaces/disks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/environments.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/environments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/environments.js +9 -0
- package/dist-esm/src/operationsInterfaces/environments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/formulas.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/formulas.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/formulas.js +9 -0
- package/dist-esm/src/operationsInterfaces/formulas.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryImages.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/galleryImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/galleryImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalSchedules.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/globalSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/globalSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +33 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/labs.d.ts +142 -0
- package/dist-esm/src/operationsInterfaces/labs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/labs.js +9 -0
- package/dist-esm/src/operationsInterfaces/labs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/notificationChannels.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/notificationChannels.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/notificationChannels.js +9 -0
- package/dist-esm/src/operationsInterfaces/notificationChannels.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +12 -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/policies.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.js +9 -0
- package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policySets.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/policySets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policySets.js +9 -0
- package/dist-esm/src/operationsInterfaces/policySets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/providerOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/providerOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/schedules.d.ts +72 -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/secrets.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
- package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceFabricSchedules.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/serviceFabricSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceFabricSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceFabricSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceFabrics.d.ts +117 -0
- package/dist-esm/src/operationsInterfaces/serviceFabrics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceFabrics.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceFabrics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceRunners.d.ts +30 -0
- package/dist-esm/src/operationsInterfaces/serviceRunners.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceRunners.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceRunners.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/users.d.ts +65 -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/virtualMachineSchedules.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +267 -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/src/operationsInterfaces/virtualNetworks.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js.map +1 -0
- package/dist-esm/test/devtestlabs_examples.d.ts +4 -0
- package/dist-esm/test/devtestlabs_examples.d.ts.map +1 -0
- package/dist-esm/test/devtestlabs_examples.js +116 -0
- package/dist-esm/test/devtestlabs_examples.js.map +1 -0
- package/package.json +67 -33
- package/review/arm-devtestlabs.api.md +2985 -0
- package/rollup.config.js +181 -30
- package/src/devTestLabsClient.ts +175 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3876 -0
- package/{lib → src}/models/mappers.ts +2171 -4355
- package/src/models/parameters.ts +489 -0
- package/src/operations/armTemplates.ts +263 -0
- package/src/operations/artifactSources.ts +375 -0
- package/src/operations/artifacts.ts +323 -0
- package/src/operations/costs.ts +127 -0
- package/src/operations/customImages.ts +525 -0
- package/src/operations/disks.ts +836 -0
- package/src/operations/environments.ts +570 -0
- package/src/operations/formulas.ts +457 -0
- package/src/operations/galleryImages.ts +189 -0
- package/src/operations/globalSchedules.ts +688 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/labs.ts +1241 -0
- package/src/operations/notificationChannels.ts +421 -0
- package/src/operations/operations.ts +72 -0
- package/src/operations/policies.ts +414 -0
- package/src/operations/policySets.ts +80 -0
- package/src/operations/providerOperations.ts +137 -0
- package/src/operations/schedules.ts +657 -0
- package/src/operations/secrets.ts +499 -0
- package/src/operations/serviceFabricSchedules.ts +609 -0
- package/src/operations/serviceFabrics.ts +849 -0
- package/src/operations/serviceRunners.ts +169 -0
- package/src/operations/users.ts +525 -0
- package/src/operations/virtualMachineSchedules.ts +546 -0
- package/src/operations/virtualMachines.ts +1863 -0
- package/src/operations/virtualNetworks.ts +525 -0
- package/src/operationsInterfaces/armTemplates.ts +48 -0
- package/src/operationsInterfaces/artifactSources.ts +93 -0
- package/src/operationsInterfaces/artifacts.ts +69 -0
- package/src/operationsInterfaces/costs.ts +47 -0
- package/src/operationsInterfaces/customImages.ts +127 -0
- package/src/operationsInterfaces/disks.ts +217 -0
- package/src/operationsInterfaces/environments.ts +141 -0
- package/src/operationsInterfaces/formulas.ts +114 -0
- package/src/operationsInterfaces/galleryImages.ts +26 -0
- package/src/operationsInterfaces/globalSchedules.ts +143 -0
- package/src/operationsInterfaces/index.ts +33 -0
- package/src/operationsInterfaces/labs.ts +259 -0
- package/src/operationsInterfaces/notificationChannels.ts +110 -0
- package/src/operationsInterfaces/operations.ts +24 -0
- package/src/operationsInterfaces/policies.ts +103 -0
- package/src/operationsInterfaces/policySets.ts +32 -0
- package/src/operationsInterfaces/providerOperations.ts +25 -0
- package/src/operationsInterfaces/schedules.ts +135 -0
- package/src/operationsInterfaces/secrets.ts +126 -0
- package/src/operationsInterfaces/serviceFabricSchedules.ts +149 -0
- package/src/operationsInterfaces/serviceFabrics.ts +220 -0
- package/src/operationsInterfaces/serviceRunners.ts +61 -0
- package/src/operationsInterfaces/users.ts +127 -0
- package/src/operationsInterfaces/virtualMachineSchedules.ts +135 -0
- package/src/operationsInterfaces/virtualMachines.ts +476 -0
- package/src/operationsInterfaces/virtualNetworks.ts +127 -0
- package/tsconfig.json +4 -4
- package/types/arm-devtestlabs.d.ts +5414 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-devtestlabs.js +0 -16392
- package/dist/arm-devtestlabs.js.map +0 -1
- package/dist/arm-devtestlabs.min.js +0 -1
- package/dist/arm-devtestlabs.min.js.map +0 -1
- package/esm/devTestLabsClient.d.ts +0 -42
- package/esm/devTestLabsClient.d.ts.map +0 -1
- package/esm/devTestLabsClient.js +0 -57
- package/esm/devTestLabsClient.js.map +0 -1
- package/esm/devTestLabsClientContext.d.ts +0 -16
- package/esm/devTestLabsClientContext.d.ts.map +0 -1
- package/esm/devTestLabsClientContext.js +0 -56
- package/esm/devTestLabsClientContext.js.map +0 -1
- package/esm/models/armTemplatesMappers.d.ts +0 -2
- package/esm/models/armTemplatesMappers.d.ts.map +0 -1
- package/esm/models/armTemplatesMappers.js +0 -9
- package/esm/models/armTemplatesMappers.js.map +0 -1
- package/esm/models/artifactSourcesMappers.d.ts +0 -2
- package/esm/models/artifactSourcesMappers.d.ts.map +0 -1
- package/esm/models/artifactSourcesMappers.js +0 -9
- package/esm/models/artifactSourcesMappers.js.map +0 -1
- package/esm/models/artifactsMappers.d.ts +0 -2
- package/esm/models/artifactsMappers.d.ts.map +0 -1
- package/esm/models/artifactsMappers.js +0 -9
- package/esm/models/artifactsMappers.js.map +0 -1
- package/esm/models/costsMappers.d.ts +0 -2
- package/esm/models/costsMappers.d.ts.map +0 -1
- package/esm/models/costsMappers.js +0 -9
- package/esm/models/costsMappers.js.map +0 -1
- package/esm/models/customImagesMappers.d.ts +0 -2
- package/esm/models/customImagesMappers.d.ts.map +0 -1
- package/esm/models/customImagesMappers.js +0 -9
- package/esm/models/customImagesMappers.js.map +0 -1
- package/esm/models/disksMappers.d.ts +0 -2
- package/esm/models/disksMappers.d.ts.map +0 -1
- package/esm/models/disksMappers.js +0 -9
- package/esm/models/disksMappers.js.map +0 -1
- package/esm/models/environmentsMappers.d.ts +0 -2
- package/esm/models/environmentsMappers.d.ts.map +0 -1
- package/esm/models/environmentsMappers.js +0 -9
- package/esm/models/environmentsMappers.js.map +0 -1
- package/esm/models/formulasMappers.d.ts +0 -2
- package/esm/models/formulasMappers.d.ts.map +0 -1
- package/esm/models/formulasMappers.js +0 -9
- package/esm/models/formulasMappers.js.map +0 -1
- package/esm/models/galleryImagesMappers.d.ts +0 -2
- package/esm/models/galleryImagesMappers.d.ts.map +0 -1
- package/esm/models/galleryImagesMappers.js +0 -9
- package/esm/models/galleryImagesMappers.js.map +0 -1
- package/esm/models/globalSchedulesMappers.d.ts +0 -2
- package/esm/models/globalSchedulesMappers.d.ts.map +0 -1
- package/esm/models/globalSchedulesMappers.js +0 -9
- package/esm/models/globalSchedulesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -7024
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.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 -171
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/notificationChannelsMappers.d.ts +0 -2
- package/esm/models/notificationChannelsMappers.d.ts.map +0 -1
- package/esm/models/notificationChannelsMappers.js +0 -9
- package/esm/models/notificationChannelsMappers.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 +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -19
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -190
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policiesMappers.d.ts +0 -2
- package/esm/models/policiesMappers.d.ts.map +0 -1
- package/esm/models/policiesMappers.js +0 -9
- package/esm/models/policiesMappers.js.map +0 -1
- package/esm/models/policySetsMappers.d.ts +0 -2
- package/esm/models/policySetsMappers.d.ts.map +0 -1
- package/esm/models/policySetsMappers.js +0 -9
- package/esm/models/policySetsMappers.js.map +0 -1
- package/esm/models/providerOperationsMappers.d.ts +0 -2
- package/esm/models/providerOperationsMappers.d.ts.map +0 -1
- package/esm/models/providerOperationsMappers.js +0 -9
- package/esm/models/providerOperationsMappers.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/secretsMappers.d.ts +0 -2
- package/esm/models/secretsMappers.d.ts.map +0 -1
- package/esm/models/secretsMappers.js +0 -9
- package/esm/models/secretsMappers.js.map +0 -1
- package/esm/models/serviceFabricSchedulesMappers.d.ts +0 -2
- package/esm/models/serviceFabricSchedulesMappers.d.ts.map +0 -1
- package/esm/models/serviceFabricSchedulesMappers.js +0 -9
- package/esm/models/serviceFabricSchedulesMappers.js.map +0 -1
- package/esm/models/serviceFabricsMappers.d.ts +0 -2
- package/esm/models/serviceFabricsMappers.d.ts.map +0 -1
- package/esm/models/serviceFabricsMappers.js +0 -9
- package/esm/models/serviceFabricsMappers.js.map +0 -1
- package/esm/models/serviceRunnersMappers.d.ts +0 -2
- package/esm/models/serviceRunnersMappers.d.ts.map +0 -1
- package/esm/models/serviceRunnersMappers.js +0 -9
- package/esm/models/serviceRunnersMappers.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/virtualMachineSchedulesMappers.d.ts +0 -2
- package/esm/models/virtualMachineSchedulesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineSchedulesMappers.js +0 -9
- package/esm/models/virtualMachineSchedulesMappers.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/models/virtualNetworksMappers.d.ts +0 -2
- package/esm/models/virtualNetworksMappers.d.ts.map +0 -1
- package/esm/models/virtualNetworksMappers.js +0 -9
- package/esm/models/virtualNetworksMappers.js.map +0 -1
- package/esm/operations/armTemplates.d.ts +0 -82
- package/esm/operations/armTemplates.d.ts.map +0 -1
- package/esm/operations/armTemplates.js +0 -126
- package/esm/operations/armTemplates.js.map +0 -1
- package/esm/operations/artifactSources.d.ts +0 -154
- package/esm/operations/artifactSources.d.ts.map +0 -1
- package/esm/operations/artifactSources.js +0 -234
- package/esm/operations/artifactSources.js.map +0 -1
- package/esm/operations/artifacts.d.ts +0 -116
- package/esm/operations/artifacts.d.ts.map +0 -1
- package/esm/operations/artifacts.js +0 -167
- package/esm/operations/artifacts.js.map +0 -1
- package/esm/operations/costs.d.ts +0 -64
- package/esm/operations/costs.d.ts.map +0 -1
- package/esm/operations/costs.js +0 -103
- package/esm/operations/costs.js.map +0 -1
- package/esm/operations/customImages.d.ts +0 -142
- package/esm/operations/customImages.d.ts.map +0 -1
- package/esm/operations/customImages.js +0 -277
- package/esm/operations/customImages.js.map +0 -1
- package/esm/operations/disks.d.ts +0 -203
- package/esm/operations/disks.d.ts.map +0 -1
- package/esm/operations/disks.js +0 -421
- package/esm/operations/disks.js.map +0 -1
- package/esm/operations/environments.d.ts +0 -155
- package/esm/operations/environments.d.ts.map +0 -1
- package/esm/operations/environments.js +0 -291
- package/esm/operations/environments.js.map +0 -1
- package/esm/operations/formulas.d.ts +0 -148
- package/esm/operations/formulas.d.ts.map +0 -1
- package/esm/operations/formulas.js +0 -256
- package/esm/operations/formulas.js.map +0 -1
- package/esm/operations/galleryImages.d.ts +0 -52
- package/esm/operations/galleryImages.d.ts.map +0 -1
- package/esm/operations/galleryImages.js +0 -88
- package/esm/operations/galleryImages.js.map +0 -1
- package/esm/operations/globalSchedules.d.ts +0 -207
- package/esm/operations/globalSchedules.d.ts.map +0 -1
- package/esm/operations/globalSchedules.js +0 -384
- package/esm/operations/globalSchedules.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/labs.d.ts +0 -301
- package/esm/operations/labs.d.ts.map +0 -1
- package/esm/operations/labs.js +0 -632
- package/esm/operations/labs.js.map +0 -1
- package/esm/operations/notificationChannels.d.ts +0 -181
- package/esm/operations/notificationChannels.d.ts.map +0 -1
- package/esm/operations/notificationChannels.js +0 -270
- package/esm/operations/notificationChannels.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -34
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -58
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/policies.d.ts +0 -169
- package/esm/operations/policies.d.ts.map +0 -1
- package/esm/operations/policies.js +0 -244
- package/esm/operations/policies.js.map +0 -1
- package/esm/operations/policySets.d.ts +0 -40
- package/esm/operations/policySets.d.ts.map +0 -1
- package/esm/operations/policySets.js +0 -66
- package/esm/operations/policySets.js.map +0 -1
- package/esm/operations/providerOperations.d.ts +0 -46
- package/esm/operations/providerOperations.d.ts.map +0 -1
- package/esm/operations/providerOperations.js +0 -77
- package/esm/operations/providerOperations.js.map +0 -1
- package/esm/operations/schedules.d.ts +0 -215
- package/esm/operations/schedules.d.ts.map +0 -1
- package/esm/operations/schedules.js +0 -345
- package/esm/operations/schedules.js.map +0 -1
- package/esm/operations/secrets.d.ts +0 -162
- package/esm/operations/secrets.d.ts.map +0 -1
- package/esm/operations/secrets.js +0 -268
- package/esm/operations/secrets.js.map +0 -1
- package/esm/operations/serviceFabricSchedules.d.ts +0 -207
- package/esm/operations/serviceFabricSchedules.d.ts.map +0 -1
- package/esm/operations/serviceFabricSchedules.js +0 -314
- package/esm/operations/serviceFabricSchedules.js.map +0 -1
- package/esm/operations/serviceFabrics.d.ts +0 -222
- package/esm/operations/serviceFabrics.d.ts.map +0 -1
- package/esm/operations/serviceFabrics.js +0 -438
- package/esm/operations/serviceFabrics.js.map +0 -1
- package/esm/operations/serviceRunners.d.ts +0 -127
- package/esm/operations/serviceRunners.d.ts.map +0 -1
- package/esm/operations/serviceRunners.js +0 -194
- package/esm/operations/serviceRunners.js.map +0 -1
- package/esm/operations/users.d.ts +0 -142
- package/esm/operations/users.d.ts.map +0 -1
- package/esm/operations/users.js +0 -277
- package/esm/operations/users.js.map +0 -1
- package/esm/operations/virtualMachineSchedules.d.ts +0 -190
- package/esm/operations/virtualMachineSchedules.d.ts.map +0 -1
- package/esm/operations/virtualMachineSchedules.js +0 -300
- package/esm/operations/virtualMachineSchedules.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -402
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -949
- package/esm/operations/virtualMachines.js.map +0 -1
- package/esm/operations/virtualNetworks.d.ts +0 -142
- package/esm/operations/virtualNetworks.d.ts.map +0 -1
- package/esm/operations/virtualNetworks.js +0 -277
- package/esm/operations/virtualNetworks.js.map +0 -1
- package/lib/devTestLabsClient.ts +0 -90
- package/lib/devTestLabsClientContext.ts +0 -62
- package/lib/models/armTemplatesMappers.ts +0 -80
- package/lib/models/artifactSourcesMappers.ts +0 -130
- package/lib/models/artifactsMappers.ts +0 -83
- package/lib/models/costsMappers.ts +0 -79
- package/lib/models/customImagesMappers.ts +0 -130
- package/lib/models/disksMappers.ts +0 -132
- package/lib/models/environmentsMappers.ts +0 -130
- package/lib/models/formulasMappers.ts +0 -130
- package/lib/models/galleryImagesMappers.ts +0 -80
- package/lib/models/globalSchedulesMappers.ts +0 -131
- package/lib/models/index.ts +0 -7501
- package/lib/models/labsMappers.ts +0 -136
- package/lib/models/notificationChannelsMappers.ts +0 -131
- package/lib/models/operationsMappers.ts +0 -13
- package/lib/models/parameters.ts +0 -192
- package/lib/models/policiesMappers.ts +0 -130
- package/lib/models/policySetsMappers.ts +0 -16
- package/lib/models/providerOperationsMappers.ts +0 -14
- package/lib/models/schedulesMappers.ts +0 -130
- package/lib/models/secretsMappers.ts +0 -130
- package/lib/models/serviceFabricSchedulesMappers.ts +0 -130
- package/lib/models/serviceFabricsMappers.ts +0 -130
- package/lib/models/serviceRunnersMappers.ts +0 -80
- package/lib/models/usersMappers.ts +0 -130
- package/lib/models/virtualMachineSchedulesMappers.ts +0 -130
- package/lib/models/virtualMachinesMappers.ts +0 -134
- package/lib/models/virtualNetworksMappers.ts +0 -130
- package/lib/operations/armTemplates.ts +0 -213
- package/lib/operations/artifactSources.ts +0 -413
- package/lib/operations/artifacts.ts +0 -295
- package/lib/operations/costs.ts +0 -169
- package/lib/operations/customImages.ts +0 -408
- package/lib/operations/disks.ts +0 -579
- package/lib/operations/environments.ts +0 -431
- package/lib/operations/formulas.ts +0 -410
- package/lib/operations/galleryImages.ts +0 -140
- package/lib/operations/globalSchedules.ts +0 -607
- package/lib/operations/labs.ts +0 -911
- package/lib/operations/notificationChannels.ts +0 -484
- package/lib/operations/operations.ts +0 -87
- package/lib/operations/policies.ts +0 -438
- package/lib/operations/policySets.ts +0 -103
- package/lib/operations/providerOperations.ts +0 -123
- package/lib/operations/schedules.ts +0 -583
- package/lib/operations/secrets.ts +0 -434
- package/lib/operations/serviceFabricSchedules.ts +0 -530
- package/lib/operations/serviceFabrics.ts +0 -622
- package/lib/operations/serviceRunners.ts +0 -338
- package/lib/operations/users.ts +0 -408
- package/lib/operations/virtualMachineSchedules.ts +0 -501
- package/lib/operations/virtualMachines.ts +0 -1216
- package/lib/operations/virtualNetworks.ts +0 -408
|
@@ -0,0 +1,917 @@
|
|
|
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 Labs operations. */
|
|
16
|
+
export class LabsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Labs class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List labs in a subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listBySubscription(options) {
|
|
29
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listBySubscriptionPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listBySubscriptionPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listBySubscription(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listBySubscriptionPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* List labs in a resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* List disk images available for custom image creation.
|
|
123
|
+
* @param resourceGroupName The name of the resource group.
|
|
124
|
+
* @param name The name of the lab.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
listVhds(resourceGroupName, name, options) {
|
|
128
|
+
const iter = this.listVhdsPagingAll(resourceGroupName, name, options);
|
|
129
|
+
return {
|
|
130
|
+
next() {
|
|
131
|
+
return iter.next();
|
|
132
|
+
},
|
|
133
|
+
[Symbol.asyncIterator]() {
|
|
134
|
+
return this;
|
|
135
|
+
},
|
|
136
|
+
byPage: () => {
|
|
137
|
+
return this.listVhdsPagingPage(resourceGroupName, name, options);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
listVhdsPagingPage(resourceGroupName, name, options) {
|
|
142
|
+
return __asyncGenerator(this, arguments, function* listVhdsPagingPage_1() {
|
|
143
|
+
let result = yield __await(this._listVhds(resourceGroupName, name, options));
|
|
144
|
+
yield yield __await(result.value || []);
|
|
145
|
+
let continuationToken = result.nextLink;
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = yield __await(this._listVhdsNext(resourceGroupName, name, continuationToken, options));
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
yield yield __await(result.value || []);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
listVhdsPagingAll(resourceGroupName, name, options) {
|
|
154
|
+
return __asyncGenerator(this, arguments, function* listVhdsPagingAll_1() {
|
|
155
|
+
var e_3, _a;
|
|
156
|
+
try {
|
|
157
|
+
for (var _b = __asyncValues(this.listVhdsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
158
|
+
const page = _c.value;
|
|
159
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
163
|
+
finally {
|
|
164
|
+
try {
|
|
165
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
166
|
+
}
|
|
167
|
+
finally { if (e_3) throw e_3.error; }
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* List labs in a subscription.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
_listBySubscription(options) {
|
|
176
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* List labs in a resource group.
|
|
180
|
+
* @param resourceGroupName The name of the resource group.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
184
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Get lab.
|
|
188
|
+
* @param resourceGroupName The name of the resource group.
|
|
189
|
+
* @param name The name of the lab.
|
|
190
|
+
* @param options The options parameters.
|
|
191
|
+
*/
|
|
192
|
+
get(resourceGroupName, name, options) {
|
|
193
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create or replace an existing lab. This operation can take a while to complete.
|
|
197
|
+
* @param resourceGroupName The name of the resource group.
|
|
198
|
+
* @param name The name of the lab.
|
|
199
|
+
* @param lab A lab.
|
|
200
|
+
* @param options The options parameters.
|
|
201
|
+
*/
|
|
202
|
+
beginCreateOrUpdate(resourceGroupName, name, lab, options) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
return this.client.sendOperationRequest(args, spec);
|
|
206
|
+
});
|
|
207
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a;
|
|
209
|
+
let currentRawResponse = undefined;
|
|
210
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
211
|
+
const callback = (rawResponse, flatResponse) => {
|
|
212
|
+
currentRawResponse = rawResponse;
|
|
213
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
214
|
+
};
|
|
215
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
216
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
217
|
+
return {
|
|
218
|
+
flatResponse,
|
|
219
|
+
rawResponse: {
|
|
220
|
+
statusCode: currentRawResponse.status,
|
|
221
|
+
body: currentRawResponse.parsedBody,
|
|
222
|
+
headers: currentRawResponse.headers.toJSON()
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, lab, options }, createOrUpdateOperationSpec);
|
|
227
|
+
return new LroEngine(lro, {
|
|
228
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
229
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Create or replace an existing lab. This operation can take a while to complete.
|
|
235
|
+
* @param resourceGroupName The name of the resource group.
|
|
236
|
+
* @param name The name of the lab.
|
|
237
|
+
* @param lab A lab.
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
beginCreateOrUpdateAndWait(resourceGroupName, name, lab, options) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, lab, options);
|
|
243
|
+
return poller.pollUntilDone();
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Delete lab. This operation can take a while to complete.
|
|
248
|
+
* @param resourceGroupName The name of the resource group.
|
|
249
|
+
* @param name The name of the lab.
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
beginDelete(resourceGroupName, name, options) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
return this.client.sendOperationRequest(args, spec);
|
|
256
|
+
});
|
|
257
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
var _a;
|
|
259
|
+
let currentRawResponse = undefined;
|
|
260
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
261
|
+
const callback = (rawResponse, flatResponse) => {
|
|
262
|
+
currentRawResponse = rawResponse;
|
|
263
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
264
|
+
};
|
|
265
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
266
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
267
|
+
return {
|
|
268
|
+
flatResponse,
|
|
269
|
+
rawResponse: {
|
|
270
|
+
statusCode: currentRawResponse.status,
|
|
271
|
+
body: currentRawResponse.parsedBody,
|
|
272
|
+
headers: currentRawResponse.headers.toJSON()
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
|
|
277
|
+
return new LroEngine(lro, {
|
|
278
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
279
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Delete lab. This operation can take a while to complete.
|
|
285
|
+
* @param resourceGroupName The name of the resource group.
|
|
286
|
+
* @param name The name of the lab.
|
|
287
|
+
* @param options The options parameters.
|
|
288
|
+
*/
|
|
289
|
+
beginDeleteAndWait(resourceGroupName, name, options) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
const poller = yield this.beginDelete(resourceGroupName, name, options);
|
|
292
|
+
return poller.pollUntilDone();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Allows modifying tags of labs. All other properties will be ignored.
|
|
297
|
+
* @param resourceGroupName The name of the resource group.
|
|
298
|
+
* @param name The name of the lab.
|
|
299
|
+
* @param lab A lab.
|
|
300
|
+
* @param options The options parameters.
|
|
301
|
+
*/
|
|
302
|
+
update(resourceGroupName, name, lab, options) {
|
|
303
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, lab, options }, updateOperationSpec);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
|
|
307
|
+
* @param resourceGroupName The name of the resource group.
|
|
308
|
+
* @param name The name of the lab.
|
|
309
|
+
* @param options The options parameters.
|
|
310
|
+
*/
|
|
311
|
+
beginClaimAnyVm(resourceGroupName, name, options) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
return this.client.sendOperationRequest(args, spec);
|
|
315
|
+
});
|
|
316
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
var _a;
|
|
318
|
+
let currentRawResponse = undefined;
|
|
319
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
320
|
+
const callback = (rawResponse, flatResponse) => {
|
|
321
|
+
currentRawResponse = rawResponse;
|
|
322
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
323
|
+
};
|
|
324
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
325
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
326
|
+
return {
|
|
327
|
+
flatResponse,
|
|
328
|
+
rawResponse: {
|
|
329
|
+
statusCode: currentRawResponse.status,
|
|
330
|
+
body: currentRawResponse.parsedBody,
|
|
331
|
+
headers: currentRawResponse.headers.toJSON()
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, claimAnyVmOperationSpec);
|
|
336
|
+
return new LroEngine(lro, {
|
|
337
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
338
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
|
|
344
|
+
* @param resourceGroupName The name of the resource group.
|
|
345
|
+
* @param name The name of the lab.
|
|
346
|
+
* @param options The options parameters.
|
|
347
|
+
*/
|
|
348
|
+
beginClaimAnyVmAndWait(resourceGroupName, name, options) {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
const poller = yield this.beginClaimAnyVm(resourceGroupName, name, options);
|
|
351
|
+
return poller.pollUntilDone();
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Create virtual machines in a lab. This operation can take a while to complete.
|
|
356
|
+
* @param resourceGroupName The name of the resource group.
|
|
357
|
+
* @param name The name of the lab.
|
|
358
|
+
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
|
|
359
|
+
* @param options The options parameters.
|
|
360
|
+
*/
|
|
361
|
+
beginCreateEnvironment(resourceGroupName, name, labVirtualMachineCreationParameter, options) {
|
|
362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
return this.client.sendOperationRequest(args, spec);
|
|
365
|
+
});
|
|
366
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
var _a;
|
|
368
|
+
let currentRawResponse = undefined;
|
|
369
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
370
|
+
const callback = (rawResponse, flatResponse) => {
|
|
371
|
+
currentRawResponse = rawResponse;
|
|
372
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
373
|
+
};
|
|
374
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
375
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
376
|
+
return {
|
|
377
|
+
flatResponse,
|
|
378
|
+
rawResponse: {
|
|
379
|
+
statusCode: currentRawResponse.status,
|
|
380
|
+
body: currentRawResponse.parsedBody,
|
|
381
|
+
headers: currentRawResponse.headers.toJSON()
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
});
|
|
385
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, labVirtualMachineCreationParameter, options }, createEnvironmentOperationSpec);
|
|
386
|
+
return new LroEngine(lro, {
|
|
387
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
388
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Create virtual machines in a lab. This operation can take a while to complete.
|
|
394
|
+
* @param resourceGroupName The name of the resource group.
|
|
395
|
+
* @param name The name of the lab.
|
|
396
|
+
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
|
|
397
|
+
* @param options The options parameters.
|
|
398
|
+
*/
|
|
399
|
+
beginCreateEnvironmentAndWait(resourceGroupName, name, labVirtualMachineCreationParameter, options) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
const poller = yield this.beginCreateEnvironment(resourceGroupName, name, labVirtualMachineCreationParameter, options);
|
|
402
|
+
return poller.pollUntilDone();
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Exports the lab resource usage into a storage account This operation can take a while to complete.
|
|
407
|
+
* @param resourceGroupName The name of the resource group.
|
|
408
|
+
* @param name The name of the lab.
|
|
409
|
+
* @param exportResourceUsageParameters The parameters of the export operation.
|
|
410
|
+
* @param options The options parameters.
|
|
411
|
+
*/
|
|
412
|
+
beginExportResourceUsage(resourceGroupName, name, exportResourceUsageParameters, options) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
415
|
+
return this.client.sendOperationRequest(args, spec);
|
|
416
|
+
});
|
|
417
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
var _a;
|
|
419
|
+
let currentRawResponse = undefined;
|
|
420
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
421
|
+
const callback = (rawResponse, flatResponse) => {
|
|
422
|
+
currentRawResponse = rawResponse;
|
|
423
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
424
|
+
};
|
|
425
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
426
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
427
|
+
return {
|
|
428
|
+
flatResponse,
|
|
429
|
+
rawResponse: {
|
|
430
|
+
statusCode: currentRawResponse.status,
|
|
431
|
+
body: currentRawResponse.parsedBody,
|
|
432
|
+
headers: currentRawResponse.headers.toJSON()
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
});
|
|
436
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, exportResourceUsageParameters, options }, exportResourceUsageOperationSpec);
|
|
437
|
+
return new LroEngine(lro, {
|
|
438
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
439
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Exports the lab resource usage into a storage account This operation can take a while to complete.
|
|
445
|
+
* @param resourceGroupName The name of the resource group.
|
|
446
|
+
* @param name The name of the lab.
|
|
447
|
+
* @param exportResourceUsageParameters The parameters of the export operation.
|
|
448
|
+
* @param options The options parameters.
|
|
449
|
+
*/
|
|
450
|
+
beginExportResourceUsageAndWait(resourceGroupName, name, exportResourceUsageParameters, options) {
|
|
451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
+
const poller = yield this.beginExportResourceUsage(resourceGroupName, name, exportResourceUsageParameters, options);
|
|
453
|
+
return poller.pollUntilDone();
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Generate a URI for uploading custom disk images to a Lab.
|
|
458
|
+
* @param resourceGroupName The name of the resource group.
|
|
459
|
+
* @param name The name of the lab.
|
|
460
|
+
* @param generateUploadUriParameter Properties for generating an upload URI.
|
|
461
|
+
* @param options The options parameters.
|
|
462
|
+
*/
|
|
463
|
+
generateUploadUri(resourceGroupName, name, generateUploadUriParameter, options) {
|
|
464
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, generateUploadUriParameter, options }, generateUploadUriOperationSpec);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Import a virtual machine into a different lab. This operation can take a while to complete.
|
|
468
|
+
* @param resourceGroupName The name of the resource group.
|
|
469
|
+
* @param name The name of the lab.
|
|
470
|
+
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual
|
|
471
|
+
* machine from a different lab into the current one
|
|
472
|
+
* @param options The options parameters.
|
|
473
|
+
*/
|
|
474
|
+
beginImportVirtualMachine(resourceGroupName, name, importLabVirtualMachineRequest, options) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
477
|
+
return this.client.sendOperationRequest(args, spec);
|
|
478
|
+
});
|
|
479
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
var _a;
|
|
481
|
+
let currentRawResponse = undefined;
|
|
482
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
483
|
+
const callback = (rawResponse, flatResponse) => {
|
|
484
|
+
currentRawResponse = rawResponse;
|
|
485
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
486
|
+
};
|
|
487
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
488
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
489
|
+
return {
|
|
490
|
+
flatResponse,
|
|
491
|
+
rawResponse: {
|
|
492
|
+
statusCode: currentRawResponse.status,
|
|
493
|
+
body: currentRawResponse.parsedBody,
|
|
494
|
+
headers: currentRawResponse.headers.toJSON()
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
});
|
|
498
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, importLabVirtualMachineRequest, options }, importVirtualMachineOperationSpec);
|
|
499
|
+
return new LroEngine(lro, {
|
|
500
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
501
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Import a virtual machine into a different lab. This operation can take a while to complete.
|
|
507
|
+
* @param resourceGroupName The name of the resource group.
|
|
508
|
+
* @param name The name of the lab.
|
|
509
|
+
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual
|
|
510
|
+
* machine from a different lab into the current one
|
|
511
|
+
* @param options The options parameters.
|
|
512
|
+
*/
|
|
513
|
+
beginImportVirtualMachineAndWait(resourceGroupName, name, importLabVirtualMachineRequest, options) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
const poller = yield this.beginImportVirtualMachine(resourceGroupName, name, importLabVirtualMachineRequest, options);
|
|
516
|
+
return poller.pollUntilDone();
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* List disk images available for custom image creation.
|
|
521
|
+
* @param resourceGroupName The name of the resource group.
|
|
522
|
+
* @param name The name of the lab.
|
|
523
|
+
* @param options The options parameters.
|
|
524
|
+
*/
|
|
525
|
+
_listVhds(resourceGroupName, name, options) {
|
|
526
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, listVhdsOperationSpec);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* ListBySubscriptionNext
|
|
530
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
531
|
+
* @param options The options parameters.
|
|
532
|
+
*/
|
|
533
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
534
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* ListByResourceGroupNext
|
|
538
|
+
* @param resourceGroupName The name of the resource group.
|
|
539
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
540
|
+
* @param options The options parameters.
|
|
541
|
+
*/
|
|
542
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
543
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* ListVhdsNext
|
|
547
|
+
* @param resourceGroupName The name of the resource group.
|
|
548
|
+
* @param name The name of the lab.
|
|
549
|
+
* @param nextLink The nextLink from the previous successful call to the ListVhds method.
|
|
550
|
+
* @param options The options parameters.
|
|
551
|
+
*/
|
|
552
|
+
_listVhdsNext(resourceGroupName, name, nextLink, options) {
|
|
553
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listVhdsNextOperationSpec);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
// Operation Specifications
|
|
557
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
558
|
+
const listBySubscriptionOperationSpec = {
|
|
559
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs",
|
|
560
|
+
httpMethod: "GET",
|
|
561
|
+
responses: {
|
|
562
|
+
200: {
|
|
563
|
+
bodyMapper: Mappers.LabList
|
|
564
|
+
},
|
|
565
|
+
default: {
|
|
566
|
+
bodyMapper: Mappers.CloudError
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
queryParameters: [
|
|
570
|
+
Parameters.apiVersion,
|
|
571
|
+
Parameters.expand,
|
|
572
|
+
Parameters.filter,
|
|
573
|
+
Parameters.top,
|
|
574
|
+
Parameters.orderby
|
|
575
|
+
],
|
|
576
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
577
|
+
headerParameters: [Parameters.accept],
|
|
578
|
+
serializer
|
|
579
|
+
};
|
|
580
|
+
const listByResourceGroupOperationSpec = {
|
|
581
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs",
|
|
582
|
+
httpMethod: "GET",
|
|
583
|
+
responses: {
|
|
584
|
+
200: {
|
|
585
|
+
bodyMapper: Mappers.LabList
|
|
586
|
+
},
|
|
587
|
+
default: {
|
|
588
|
+
bodyMapper: Mappers.CloudError
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
queryParameters: [
|
|
592
|
+
Parameters.apiVersion,
|
|
593
|
+
Parameters.expand,
|
|
594
|
+
Parameters.filter,
|
|
595
|
+
Parameters.top,
|
|
596
|
+
Parameters.orderby
|
|
597
|
+
],
|
|
598
|
+
urlParameters: [
|
|
599
|
+
Parameters.$host,
|
|
600
|
+
Parameters.subscriptionId,
|
|
601
|
+
Parameters.resourceGroupName
|
|
602
|
+
],
|
|
603
|
+
headerParameters: [Parameters.accept],
|
|
604
|
+
serializer
|
|
605
|
+
};
|
|
606
|
+
const getOperationSpec = {
|
|
607
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}",
|
|
608
|
+
httpMethod: "GET",
|
|
609
|
+
responses: {
|
|
610
|
+
200: {
|
|
611
|
+
bodyMapper: Mappers.Lab
|
|
612
|
+
},
|
|
613
|
+
default: {
|
|
614
|
+
bodyMapper: Mappers.CloudError
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
618
|
+
urlParameters: [
|
|
619
|
+
Parameters.$host,
|
|
620
|
+
Parameters.subscriptionId,
|
|
621
|
+
Parameters.resourceGroupName,
|
|
622
|
+
Parameters.name
|
|
623
|
+
],
|
|
624
|
+
headerParameters: [Parameters.accept],
|
|
625
|
+
serializer
|
|
626
|
+
};
|
|
627
|
+
const createOrUpdateOperationSpec = {
|
|
628
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}",
|
|
629
|
+
httpMethod: "PUT",
|
|
630
|
+
responses: {
|
|
631
|
+
200: {
|
|
632
|
+
bodyMapper: Mappers.Lab
|
|
633
|
+
},
|
|
634
|
+
201: {
|
|
635
|
+
bodyMapper: Mappers.Lab
|
|
636
|
+
},
|
|
637
|
+
202: {
|
|
638
|
+
bodyMapper: Mappers.Lab
|
|
639
|
+
},
|
|
640
|
+
204: {
|
|
641
|
+
bodyMapper: Mappers.Lab
|
|
642
|
+
},
|
|
643
|
+
default: {
|
|
644
|
+
bodyMapper: Mappers.CloudError
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
requestBody: Parameters.lab,
|
|
648
|
+
queryParameters: [Parameters.apiVersion],
|
|
649
|
+
urlParameters: [
|
|
650
|
+
Parameters.$host,
|
|
651
|
+
Parameters.subscriptionId,
|
|
652
|
+
Parameters.resourceGroupName,
|
|
653
|
+
Parameters.name
|
|
654
|
+
],
|
|
655
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
656
|
+
mediaType: "json",
|
|
657
|
+
serializer
|
|
658
|
+
};
|
|
659
|
+
const deleteOperationSpec = {
|
|
660
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}",
|
|
661
|
+
httpMethod: "DELETE",
|
|
662
|
+
responses: {
|
|
663
|
+
200: {},
|
|
664
|
+
201: {},
|
|
665
|
+
202: {},
|
|
666
|
+
204: {},
|
|
667
|
+
default: {
|
|
668
|
+
bodyMapper: Mappers.CloudError
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
queryParameters: [Parameters.apiVersion],
|
|
672
|
+
urlParameters: [
|
|
673
|
+
Parameters.$host,
|
|
674
|
+
Parameters.subscriptionId,
|
|
675
|
+
Parameters.resourceGroupName,
|
|
676
|
+
Parameters.name
|
|
677
|
+
],
|
|
678
|
+
headerParameters: [Parameters.accept],
|
|
679
|
+
serializer
|
|
680
|
+
};
|
|
681
|
+
const updateOperationSpec = {
|
|
682
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}",
|
|
683
|
+
httpMethod: "PATCH",
|
|
684
|
+
responses: {
|
|
685
|
+
200: {
|
|
686
|
+
bodyMapper: Mappers.Lab
|
|
687
|
+
},
|
|
688
|
+
default: {
|
|
689
|
+
bodyMapper: Mappers.CloudError
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
requestBody: Parameters.lab1,
|
|
693
|
+
queryParameters: [Parameters.apiVersion],
|
|
694
|
+
urlParameters: [
|
|
695
|
+
Parameters.$host,
|
|
696
|
+
Parameters.subscriptionId,
|
|
697
|
+
Parameters.resourceGroupName,
|
|
698
|
+
Parameters.name
|
|
699
|
+
],
|
|
700
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
701
|
+
mediaType: "json",
|
|
702
|
+
serializer
|
|
703
|
+
};
|
|
704
|
+
const claimAnyVmOperationSpec = {
|
|
705
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm",
|
|
706
|
+
httpMethod: "POST",
|
|
707
|
+
responses: {
|
|
708
|
+
200: {},
|
|
709
|
+
201: {},
|
|
710
|
+
202: {},
|
|
711
|
+
204: {},
|
|
712
|
+
default: {
|
|
713
|
+
bodyMapper: Mappers.CloudError
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
queryParameters: [Parameters.apiVersion],
|
|
717
|
+
urlParameters: [
|
|
718
|
+
Parameters.$host,
|
|
719
|
+
Parameters.subscriptionId,
|
|
720
|
+
Parameters.resourceGroupName,
|
|
721
|
+
Parameters.name
|
|
722
|
+
],
|
|
723
|
+
headerParameters: [Parameters.accept],
|
|
724
|
+
serializer
|
|
725
|
+
};
|
|
726
|
+
const createEnvironmentOperationSpec = {
|
|
727
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment",
|
|
728
|
+
httpMethod: "POST",
|
|
729
|
+
responses: {
|
|
730
|
+
200: {},
|
|
731
|
+
201: {},
|
|
732
|
+
202: {},
|
|
733
|
+
204: {},
|
|
734
|
+
default: {
|
|
735
|
+
bodyMapper: Mappers.CloudError
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
requestBody: Parameters.labVirtualMachineCreationParameter,
|
|
739
|
+
queryParameters: [Parameters.apiVersion],
|
|
740
|
+
urlParameters: [
|
|
741
|
+
Parameters.$host,
|
|
742
|
+
Parameters.subscriptionId,
|
|
743
|
+
Parameters.resourceGroupName,
|
|
744
|
+
Parameters.name
|
|
745
|
+
],
|
|
746
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
747
|
+
mediaType: "json",
|
|
748
|
+
serializer
|
|
749
|
+
};
|
|
750
|
+
const exportResourceUsageOperationSpec = {
|
|
751
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage",
|
|
752
|
+
httpMethod: "POST",
|
|
753
|
+
responses: {
|
|
754
|
+
200: {},
|
|
755
|
+
201: {},
|
|
756
|
+
202: {},
|
|
757
|
+
204: {},
|
|
758
|
+
default: {
|
|
759
|
+
bodyMapper: Mappers.CloudError
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
requestBody: Parameters.exportResourceUsageParameters,
|
|
763
|
+
queryParameters: [Parameters.apiVersion],
|
|
764
|
+
urlParameters: [
|
|
765
|
+
Parameters.$host,
|
|
766
|
+
Parameters.subscriptionId,
|
|
767
|
+
Parameters.resourceGroupName,
|
|
768
|
+
Parameters.name
|
|
769
|
+
],
|
|
770
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
771
|
+
mediaType: "json",
|
|
772
|
+
serializer
|
|
773
|
+
};
|
|
774
|
+
const generateUploadUriOperationSpec = {
|
|
775
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri",
|
|
776
|
+
httpMethod: "POST",
|
|
777
|
+
responses: {
|
|
778
|
+
200: {
|
|
779
|
+
bodyMapper: Mappers.GenerateUploadUriResponse
|
|
780
|
+
},
|
|
781
|
+
default: {
|
|
782
|
+
bodyMapper: Mappers.CloudError
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
requestBody: Parameters.generateUploadUriParameter,
|
|
786
|
+
queryParameters: [Parameters.apiVersion],
|
|
787
|
+
urlParameters: [
|
|
788
|
+
Parameters.$host,
|
|
789
|
+
Parameters.subscriptionId,
|
|
790
|
+
Parameters.resourceGroupName,
|
|
791
|
+
Parameters.name
|
|
792
|
+
],
|
|
793
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
794
|
+
mediaType: "json",
|
|
795
|
+
serializer
|
|
796
|
+
};
|
|
797
|
+
const importVirtualMachineOperationSpec = {
|
|
798
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine",
|
|
799
|
+
httpMethod: "POST",
|
|
800
|
+
responses: {
|
|
801
|
+
200: {},
|
|
802
|
+
201: {},
|
|
803
|
+
202: {},
|
|
804
|
+
204: {},
|
|
805
|
+
default: {
|
|
806
|
+
bodyMapper: Mappers.CloudError
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
requestBody: Parameters.importLabVirtualMachineRequest,
|
|
810
|
+
queryParameters: [Parameters.apiVersion],
|
|
811
|
+
urlParameters: [
|
|
812
|
+
Parameters.$host,
|
|
813
|
+
Parameters.subscriptionId,
|
|
814
|
+
Parameters.resourceGroupName,
|
|
815
|
+
Parameters.name
|
|
816
|
+
],
|
|
817
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
818
|
+
mediaType: "json",
|
|
819
|
+
serializer
|
|
820
|
+
};
|
|
821
|
+
const listVhdsOperationSpec = {
|
|
822
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds",
|
|
823
|
+
httpMethod: "POST",
|
|
824
|
+
responses: {
|
|
825
|
+
200: {
|
|
826
|
+
bodyMapper: Mappers.LabVhdList
|
|
827
|
+
},
|
|
828
|
+
default: {
|
|
829
|
+
bodyMapper: Mappers.CloudError
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
queryParameters: [Parameters.apiVersion],
|
|
833
|
+
urlParameters: [
|
|
834
|
+
Parameters.$host,
|
|
835
|
+
Parameters.subscriptionId,
|
|
836
|
+
Parameters.resourceGroupName,
|
|
837
|
+
Parameters.name
|
|
838
|
+
],
|
|
839
|
+
headerParameters: [Parameters.accept],
|
|
840
|
+
serializer
|
|
841
|
+
};
|
|
842
|
+
const listBySubscriptionNextOperationSpec = {
|
|
843
|
+
path: "{nextLink}",
|
|
844
|
+
httpMethod: "GET",
|
|
845
|
+
responses: {
|
|
846
|
+
200: {
|
|
847
|
+
bodyMapper: Mappers.LabList
|
|
848
|
+
},
|
|
849
|
+
default: {
|
|
850
|
+
bodyMapper: Mappers.CloudError
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
queryParameters: [
|
|
854
|
+
Parameters.apiVersion,
|
|
855
|
+
Parameters.expand,
|
|
856
|
+
Parameters.filter,
|
|
857
|
+
Parameters.top,
|
|
858
|
+
Parameters.orderby
|
|
859
|
+
],
|
|
860
|
+
urlParameters: [
|
|
861
|
+
Parameters.$host,
|
|
862
|
+
Parameters.nextLink,
|
|
863
|
+
Parameters.subscriptionId
|
|
864
|
+
],
|
|
865
|
+
headerParameters: [Parameters.accept],
|
|
866
|
+
serializer
|
|
867
|
+
};
|
|
868
|
+
const listByResourceGroupNextOperationSpec = {
|
|
869
|
+
path: "{nextLink}",
|
|
870
|
+
httpMethod: "GET",
|
|
871
|
+
responses: {
|
|
872
|
+
200: {
|
|
873
|
+
bodyMapper: Mappers.LabList
|
|
874
|
+
},
|
|
875
|
+
default: {
|
|
876
|
+
bodyMapper: Mappers.CloudError
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
queryParameters: [
|
|
880
|
+
Parameters.apiVersion,
|
|
881
|
+
Parameters.expand,
|
|
882
|
+
Parameters.filter,
|
|
883
|
+
Parameters.top,
|
|
884
|
+
Parameters.orderby
|
|
885
|
+
],
|
|
886
|
+
urlParameters: [
|
|
887
|
+
Parameters.$host,
|
|
888
|
+
Parameters.nextLink,
|
|
889
|
+
Parameters.subscriptionId,
|
|
890
|
+
Parameters.resourceGroupName
|
|
891
|
+
],
|
|
892
|
+
headerParameters: [Parameters.accept],
|
|
893
|
+
serializer
|
|
894
|
+
};
|
|
895
|
+
const listVhdsNextOperationSpec = {
|
|
896
|
+
path: "{nextLink}",
|
|
897
|
+
httpMethod: "GET",
|
|
898
|
+
responses: {
|
|
899
|
+
200: {
|
|
900
|
+
bodyMapper: Mappers.LabVhdList
|
|
901
|
+
},
|
|
902
|
+
default: {
|
|
903
|
+
bodyMapper: Mappers.CloudError
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
queryParameters: [Parameters.apiVersion],
|
|
907
|
+
urlParameters: [
|
|
908
|
+
Parameters.$host,
|
|
909
|
+
Parameters.nextLink,
|
|
910
|
+
Parameters.subscriptionId,
|
|
911
|
+
Parameters.resourceGroupName,
|
|
912
|
+
Parameters.name
|
|
913
|
+
],
|
|
914
|
+
headerParameters: [Parameters.accept],
|
|
915
|
+
serializer
|
|
916
|
+
};
|
|
917
|
+
//# sourceMappingURL=labs.js.map
|