@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,1280 @@
|
|
|
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 VirtualMachines operations. */
|
|
16
|
+
export class VirtualMachinesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class VirtualMachines class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List virtual machines in a given lab.
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param labName The name of the lab.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, labName, options) {
|
|
31
|
+
const iter = this.listPagingAll(resourceGroupName, labName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listPagingPage(resourceGroupName, labName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(resourceGroupName, labName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._list(resourceGroupName, labName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listNext(resourceGroupName, labName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listPagingAll(resourceGroupName, labName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, labName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* List virtual machines in a given lab.
|
|
76
|
+
* @param resourceGroupName The name of the resource group.
|
|
77
|
+
* @param labName The name of the lab.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_list(resourceGroupName, labName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get virtual machine.
|
|
85
|
+
* @param resourceGroupName The name of the resource group.
|
|
86
|
+
* @param labName The name of the lab.
|
|
87
|
+
* @param name The name of the virtual machine.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
get(resourceGroupName, labName, name, options) {
|
|
91
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, name, options }, getOperationSpec);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create or replace an existing virtual machine. This operation can take a while to complete.
|
|
95
|
+
* @param resourceGroupName The name of the resource group.
|
|
96
|
+
* @param labName The name of the lab.
|
|
97
|
+
* @param name The name of the virtual machine.
|
|
98
|
+
* @param labVirtualMachine A virtual machine.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
beginCreateOrUpdate(resourceGroupName, labName, name, labVirtualMachine, options) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
return this.client.sendOperationRequest(args, spec);
|
|
105
|
+
});
|
|
106
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a;
|
|
108
|
+
let currentRawResponse = undefined;
|
|
109
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
110
|
+
const callback = (rawResponse, flatResponse) => {
|
|
111
|
+
currentRawResponse = rawResponse;
|
|
112
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
113
|
+
};
|
|
114
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
115
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
116
|
+
return {
|
|
117
|
+
flatResponse,
|
|
118
|
+
rawResponse: {
|
|
119
|
+
statusCode: currentRawResponse.status,
|
|
120
|
+
body: currentRawResponse.parsedBody,
|
|
121
|
+
headers: currentRawResponse.headers.toJSON()
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, labVirtualMachine, options }, createOrUpdateOperationSpec);
|
|
126
|
+
return new LroEngine(lro, {
|
|
127
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
128
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Create or replace an existing virtual machine. This operation can take a while to complete.
|
|
134
|
+
* @param resourceGroupName The name of the resource group.
|
|
135
|
+
* @param labName The name of the lab.
|
|
136
|
+
* @param name The name of the virtual machine.
|
|
137
|
+
* @param labVirtualMachine A virtual machine.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
beginCreateOrUpdateAndWait(resourceGroupName, labName, name, labVirtualMachine, options) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, labName, name, labVirtualMachine, options);
|
|
143
|
+
return poller.pollUntilDone();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Delete virtual machine. This operation can take a while to complete.
|
|
148
|
+
* @param resourceGroupName The name of the resource group.
|
|
149
|
+
* @param labName The name of the lab.
|
|
150
|
+
* @param name The name of the virtual machine.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
beginDelete(resourceGroupName, labName, name, options) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
return this.client.sendOperationRequest(args, spec);
|
|
157
|
+
});
|
|
158
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a;
|
|
160
|
+
let currentRawResponse = undefined;
|
|
161
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
162
|
+
const callback = (rawResponse, flatResponse) => {
|
|
163
|
+
currentRawResponse = rawResponse;
|
|
164
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
167
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
168
|
+
return {
|
|
169
|
+
flatResponse,
|
|
170
|
+
rawResponse: {
|
|
171
|
+
statusCode: currentRawResponse.status,
|
|
172
|
+
body: currentRawResponse.parsedBody,
|
|
173
|
+
headers: currentRawResponse.headers.toJSON()
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, deleteOperationSpec);
|
|
178
|
+
return new LroEngine(lro, {
|
|
179
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
180
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Delete virtual machine. This operation can take a while to complete.
|
|
186
|
+
* @param resourceGroupName The name of the resource group.
|
|
187
|
+
* @param labName The name of the lab.
|
|
188
|
+
* @param name The name of the virtual machine.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
beginDeleteAndWait(resourceGroupName, labName, name, options) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const poller = yield this.beginDelete(resourceGroupName, labName, name, options);
|
|
194
|
+
return poller.pollUntilDone();
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Allows modifying tags of virtual machines. All other properties will be ignored.
|
|
199
|
+
* @param resourceGroupName The name of the resource group.
|
|
200
|
+
* @param labName The name of the lab.
|
|
201
|
+
* @param name The name of the virtual machine.
|
|
202
|
+
* @param labVirtualMachine A virtual machine.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
update(resourceGroupName, labName, name, labVirtualMachine, options) {
|
|
206
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, name, labVirtualMachine, options }, updateOperationSpec);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
|
|
210
|
+
* @param resourceGroupName The name of the resource group.
|
|
211
|
+
* @param labName The name of the lab.
|
|
212
|
+
* @param name The name of the virtual machine.
|
|
213
|
+
* @param dataDiskProperties Request body for adding a new or existing data disk to a virtual machine.
|
|
214
|
+
* @param options The options parameters.
|
|
215
|
+
*/
|
|
216
|
+
beginAddDataDisk(resourceGroupName, labName, name, dataDiskProperties, options) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
return this.client.sendOperationRequest(args, spec);
|
|
220
|
+
});
|
|
221
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
var _a;
|
|
223
|
+
let currentRawResponse = undefined;
|
|
224
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
225
|
+
const callback = (rawResponse, flatResponse) => {
|
|
226
|
+
currentRawResponse = rawResponse;
|
|
227
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
228
|
+
};
|
|
229
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
230
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
231
|
+
return {
|
|
232
|
+
flatResponse,
|
|
233
|
+
rawResponse: {
|
|
234
|
+
statusCode: currentRawResponse.status,
|
|
235
|
+
body: currentRawResponse.parsedBody,
|
|
236
|
+
headers: currentRawResponse.headers.toJSON()
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, dataDiskProperties, options }, addDataDiskOperationSpec);
|
|
241
|
+
return new LroEngine(lro, {
|
|
242
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
243
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
|
|
249
|
+
* @param resourceGroupName The name of the resource group.
|
|
250
|
+
* @param labName The name of the lab.
|
|
251
|
+
* @param name The name of the virtual machine.
|
|
252
|
+
* @param dataDiskProperties Request body for adding a new or existing data disk to a virtual machine.
|
|
253
|
+
* @param options The options parameters.
|
|
254
|
+
*/
|
|
255
|
+
beginAddDataDiskAndWait(resourceGroupName, labName, name, dataDiskProperties, options) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const poller = yield this.beginAddDataDisk(resourceGroupName, labName, name, dataDiskProperties, options);
|
|
258
|
+
return poller.pollUntilDone();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Apply artifacts to virtual machine. This operation can take a while to complete.
|
|
263
|
+
* @param resourceGroupName The name of the resource group.
|
|
264
|
+
* @param labName The name of the lab.
|
|
265
|
+
* @param name The name of the virtual machine.
|
|
266
|
+
* @param applyArtifactsRequest Request body for applying artifacts to a virtual machine.
|
|
267
|
+
* @param options The options parameters.
|
|
268
|
+
*/
|
|
269
|
+
beginApplyArtifacts(resourceGroupName, labName, name, applyArtifactsRequest, options) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
return this.client.sendOperationRequest(args, spec);
|
|
273
|
+
});
|
|
274
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a;
|
|
276
|
+
let currentRawResponse = undefined;
|
|
277
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
278
|
+
const callback = (rawResponse, flatResponse) => {
|
|
279
|
+
currentRawResponse = rawResponse;
|
|
280
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
281
|
+
};
|
|
282
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
283
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
284
|
+
return {
|
|
285
|
+
flatResponse,
|
|
286
|
+
rawResponse: {
|
|
287
|
+
statusCode: currentRawResponse.status,
|
|
288
|
+
body: currentRawResponse.parsedBody,
|
|
289
|
+
headers: currentRawResponse.headers.toJSON()
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, applyArtifactsRequest, options }, applyArtifactsOperationSpec);
|
|
294
|
+
return new LroEngine(lro, {
|
|
295
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
296
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Apply artifacts to virtual machine. This operation can take a while to complete.
|
|
302
|
+
* @param resourceGroupName The name of the resource group.
|
|
303
|
+
* @param labName The name of the lab.
|
|
304
|
+
* @param name The name of the virtual machine.
|
|
305
|
+
* @param applyArtifactsRequest Request body for applying artifacts to a virtual machine.
|
|
306
|
+
* @param options The options parameters.
|
|
307
|
+
*/
|
|
308
|
+
beginApplyArtifactsAndWait(resourceGroupName, labName, name, applyArtifactsRequest, options) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const poller = yield this.beginApplyArtifacts(resourceGroupName, labName, name, applyArtifactsRequest, options);
|
|
311
|
+
return poller.pollUntilDone();
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Take ownership of an existing virtual machine This operation can take a while to complete.
|
|
316
|
+
* @param resourceGroupName The name of the resource group.
|
|
317
|
+
* @param labName The name of the lab.
|
|
318
|
+
* @param name The name of the virtual machine.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
beginClaim(resourceGroupName, labName, name, options) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
return this.client.sendOperationRequest(args, spec);
|
|
325
|
+
});
|
|
326
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
var _a;
|
|
328
|
+
let currentRawResponse = undefined;
|
|
329
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
330
|
+
const callback = (rawResponse, flatResponse) => {
|
|
331
|
+
currentRawResponse = rawResponse;
|
|
332
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
333
|
+
};
|
|
334
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
335
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
336
|
+
return {
|
|
337
|
+
flatResponse,
|
|
338
|
+
rawResponse: {
|
|
339
|
+
statusCode: currentRawResponse.status,
|
|
340
|
+
body: currentRawResponse.parsedBody,
|
|
341
|
+
headers: currentRawResponse.headers.toJSON()
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
});
|
|
345
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, claimOperationSpec);
|
|
346
|
+
return new LroEngine(lro, {
|
|
347
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
348
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Take ownership of an existing virtual machine This operation can take a while to complete.
|
|
354
|
+
* @param resourceGroupName The name of the resource group.
|
|
355
|
+
* @param labName The name of the lab.
|
|
356
|
+
* @param name The name of the virtual machine.
|
|
357
|
+
* @param options The options parameters.
|
|
358
|
+
*/
|
|
359
|
+
beginClaimAndWait(resourceGroupName, labName, name, options) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const poller = yield this.beginClaim(resourceGroupName, labName, name, options);
|
|
362
|
+
return poller.pollUntilDone();
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Detach the specified disk from the virtual machine. This operation can take a while to complete.
|
|
367
|
+
* @param resourceGroupName The name of the resource group.
|
|
368
|
+
* @param labName The name of the lab.
|
|
369
|
+
* @param name The name of the virtual machine.
|
|
370
|
+
* @param detachDataDiskProperties Request body for detaching data disk from a virtual machine.
|
|
371
|
+
* @param options The options parameters.
|
|
372
|
+
*/
|
|
373
|
+
beginDetachDataDisk(resourceGroupName, labName, name, detachDataDiskProperties, options) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
return this.client.sendOperationRequest(args, spec);
|
|
377
|
+
});
|
|
378
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
379
|
+
var _a;
|
|
380
|
+
let currentRawResponse = undefined;
|
|
381
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
382
|
+
const callback = (rawResponse, flatResponse) => {
|
|
383
|
+
currentRawResponse = rawResponse;
|
|
384
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
385
|
+
};
|
|
386
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
387
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
388
|
+
return {
|
|
389
|
+
flatResponse,
|
|
390
|
+
rawResponse: {
|
|
391
|
+
statusCode: currentRawResponse.status,
|
|
392
|
+
body: currentRawResponse.parsedBody,
|
|
393
|
+
headers: currentRawResponse.headers.toJSON()
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
});
|
|
397
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, detachDataDiskProperties, options }, detachDataDiskOperationSpec);
|
|
398
|
+
return new LroEngine(lro, {
|
|
399
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
400
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Detach the specified disk from the virtual machine. This operation can take a while to complete.
|
|
406
|
+
* @param resourceGroupName The name of the resource group.
|
|
407
|
+
* @param labName The name of the lab.
|
|
408
|
+
* @param name The name of the virtual machine.
|
|
409
|
+
* @param detachDataDiskProperties Request body for detaching data disk from a virtual machine.
|
|
410
|
+
* @param options The options parameters.
|
|
411
|
+
*/
|
|
412
|
+
beginDetachDataDiskAndWait(resourceGroupName, labName, name, detachDataDiskProperties, options) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
const poller = yield this.beginDetachDataDisk(resourceGroupName, labName, name, detachDataDiskProperties, options);
|
|
415
|
+
return poller.pollUntilDone();
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Gets a string that represents the contents of the RDP file for the virtual machine
|
|
420
|
+
* @param resourceGroupName The name of the resource group.
|
|
421
|
+
* @param labName The name of the lab.
|
|
422
|
+
* @param name The name of the virtual machine.
|
|
423
|
+
* @param options The options parameters.
|
|
424
|
+
*/
|
|
425
|
+
getRdpFileContents(resourceGroupName, labName, name, options) {
|
|
426
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, name, options }, getRdpFileContentsOperationSpec);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Lists the applicable start/stop schedules, if any.
|
|
430
|
+
* @param resourceGroupName The name of the resource group.
|
|
431
|
+
* @param labName The name of the lab.
|
|
432
|
+
* @param name The name of the virtual machine.
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
listApplicableSchedules(resourceGroupName, labName, name, options) {
|
|
436
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, name, options }, listApplicableSchedulesOperationSpec);
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Redeploy a virtual machine This operation can take a while to complete.
|
|
440
|
+
* @param resourceGroupName The name of the resource group.
|
|
441
|
+
* @param labName The name of the lab.
|
|
442
|
+
* @param name The name of the virtual machine.
|
|
443
|
+
* @param options The options parameters.
|
|
444
|
+
*/
|
|
445
|
+
beginRedeploy(resourceGroupName, labName, name, options) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
return this.client.sendOperationRequest(args, spec);
|
|
449
|
+
});
|
|
450
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
var _a;
|
|
452
|
+
let currentRawResponse = undefined;
|
|
453
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
454
|
+
const callback = (rawResponse, flatResponse) => {
|
|
455
|
+
currentRawResponse = rawResponse;
|
|
456
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
457
|
+
};
|
|
458
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
459
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
460
|
+
return {
|
|
461
|
+
flatResponse,
|
|
462
|
+
rawResponse: {
|
|
463
|
+
statusCode: currentRawResponse.status,
|
|
464
|
+
body: currentRawResponse.parsedBody,
|
|
465
|
+
headers: currentRawResponse.headers.toJSON()
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
});
|
|
469
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, redeployOperationSpec);
|
|
470
|
+
return new LroEngine(lro, {
|
|
471
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
472
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Redeploy a virtual machine This operation can take a while to complete.
|
|
478
|
+
* @param resourceGroupName The name of the resource group.
|
|
479
|
+
* @param labName The name of the lab.
|
|
480
|
+
* @param name The name of the virtual machine.
|
|
481
|
+
* @param options The options parameters.
|
|
482
|
+
*/
|
|
483
|
+
beginRedeployAndWait(resourceGroupName, labName, name, options) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
const poller = yield this.beginRedeploy(resourceGroupName, labName, name, options);
|
|
486
|
+
return poller.pollUntilDone();
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Resize Virtual Machine. This operation can take a while to complete.
|
|
491
|
+
* @param resourceGroupName The name of the resource group.
|
|
492
|
+
* @param labName The name of the lab.
|
|
493
|
+
* @param name The name of the virtual machine.
|
|
494
|
+
* @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine.
|
|
495
|
+
* @param options The options parameters.
|
|
496
|
+
*/
|
|
497
|
+
beginResize(resourceGroupName, labName, name, resizeLabVirtualMachineProperties, options) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
return this.client.sendOperationRequest(args, spec);
|
|
501
|
+
});
|
|
502
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
var _a;
|
|
504
|
+
let currentRawResponse = undefined;
|
|
505
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
506
|
+
const callback = (rawResponse, flatResponse) => {
|
|
507
|
+
currentRawResponse = rawResponse;
|
|
508
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
509
|
+
};
|
|
510
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
511
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
512
|
+
return {
|
|
513
|
+
flatResponse,
|
|
514
|
+
rawResponse: {
|
|
515
|
+
statusCode: currentRawResponse.status,
|
|
516
|
+
body: currentRawResponse.parsedBody,
|
|
517
|
+
headers: currentRawResponse.headers.toJSON()
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
});
|
|
521
|
+
const lro = new LroImpl(sendOperation, {
|
|
522
|
+
resourceGroupName,
|
|
523
|
+
labName,
|
|
524
|
+
name,
|
|
525
|
+
resizeLabVirtualMachineProperties,
|
|
526
|
+
options
|
|
527
|
+
}, resizeOperationSpec);
|
|
528
|
+
return new LroEngine(lro, {
|
|
529
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
530
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Resize Virtual Machine. This operation can take a while to complete.
|
|
536
|
+
* @param resourceGroupName The name of the resource group.
|
|
537
|
+
* @param labName The name of the lab.
|
|
538
|
+
* @param name The name of the virtual machine.
|
|
539
|
+
* @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine.
|
|
540
|
+
* @param options The options parameters.
|
|
541
|
+
*/
|
|
542
|
+
beginResizeAndWait(resourceGroupName, labName, name, resizeLabVirtualMachineProperties, options) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
const poller = yield this.beginResize(resourceGroupName, labName, name, resizeLabVirtualMachineProperties, options);
|
|
545
|
+
return poller.pollUntilDone();
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Restart a virtual machine. This operation can take a while to complete.
|
|
550
|
+
* @param resourceGroupName The name of the resource group.
|
|
551
|
+
* @param labName The name of the lab.
|
|
552
|
+
* @param name The name of the virtual machine.
|
|
553
|
+
* @param options The options parameters.
|
|
554
|
+
*/
|
|
555
|
+
beginRestart(resourceGroupName, labName, name, options) {
|
|
556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
557
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
558
|
+
return this.client.sendOperationRequest(args, spec);
|
|
559
|
+
});
|
|
560
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
var _a;
|
|
562
|
+
let currentRawResponse = undefined;
|
|
563
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
564
|
+
const callback = (rawResponse, flatResponse) => {
|
|
565
|
+
currentRawResponse = rawResponse;
|
|
566
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
567
|
+
};
|
|
568
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
569
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
570
|
+
return {
|
|
571
|
+
flatResponse,
|
|
572
|
+
rawResponse: {
|
|
573
|
+
statusCode: currentRawResponse.status,
|
|
574
|
+
body: currentRawResponse.parsedBody,
|
|
575
|
+
headers: currentRawResponse.headers.toJSON()
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, restartOperationSpec);
|
|
580
|
+
return new LroEngine(lro, {
|
|
581
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
582
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Restart a virtual machine. This operation can take a while to complete.
|
|
588
|
+
* @param resourceGroupName The name of the resource group.
|
|
589
|
+
* @param labName The name of the lab.
|
|
590
|
+
* @param name The name of the virtual machine.
|
|
591
|
+
* @param options The options parameters.
|
|
592
|
+
*/
|
|
593
|
+
beginRestartAndWait(resourceGroupName, labName, name, options) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
const poller = yield this.beginRestart(resourceGroupName, labName, name, options);
|
|
596
|
+
return poller.pollUntilDone();
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Start a virtual machine. This operation can take a while to complete.
|
|
601
|
+
* @param resourceGroupName The name of the resource group.
|
|
602
|
+
* @param labName The name of the lab.
|
|
603
|
+
* @param name The name of the virtual machine.
|
|
604
|
+
* @param options The options parameters.
|
|
605
|
+
*/
|
|
606
|
+
beginStart(resourceGroupName, labName, name, options) {
|
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
return this.client.sendOperationRequest(args, spec);
|
|
610
|
+
});
|
|
611
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
612
|
+
var _a;
|
|
613
|
+
let currentRawResponse = undefined;
|
|
614
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
615
|
+
const callback = (rawResponse, flatResponse) => {
|
|
616
|
+
currentRawResponse = rawResponse;
|
|
617
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
618
|
+
};
|
|
619
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
620
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
621
|
+
return {
|
|
622
|
+
flatResponse,
|
|
623
|
+
rawResponse: {
|
|
624
|
+
statusCode: currentRawResponse.status,
|
|
625
|
+
body: currentRawResponse.parsedBody,
|
|
626
|
+
headers: currentRawResponse.headers.toJSON()
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
});
|
|
630
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, startOperationSpec);
|
|
631
|
+
return new LroEngine(lro, {
|
|
632
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
633
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
634
|
+
});
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Start a virtual machine. This operation can take a while to complete.
|
|
639
|
+
* @param resourceGroupName The name of the resource group.
|
|
640
|
+
* @param labName The name of the lab.
|
|
641
|
+
* @param name The name of the virtual machine.
|
|
642
|
+
* @param options The options parameters.
|
|
643
|
+
*/
|
|
644
|
+
beginStartAndWait(resourceGroupName, labName, name, options) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
const poller = yield this.beginStart(resourceGroupName, labName, name, options);
|
|
647
|
+
return poller.pollUntilDone();
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Stop a virtual machine This operation can take a while to complete.
|
|
652
|
+
* @param resourceGroupName The name of the resource group.
|
|
653
|
+
* @param labName The name of the lab.
|
|
654
|
+
* @param name The name of the virtual machine.
|
|
655
|
+
* @param options The options parameters.
|
|
656
|
+
*/
|
|
657
|
+
beginStop(resourceGroupName, labName, name, options) {
|
|
658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
659
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
660
|
+
return this.client.sendOperationRequest(args, spec);
|
|
661
|
+
});
|
|
662
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
663
|
+
var _a;
|
|
664
|
+
let currentRawResponse = undefined;
|
|
665
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
666
|
+
const callback = (rawResponse, flatResponse) => {
|
|
667
|
+
currentRawResponse = rawResponse;
|
|
668
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
669
|
+
};
|
|
670
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
671
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
672
|
+
return {
|
|
673
|
+
flatResponse,
|
|
674
|
+
rawResponse: {
|
|
675
|
+
statusCode: currentRawResponse.status,
|
|
676
|
+
body: currentRawResponse.parsedBody,
|
|
677
|
+
headers: currentRawResponse.headers.toJSON()
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
});
|
|
681
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, stopOperationSpec);
|
|
682
|
+
return new LroEngine(lro, {
|
|
683
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
684
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Stop a virtual machine This operation can take a while to complete.
|
|
690
|
+
* @param resourceGroupName The name of the resource group.
|
|
691
|
+
* @param labName The name of the lab.
|
|
692
|
+
* @param name The name of the virtual machine.
|
|
693
|
+
* @param options The options parameters.
|
|
694
|
+
*/
|
|
695
|
+
beginStopAndWait(resourceGroupName, labName, name, options) {
|
|
696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
+
const poller = yield this.beginStop(resourceGroupName, labName, name, options);
|
|
698
|
+
return poller.pollUntilDone();
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Transfers all data disks attached to the virtual machine to be owned by the current user. This
|
|
703
|
+
* operation can take a while to complete.
|
|
704
|
+
* @param resourceGroupName The name of the resource group.
|
|
705
|
+
* @param labName The name of the lab.
|
|
706
|
+
* @param name The name of the virtual machine.
|
|
707
|
+
* @param options The options parameters.
|
|
708
|
+
*/
|
|
709
|
+
beginTransferDisks(resourceGroupName, labName, name, options) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
712
|
+
return this.client.sendOperationRequest(args, spec);
|
|
713
|
+
});
|
|
714
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
715
|
+
var _a;
|
|
716
|
+
let currentRawResponse = undefined;
|
|
717
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
718
|
+
const callback = (rawResponse, flatResponse) => {
|
|
719
|
+
currentRawResponse = rawResponse;
|
|
720
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
721
|
+
};
|
|
722
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
723
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
724
|
+
return {
|
|
725
|
+
flatResponse,
|
|
726
|
+
rawResponse: {
|
|
727
|
+
statusCode: currentRawResponse.status,
|
|
728
|
+
body: currentRawResponse.parsedBody,
|
|
729
|
+
headers: currentRawResponse.headers.toJSON()
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
});
|
|
733
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, transferDisksOperationSpec);
|
|
734
|
+
return new LroEngine(lro, {
|
|
735
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
736
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
737
|
+
});
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Transfers all data disks attached to the virtual machine to be owned by the current user. This
|
|
742
|
+
* operation can take a while to complete.
|
|
743
|
+
* @param resourceGroupName The name of the resource group.
|
|
744
|
+
* @param labName The name of the lab.
|
|
745
|
+
* @param name The name of the virtual machine.
|
|
746
|
+
* @param options The options parameters.
|
|
747
|
+
*/
|
|
748
|
+
beginTransferDisksAndWait(resourceGroupName, labName, name, options) {
|
|
749
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
750
|
+
const poller = yield this.beginTransferDisks(resourceGroupName, labName, name, options);
|
|
751
|
+
return poller.pollUntilDone();
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Release ownership of an existing virtual machine This operation can take a while to complete.
|
|
756
|
+
* @param resourceGroupName The name of the resource group.
|
|
757
|
+
* @param labName The name of the lab.
|
|
758
|
+
* @param name The name of the virtual machine.
|
|
759
|
+
* @param options The options parameters.
|
|
760
|
+
*/
|
|
761
|
+
beginUnClaim(resourceGroupName, labName, name, options) {
|
|
762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
763
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
764
|
+
return this.client.sendOperationRequest(args, spec);
|
|
765
|
+
});
|
|
766
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
767
|
+
var _a;
|
|
768
|
+
let currentRawResponse = undefined;
|
|
769
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
770
|
+
const callback = (rawResponse, flatResponse) => {
|
|
771
|
+
currentRawResponse = rawResponse;
|
|
772
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
773
|
+
};
|
|
774
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
775
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
776
|
+
return {
|
|
777
|
+
flatResponse,
|
|
778
|
+
rawResponse: {
|
|
779
|
+
statusCode: currentRawResponse.status,
|
|
780
|
+
body: currentRawResponse.parsedBody,
|
|
781
|
+
headers: currentRawResponse.headers.toJSON()
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
});
|
|
785
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, name, options }, unClaimOperationSpec);
|
|
786
|
+
return new LroEngine(lro, {
|
|
787
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
788
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
789
|
+
});
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Release ownership of an existing virtual machine This operation can take a while to complete.
|
|
794
|
+
* @param resourceGroupName The name of the resource group.
|
|
795
|
+
* @param labName The name of the lab.
|
|
796
|
+
* @param name The name of the virtual machine.
|
|
797
|
+
* @param options The options parameters.
|
|
798
|
+
*/
|
|
799
|
+
beginUnClaimAndWait(resourceGroupName, labName, name, options) {
|
|
800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
801
|
+
const poller = yield this.beginUnClaim(resourceGroupName, labName, name, options);
|
|
802
|
+
return poller.pollUntilDone();
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* ListNext
|
|
807
|
+
* @param resourceGroupName The name of the resource group.
|
|
808
|
+
* @param labName The name of the lab.
|
|
809
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
810
|
+
* @param options The options parameters.
|
|
811
|
+
*/
|
|
812
|
+
_listNext(resourceGroupName, labName, nextLink, options) {
|
|
813
|
+
return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listNextOperationSpec);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
// Operation Specifications
|
|
817
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
818
|
+
const listOperationSpec = {
|
|
819
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines",
|
|
820
|
+
httpMethod: "GET",
|
|
821
|
+
responses: {
|
|
822
|
+
200: {
|
|
823
|
+
bodyMapper: Mappers.LabVirtualMachineList
|
|
824
|
+
},
|
|
825
|
+
default: {
|
|
826
|
+
bodyMapper: Mappers.CloudError
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
queryParameters: [
|
|
830
|
+
Parameters.apiVersion,
|
|
831
|
+
Parameters.expand,
|
|
832
|
+
Parameters.filter,
|
|
833
|
+
Parameters.top,
|
|
834
|
+
Parameters.orderby
|
|
835
|
+
],
|
|
836
|
+
urlParameters: [
|
|
837
|
+
Parameters.$host,
|
|
838
|
+
Parameters.subscriptionId,
|
|
839
|
+
Parameters.resourceGroupName,
|
|
840
|
+
Parameters.labName
|
|
841
|
+
],
|
|
842
|
+
headerParameters: [Parameters.accept],
|
|
843
|
+
serializer
|
|
844
|
+
};
|
|
845
|
+
const getOperationSpec = {
|
|
846
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}",
|
|
847
|
+
httpMethod: "GET",
|
|
848
|
+
responses: {
|
|
849
|
+
200: {
|
|
850
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
851
|
+
},
|
|
852
|
+
default: {
|
|
853
|
+
bodyMapper: Mappers.CloudError
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
857
|
+
urlParameters: [
|
|
858
|
+
Parameters.$host,
|
|
859
|
+
Parameters.subscriptionId,
|
|
860
|
+
Parameters.resourceGroupName,
|
|
861
|
+
Parameters.name,
|
|
862
|
+
Parameters.labName
|
|
863
|
+
],
|
|
864
|
+
headerParameters: [Parameters.accept],
|
|
865
|
+
serializer
|
|
866
|
+
};
|
|
867
|
+
const createOrUpdateOperationSpec = {
|
|
868
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}",
|
|
869
|
+
httpMethod: "PUT",
|
|
870
|
+
responses: {
|
|
871
|
+
200: {
|
|
872
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
873
|
+
},
|
|
874
|
+
201: {
|
|
875
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
876
|
+
},
|
|
877
|
+
202: {
|
|
878
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
879
|
+
},
|
|
880
|
+
204: {
|
|
881
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
882
|
+
},
|
|
883
|
+
default: {
|
|
884
|
+
bodyMapper: Mappers.CloudError
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
requestBody: Parameters.labVirtualMachine,
|
|
888
|
+
queryParameters: [Parameters.apiVersion],
|
|
889
|
+
urlParameters: [
|
|
890
|
+
Parameters.$host,
|
|
891
|
+
Parameters.subscriptionId,
|
|
892
|
+
Parameters.resourceGroupName,
|
|
893
|
+
Parameters.name,
|
|
894
|
+
Parameters.labName
|
|
895
|
+
],
|
|
896
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
897
|
+
mediaType: "json",
|
|
898
|
+
serializer
|
|
899
|
+
};
|
|
900
|
+
const deleteOperationSpec = {
|
|
901
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}",
|
|
902
|
+
httpMethod: "DELETE",
|
|
903
|
+
responses: {
|
|
904
|
+
200: {},
|
|
905
|
+
201: {},
|
|
906
|
+
202: {},
|
|
907
|
+
204: {},
|
|
908
|
+
default: {
|
|
909
|
+
bodyMapper: Mappers.CloudError
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
queryParameters: [Parameters.apiVersion],
|
|
913
|
+
urlParameters: [
|
|
914
|
+
Parameters.$host,
|
|
915
|
+
Parameters.subscriptionId,
|
|
916
|
+
Parameters.resourceGroupName,
|
|
917
|
+
Parameters.name,
|
|
918
|
+
Parameters.labName
|
|
919
|
+
],
|
|
920
|
+
headerParameters: [Parameters.accept],
|
|
921
|
+
serializer
|
|
922
|
+
};
|
|
923
|
+
const updateOperationSpec = {
|
|
924
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}",
|
|
925
|
+
httpMethod: "PATCH",
|
|
926
|
+
responses: {
|
|
927
|
+
200: {
|
|
928
|
+
bodyMapper: Mappers.LabVirtualMachine
|
|
929
|
+
},
|
|
930
|
+
default: {
|
|
931
|
+
bodyMapper: Mappers.CloudError
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
requestBody: Parameters.labVirtualMachine1,
|
|
935
|
+
queryParameters: [Parameters.apiVersion],
|
|
936
|
+
urlParameters: [
|
|
937
|
+
Parameters.$host,
|
|
938
|
+
Parameters.subscriptionId,
|
|
939
|
+
Parameters.resourceGroupName,
|
|
940
|
+
Parameters.name,
|
|
941
|
+
Parameters.labName
|
|
942
|
+
],
|
|
943
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
944
|
+
mediaType: "json",
|
|
945
|
+
serializer
|
|
946
|
+
};
|
|
947
|
+
const addDataDiskOperationSpec = {
|
|
948
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk",
|
|
949
|
+
httpMethod: "POST",
|
|
950
|
+
responses: {
|
|
951
|
+
200: {},
|
|
952
|
+
201: {},
|
|
953
|
+
202: {},
|
|
954
|
+
204: {},
|
|
955
|
+
default: {
|
|
956
|
+
bodyMapper: Mappers.CloudError
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
requestBody: Parameters.dataDiskProperties,
|
|
960
|
+
queryParameters: [Parameters.apiVersion],
|
|
961
|
+
urlParameters: [
|
|
962
|
+
Parameters.$host,
|
|
963
|
+
Parameters.subscriptionId,
|
|
964
|
+
Parameters.resourceGroupName,
|
|
965
|
+
Parameters.name,
|
|
966
|
+
Parameters.labName
|
|
967
|
+
],
|
|
968
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
969
|
+
mediaType: "json",
|
|
970
|
+
serializer
|
|
971
|
+
};
|
|
972
|
+
const applyArtifactsOperationSpec = {
|
|
973
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts",
|
|
974
|
+
httpMethod: "POST",
|
|
975
|
+
responses: {
|
|
976
|
+
200: {},
|
|
977
|
+
201: {},
|
|
978
|
+
202: {},
|
|
979
|
+
204: {},
|
|
980
|
+
default: {
|
|
981
|
+
bodyMapper: Mappers.CloudError
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
requestBody: Parameters.applyArtifactsRequest,
|
|
985
|
+
queryParameters: [Parameters.apiVersion],
|
|
986
|
+
urlParameters: [
|
|
987
|
+
Parameters.$host,
|
|
988
|
+
Parameters.subscriptionId,
|
|
989
|
+
Parameters.resourceGroupName,
|
|
990
|
+
Parameters.name,
|
|
991
|
+
Parameters.labName
|
|
992
|
+
],
|
|
993
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
994
|
+
mediaType: "json",
|
|
995
|
+
serializer
|
|
996
|
+
};
|
|
997
|
+
const claimOperationSpec = {
|
|
998
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim",
|
|
999
|
+
httpMethod: "POST",
|
|
1000
|
+
responses: {
|
|
1001
|
+
200: {},
|
|
1002
|
+
201: {},
|
|
1003
|
+
202: {},
|
|
1004
|
+
204: {},
|
|
1005
|
+
default: {
|
|
1006
|
+
bodyMapper: Mappers.CloudError
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
queryParameters: [Parameters.apiVersion],
|
|
1010
|
+
urlParameters: [
|
|
1011
|
+
Parameters.$host,
|
|
1012
|
+
Parameters.subscriptionId,
|
|
1013
|
+
Parameters.resourceGroupName,
|
|
1014
|
+
Parameters.name,
|
|
1015
|
+
Parameters.labName
|
|
1016
|
+
],
|
|
1017
|
+
headerParameters: [Parameters.accept],
|
|
1018
|
+
serializer
|
|
1019
|
+
};
|
|
1020
|
+
const detachDataDiskOperationSpec = {
|
|
1021
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk",
|
|
1022
|
+
httpMethod: "POST",
|
|
1023
|
+
responses: {
|
|
1024
|
+
200: {},
|
|
1025
|
+
201: {},
|
|
1026
|
+
202: {},
|
|
1027
|
+
204: {},
|
|
1028
|
+
default: {
|
|
1029
|
+
bodyMapper: Mappers.CloudError
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
requestBody: Parameters.detachDataDiskProperties,
|
|
1033
|
+
queryParameters: [Parameters.apiVersion],
|
|
1034
|
+
urlParameters: [
|
|
1035
|
+
Parameters.$host,
|
|
1036
|
+
Parameters.subscriptionId,
|
|
1037
|
+
Parameters.resourceGroupName,
|
|
1038
|
+
Parameters.name,
|
|
1039
|
+
Parameters.labName
|
|
1040
|
+
],
|
|
1041
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1042
|
+
mediaType: "json",
|
|
1043
|
+
serializer
|
|
1044
|
+
};
|
|
1045
|
+
const getRdpFileContentsOperationSpec = {
|
|
1046
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents",
|
|
1047
|
+
httpMethod: "POST",
|
|
1048
|
+
responses: {
|
|
1049
|
+
200: {
|
|
1050
|
+
bodyMapper: Mappers.RdpConnection
|
|
1051
|
+
},
|
|
1052
|
+
default: {
|
|
1053
|
+
bodyMapper: Mappers.CloudError
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
queryParameters: [Parameters.apiVersion],
|
|
1057
|
+
urlParameters: [
|
|
1058
|
+
Parameters.$host,
|
|
1059
|
+
Parameters.subscriptionId,
|
|
1060
|
+
Parameters.resourceGroupName,
|
|
1061
|
+
Parameters.name,
|
|
1062
|
+
Parameters.labName
|
|
1063
|
+
],
|
|
1064
|
+
headerParameters: [Parameters.accept],
|
|
1065
|
+
serializer
|
|
1066
|
+
};
|
|
1067
|
+
const listApplicableSchedulesOperationSpec = {
|
|
1068
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules",
|
|
1069
|
+
httpMethod: "POST",
|
|
1070
|
+
responses: {
|
|
1071
|
+
200: {
|
|
1072
|
+
bodyMapper: Mappers.ApplicableSchedule
|
|
1073
|
+
},
|
|
1074
|
+
default: {
|
|
1075
|
+
bodyMapper: Mappers.CloudError
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
queryParameters: [Parameters.apiVersion],
|
|
1079
|
+
urlParameters: [
|
|
1080
|
+
Parameters.$host,
|
|
1081
|
+
Parameters.subscriptionId,
|
|
1082
|
+
Parameters.resourceGroupName,
|
|
1083
|
+
Parameters.name,
|
|
1084
|
+
Parameters.labName
|
|
1085
|
+
],
|
|
1086
|
+
headerParameters: [Parameters.accept],
|
|
1087
|
+
serializer
|
|
1088
|
+
};
|
|
1089
|
+
const redeployOperationSpec = {
|
|
1090
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy",
|
|
1091
|
+
httpMethod: "POST",
|
|
1092
|
+
responses: {
|
|
1093
|
+
200: {},
|
|
1094
|
+
201: {},
|
|
1095
|
+
202: {},
|
|
1096
|
+
204: {},
|
|
1097
|
+
default: {
|
|
1098
|
+
bodyMapper: Mappers.CloudError
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
queryParameters: [Parameters.apiVersion],
|
|
1102
|
+
urlParameters: [
|
|
1103
|
+
Parameters.$host,
|
|
1104
|
+
Parameters.subscriptionId,
|
|
1105
|
+
Parameters.resourceGroupName,
|
|
1106
|
+
Parameters.name,
|
|
1107
|
+
Parameters.labName
|
|
1108
|
+
],
|
|
1109
|
+
headerParameters: [Parameters.accept],
|
|
1110
|
+
serializer
|
|
1111
|
+
};
|
|
1112
|
+
const resizeOperationSpec = {
|
|
1113
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize",
|
|
1114
|
+
httpMethod: "POST",
|
|
1115
|
+
responses: {
|
|
1116
|
+
200: {},
|
|
1117
|
+
201: {},
|
|
1118
|
+
202: {},
|
|
1119
|
+
204: {},
|
|
1120
|
+
default: {
|
|
1121
|
+
bodyMapper: Mappers.CloudError
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
requestBody: Parameters.resizeLabVirtualMachineProperties,
|
|
1125
|
+
queryParameters: [Parameters.apiVersion],
|
|
1126
|
+
urlParameters: [
|
|
1127
|
+
Parameters.$host,
|
|
1128
|
+
Parameters.subscriptionId,
|
|
1129
|
+
Parameters.resourceGroupName,
|
|
1130
|
+
Parameters.name,
|
|
1131
|
+
Parameters.labName
|
|
1132
|
+
],
|
|
1133
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1134
|
+
mediaType: "json",
|
|
1135
|
+
serializer
|
|
1136
|
+
};
|
|
1137
|
+
const restartOperationSpec = {
|
|
1138
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart",
|
|
1139
|
+
httpMethod: "POST",
|
|
1140
|
+
responses: {
|
|
1141
|
+
200: {},
|
|
1142
|
+
201: {},
|
|
1143
|
+
202: {},
|
|
1144
|
+
204: {},
|
|
1145
|
+
default: {
|
|
1146
|
+
bodyMapper: Mappers.CloudError
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
queryParameters: [Parameters.apiVersion],
|
|
1150
|
+
urlParameters: [
|
|
1151
|
+
Parameters.$host,
|
|
1152
|
+
Parameters.subscriptionId,
|
|
1153
|
+
Parameters.resourceGroupName,
|
|
1154
|
+
Parameters.name,
|
|
1155
|
+
Parameters.labName
|
|
1156
|
+
],
|
|
1157
|
+
headerParameters: [Parameters.accept],
|
|
1158
|
+
serializer
|
|
1159
|
+
};
|
|
1160
|
+
const startOperationSpec = {
|
|
1161
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start",
|
|
1162
|
+
httpMethod: "POST",
|
|
1163
|
+
responses: {
|
|
1164
|
+
200: {},
|
|
1165
|
+
201: {},
|
|
1166
|
+
202: {},
|
|
1167
|
+
204: {},
|
|
1168
|
+
default: {
|
|
1169
|
+
bodyMapper: Mappers.CloudError
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
queryParameters: [Parameters.apiVersion],
|
|
1173
|
+
urlParameters: [
|
|
1174
|
+
Parameters.$host,
|
|
1175
|
+
Parameters.subscriptionId,
|
|
1176
|
+
Parameters.resourceGroupName,
|
|
1177
|
+
Parameters.name,
|
|
1178
|
+
Parameters.labName
|
|
1179
|
+
],
|
|
1180
|
+
headerParameters: [Parameters.accept],
|
|
1181
|
+
serializer
|
|
1182
|
+
};
|
|
1183
|
+
const stopOperationSpec = {
|
|
1184
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop",
|
|
1185
|
+
httpMethod: "POST",
|
|
1186
|
+
responses: {
|
|
1187
|
+
200: {},
|
|
1188
|
+
201: {},
|
|
1189
|
+
202: {},
|
|
1190
|
+
204: {},
|
|
1191
|
+
default: {
|
|
1192
|
+
bodyMapper: Mappers.CloudError
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
queryParameters: [Parameters.apiVersion],
|
|
1196
|
+
urlParameters: [
|
|
1197
|
+
Parameters.$host,
|
|
1198
|
+
Parameters.subscriptionId,
|
|
1199
|
+
Parameters.resourceGroupName,
|
|
1200
|
+
Parameters.name,
|
|
1201
|
+
Parameters.labName
|
|
1202
|
+
],
|
|
1203
|
+
headerParameters: [Parameters.accept],
|
|
1204
|
+
serializer
|
|
1205
|
+
};
|
|
1206
|
+
const transferDisksOperationSpec = {
|
|
1207
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks",
|
|
1208
|
+
httpMethod: "POST",
|
|
1209
|
+
responses: {
|
|
1210
|
+
200: {},
|
|
1211
|
+
201: {},
|
|
1212
|
+
202: {},
|
|
1213
|
+
204: {},
|
|
1214
|
+
default: {
|
|
1215
|
+
bodyMapper: Mappers.CloudError
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
queryParameters: [Parameters.apiVersion],
|
|
1219
|
+
urlParameters: [
|
|
1220
|
+
Parameters.$host,
|
|
1221
|
+
Parameters.subscriptionId,
|
|
1222
|
+
Parameters.resourceGroupName,
|
|
1223
|
+
Parameters.name,
|
|
1224
|
+
Parameters.labName
|
|
1225
|
+
],
|
|
1226
|
+
headerParameters: [Parameters.accept],
|
|
1227
|
+
serializer
|
|
1228
|
+
};
|
|
1229
|
+
const unClaimOperationSpec = {
|
|
1230
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim",
|
|
1231
|
+
httpMethod: "POST",
|
|
1232
|
+
responses: {
|
|
1233
|
+
200: {},
|
|
1234
|
+
201: {},
|
|
1235
|
+
202: {},
|
|
1236
|
+
204: {},
|
|
1237
|
+
default: {
|
|
1238
|
+
bodyMapper: Mappers.CloudError
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
queryParameters: [Parameters.apiVersion],
|
|
1242
|
+
urlParameters: [
|
|
1243
|
+
Parameters.$host,
|
|
1244
|
+
Parameters.subscriptionId,
|
|
1245
|
+
Parameters.resourceGroupName,
|
|
1246
|
+
Parameters.name,
|
|
1247
|
+
Parameters.labName
|
|
1248
|
+
],
|
|
1249
|
+
headerParameters: [Parameters.accept],
|
|
1250
|
+
serializer
|
|
1251
|
+
};
|
|
1252
|
+
const listNextOperationSpec = {
|
|
1253
|
+
path: "{nextLink}",
|
|
1254
|
+
httpMethod: "GET",
|
|
1255
|
+
responses: {
|
|
1256
|
+
200: {
|
|
1257
|
+
bodyMapper: Mappers.LabVirtualMachineList
|
|
1258
|
+
},
|
|
1259
|
+
default: {
|
|
1260
|
+
bodyMapper: Mappers.CloudError
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
queryParameters: [
|
|
1264
|
+
Parameters.apiVersion,
|
|
1265
|
+
Parameters.expand,
|
|
1266
|
+
Parameters.filter,
|
|
1267
|
+
Parameters.top,
|
|
1268
|
+
Parameters.orderby
|
|
1269
|
+
],
|
|
1270
|
+
urlParameters: [
|
|
1271
|
+
Parameters.$host,
|
|
1272
|
+
Parameters.nextLink,
|
|
1273
|
+
Parameters.subscriptionId,
|
|
1274
|
+
Parameters.resourceGroupName,
|
|
1275
|
+
Parameters.labName
|
|
1276
|
+
],
|
|
1277
|
+
headerParameters: [Parameters.accept],
|
|
1278
|
+
serializer
|
|
1279
|
+
};
|
|
1280
|
+
//# sourceMappingURL=virtualMachines.js.map
|