@azure/arm-compute 16.5.0 → 17.0.0-beta.2
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 +85 -0
- package/LICENSE +21 -0
- package/README.md +66 -78
- package/dist/index.js +36152 -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/computeManagementClient.d.ts +64 -0
- package/dist-esm/src/computeManagementClient.d.ts.map +1 -0
- package/dist-esm/src/computeManagementClient.js +71 -0
- package/dist-esm/src/computeManagementClient.js.map +1 -0
- package/dist-esm/src/computeManagementClientContext.d.ts +16 -0
- package/dist-esm/src/computeManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/computeManagementClientContext.js +49 -0
- package/dist-esm/src/computeManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -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 +9259 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +744 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +391 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +13960 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +150 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +1068 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilitySets.d.ts +101 -0
- package/dist-esm/src/operations/availabilitySets.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilitySets.js +401 -0
- package/dist-esm/src/operations/availabilitySets.js.map +1 -0
- package/dist-esm/src/operations/capacityReservationGroups.d.ts +93 -0
- package/dist-esm/src/operations/capacityReservationGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/capacityReservationGroups.js +369 -0
- package/dist-esm/src/operations/capacityReservationGroups.js.map +1 -0
- package/dist-esm/src/operations/capacityReservations.d.ts +110 -0
- package/dist-esm/src/operations/capacityReservations.d.ts.map +1 -0
- package/dist-esm/src/operations/capacityReservations.js +450 -0
- package/dist-esm/src/operations/capacityReservations.js.map +1 -0
- package/dist-esm/src/operations/cloudServiceOperatingSystems.d.ts +80 -0
- package/dist-esm/src/operations/cloudServiceOperatingSystems.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudServiceOperatingSystems.js +309 -0
- package/dist-esm/src/operations/cloudServiceOperatingSystems.js.map +1 -0
- package/dist-esm/src/operations/cloudServiceRoleInstances.d.ts +137 -0
- package/dist-esm/src/operations/cloudServiceRoleInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudServiceRoleInstances.js +539 -0
- package/dist-esm/src/operations/cloudServiceRoleInstances.js.map +1 -0
- package/dist-esm/src/operations/cloudServiceRoles.d.ts +48 -0
- package/dist-esm/src/operations/cloudServiceRoles.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudServiceRoles.js +171 -0
- package/dist-esm/src/operations/cloudServiceRoles.js.map +1 -0
- package/dist-esm/src/operations/cloudServices.d.ts +210 -0
- package/dist-esm/src/operations/cloudServices.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudServices.js +976 -0
- package/dist-esm/src/operations/cloudServices.js.map +1 -0
- package/dist-esm/src/operations/cloudServicesUpdateDomain.d.ts +70 -0
- package/dist-esm/src/operations/cloudServicesUpdateDomain.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudServicesUpdateDomain.js +254 -0
- package/dist-esm/src/operations/cloudServicesUpdateDomain.js.map +1 -0
- package/dist-esm/src/operations/communityGalleries.d.ts +20 -0
- package/dist-esm/src/operations/communityGalleries.d.ts.map +1 -0
- package/dist-esm/src/operations/communityGalleries.js +53 -0
- package/dist-esm/src/operations/communityGalleries.js.map +1 -0
- package/dist-esm/src/operations/communityGalleryImageVersions.d.ts +24 -0
- package/dist-esm/src/operations/communityGalleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/communityGalleryImageVersions.js +65 -0
- package/dist-esm/src/operations/communityGalleryImageVersions.js.map +1 -0
- package/dist-esm/src/operations/communityGalleryImages.d.ts +21 -0
- package/dist-esm/src/operations/communityGalleryImages.d.ts.map +1 -0
- package/dist-esm/src/operations/communityGalleryImages.js +55 -0
- package/dist-esm/src/operations/communityGalleryImages.js.map +1 -0
- package/dist-esm/src/operations/dedicatedHostGroups.d.ts +88 -0
- package/dist-esm/src/operations/dedicatedHostGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/dedicatedHostGroups.js +336 -0
- package/dist-esm/src/operations/dedicatedHostGroups.js.map +1 -0
- package/dist-esm/src/operations/dedicatedHosts.d.ts +101 -0
- package/dist-esm/src/operations/dedicatedHosts.d.ts.map +1 -0
- package/dist-esm/src/operations/dedicatedHosts.js +395 -0
- package/dist-esm/src/operations/dedicatedHosts.js.map +1 -0
- package/dist-esm/src/operations/diskAccesses.d.ts +217 -0
- package/dist-esm/src/operations/diskAccesses.d.ts.map +1 -0
- package/dist-esm/src/operations/diskAccesses.js +884 -0
- package/dist-esm/src/operations/diskAccesses.js.map +1 -0
- package/dist-esm/src/operations/diskEncryptionSets.d.ts +156 -0
- package/dist-esm/src/operations/diskEncryptionSets.d.ts.map +1 -0
- package/dist-esm/src/operations/diskEncryptionSets.js +637 -0
- package/dist-esm/src/operations/diskEncryptionSets.js.map +1 -0
- package/dist-esm/src/operations/diskRestorePointOperations.d.ts +97 -0
- package/dist-esm/src/operations/diskRestorePointOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/diskRestorePointOperations.js +384 -0
- package/dist-esm/src/operations/diskRestorePointOperations.js.map +1 -0
- package/dist-esm/src/operations/disks.d.ts +159 -0
- package/dist-esm/src/operations/disks.d.ts.map +1 -0
- package/dist-esm/src/operations/disks.js +636 -0
- package/dist-esm/src/operations/disks.js.map +1 -0
- package/dist-esm/src/operations/galleries.d.ts +111 -0
- package/dist-esm/src/operations/galleries.d.ts.map +1 -0
- package/dist-esm/src/operations/galleries.js +504 -0
- package/dist-esm/src/operations/galleries.js.map +1 -0
- package/dist-esm/src/operations/galleryApplicationVersions.d.ts +142 -0
- package/dist-esm/src/operations/galleryApplicationVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/galleryApplicationVersions.js +498 -0
- package/dist-esm/src/operations/galleryApplicationVersions.js.map +1 -0
- package/dist-esm/src/operations/galleryApplications.d.ts +117 -0
- package/dist-esm/src/operations/galleryApplications.d.ts.map +1 -0
- package/dist-esm/src/operations/galleryApplications.js +447 -0
- package/dist-esm/src/operations/galleryApplications.js.map +1 -0
- package/dist-esm/src/operations/galleryImageVersions.d.ts +126 -0
- package/dist-esm/src/operations/galleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/galleryImageVersions.js +476 -0
- package/dist-esm/src/operations/galleryImageVersions.js.map +1 -0
- package/dist-esm/src/operations/galleryImages.d.ts +117 -0
- package/dist-esm/src/operations/galleryImages.d.ts.map +1 -0
- package/dist-esm/src/operations/galleryImages.js +447 -0
- package/dist-esm/src/operations/galleryImages.js.map +1 -0
- package/dist-esm/src/operations/gallerySharingProfile.d.ts +30 -0
- package/dist-esm/src/operations/gallerySharingProfile.d.ts.map +1 -0
- package/dist-esm/src/operations/gallerySharingProfile.js +109 -0
- package/dist-esm/src/operations/gallerySharingProfile.js.map +1 -0
- package/dist-esm/src/operations/images.d.ts +109 -0
- package/dist-esm/src/operations/images.d.ts.map +1 -0
- package/dist-esm/src/operations/images.js +472 -0
- package/dist-esm/src/operations/images.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/dist-esm/src/operations/index.js +57 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/logAnalytics.d.ts +44 -0
- package/dist-esm/src/operations/logAnalytics.d.ts.map +1 -0
- package/dist-esm/src/operations/logAnalytics.js +184 -0
- package/dist-esm/src/operations/logAnalytics.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +87 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/proximityPlacementGroups.d.ts +83 -0
- package/dist-esm/src/operations/proximityPlacementGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/proximityPlacementGroups.js +331 -0
- package/dist-esm/src/operations/proximityPlacementGroups.js.map +1 -0
- package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceSkus.js +126 -0
- package/dist-esm/src/operations/resourceSkus.js.map +1 -0
- package/dist-esm/src/operations/restorePointCollections.d.ts +99 -0
- package/dist-esm/src/operations/restorePointCollections.d.ts.map +1 -0
- package/dist-esm/src/operations/restorePointCollections.js +411 -0
- package/dist-esm/src/operations/restorePointCollections.js.map +1 -0
- package/dist-esm/src/operations/restorePoints.d.ts +58 -0
- package/dist-esm/src/operations/restorePoints.d.ts.map +1 -0
- package/dist-esm/src/operations/restorePoints.js +236 -0
- package/dist-esm/src/operations/restorePoints.js.map +1 -0
- package/dist-esm/src/operations/sharedGalleries.d.ts +42 -0
- package/dist-esm/src/operations/sharedGalleries.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedGalleries.js +162 -0
- package/dist-esm/src/operations/sharedGalleries.js.map +1 -0
- package/dist-esm/src/operations/sharedGalleryImageVersions.d.ts +56 -0
- package/dist-esm/src/operations/sharedGalleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedGalleryImageVersions.js +188 -0
- package/dist-esm/src/operations/sharedGalleryImageVersions.js.map +1 -0
- package/dist-esm/src/operations/sharedGalleryImages.d.ts +47 -0
- package/dist-esm/src/operations/sharedGalleryImages.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedGalleryImages.js +170 -0
- package/dist-esm/src/operations/sharedGalleryImages.js.map +1 -0
- package/dist-esm/src/operations/snapshots.d.ts +159 -0
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshots.js +636 -0
- package/dist-esm/src/operations/snapshots.js.map +1 -0
- package/dist-esm/src/operations/sshPublicKeys.d.ts +96 -0
- package/dist-esm/src/operations/sshPublicKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/sshPublicKeys.js +364 -0
- package/dist-esm/src/operations/sshPublicKeys.js.map +1 -0
- package/dist-esm/src/operations/usageOperations.d.ts +37 -0
- package/dist-esm/src/operations/usageOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/usageOperations.js +128 -0
- package/dist-esm/src/operations/usageOperations.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineExtensionImages.d.ts +37 -0
- package/dist-esm/src/operations/virtualMachineExtensionImages.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineExtensionImages.js +135 -0
- package/dist-esm/src/operations/virtualMachineExtensionImages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineExtensions.d.ts +81 -0
- package/dist-esm/src/operations/virtualMachineExtensions.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineExtensions.js +325 -0
- package/dist-esm/src/operations/virtualMachineExtensions.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineImages.d.ts +54 -0
- package/dist-esm/src/operations/virtualMachineImages.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineImages.js +214 -0
- package/dist-esm/src/operations/virtualMachineImages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineImagesEdgeZone.d.ts +60 -0
- package/dist-esm/src/operations/virtualMachineImagesEdgeZone.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineImagesEdgeZone.js +240 -0
- package/dist-esm/src/operations/virtualMachineImagesEdgeZone.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineRunCommands.d.ts +127 -0
- package/dist-esm/src/operations/virtualMachineRunCommands.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineRunCommands.js +545 -0
- package/dist-esm/src/operations/virtualMachineRunCommands.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetExtensions.d.ts +99 -0
- package/dist-esm/src/operations/virtualMachineScaleSetExtensions.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetExtensions.js +405 -0
- package/dist-esm/src/operations/virtualMachineScaleSetExtensions.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetRollingUpgrades.d.ts +71 -0
- package/dist-esm/src/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetRollingUpgrades.js +247 -0
- package/dist-esm/src/operations/virtualMachineScaleSetRollingUpgrades.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMExtensions.d.ts +89 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMExtensions.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMExtensions.js +373 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMExtensions.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMRunCommands.d.ts +109 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMRunCommands.js +459 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMRunCommands.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMs.d.ts +263 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMs.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMs.js +1027 -0
- package/dist-esm/src/operations/virtualMachineScaleSetVMs.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSets.d.ts +388 -0
- package/dist-esm/src/operations/virtualMachineScaleSets.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineScaleSets.js +1620 -0
- package/dist-esm/src/operations/virtualMachineScaleSets.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineSizes.d.ts +30 -0
- package/dist-esm/src/operations/virtualMachineSizes.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineSizes.js +95 -0
- package/dist-esm/src/operations/virtualMachineSizes.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +379 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +1661 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.js +9 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/capacityReservationGroups.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/capacityReservationGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/capacityReservationGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/capacityReservationGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/capacityReservations.d.ts +83 -0
- package/dist-esm/src/operationsInterfaces/capacityReservations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/capacityReservations.js +9 -0
- package/dist-esm/src/operationsInterfaces/capacityReservations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceOperatingSystems.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceOperatingSystems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceOperatingSystems.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceOperatingSystems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoleInstances.d.ts +111 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoleInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoleInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoleInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoles.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoles.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudServiceRoles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServices.d.ts +171 -0
- package/dist-esm/src/operationsInterfaces/cloudServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServicesUpdateDomain.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/cloudServicesUpdateDomain.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudServicesUpdateDomain.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudServicesUpdateDomain.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleries.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/communityGalleries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleries.js +9 -0
- package/dist-esm/src/operationsInterfaces/communityGalleries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImageVersions.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImageVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImageVersions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImages.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/communityGalleryImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHostGroups.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHostGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHostGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHostGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHosts.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHosts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHosts.js +9 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHosts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskAccesses.d.ts +159 -0
- package/dist-esm/src/operationsInterfaces/diskAccesses.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskAccesses.js +9 -0
- package/dist-esm/src/operationsInterfaces/diskAccesses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskEncryptionSets.d.ts +98 -0
- package/dist-esm/src/operationsInterfaces/diskEncryptionSets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskEncryptionSets.js +9 -0
- package/dist-esm/src/operationsInterfaces/diskEncryptionSets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskRestorePointOperations.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/diskRestorePointOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/diskRestorePointOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/diskRestorePointOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/disks.d.ts +123 -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/galleries.d.ts +75 -0
- package/dist-esm/src/operationsInterfaces/galleries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleries.js +9 -0
- package/dist-esm/src/operationsInterfaces/galleries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryApplicationVersions.d.ts +110 -0
- package/dist-esm/src/operationsInterfaces/galleryApplicationVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryApplicationVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/galleryApplicationVersions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryApplications.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/galleryApplications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryApplications.js +9 -0
- package/dist-esm/src/operationsInterfaces/galleryApplications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryImageVersions.d.ts +97 -0
- package/dist-esm/src/operationsInterfaces/galleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryImageVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/galleryImageVersions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/galleryImages.d.ts +90 -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/gallerySharingProfile.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/gallerySharingProfile.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/gallerySharingProfile.js +9 -0
- package/dist-esm/src/operationsInterfaces/gallerySharingProfile.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.js +9 -0
- package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +57 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/logAnalytics.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/logAnalytics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/logAnalytics.js +9 -0
- package/dist-esm/src/operationsInterfaces/logAnalytics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/proximityPlacementGroups.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/proximityPlacementGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/proximityPlacementGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/proximityPlacementGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorePointCollections.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/restorePointCollections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorePointCollections.js +9 -0
- package/dist-esm/src/operationsInterfaces/restorePointCollections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorePoints.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/restorePoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorePoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/restorePoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleries.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleries.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImageVersions.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImageVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImageVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImageVersions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImages.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedGalleryImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +123 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sshPublicKeys.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/sshPublicKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sshPublicKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/sshPublicKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageOperations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usageOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/usageOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensionImages.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensionImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensionImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensionImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensions.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineExtensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImages.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImages.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImagesEdgeZone.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImagesEdgeZone.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImagesEdgeZone.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImagesEdgeZone.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineRunCommands.d.ts +87 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineRunCommands.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineRunCommands.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineRunCommands.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetExtensions.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetExtensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetExtensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetExtensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMs.d.ts +238 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMs.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSetVMs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSets.d.ts +300 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSets.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineScaleSets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSizes.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSizes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSizes.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineSizes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +317 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/compute_examples.d.ts +2 -0
- package/dist-esm/test/compute_examples.d.ts.map +1 -0
- package/dist-esm/test/compute_examples.js +298 -0
- package/dist-esm/test/compute_examples.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-compute.api.md +7647 -0
- package/rollup.config.js +181 -30
- package/src/computeManagementClient.ts +230 -129
- package/src/computeManagementClientContext.ts +45 -42
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +8701 -15893
- package/src/models/mappers.ts +8539 -9152
- package/src/models/parameters.ts +869 -312
- package/src/operations/availabilitySets.ts +349 -373
- package/src/operations/capacityReservationGroups.ts +289 -327
- package/src/operations/capacityReservations.ts +479 -251
- package/src/operations/cloudServiceOperatingSystems.ts +255 -232
- package/src/operations/cloudServiceRoleInstances.ts +569 -379
- package/src/operations/cloudServiceRoles.ts +153 -124
- package/src/operations/cloudServices.ts +1036 -589
- package/src/operations/cloudServicesUpdateDomain.ts +259 -182
- package/src/operations/communityGalleries.ts +34 -48
- package/src/operations/communityGalleryImageVersions.ts +40 -55
- package/src/operations/communityGalleryImages.ts +36 -52
- package/src/operations/dedicatedHostGroups.ts +282 -345
- package/src/operations/dedicatedHosts.ts +459 -277
- package/src/operations/diskAccesses.ts +916 -601
- package/src/operations/diskEncryptionSets.ts +650 -417
- package/src/operations/diskRestorePointOperations.ts +391 -210
- package/src/operations/disks.ts +696 -450
- package/src/operations/galleries.ts +513 -325
- package/src/operations/galleryApplicationVersions.ts +535 -295
- package/src/operations/galleryApplications.ts +490 -278
- package/src/operations/galleryImageVersions.ts +514 -276
- package/src/operations/galleryImages.ts +486 -272
- package/src/operations/gallerySharingProfile.ts +110 -49
- package/src/operations/images.ts +498 -343
- package/src/operations/index.ts +1 -2
- package/src/operations/logAnalytics.ts +212 -99
- package/src/operations/operations.ts +61 -39
- package/src/operations/proximityPlacementGroups.ts +277 -339
- package/src/operations/resourceSkus.ts +93 -82
- package/src/operations/restorePointCollections.ts +350 -327
- package/src/operations/restorePoints.ts +244 -129
- package/src/operations/sharedGalleries.ts +124 -117
- package/src/operations/sharedGalleryImageVersions.ts +174 -134
- package/src/operations/sharedGalleryImages.ts +143 -126
- package/src/operations/snapshots.ts +706 -453
- package/src/operations/sshPublicKeys.ts +306 -387
- package/src/operations/usageOperations.ts +102 -83
- package/src/operations/virtualMachineExtensionImages.ts +92 -152
- package/src/operations/virtualMachineExtensions.ts +371 -243
- package/src/operations/virtualMachineImages.ts +138 -243
- package/src/operations/virtualMachineImagesEdgeZone.ts +148 -247
- package/src/operations/virtualMachineRunCommands.ts +582 -383
- package/src/operations/virtualMachineScaleSetExtensions.ts +454 -274
- package/src/operations/virtualMachineScaleSetRollingUpgrades.ts +280 -172
- package/src/operations/virtualMachineScaleSetVMExtensions.ts +394 -226
- package/src/operations/virtualMachineScaleSetVMRunCommands.ts +497 -250
- package/src/operations/virtualMachineScaleSetVMs.ts +1212 -752
- package/src/operations/virtualMachineScaleSets.ts +1922 -1316
- package/src/operations/virtualMachineSizes.ts +73 -44
- package/src/operations/virtualMachines.ts +1936 -1215
- package/src/operationsInterfaces/availabilitySets.ts +105 -0
- package/src/operationsInterfaces/capacityReservationGroups.ts +99 -0
- package/src/operationsInterfaces/capacityReservations.ts +156 -0
- package/src/operationsInterfaces/cloudServiceOperatingSystems.ts +70 -0
- package/src/operationsInterfaces/cloudServiceRoleInstances.ts +192 -0
- package/src/operationsInterfaces/cloudServiceRoles.ts +45 -0
- package/src/operationsInterfaces/cloudServices.ts +294 -0
- package/src/operationsInterfaces/cloudServicesUpdateDomain.ts +79 -0
- package/src/operationsInterfaces/communityGalleries.ts +27 -0
- package/src/operationsInterfaces/communityGalleryImageVersions.ts +33 -0
- package/src/operationsInterfaces/communityGalleryImages.ts +29 -0
- package/src/operationsInterfaces/dedicatedHostGroups.ts +94 -0
- package/src/operationsInterfaces/dedicatedHosts.ts +148 -0
- package/src/operationsInterfaces/diskAccesses.ts +276 -0
- package/src/operationsInterfaces/diskEncryptionSets.ts +171 -0
- package/src/operationsInterfaces/diskRestorePointOperations.ts +128 -0
- package/src/operationsInterfaces/disks.ts +213 -0
- package/src/operationsInterfaces/galleries.ts +143 -0
- package/src/operationsInterfaces/galleryApplicationVersions.ts +191 -0
- package/src/operationsInterfaces/galleryApplications.ts +163 -0
- package/src/operationsInterfaces/galleryImageVersions.ts +178 -0
- package/src/operationsInterfaces/galleryImages.ts +163 -0
- package/src/operationsInterfaces/gallerySharingProfile.ts +49 -0
- package/src/operationsInterfaces/images.ts +135 -0
- package/src/operationsInterfaces/index.ts +57 -0
- package/src/operationsInterfaces/logAnalytics.ts +77 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/proximityPlacementGroups.ts +91 -0
- package/src/operationsInterfaces/resourceSkus.ts +22 -0
- package/src/operationsInterfaces/restorePointCollections.ts +109 -0
- package/src/operationsInterfaces/restorePoints.ts +97 -0
- package/src/operationsInterfaces/sharedGalleries.ts +40 -0
- package/src/operationsInterfaces/sharedGalleryImageVersions.ts +52 -0
- package/src/operationsInterfaces/sharedGalleryImages.ts +45 -0
- package/src/operationsInterfaces/snapshots.ts +218 -0
- package/src/operationsInterfaces/sshPublicKeys.ts +108 -0
- package/src/operationsInterfaces/usageOperations.ts +25 -0
- package/src/operationsInterfaces/virtualMachineExtensionImages.ts +59 -0
- package/src/operationsInterfaces/virtualMachineExtensions.ts +146 -0
- package/src/operationsInterfaces/virtualMachineImages.ts +90 -0
- package/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts +101 -0
- package/src/operationsInterfaces/virtualMachineRunCommands.ts +171 -0
- package/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts +149 -0
- package/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts +105 -0
- package/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts +164 -0
- package/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts +165 -0
- package/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +419 -0
- package/src/operationsInterfaces/virtualMachineScaleSets.ts +513 -0
- package/src/operationsInterfaces/virtualMachineSizes.ts +28 -0
- package/src/operationsInterfaces/virtualMachines.ts +567 -0
- package/tsconfig.json +3 -3
- package/types/arm-compute.d.ts +14060 -0
- package/types/tsdoc-metadata.json +11 -0
- package/LICENSE.txt +0 -21
- package/dist/arm-compute.js +0 -39882
- package/dist/arm-compute.js.map +0 -1
- package/dist/arm-compute.min.js +0 -1
- package/dist/arm-compute.min.js.map +0 -1
- package/esm/computeManagementClient.d.ts +0 -73
- package/esm/computeManagementClient.d.ts.map +0 -1
- package/esm/computeManagementClient.js +0 -86
- package/esm/computeManagementClient.js.map +0 -1
- package/esm/computeManagementClientContext.d.ts +0 -22
- package/esm/computeManagementClientContext.d.ts.map +0 -1
- package/esm/computeManagementClientContext.js +0 -60
- package/esm/computeManagementClientContext.js.map +0 -1
- package/esm/models/availabilitySetsMappers.d.ts +0 -2
- package/esm/models/availabilitySetsMappers.d.ts.map +0 -1
- package/esm/models/availabilitySetsMappers.js +0 -9
- package/esm/models/availabilitySetsMappers.js.map +0 -1
- package/esm/models/capacityReservationGroupsMappers.d.ts +0 -2
- package/esm/models/capacityReservationGroupsMappers.d.ts.map +0 -1
- package/esm/models/capacityReservationGroupsMappers.js +0 -9
- package/esm/models/capacityReservationGroupsMappers.js.map +0 -1
- package/esm/models/capacityReservationsMappers.d.ts +0 -2
- package/esm/models/capacityReservationsMappers.d.ts.map +0 -1
- package/esm/models/capacityReservationsMappers.js +0 -9
- package/esm/models/capacityReservationsMappers.js.map +0 -1
- package/esm/models/cloudServiceOperatingSystemsMappers.d.ts +0 -2
- package/esm/models/cloudServiceOperatingSystemsMappers.d.ts.map +0 -1
- package/esm/models/cloudServiceOperatingSystemsMappers.js +0 -9
- package/esm/models/cloudServiceOperatingSystemsMappers.js.map +0 -1
- package/esm/models/cloudServiceRoleInstancesMappers.d.ts +0 -2
- package/esm/models/cloudServiceRoleInstancesMappers.d.ts.map +0 -1
- package/esm/models/cloudServiceRoleInstancesMappers.js +0 -9
- package/esm/models/cloudServiceRoleInstancesMappers.js.map +0 -1
- package/esm/models/cloudServiceRolesMappers.d.ts +0 -2
- package/esm/models/cloudServiceRolesMappers.d.ts.map +0 -1
- package/esm/models/cloudServiceRolesMappers.js +0 -9
- package/esm/models/cloudServiceRolesMappers.js.map +0 -1
- package/esm/models/cloudServicesMappers.d.ts +0 -2
- package/esm/models/cloudServicesMappers.d.ts.map +0 -1
- package/esm/models/cloudServicesMappers.js +0 -9
- package/esm/models/cloudServicesMappers.js.map +0 -1
- package/esm/models/cloudServicesUpdateDomainMappers.d.ts +0 -2
- package/esm/models/cloudServicesUpdateDomainMappers.d.ts.map +0 -1
- package/esm/models/cloudServicesUpdateDomainMappers.js +0 -9
- package/esm/models/cloudServicesUpdateDomainMappers.js.map +0 -1
- package/esm/models/communityGalleriesMappers.d.ts +0 -2
- package/esm/models/communityGalleriesMappers.d.ts.map +0 -1
- package/esm/models/communityGalleriesMappers.js +0 -9
- package/esm/models/communityGalleriesMappers.js.map +0 -1
- package/esm/models/communityGalleryImageVersionsMappers.d.ts +0 -2
- package/esm/models/communityGalleryImageVersionsMappers.d.ts.map +0 -1
- package/esm/models/communityGalleryImageVersionsMappers.js +0 -9
- package/esm/models/communityGalleryImageVersionsMappers.js.map +0 -1
- package/esm/models/communityGalleryImagesMappers.d.ts +0 -2
- package/esm/models/communityGalleryImagesMappers.d.ts.map +0 -1
- package/esm/models/communityGalleryImagesMappers.js +0 -9
- package/esm/models/communityGalleryImagesMappers.js.map +0 -1
- package/esm/models/dedicatedHostGroupsMappers.d.ts +0 -2
- package/esm/models/dedicatedHostGroupsMappers.d.ts.map +0 -1
- package/esm/models/dedicatedHostGroupsMappers.js +0 -9
- package/esm/models/dedicatedHostGroupsMappers.js.map +0 -1
- package/esm/models/dedicatedHostsMappers.d.ts +0 -2
- package/esm/models/dedicatedHostsMappers.d.ts.map +0 -1
- package/esm/models/dedicatedHostsMappers.js +0 -9
- package/esm/models/dedicatedHostsMappers.js.map +0 -1
- package/esm/models/diskAccessesMappers.d.ts +0 -2
- package/esm/models/diskAccessesMappers.d.ts.map +0 -1
- package/esm/models/diskAccessesMappers.js +0 -9
- package/esm/models/diskAccessesMappers.js.map +0 -1
- package/esm/models/diskEncryptionSetsMappers.d.ts +0 -2
- package/esm/models/diskEncryptionSetsMappers.d.ts.map +0 -1
- package/esm/models/diskEncryptionSetsMappers.js +0 -9
- package/esm/models/diskEncryptionSetsMappers.js.map +0 -1
- package/esm/models/diskRestorePointOperationsMappers.d.ts +0 -2
- package/esm/models/diskRestorePointOperationsMappers.d.ts.map +0 -1
- package/esm/models/diskRestorePointOperationsMappers.js +0 -9
- package/esm/models/diskRestorePointOperationsMappers.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/galleriesMappers.d.ts +0 -2
- package/esm/models/galleriesMappers.d.ts.map +0 -1
- package/esm/models/galleriesMappers.js +0 -9
- package/esm/models/galleriesMappers.js.map +0 -1
- package/esm/models/galleryApplicationVersionsMappers.d.ts +0 -2
- package/esm/models/galleryApplicationVersionsMappers.d.ts.map +0 -1
- package/esm/models/galleryApplicationVersionsMappers.js +0 -9
- package/esm/models/galleryApplicationVersionsMappers.js.map +0 -1
- package/esm/models/galleryApplicationsMappers.d.ts +0 -2
- package/esm/models/galleryApplicationsMappers.d.ts.map +0 -1
- package/esm/models/galleryApplicationsMappers.js +0 -9
- package/esm/models/galleryApplicationsMappers.js.map +0 -1
- package/esm/models/galleryImageVersionsMappers.d.ts +0 -2
- package/esm/models/galleryImageVersionsMappers.d.ts.map +0 -1
- package/esm/models/galleryImageVersionsMappers.js +0 -9
- package/esm/models/galleryImageVersionsMappers.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/gallerySharingProfileMappers.d.ts +0 -2
- package/esm/models/gallerySharingProfileMappers.d.ts.map +0 -1
- package/esm/models/gallerySharingProfileMappers.js +0 -9
- package/esm/models/gallerySharingProfileMappers.js.map +0 -1
- package/esm/models/imagesMappers.d.ts +0 -2
- package/esm/models/imagesMappers.d.ts.map +0 -1
- package/esm/models/imagesMappers.js +0 -9
- package/esm/models/imagesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -16576
- 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/logAnalyticsMappers.d.ts +0 -2
- package/esm/models/logAnalyticsMappers.d.ts.map +0 -1
- package/esm/models/logAnalyticsMappers.js +0 -9
- package/esm/models/logAnalyticsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -391
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -14578
- package/esm/models/mappers.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 -70
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -732
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/proximityPlacementGroupsMappers.d.ts +0 -2
- package/esm/models/proximityPlacementGroupsMappers.d.ts.map +0 -1
- package/esm/models/proximityPlacementGroupsMappers.js +0 -9
- package/esm/models/proximityPlacementGroupsMappers.js.map +0 -1
- package/esm/models/resourceSkusMappers.d.ts +0 -2
- package/esm/models/resourceSkusMappers.d.ts.map +0 -1
- package/esm/models/resourceSkusMappers.js +0 -9
- package/esm/models/resourceSkusMappers.js.map +0 -1
- package/esm/models/restorePointCollectionsMappers.d.ts +0 -2
- package/esm/models/restorePointCollectionsMappers.d.ts.map +0 -1
- package/esm/models/restorePointCollectionsMappers.js +0 -9
- package/esm/models/restorePointCollectionsMappers.js.map +0 -1
- package/esm/models/restorePointsMappers.d.ts +0 -2
- package/esm/models/restorePointsMappers.d.ts.map +0 -1
- package/esm/models/restorePointsMappers.js +0 -9
- package/esm/models/restorePointsMappers.js.map +0 -1
- package/esm/models/sharedGalleriesMappers.d.ts +0 -2
- package/esm/models/sharedGalleriesMappers.d.ts.map +0 -1
- package/esm/models/sharedGalleriesMappers.js +0 -9
- package/esm/models/sharedGalleriesMappers.js.map +0 -1
- package/esm/models/sharedGalleryImageVersionsMappers.d.ts +0 -2
- package/esm/models/sharedGalleryImageVersionsMappers.d.ts.map +0 -1
- package/esm/models/sharedGalleryImageVersionsMappers.js +0 -9
- package/esm/models/sharedGalleryImageVersionsMappers.js.map +0 -1
- package/esm/models/sharedGalleryImagesMappers.d.ts +0 -2
- package/esm/models/sharedGalleryImagesMappers.d.ts.map +0 -1
- package/esm/models/sharedGalleryImagesMappers.js +0 -9
- package/esm/models/sharedGalleryImagesMappers.js.map +0 -1
- package/esm/models/snapshotsMappers.d.ts +0 -2
- package/esm/models/snapshotsMappers.d.ts.map +0 -1
- package/esm/models/snapshotsMappers.js +0 -9
- package/esm/models/snapshotsMappers.js.map +0 -1
- package/esm/models/sshPublicKeysMappers.d.ts +0 -2
- package/esm/models/sshPublicKeysMappers.d.ts.map +0 -1
- package/esm/models/sshPublicKeysMappers.js +0 -9
- package/esm/models/sshPublicKeysMappers.js.map +0 -1
- package/esm/models/usageOperationsMappers.d.ts +0 -2
- package/esm/models/usageOperationsMappers.d.ts.map +0 -1
- package/esm/models/usageOperationsMappers.js +0 -9
- package/esm/models/usageOperationsMappers.js.map +0 -1
- package/esm/models/virtualMachineExtensionImagesMappers.d.ts +0 -2
- package/esm/models/virtualMachineExtensionImagesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineExtensionImagesMappers.js +0 -9
- package/esm/models/virtualMachineExtensionImagesMappers.js.map +0 -1
- package/esm/models/virtualMachineExtensionsMappers.d.ts +0 -2
- package/esm/models/virtualMachineExtensionsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineExtensionsMappers.js +0 -9
- package/esm/models/virtualMachineExtensionsMappers.js.map +0 -1
- package/esm/models/virtualMachineImagesEdgeZoneMappers.d.ts +0 -2
- package/esm/models/virtualMachineImagesEdgeZoneMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineImagesEdgeZoneMappers.js +0 -9
- package/esm/models/virtualMachineImagesEdgeZoneMappers.js.map +0 -1
- package/esm/models/virtualMachineImagesMappers.d.ts +0 -2
- package/esm/models/virtualMachineImagesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineImagesMappers.js +0 -9
- package/esm/models/virtualMachineImagesMappers.js.map +0 -1
- package/esm/models/virtualMachineRunCommandsMappers.d.ts +0 -2
- package/esm/models/virtualMachineRunCommandsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineRunCommandsMappers.js +0 -9
- package/esm/models/virtualMachineRunCommandsMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetExtensionsMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetExtensionsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetExtensionsMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetExtensionsMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetRollingUpgradesMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetRollingUpgradesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetRollingUpgradesMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetRollingUpgradesMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetVMExtensionsMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetVMExtensionsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetVMExtensionsMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetVMExtensionsMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetVMRunCommandsMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetVMRunCommandsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetVMRunCommandsMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetVMRunCommandsMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetVMsMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetVMsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetVMsMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetVMsMappers.js.map +0 -1
- package/esm/models/virtualMachineScaleSetsMappers.d.ts +0 -2
- package/esm/models/virtualMachineScaleSetsMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineScaleSetsMappers.js +0 -9
- package/esm/models/virtualMachineScaleSetsMappers.js.map +0 -1
- package/esm/models/virtualMachineSizesMappers.d.ts +0 -2
- package/esm/models/virtualMachineSizesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineSizesMappers.js +0 -9
- package/esm/models/virtualMachineSizesMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js +0 -9
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/availabilitySets.d.ts +0 -194
- package/esm/operations/availabilitySets.d.ts.map +0 -1
- package/esm/operations/availabilitySets.js +0 -307
- package/esm/operations/availabilitySets.js.map +0 -1
- package/esm/operations/capacityReservationGroups.d.ts +0 -182
- package/esm/operations/capacityReservationGroups.d.ts.map +0 -1
- package/esm/operations/capacityReservationGroups.js +0 -282
- package/esm/operations/capacityReservationGroups.js.map +0 -1
- package/esm/operations/capacityReservations.d.ts +0 -145
- package/esm/operations/capacityReservations.d.ts.map +0 -1
- package/esm/operations/capacityReservations.js +0 -306
- package/esm/operations/capacityReservations.js.map +0 -1
- package/esm/operations/cloudServiceOperatingSystems.d.ts +0 -137
- package/esm/operations/cloudServiceOperatingSystems.d.ts.map +0 -1
- package/esm/operations/cloudServiceOperatingSystems.js +0 -204
- package/esm/operations/cloudServiceOperatingSystems.js.map +0 -1
- package/esm/operations/cloudServiceRoleInstances.d.ts +0 -209
- package/esm/operations/cloudServiceRoleInstances.d.ts.map +0 -1
- package/esm/operations/cloudServiceRoleInstances.js +0 -410
- package/esm/operations/cloudServiceRoleInstances.js.map +0 -1
- package/esm/operations/cloudServiceRoles.d.ts +0 -78
- package/esm/operations/cloudServiceRoles.d.ts.map +0 -1
- package/esm/operations/cloudServiceRoles.js +0 -119
- package/esm/operations/cloudServiceRoles.js.map +0 -1
- package/esm/operations/cloudServices.d.ts +0 -287
- package/esm/operations/cloudServices.d.ts.map +0 -1
- package/esm/operations/cloudServices.js +0 -692
- package/esm/operations/cloudServices.js.map +0 -1
- package/esm/operations/cloudServicesUpdateDomain.d.ts +0 -107
- package/esm/operations/cloudServicesUpdateDomain.d.ts.map +0 -1
- package/esm/operations/cloudServicesUpdateDomain.js +0 -182
- package/esm/operations/cloudServicesUpdateDomain.js.map +0 -1
- package/esm/operations/communityGalleries.d.ts +0 -34
- package/esm/operations/communityGalleries.d.ts.map +0 -1
- package/esm/operations/communityGalleries.js +0 -57
- package/esm/operations/communityGalleries.js.map +0 -1
- package/esm/operations/communityGalleryImageVersions.d.ts +0 -46
- package/esm/operations/communityGalleryImageVersions.d.ts.map +0 -1
- package/esm/operations/communityGalleryImageVersions.js +0 -61
- package/esm/operations/communityGalleryImageVersions.js.map +0 -1
- package/esm/operations/communityGalleryImages.d.ts +0 -37
- package/esm/operations/communityGalleryImages.d.ts.map +0 -1
- package/esm/operations/communityGalleryImages.js +0 -59
- package/esm/operations/communityGalleryImages.js.map +0 -1
- package/esm/operations/dedicatedHostGroups.d.ts +0 -177
- package/esm/operations/dedicatedHostGroups.d.ts.map +0 -1
- package/esm/operations/dedicatedHostGroups.js +0 -278
- package/esm/operations/dedicatedHostGroups.js.map +0 -1
- package/esm/operations/dedicatedHosts.d.ts +0 -137
- package/esm/operations/dedicatedHosts.d.ts.map +0 -1
- package/esm/operations/dedicatedHosts.js +0 -297
- package/esm/operations/dedicatedHosts.js.map +0 -1
- package/esm/operations/diskAccesses.d.ts +0 -326
- package/esm/operations/diskAccesses.d.ts.map +0 -1
- package/esm/operations/diskAccesses.js +0 -603
- package/esm/operations/diskAccesses.js.map +0 -1
- package/esm/operations/diskEncryptionSets.d.ts +0 -223
- package/esm/operations/diskEncryptionSets.d.ts.map +0 -1
- package/esm/operations/diskEncryptionSets.js +0 -415
- package/esm/operations/diskEncryptionSets.js.map +0 -1
- package/esm/operations/diskRestorePointOperations.d.ts +0 -145
- package/esm/operations/diskRestorePointOperations.d.ts.map +0 -1
- package/esm/operations/diskRestorePointOperations.js +0 -253
- package/esm/operations/diskRestorePointOperations.js.map +0 -1
- package/esm/operations/disks.d.ts +0 -216
- package/esm/operations/disks.d.ts.map +0 -1
- package/esm/operations/disks.js +0 -464
- package/esm/operations/disks.js.map +0 -1
- package/esm/operations/galleries.d.ts +0 -160
- package/esm/operations/galleries.d.ts.map +0 -1
- package/esm/operations/galleries.js +0 -344
- package/esm/operations/galleries.js.map +0 -1
- package/esm/operations/galleryApplicationVersions.d.ts +0 -190
- package/esm/operations/galleryApplicationVersions.d.ts.map +0 -1
- package/esm/operations/galleryApplicationVersions.js +0 -344
- package/esm/operations/galleryApplicationVersions.js.map +0 -1
- package/esm/operations/galleryApplications.d.ts +0 -157
- package/esm/operations/galleryApplications.d.ts.map +0 -1
- package/esm/operations/galleryApplications.js +0 -315
- package/esm/operations/galleryApplications.js.map +0 -1
- package/esm/operations/galleryImageVersions.d.ts +0 -169
- package/esm/operations/galleryImageVersions.d.ts.map +0 -1
- package/esm/operations/galleryImageVersions.js +0 -332
- package/esm/operations/galleryImageVersions.js.map +0 -1
- package/esm/operations/galleryImages.d.ts +0 -155
- package/esm/operations/galleryImages.d.ts.map +0 -1
- package/esm/operations/galleryImages.js +0 -313
- package/esm/operations/galleryImages.js.map +0 -1
- package/esm/operations/gallerySharingProfile.d.ts +0 -32
- package/esm/operations/gallerySharingProfile.d.ts.map +0 -1
- package/esm/operations/gallerySharingProfile.js +0 -86
- package/esm/operations/gallerySharingProfile.js.map +0 -1
- package/esm/operations/images.d.ts +0 -158
- package/esm/operations/images.d.ts.map +0 -1
- package/esm/operations/images.js +0 -340
- package/esm/operations/images.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -58
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/logAnalytics.d.ts +0 -50
- package/esm/operations/logAnalytics.d.ts.map +0 -1
- package/esm/operations/logAnalytics.js +0 -137
- package/esm/operations/logAnalytics.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/proximityPlacementGroups.d.ts +0 -172
- package/esm/operations/proximityPlacementGroups.d.ts.map +0 -1
- package/esm/operations/proximityPlacementGroups.js +0 -277
- package/esm/operations/proximityPlacementGroups.js.map +0 -1
- package/esm/operations/resourceSkus.d.ts +0 -46
- package/esm/operations/resourceSkus.d.ts.map +0 -1
- package/esm/operations/resourceSkus.js +0 -86
- package/esm/operations/resourceSkus.js.map +0 -1
- package/esm/operations/restorePointCollections.d.ts +0 -179
- package/esm/operations/restorePointCollections.d.ts.map +0 -1
- package/esm/operations/restorePointCollections.js +0 -299
- package/esm/operations/restorePointCollections.js.map +0 -1
- package/esm/operations/restorePoints.d.ts +0 -78
- package/esm/operations/restorePoints.d.ts.map +0 -1
- package/esm/operations/restorePoints.js +0 -175
- package/esm/operations/restorePoints.js.map +0 -1
- package/esm/operations/sharedGalleries.d.ts +0 -70
- package/esm/operations/sharedGalleries.d.ts.map +0 -1
- package/esm/operations/sharedGalleries.js +0 -117
- package/esm/operations/sharedGalleries.js.map +0 -1
- package/esm/operations/sharedGalleryImageVersions.d.ts +0 -94
- package/esm/operations/sharedGalleryImageVersions.d.ts.map +0 -1
- package/esm/operations/sharedGalleryImageVersions.js +0 -125
- package/esm/operations/sharedGalleryImageVersions.js.map +0 -1
- package/esm/operations/sharedGalleryImages.d.ts +0 -79
- package/esm/operations/sharedGalleryImages.d.ts.map +0 -1
- package/esm/operations/sharedGalleryImages.js +0 -121
- package/esm/operations/sharedGalleryImages.js.map +0 -1
- package/esm/operations/snapshots.d.ts +0 -218
- package/esm/operations/snapshots.d.ts.map +0 -1
- package/esm/operations/snapshots.js +0 -466
- package/esm/operations/snapshots.js.map +0 -1
- package/esm/operations/sshPublicKeys.d.ts +0 -199
- package/esm/operations/sshPublicKeys.d.ts.map +0 -1
- package/esm/operations/sshPublicKeys.js +0 -308
- package/esm/operations/sshPublicKeys.js.map +0 -1
- package/esm/operations/usageOperations.d.ts +0 -51
- package/esm/operations/usageOperations.d.ts.map +0 -1
- package/esm/operations/usageOperations.js +0 -84
- package/esm/operations/usageOperations.js.map +0 -1
- package/esm/operations/virtualMachineExtensionImages.d.ts +0 -85
- package/esm/operations/virtualMachineExtensionImages.d.ts.map +0 -1
- package/esm/operations/virtualMachineExtensionImages.js +0 -150
- package/esm/operations/virtualMachineExtensionImages.js.map +0 -1
- package/esm/operations/virtualMachineExtensions.d.ts +0 -121
- package/esm/operations/virtualMachineExtensions.d.ts.map +0 -1
- package/esm/operations/virtualMachineExtensions.js +0 -273
- package/esm/operations/virtualMachineExtensions.js.map +0 -1
- package/esm/operations/virtualMachineImages.d.ts +0 -134
- package/esm/operations/virtualMachineImages.d.ts.map +0 -1
- package/esm/operations/virtualMachineImages.js +0 -238
- package/esm/operations/virtualMachineImages.js.map +0 -1
- package/esm/operations/virtualMachineImagesEdgeZone.d.ts +0 -150
- package/esm/operations/virtualMachineImagesEdgeZone.d.ts.map +0 -1
- package/esm/operations/virtualMachineImagesEdgeZone.js +0 -248
- package/esm/operations/virtualMachineImagesEdgeZone.js.map +0 -1
- package/esm/operations/virtualMachineRunCommands.d.ts +0 -194
- package/esm/operations/virtualMachineRunCommands.d.ts.map +0 -1
- package/esm/operations/virtualMachineRunCommands.js +0 -390
- package/esm/operations/virtualMachineRunCommands.js.map +0 -1
- package/esm/operations/virtualMachineScaleSetExtensions.d.ts +0 -137
- package/esm/operations/virtualMachineScaleSetExtensions.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSetExtensions.js +0 -302
- package/esm/operations/virtualMachineScaleSetExtensions.js.map +0 -1
- package/esm/operations/virtualMachineScaleSetRollingUpgrades.d.ts +0 -91
- package/esm/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSetRollingUpgrades.js +0 -209
- package/esm/operations/virtualMachineScaleSetRollingUpgrades.js.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMExtensions.d.ts +0 -133
- package/esm/operations/virtualMachineScaleSetVMExtensions.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMExtensions.js +0 -289
- package/esm/operations/virtualMachineScaleSetVMExtensions.js.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMRunCommands.d.ts +0 -147
- package/esm/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMRunCommands.js +0 -315
- package/esm/operations/virtualMachineScaleSetVMRunCommands.js.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMs.d.ts +0 -366
- package/esm/operations/virtualMachineScaleSetVMs.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSetVMs.js +0 -841
- package/esm/operations/virtualMachineScaleSetVMs.js.map +0 -1
- package/esm/operations/virtualMachineScaleSets.d.ts +0 -554
- package/esm/operations/virtualMachineScaleSets.d.ts.map +0 -1
- package/esm/operations/virtualMachineScaleSets.js +0 -1243
- package/esm/operations/virtualMachineScaleSets.js.map +0 -1
- package/esm/operations/virtualMachineSizes.d.ts +0 -32
- package/esm/operations/virtualMachineSizes.d.ts.map +0 -1
- package/esm/operations/virtualMachineSizes.js +0 -55
- package/esm/operations/virtualMachineSizes.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -530
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -1222
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/models/availabilitySetsMappers.ts +0 -266
- package/src/models/capacityReservationGroupsMappers.ts +0 -264
- package/src/models/capacityReservationsMappers.ts +0 -264
- package/src/models/cloudServiceOperatingSystemsMappers.ts +0 -21
- package/src/models/cloudServiceRoleInstancesMappers.ts +0 -251
- package/src/models/cloudServiceRolesMappers.ts +0 -18
- package/src/models/cloudServicesMappers.ts +0 -251
- package/src/models/cloudServicesUpdateDomainMappers.ts +0 -16
- package/src/models/communityGalleriesMappers.ts +0 -24
- package/src/models/communityGalleryImageVersionsMappers.ts +0 -24
- package/src/models/communityGalleryImagesMappers.ts +0 -24
- package/src/models/dedicatedHostGroupsMappers.ts +0 -264
- package/src/models/dedicatedHostsMappers.ts +0 -264
- package/src/models/diskAccessesMappers.ts +0 -249
- package/src/models/diskEncryptionSetsMappers.ts +0 -247
- package/src/models/diskRestorePointOperationsMappers.ts +0 -22
- package/src/models/disksMappers.ts +0 -248
- package/src/models/galleriesMappers.ts +0 -245
- package/src/models/galleryApplicationVersionsMappers.ts +0 -245
- package/src/models/galleryApplicationsMappers.ts +0 -245
- package/src/models/galleryImageVersionsMappers.ts +0 -245
- package/src/models/galleryImagesMappers.ts +0 -245
- package/src/models/gallerySharingProfileMappers.ts +0 -244
- package/src/models/imagesMappers.ts +0 -264
- package/src/models/logAnalyticsMappers.ts +0 -16
- package/src/models/operationsMappers.ts +0 -13
- package/src/models/proximityPlacementGroupsMappers.ts +0 -264
- package/src/models/resourceSkusMappers.ts +0 -20
- package/src/models/restorePointCollectionsMappers.ts +0 -264
- package/src/models/restorePointsMappers.ts +0 -244
- package/src/models/sharedGalleriesMappers.ts +0 -26
- package/src/models/sharedGalleryImageVersionsMappers.ts +0 -26
- package/src/models/sharedGalleryImagesMappers.ts +0 -26
- package/src/models/snapshotsMappers.ts +0 -248
- package/src/models/sshPublicKeysMappers.ts +0 -265
- package/src/models/usageOperationsMappers.ts +0 -14
- package/src/models/virtualMachineExtensionImagesMappers.ts +0 -244
- package/src/models/virtualMachineExtensionsMappers.ts +0 -264
- package/src/models/virtualMachineImagesEdgeZoneMappers.ts +0 -244
- package/src/models/virtualMachineImagesMappers.ts +0 -244
- package/src/models/virtualMachineRunCommandsMappers.ts +0 -268
- package/src/models/virtualMachineScaleSetExtensionsMappers.ts +0 -245
- package/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +0 -244
- package/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +0 -245
- package/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts +0 -264
- package/src/models/virtualMachineScaleSetVMsMappers.ts +0 -251
- package/src/models/virtualMachineScaleSetsMappers.ts +0 -286
- package/src/models/virtualMachineSizesMappers.ts +0 -13
- package/src/models/virtualMachinesMappers.ts +0 -280
|
@@ -3,24 +3,78 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { VirtualMachines } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
14
|
import { ComputeManagementClientContext } from "../computeManagementClientContext";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
VirtualMachine,
|
|
19
|
+
VirtualMachinesListByLocationNextOptionalParams,
|
|
20
|
+
VirtualMachinesListByLocationOptionalParams,
|
|
21
|
+
VirtualMachinesListNextOptionalParams,
|
|
22
|
+
VirtualMachinesListOptionalParams,
|
|
23
|
+
VirtualMachinesListAllNextOptionalParams,
|
|
24
|
+
VirtualMachinesListAllOptionalParams,
|
|
25
|
+
VirtualMachineSize,
|
|
26
|
+
VirtualMachinesListAvailableSizesOptionalParams,
|
|
27
|
+
VirtualMachinesListByLocationResponse,
|
|
28
|
+
VirtualMachineCaptureParameters,
|
|
29
|
+
VirtualMachinesCaptureOptionalParams,
|
|
30
|
+
VirtualMachinesCaptureResponse,
|
|
31
|
+
VirtualMachinesCreateOrUpdateOptionalParams,
|
|
32
|
+
VirtualMachinesCreateOrUpdateResponse,
|
|
33
|
+
VirtualMachineUpdate,
|
|
34
|
+
VirtualMachinesUpdateOptionalParams,
|
|
35
|
+
VirtualMachinesUpdateResponse,
|
|
36
|
+
VirtualMachinesDeleteOptionalParams,
|
|
37
|
+
VirtualMachinesGetOptionalParams,
|
|
38
|
+
VirtualMachinesGetResponse,
|
|
39
|
+
VirtualMachinesInstanceViewOptionalParams,
|
|
40
|
+
VirtualMachinesInstanceViewResponse,
|
|
41
|
+
VirtualMachinesConvertToManagedDisksOptionalParams,
|
|
42
|
+
VirtualMachinesDeallocateOptionalParams,
|
|
43
|
+
VirtualMachinesGeneralizeOptionalParams,
|
|
44
|
+
VirtualMachinesListResponse,
|
|
45
|
+
VirtualMachinesListAllResponse,
|
|
46
|
+
VirtualMachinesListAvailableSizesResponse,
|
|
47
|
+
VirtualMachinesPowerOffOptionalParams,
|
|
48
|
+
VirtualMachinesReapplyOptionalParams,
|
|
49
|
+
VirtualMachinesRestartOptionalParams,
|
|
50
|
+
VirtualMachinesStartOptionalParams,
|
|
51
|
+
VirtualMachinesRedeployOptionalParams,
|
|
52
|
+
VirtualMachinesReimageOptionalParams,
|
|
53
|
+
VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams,
|
|
54
|
+
VirtualMachinesRetrieveBootDiagnosticsDataResponse,
|
|
55
|
+
VirtualMachinesPerformMaintenanceOptionalParams,
|
|
56
|
+
VirtualMachinesSimulateEvictionOptionalParams,
|
|
57
|
+
VirtualMachinesAssessPatchesOptionalParams,
|
|
58
|
+
VirtualMachinesAssessPatchesResponse,
|
|
59
|
+
VirtualMachineInstallPatchesParameters,
|
|
60
|
+
VirtualMachinesInstallPatchesOptionalParams,
|
|
61
|
+
VirtualMachinesInstallPatchesResponse,
|
|
62
|
+
RunCommandInput,
|
|
63
|
+
VirtualMachinesRunCommandOptionalParams,
|
|
64
|
+
VirtualMachinesRunCommandResponse,
|
|
65
|
+
VirtualMachinesListByLocationNextResponse,
|
|
66
|
+
VirtualMachinesListNextResponse,
|
|
67
|
+
VirtualMachinesListAllNextResponse
|
|
68
|
+
} from "../models";
|
|
69
|
+
|
|
70
|
+
/// <reference lib="esnext.asynciterable" />
|
|
71
|
+
/** Class containing VirtualMachines operations. */
|
|
72
|
+
export class VirtualMachinesImpl implements VirtualMachines {
|
|
19
73
|
private readonly client: ComputeManagementClientContext;
|
|
20
74
|
|
|
21
75
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
76
|
+
* Initialize a new instance of the class VirtualMachines class.
|
|
77
|
+
* @param client Reference to the service client
|
|
24
78
|
*/
|
|
25
79
|
constructor(client: ComputeManagementClientContext) {
|
|
26
80
|
this.client = client;
|
|
@@ -29,43 +83,313 @@ export class VirtualMachines {
|
|
|
29
83
|
/**
|
|
30
84
|
* Gets all the virtual machines under the specified subscription for the specified location.
|
|
31
85
|
* @param location The location for which virtual machines under the subscription are queried.
|
|
32
|
-
* @param
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
public listByLocation(
|
|
89
|
+
location: string,
|
|
90
|
+
options?: VirtualMachinesListByLocationOptionalParams
|
|
91
|
+
): PagedAsyncIterableIterator<VirtualMachine> {
|
|
92
|
+
const iter = this.listByLocationPagingAll(location, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: () => {
|
|
101
|
+
return this.listByLocationPagingPage(location, options);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private async *listByLocationPagingPage(
|
|
107
|
+
location: string,
|
|
108
|
+
options?: VirtualMachinesListByLocationOptionalParams
|
|
109
|
+
): AsyncIterableIterator<VirtualMachine[]> {
|
|
110
|
+
let result = await this._listByLocation(location, options);
|
|
111
|
+
yield result.value || [];
|
|
112
|
+
let continuationToken = result.nextLink;
|
|
113
|
+
while (continuationToken) {
|
|
114
|
+
result = await this._listByLocationNext(
|
|
115
|
+
location,
|
|
116
|
+
continuationToken,
|
|
117
|
+
options
|
|
118
|
+
);
|
|
119
|
+
continuationToken = result.nextLink;
|
|
120
|
+
yield result.value || [];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private async *listByLocationPagingAll(
|
|
125
|
+
location: string,
|
|
126
|
+
options?: VirtualMachinesListByLocationOptionalParams
|
|
127
|
+
): AsyncIterableIterator<VirtualMachine> {
|
|
128
|
+
for await (const page of this.listByLocationPagingPage(location, options)) {
|
|
129
|
+
yield* page;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
36
133
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
134
|
+
* Lists all of the virtual machines in the specified resource group. Use the nextLink property in the
|
|
135
|
+
* response to get the next page of virtual machines.
|
|
136
|
+
* @param resourceGroupName The name of the resource group.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
public list(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
options?: VirtualMachinesListOptionalParams
|
|
142
|
+
): PagedAsyncIterableIterator<VirtualMachine> {
|
|
143
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
144
|
+
return {
|
|
145
|
+
next() {
|
|
146
|
+
return iter.next();
|
|
147
|
+
},
|
|
148
|
+
[Symbol.asyncIterator]() {
|
|
149
|
+
return this;
|
|
150
|
+
},
|
|
151
|
+
byPage: () => {
|
|
152
|
+
return this.listPagingPage(resourceGroupName, options);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
private async *listPagingPage(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
options?: VirtualMachinesListOptionalParams
|
|
160
|
+
): AsyncIterableIterator<VirtualMachine[]> {
|
|
161
|
+
let result = await this._list(resourceGroupName, options);
|
|
162
|
+
yield result.value || [];
|
|
163
|
+
let continuationToken = result.nextLink;
|
|
164
|
+
while (continuationToken) {
|
|
165
|
+
result = await this._listNext(
|
|
166
|
+
resourceGroupName,
|
|
167
|
+
continuationToken,
|
|
168
|
+
options
|
|
169
|
+
);
|
|
170
|
+
continuationToken = result.nextLink;
|
|
171
|
+
yield result.value || [];
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
private async *listPagingAll(
|
|
176
|
+
resourceGroupName: string,
|
|
177
|
+
options?: VirtualMachinesListOptionalParams
|
|
178
|
+
): AsyncIterableIterator<VirtualMachine> {
|
|
179
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
180
|
+
yield* page;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Lists all of the virtual machines in the specified subscription. Use the nextLink property in the
|
|
186
|
+
* response to get the next page of virtual machines.
|
|
187
|
+
* @param options The options parameters.
|
|
39
188
|
*/
|
|
40
|
-
|
|
189
|
+
public listAll(
|
|
190
|
+
options?: VirtualMachinesListAllOptionalParams
|
|
191
|
+
): PagedAsyncIterableIterator<VirtualMachine> {
|
|
192
|
+
const iter = this.listAllPagingAll(options);
|
|
193
|
+
return {
|
|
194
|
+
next() {
|
|
195
|
+
return iter.next();
|
|
196
|
+
},
|
|
197
|
+
[Symbol.asyncIterator]() {
|
|
198
|
+
return this;
|
|
199
|
+
},
|
|
200
|
+
byPage: () => {
|
|
201
|
+
return this.listAllPagingPage(options);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
private async *listAllPagingPage(
|
|
207
|
+
options?: VirtualMachinesListAllOptionalParams
|
|
208
|
+
): AsyncIterableIterator<VirtualMachine[]> {
|
|
209
|
+
let result = await this._listAll(options);
|
|
210
|
+
yield result.value || [];
|
|
211
|
+
let continuationToken = result.nextLink;
|
|
212
|
+
while (continuationToken) {
|
|
213
|
+
result = await this._listAllNext(continuationToken, options);
|
|
214
|
+
continuationToken = result.nextLink;
|
|
215
|
+
yield result.value || [];
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
private async *listAllPagingAll(
|
|
220
|
+
options?: VirtualMachinesListAllOptionalParams
|
|
221
|
+
): AsyncIterableIterator<VirtualMachine> {
|
|
222
|
+
for await (const page of this.listAllPagingPage(options)) {
|
|
223
|
+
yield* page;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Lists all available virtual machine sizes to which the specified virtual machine can be resized.
|
|
229
|
+
* @param resourceGroupName The name of the resource group.
|
|
230
|
+
* @param vmName The name of the virtual machine.
|
|
231
|
+
* @param options The options parameters.
|
|
232
|
+
*/
|
|
233
|
+
public listAvailableSizes(
|
|
234
|
+
resourceGroupName: string,
|
|
235
|
+
vmName: string,
|
|
236
|
+
options?: VirtualMachinesListAvailableSizesOptionalParams
|
|
237
|
+
): PagedAsyncIterableIterator<VirtualMachineSize> {
|
|
238
|
+
const iter = this.listAvailableSizesPagingAll(
|
|
239
|
+
resourceGroupName,
|
|
240
|
+
vmName,
|
|
241
|
+
options
|
|
242
|
+
);
|
|
243
|
+
return {
|
|
244
|
+
next() {
|
|
245
|
+
return iter.next();
|
|
246
|
+
},
|
|
247
|
+
[Symbol.asyncIterator]() {
|
|
248
|
+
return this;
|
|
249
|
+
},
|
|
250
|
+
byPage: () => {
|
|
251
|
+
return this.listAvailableSizesPagingPage(
|
|
252
|
+
resourceGroupName,
|
|
253
|
+
vmName,
|
|
254
|
+
options
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
private async *listAvailableSizesPagingPage(
|
|
261
|
+
resourceGroupName: string,
|
|
262
|
+
vmName: string,
|
|
263
|
+
options?: VirtualMachinesListAvailableSizesOptionalParams
|
|
264
|
+
): AsyncIterableIterator<VirtualMachineSize[]> {
|
|
265
|
+
let result = await this._listAvailableSizes(
|
|
266
|
+
resourceGroupName,
|
|
267
|
+
vmName,
|
|
268
|
+
options
|
|
269
|
+
);
|
|
270
|
+
yield result.value || [];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
private async *listAvailableSizesPagingAll(
|
|
274
|
+
resourceGroupName: string,
|
|
275
|
+
vmName: string,
|
|
276
|
+
options?: VirtualMachinesListAvailableSizesOptionalParams
|
|
277
|
+
): AsyncIterableIterator<VirtualMachineSize> {
|
|
278
|
+
for await (const page of this.listAvailableSizesPagingPage(
|
|
279
|
+
resourceGroupName,
|
|
280
|
+
vmName,
|
|
281
|
+
options
|
|
282
|
+
)) {
|
|
283
|
+
yield* page;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
41
287
|
/**
|
|
288
|
+
* Gets all the virtual machines under the specified subscription for the specified location.
|
|
42
289
|
* @param location The location for which virtual machines under the subscription are queried.
|
|
43
|
-
* @param options The
|
|
44
|
-
* @param callback The callback
|
|
290
|
+
* @param options The options parameters.
|
|
45
291
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
292
|
+
private _listByLocation(
|
|
293
|
+
location: string,
|
|
294
|
+
options?: VirtualMachinesListByLocationOptionalParams
|
|
295
|
+
): Promise<VirtualMachinesListByLocationResponse> {
|
|
48
296
|
return this.client.sendOperationRequest(
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
listByLocationOperationSpec,
|
|
54
|
-
callback) as Promise<Models.VirtualMachinesListByLocationResponse>;
|
|
297
|
+
{ location, options },
|
|
298
|
+
listByLocationOperationSpec
|
|
299
|
+
);
|
|
55
300
|
}
|
|
56
301
|
|
|
57
302
|
/**
|
|
58
|
-
* Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used
|
|
59
|
-
*
|
|
303
|
+
* Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to
|
|
304
|
+
* create similar VMs.
|
|
60
305
|
* @param resourceGroupName The name of the resource group.
|
|
61
306
|
* @param vmName The name of the virtual machine.
|
|
62
307
|
* @param parameters Parameters supplied to the Capture Virtual Machine operation.
|
|
63
|
-
* @param
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
308
|
+
* @param options The options parameters.
|
|
309
|
+
*/
|
|
310
|
+
async beginCapture(
|
|
311
|
+
resourceGroupName: string,
|
|
312
|
+
vmName: string,
|
|
313
|
+
parameters: VirtualMachineCaptureParameters,
|
|
314
|
+
options?: VirtualMachinesCaptureOptionalParams
|
|
315
|
+
): Promise<
|
|
316
|
+
PollerLike<
|
|
317
|
+
PollOperationState<VirtualMachinesCaptureResponse>,
|
|
318
|
+
VirtualMachinesCaptureResponse
|
|
319
|
+
>
|
|
320
|
+
> {
|
|
321
|
+
const directSendOperation = async (
|
|
322
|
+
args: coreClient.OperationArguments,
|
|
323
|
+
spec: coreClient.OperationSpec
|
|
324
|
+
): Promise<VirtualMachinesCaptureResponse> => {
|
|
325
|
+
return this.client.sendOperationRequest(args, spec);
|
|
326
|
+
};
|
|
327
|
+
const sendOperation = async (
|
|
328
|
+
args: coreClient.OperationArguments,
|
|
329
|
+
spec: coreClient.OperationSpec
|
|
330
|
+
) => {
|
|
331
|
+
let currentRawResponse:
|
|
332
|
+
| coreClient.FullOperationResponse
|
|
333
|
+
| undefined = undefined;
|
|
334
|
+
const providedCallback = args.options?.onResponse;
|
|
335
|
+
const callback: coreClient.RawResponseCallback = (
|
|
336
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
337
|
+
flatResponse: unknown
|
|
338
|
+
) => {
|
|
339
|
+
currentRawResponse = rawResponse;
|
|
340
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
341
|
+
};
|
|
342
|
+
const updatedArgs = {
|
|
343
|
+
...args,
|
|
344
|
+
options: {
|
|
345
|
+
...args.options,
|
|
346
|
+
onResponse: callback
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
350
|
+
return {
|
|
351
|
+
flatResponse,
|
|
352
|
+
rawResponse: {
|
|
353
|
+
statusCode: currentRawResponse!.status,
|
|
354
|
+
body: currentRawResponse!.parsedBody,
|
|
355
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
const lro = new LroImpl(
|
|
361
|
+
sendOperation,
|
|
362
|
+
{ resourceGroupName, vmName, parameters, options },
|
|
363
|
+
captureOperationSpec
|
|
364
|
+
);
|
|
365
|
+
return new LroEngine(lro, {
|
|
366
|
+
resumeFrom: options?.resumeFrom,
|
|
367
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
368
|
+
lroResourceLocationConfig: "location"
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to
|
|
374
|
+
* create similar VMs.
|
|
375
|
+
* @param resourceGroupName The name of the resource group.
|
|
376
|
+
* @param vmName The name of the virtual machine.
|
|
377
|
+
* @param parameters Parameters supplied to the Capture Virtual Machine operation.
|
|
378
|
+
* @param options The options parameters.
|
|
379
|
+
*/
|
|
380
|
+
async beginCaptureAndWait(
|
|
381
|
+
resourceGroupName: string,
|
|
382
|
+
vmName: string,
|
|
383
|
+
parameters: VirtualMachineCaptureParameters,
|
|
384
|
+
options?: VirtualMachinesCaptureOptionalParams
|
|
385
|
+
): Promise<VirtualMachinesCaptureResponse> {
|
|
386
|
+
const poller = await this.beginCapture(
|
|
387
|
+
resourceGroupName,
|
|
388
|
+
vmName,
|
|
389
|
+
parameters,
|
|
390
|
+
options
|
|
391
|
+
);
|
|
392
|
+
return poller.pollUntilDone();
|
|
69
393
|
}
|
|
70
394
|
|
|
71
395
|
/**
|
|
@@ -74,12 +398,90 @@ export class VirtualMachines {
|
|
|
74
398
|
* @param resourceGroupName The name of the resource group.
|
|
75
399
|
* @param vmName The name of the virtual machine.
|
|
76
400
|
* @param parameters Parameters supplied to the Create Virtual Machine operation.
|
|
77
|
-
* @param
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
401
|
+
* @param options The options parameters.
|
|
402
|
+
*/
|
|
403
|
+
async beginCreateOrUpdate(
|
|
404
|
+
resourceGroupName: string,
|
|
405
|
+
vmName: string,
|
|
406
|
+
parameters: VirtualMachine,
|
|
407
|
+
options?: VirtualMachinesCreateOrUpdateOptionalParams
|
|
408
|
+
): Promise<
|
|
409
|
+
PollerLike<
|
|
410
|
+
PollOperationState<VirtualMachinesCreateOrUpdateResponse>,
|
|
411
|
+
VirtualMachinesCreateOrUpdateResponse
|
|
412
|
+
>
|
|
413
|
+
> {
|
|
414
|
+
const directSendOperation = async (
|
|
415
|
+
args: coreClient.OperationArguments,
|
|
416
|
+
spec: coreClient.OperationSpec
|
|
417
|
+
): Promise<VirtualMachinesCreateOrUpdateResponse> => {
|
|
418
|
+
return this.client.sendOperationRequest(args, spec);
|
|
419
|
+
};
|
|
420
|
+
const sendOperation = async (
|
|
421
|
+
args: coreClient.OperationArguments,
|
|
422
|
+
spec: coreClient.OperationSpec
|
|
423
|
+
) => {
|
|
424
|
+
let currentRawResponse:
|
|
425
|
+
| coreClient.FullOperationResponse
|
|
426
|
+
| undefined = undefined;
|
|
427
|
+
const providedCallback = args.options?.onResponse;
|
|
428
|
+
const callback: coreClient.RawResponseCallback = (
|
|
429
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
430
|
+
flatResponse: unknown
|
|
431
|
+
) => {
|
|
432
|
+
currentRawResponse = rawResponse;
|
|
433
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
434
|
+
};
|
|
435
|
+
const updatedArgs = {
|
|
436
|
+
...args,
|
|
437
|
+
options: {
|
|
438
|
+
...args.options,
|
|
439
|
+
onResponse: callback
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
443
|
+
return {
|
|
444
|
+
flatResponse,
|
|
445
|
+
rawResponse: {
|
|
446
|
+
statusCode: currentRawResponse!.status,
|
|
447
|
+
body: currentRawResponse!.parsedBody,
|
|
448
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
const lro = new LroImpl(
|
|
454
|
+
sendOperation,
|
|
455
|
+
{ resourceGroupName, vmName, parameters, options },
|
|
456
|
+
createOrUpdateOperationSpec
|
|
457
|
+
);
|
|
458
|
+
return new LroEngine(lro, {
|
|
459
|
+
resumeFrom: options?.resumeFrom,
|
|
460
|
+
intervalInMs: options?.updateIntervalInMs
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* The operation to create or update a virtual machine. Please note some properties can be set only
|
|
466
|
+
* during virtual machine creation.
|
|
467
|
+
* @param resourceGroupName The name of the resource group.
|
|
468
|
+
* @param vmName The name of the virtual machine.
|
|
469
|
+
* @param parameters Parameters supplied to the Create Virtual Machine operation.
|
|
470
|
+
* @param options The options parameters.
|
|
471
|
+
*/
|
|
472
|
+
async beginCreateOrUpdateAndWait(
|
|
473
|
+
resourceGroupName: string,
|
|
474
|
+
vmName: string,
|
|
475
|
+
parameters: VirtualMachine,
|
|
476
|
+
options?: VirtualMachinesCreateOrUpdateOptionalParams
|
|
477
|
+
): Promise<VirtualMachinesCreateOrUpdateResponse> {
|
|
478
|
+
const poller = await this.beginCreateOrUpdate(
|
|
479
|
+
resourceGroupName,
|
|
480
|
+
vmName,
|
|
481
|
+
parameters,
|
|
482
|
+
options
|
|
483
|
+
);
|
|
484
|
+
return poller.pollUntilDone();
|
|
83
485
|
}
|
|
84
486
|
|
|
85
487
|
/**
|
|
@@ -87,101 +489,343 @@ export class VirtualMachines {
|
|
|
87
489
|
* @param resourceGroupName The name of the resource group.
|
|
88
490
|
* @param vmName The name of the virtual machine.
|
|
89
491
|
* @param parameters Parameters supplied to the Update Virtual Machine operation.
|
|
90
|
-
* @param
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
492
|
+
* @param options The options parameters.
|
|
493
|
+
*/
|
|
494
|
+
async beginUpdate(
|
|
495
|
+
resourceGroupName: string,
|
|
496
|
+
vmName: string,
|
|
497
|
+
parameters: VirtualMachineUpdate,
|
|
498
|
+
options?: VirtualMachinesUpdateOptionalParams
|
|
499
|
+
): Promise<
|
|
500
|
+
PollerLike<
|
|
501
|
+
PollOperationState<VirtualMachinesUpdateResponse>,
|
|
502
|
+
VirtualMachinesUpdateResponse
|
|
503
|
+
>
|
|
504
|
+
> {
|
|
505
|
+
const directSendOperation = async (
|
|
506
|
+
args: coreClient.OperationArguments,
|
|
507
|
+
spec: coreClient.OperationSpec
|
|
508
|
+
): Promise<VirtualMachinesUpdateResponse> => {
|
|
509
|
+
return this.client.sendOperationRequest(args, spec);
|
|
510
|
+
};
|
|
511
|
+
const sendOperation = async (
|
|
512
|
+
args: coreClient.OperationArguments,
|
|
513
|
+
spec: coreClient.OperationSpec
|
|
514
|
+
) => {
|
|
515
|
+
let currentRawResponse:
|
|
516
|
+
| coreClient.FullOperationResponse
|
|
517
|
+
| undefined = undefined;
|
|
518
|
+
const providedCallback = args.options?.onResponse;
|
|
519
|
+
const callback: coreClient.RawResponseCallback = (
|
|
520
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
521
|
+
flatResponse: unknown
|
|
522
|
+
) => {
|
|
523
|
+
currentRawResponse = rawResponse;
|
|
524
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
525
|
+
};
|
|
526
|
+
const updatedArgs = {
|
|
527
|
+
...args,
|
|
528
|
+
options: {
|
|
529
|
+
...args.options,
|
|
530
|
+
onResponse: callback
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
534
|
+
return {
|
|
535
|
+
flatResponse,
|
|
536
|
+
rawResponse: {
|
|
537
|
+
statusCode: currentRawResponse!.status,
|
|
538
|
+
body: currentRawResponse!.parsedBody,
|
|
539
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
const lro = new LroImpl(
|
|
545
|
+
sendOperation,
|
|
546
|
+
{ resourceGroupName, vmName, parameters, options },
|
|
547
|
+
updateOperationSpec
|
|
548
|
+
);
|
|
549
|
+
return new LroEngine(lro, {
|
|
550
|
+
resumeFrom: options?.resumeFrom,
|
|
551
|
+
intervalInMs: options?.updateIntervalInMs
|
|
552
|
+
});
|
|
96
553
|
}
|
|
97
554
|
|
|
98
555
|
/**
|
|
99
|
-
* The operation to
|
|
556
|
+
* The operation to update a virtual machine.
|
|
100
557
|
* @param resourceGroupName The name of the resource group.
|
|
101
558
|
* @param vmName The name of the virtual machine.
|
|
102
|
-
* @param
|
|
103
|
-
* @
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
559
|
+
* @param parameters Parameters supplied to the Update Virtual Machine operation.
|
|
560
|
+
* @param options The options parameters.
|
|
561
|
+
*/
|
|
562
|
+
async beginUpdateAndWait(
|
|
563
|
+
resourceGroupName: string,
|
|
564
|
+
vmName: string,
|
|
565
|
+
parameters: VirtualMachineUpdate,
|
|
566
|
+
options?: VirtualMachinesUpdateOptionalParams
|
|
567
|
+
): Promise<VirtualMachinesUpdateResponse> {
|
|
568
|
+
const poller = await this.beginUpdate(
|
|
569
|
+
resourceGroupName,
|
|
570
|
+
vmName,
|
|
571
|
+
parameters,
|
|
572
|
+
options
|
|
573
|
+
);
|
|
574
|
+
return poller.pollUntilDone();
|
|
108
575
|
}
|
|
109
576
|
|
|
110
577
|
/**
|
|
111
|
-
*
|
|
578
|
+
* The operation to delete a virtual machine.
|
|
112
579
|
* @param resourceGroupName The name of the resource group.
|
|
113
580
|
* @param vmName The name of the virtual machine.
|
|
114
|
-
* @param
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
581
|
+
* @param options The options parameters.
|
|
582
|
+
*/
|
|
583
|
+
async beginDelete(
|
|
584
|
+
resourceGroupName: string,
|
|
585
|
+
vmName: string,
|
|
586
|
+
options?: VirtualMachinesDeleteOptionalParams
|
|
587
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
588
|
+
const directSendOperation = async (
|
|
589
|
+
args: coreClient.OperationArguments,
|
|
590
|
+
spec: coreClient.OperationSpec
|
|
591
|
+
): Promise<void> => {
|
|
592
|
+
return this.client.sendOperationRequest(args, spec);
|
|
593
|
+
};
|
|
594
|
+
const sendOperation = async (
|
|
595
|
+
args: coreClient.OperationArguments,
|
|
596
|
+
spec: coreClient.OperationSpec
|
|
597
|
+
) => {
|
|
598
|
+
let currentRawResponse:
|
|
599
|
+
| coreClient.FullOperationResponse
|
|
600
|
+
| undefined = undefined;
|
|
601
|
+
const providedCallback = args.options?.onResponse;
|
|
602
|
+
const callback: coreClient.RawResponseCallback = (
|
|
603
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
604
|
+
flatResponse: unknown
|
|
605
|
+
) => {
|
|
606
|
+
currentRawResponse = rawResponse;
|
|
607
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
608
|
+
};
|
|
609
|
+
const updatedArgs = {
|
|
610
|
+
...args,
|
|
611
|
+
options: {
|
|
612
|
+
...args.options,
|
|
613
|
+
onResponse: callback
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
617
|
+
return {
|
|
618
|
+
flatResponse,
|
|
619
|
+
rawResponse: {
|
|
620
|
+
statusCode: currentRawResponse!.status,
|
|
621
|
+
body: currentRawResponse!.parsedBody,
|
|
622
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
const lro = new LroImpl(
|
|
628
|
+
sendOperation,
|
|
629
|
+
{ resourceGroupName, vmName, options },
|
|
630
|
+
deleteOperationSpec
|
|
631
|
+
);
|
|
632
|
+
return new LroEngine(lro, {
|
|
633
|
+
resumeFrom: options?.resumeFrom,
|
|
634
|
+
intervalInMs: options?.updateIntervalInMs
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
|
|
118
638
|
/**
|
|
639
|
+
* The operation to delete a virtual machine.
|
|
119
640
|
* @param resourceGroupName The name of the resource group.
|
|
120
641
|
* @param vmName The name of the virtual machine.
|
|
121
|
-
* @param
|
|
122
|
-
*/
|
|
123
|
-
|
|
642
|
+
* @param options The options parameters.
|
|
643
|
+
*/
|
|
644
|
+
async beginDeleteAndWait(
|
|
645
|
+
resourceGroupName: string,
|
|
646
|
+
vmName: string,
|
|
647
|
+
options?: VirtualMachinesDeleteOptionalParams
|
|
648
|
+
): Promise<void> {
|
|
649
|
+
const poller = await this.beginDelete(resourceGroupName, vmName, options);
|
|
650
|
+
return poller.pollUntilDone();
|
|
651
|
+
}
|
|
652
|
+
|
|
124
653
|
/**
|
|
654
|
+
* Retrieves information about the model view or the instance view of a virtual machine.
|
|
125
655
|
* @param resourceGroupName The name of the resource group.
|
|
126
656
|
* @param vmName The name of the virtual machine.
|
|
127
|
-
* @param options The
|
|
128
|
-
* @param callback The callback
|
|
657
|
+
* @param options The options parameters.
|
|
129
658
|
*/
|
|
130
|
-
get(
|
|
131
|
-
|
|
659
|
+
get(
|
|
660
|
+
resourceGroupName: string,
|
|
661
|
+
vmName: string,
|
|
662
|
+
options?: VirtualMachinesGetOptionalParams
|
|
663
|
+
): Promise<VirtualMachinesGetResponse> {
|
|
132
664
|
return this.client.sendOperationRequest(
|
|
133
|
-
{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
options
|
|
137
|
-
},
|
|
138
|
-
getOperationSpec,
|
|
139
|
-
callback) as Promise<Models.VirtualMachinesGetResponse>;
|
|
665
|
+
{ resourceGroupName, vmName, options },
|
|
666
|
+
getOperationSpec
|
|
667
|
+
);
|
|
140
668
|
}
|
|
141
669
|
|
|
142
670
|
/**
|
|
143
671
|
* Retrieves information about the run-time state of a virtual machine.
|
|
144
672
|
* @param resourceGroupName The name of the resource group.
|
|
145
673
|
* @param vmName The name of the virtual machine.
|
|
146
|
-
* @param
|
|
147
|
-
* @returns Promise<Models.VirtualMachinesInstanceViewResponse>
|
|
674
|
+
* @param options The options parameters.
|
|
148
675
|
*/
|
|
149
|
-
instanceView(
|
|
676
|
+
instanceView(
|
|
677
|
+
resourceGroupName: string,
|
|
678
|
+
vmName: string,
|
|
679
|
+
options?: VirtualMachinesInstanceViewOptionalParams
|
|
680
|
+
): Promise<VirtualMachinesInstanceViewResponse> {
|
|
681
|
+
return this.client.sendOperationRequest(
|
|
682
|
+
{ resourceGroupName, vmName, options },
|
|
683
|
+
instanceViewOperationSpec
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
|
|
150
687
|
/**
|
|
688
|
+
* Converts virtual machine disks from blob-based to managed disks. Virtual machine must be
|
|
689
|
+
* stop-deallocated before invoking this operation.
|
|
151
690
|
* @param resourceGroupName The name of the resource group.
|
|
152
691
|
* @param vmName The name of the virtual machine.
|
|
153
|
-
* @param
|
|
154
|
-
*/
|
|
155
|
-
|
|
692
|
+
* @param options The options parameters.
|
|
693
|
+
*/
|
|
694
|
+
async beginConvertToManagedDisks(
|
|
695
|
+
resourceGroupName: string,
|
|
696
|
+
vmName: string,
|
|
697
|
+
options?: VirtualMachinesConvertToManagedDisksOptionalParams
|
|
698
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
699
|
+
const directSendOperation = async (
|
|
700
|
+
args: coreClient.OperationArguments,
|
|
701
|
+
spec: coreClient.OperationSpec
|
|
702
|
+
): Promise<void> => {
|
|
703
|
+
return this.client.sendOperationRequest(args, spec);
|
|
704
|
+
};
|
|
705
|
+
const sendOperation = async (
|
|
706
|
+
args: coreClient.OperationArguments,
|
|
707
|
+
spec: coreClient.OperationSpec
|
|
708
|
+
) => {
|
|
709
|
+
let currentRawResponse:
|
|
710
|
+
| coreClient.FullOperationResponse
|
|
711
|
+
| undefined = undefined;
|
|
712
|
+
const providedCallback = args.options?.onResponse;
|
|
713
|
+
const callback: coreClient.RawResponseCallback = (
|
|
714
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
715
|
+
flatResponse: unknown
|
|
716
|
+
) => {
|
|
717
|
+
currentRawResponse = rawResponse;
|
|
718
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
719
|
+
};
|
|
720
|
+
const updatedArgs = {
|
|
721
|
+
...args,
|
|
722
|
+
options: {
|
|
723
|
+
...args.options,
|
|
724
|
+
onResponse: callback
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
728
|
+
return {
|
|
729
|
+
flatResponse,
|
|
730
|
+
rawResponse: {
|
|
731
|
+
statusCode: currentRawResponse!.status,
|
|
732
|
+
body: currentRawResponse!.parsedBody,
|
|
733
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
const lro = new LroImpl(
|
|
739
|
+
sendOperation,
|
|
740
|
+
{ resourceGroupName, vmName, options },
|
|
741
|
+
convertToManagedDisksOperationSpec
|
|
742
|
+
);
|
|
743
|
+
return new LroEngine(lro, {
|
|
744
|
+
resumeFrom: options?.resumeFrom,
|
|
745
|
+
intervalInMs: options?.updateIntervalInMs
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
|
|
156
749
|
/**
|
|
750
|
+
* Converts virtual machine disks from blob-based to managed disks. Virtual machine must be
|
|
751
|
+
* stop-deallocated before invoking this operation.
|
|
157
752
|
* @param resourceGroupName The name of the resource group.
|
|
158
753
|
* @param vmName The name of the virtual machine.
|
|
159
|
-
* @param options The
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
754
|
+
* @param options The options parameters.
|
|
755
|
+
*/
|
|
756
|
+
async beginConvertToManagedDisksAndWait(
|
|
757
|
+
resourceGroupName: string,
|
|
758
|
+
vmName: string,
|
|
759
|
+
options?: VirtualMachinesConvertToManagedDisksOptionalParams
|
|
760
|
+
): Promise<void> {
|
|
761
|
+
const poller = await this.beginConvertToManagedDisks(
|
|
762
|
+
resourceGroupName,
|
|
763
|
+
vmName,
|
|
764
|
+
options
|
|
765
|
+
);
|
|
766
|
+
return poller.pollUntilDone();
|
|
172
767
|
}
|
|
173
768
|
|
|
174
769
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
770
|
+
* Shuts down the virtual machine and releases the compute resources. You are not billed for the
|
|
771
|
+
* compute resources that this virtual machine uses.
|
|
177
772
|
* @param resourceGroupName The name of the resource group.
|
|
178
773
|
* @param vmName The name of the virtual machine.
|
|
179
|
-
* @param
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
774
|
+
* @param options The options parameters.
|
|
775
|
+
*/
|
|
776
|
+
async beginDeallocate(
|
|
777
|
+
resourceGroupName: string,
|
|
778
|
+
vmName: string,
|
|
779
|
+
options?: VirtualMachinesDeallocateOptionalParams
|
|
780
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
781
|
+
const directSendOperation = async (
|
|
782
|
+
args: coreClient.OperationArguments,
|
|
783
|
+
spec: coreClient.OperationSpec
|
|
784
|
+
): Promise<void> => {
|
|
785
|
+
return this.client.sendOperationRequest(args, spec);
|
|
786
|
+
};
|
|
787
|
+
const sendOperation = async (
|
|
788
|
+
args: coreClient.OperationArguments,
|
|
789
|
+
spec: coreClient.OperationSpec
|
|
790
|
+
) => {
|
|
791
|
+
let currentRawResponse:
|
|
792
|
+
| coreClient.FullOperationResponse
|
|
793
|
+
| undefined = undefined;
|
|
794
|
+
const providedCallback = args.options?.onResponse;
|
|
795
|
+
const callback: coreClient.RawResponseCallback = (
|
|
796
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
797
|
+
flatResponse: unknown
|
|
798
|
+
) => {
|
|
799
|
+
currentRawResponse = rawResponse;
|
|
800
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
801
|
+
};
|
|
802
|
+
const updatedArgs = {
|
|
803
|
+
...args,
|
|
804
|
+
options: {
|
|
805
|
+
...args.options,
|
|
806
|
+
onResponse: callback
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
810
|
+
return {
|
|
811
|
+
flatResponse,
|
|
812
|
+
rawResponse: {
|
|
813
|
+
statusCode: currentRawResponse!.status,
|
|
814
|
+
body: currentRawResponse!.parsedBody,
|
|
815
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
const lro = new LroImpl(
|
|
821
|
+
sendOperation,
|
|
822
|
+
{ resourceGroupName, vmName, options },
|
|
823
|
+
deallocateOperationSpec
|
|
824
|
+
);
|
|
825
|
+
return new LroEngine(lro, {
|
|
826
|
+
resumeFrom: options?.resumeFrom,
|
|
827
|
+
intervalInMs: options?.updateIntervalInMs
|
|
828
|
+
});
|
|
185
829
|
}
|
|
186
830
|
|
|
187
831
|
/**
|
|
@@ -189,990 +833,1061 @@ export class VirtualMachines {
|
|
|
189
833
|
* compute resources that this virtual machine uses.
|
|
190
834
|
* @param resourceGroupName The name of the resource group.
|
|
191
835
|
* @param vmName The name of the virtual machine.
|
|
192
|
-
* @param
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
836
|
+
* @param options The options parameters.
|
|
837
|
+
*/
|
|
838
|
+
async beginDeallocateAndWait(
|
|
839
|
+
resourceGroupName: string,
|
|
840
|
+
vmName: string,
|
|
841
|
+
options?: VirtualMachinesDeallocateOptionalParams
|
|
842
|
+
): Promise<void> {
|
|
843
|
+
const poller = await this.beginDeallocate(
|
|
844
|
+
resourceGroupName,
|
|
845
|
+
vmName,
|
|
846
|
+
options
|
|
847
|
+
);
|
|
848
|
+
return poller.pollUntilDone();
|
|
198
849
|
}
|
|
199
850
|
|
|
200
851
|
/**
|
|
201
|
-
* Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the
|
|
202
|
-
*
|
|
203
|
-
*
|
|
852
|
+
* Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual
|
|
853
|
+
* machine before performing this operation. <br>For Windows, please refer to [Create a managed image
|
|
854
|
+
* of a generalized VM in
|
|
204
855
|
* Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For
|
|
205
856
|
* Linux, please refer to [How to create an image of a virtual machine or
|
|
206
857
|
* VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
|
|
207
858
|
* @param resourceGroupName The name of the resource group.
|
|
208
859
|
* @param vmName The name of the virtual machine.
|
|
209
|
-
* @param
|
|
210
|
-
* @returns Promise<msRest.RestResponse>
|
|
211
|
-
*/
|
|
212
|
-
generalize(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
213
|
-
/**
|
|
214
|
-
* @param resourceGroupName The name of the resource group.
|
|
215
|
-
* @param vmName The name of the virtual machine.
|
|
216
|
-
* @param callback The callback
|
|
217
|
-
*/
|
|
218
|
-
generalize(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback<void>): void;
|
|
219
|
-
/**
|
|
220
|
-
* @param resourceGroupName The name of the resource group.
|
|
221
|
-
* @param vmName The name of the virtual machine.
|
|
222
|
-
* @param options The optional parameters
|
|
223
|
-
* @param callback The callback
|
|
860
|
+
* @param options The options parameters.
|
|
224
861
|
*/
|
|
225
|
-
generalize(
|
|
226
|
-
|
|
862
|
+
generalize(
|
|
863
|
+
resourceGroupName: string,
|
|
864
|
+
vmName: string,
|
|
865
|
+
options?: VirtualMachinesGeneralizeOptionalParams
|
|
866
|
+
): Promise<void> {
|
|
227
867
|
return this.client.sendOperationRequest(
|
|
228
|
-
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
options
|
|
232
|
-
},
|
|
233
|
-
generalizeOperationSpec,
|
|
234
|
-
callback);
|
|
868
|
+
{ resourceGroupName, vmName, options },
|
|
869
|
+
generalizeOperationSpec
|
|
870
|
+
);
|
|
235
871
|
}
|
|
236
872
|
|
|
237
873
|
/**
|
|
238
|
-
* Lists all of the virtual machines in the specified resource group. Use the nextLink property in
|
|
239
|
-
*
|
|
240
|
-
* @param resourceGroupName The name of the resource group.
|
|
241
|
-
* @param [options] The optional parameters
|
|
242
|
-
* @returns Promise<Models.VirtualMachinesListResponse>
|
|
243
|
-
*/
|
|
244
|
-
list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesListResponse>;
|
|
245
|
-
/**
|
|
246
|
-
* @param resourceGroupName The name of the resource group.
|
|
247
|
-
* @param callback The callback
|
|
248
|
-
*/
|
|
249
|
-
list(resourceGroupName: string, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
250
|
-
/**
|
|
874
|
+
* Lists all of the virtual machines in the specified resource group. Use the nextLink property in the
|
|
875
|
+
* response to get the next page of virtual machines.
|
|
251
876
|
* @param resourceGroupName The name of the resource group.
|
|
252
|
-
* @param options The
|
|
253
|
-
* @param callback The callback
|
|
877
|
+
* @param options The options parameters.
|
|
254
878
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
879
|
+
private _list(
|
|
880
|
+
resourceGroupName: string,
|
|
881
|
+
options?: VirtualMachinesListOptionalParams
|
|
882
|
+
): Promise<VirtualMachinesListResponse> {
|
|
257
883
|
return this.client.sendOperationRequest(
|
|
258
|
-
{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
listOperationSpec,
|
|
263
|
-
callback) as Promise<Models.VirtualMachinesListResponse>;
|
|
884
|
+
{ resourceGroupName, options },
|
|
885
|
+
listOperationSpec
|
|
886
|
+
);
|
|
264
887
|
}
|
|
265
888
|
|
|
266
889
|
/**
|
|
267
|
-
* Lists all of the virtual machines in the specified subscription. Use the nextLink property in
|
|
268
|
-
*
|
|
269
|
-
* @param
|
|
270
|
-
* @returns Promise<Models.VirtualMachinesListAllResponse>
|
|
271
|
-
*/
|
|
272
|
-
listAll(options?: Models.VirtualMachinesListAllOptionalParams): Promise<Models.VirtualMachinesListAllResponse>;
|
|
273
|
-
/**
|
|
274
|
-
* @param callback The callback
|
|
275
|
-
*/
|
|
276
|
-
listAll(callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
277
|
-
/**
|
|
278
|
-
* @param options The optional parameters
|
|
279
|
-
* @param callback The callback
|
|
890
|
+
* Lists all of the virtual machines in the specified subscription. Use the nextLink property in the
|
|
891
|
+
* response to get the next page of virtual machines.
|
|
892
|
+
* @param options The options parameters.
|
|
280
893
|
*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
options
|
|
286
|
-
},
|
|
287
|
-
listAllOperationSpec,
|
|
288
|
-
callback) as Promise<Models.VirtualMachinesListAllResponse>;
|
|
894
|
+
private _listAll(
|
|
895
|
+
options?: VirtualMachinesListAllOptionalParams
|
|
896
|
+
): Promise<VirtualMachinesListAllResponse> {
|
|
897
|
+
return this.client.sendOperationRequest({ options }, listAllOperationSpec);
|
|
289
898
|
}
|
|
290
899
|
|
|
291
900
|
/**
|
|
292
901
|
* Lists all available virtual machine sizes to which the specified virtual machine can be resized.
|
|
293
902
|
* @param resourceGroupName The name of the resource group.
|
|
294
903
|
* @param vmName The name of the virtual machine.
|
|
295
|
-
* @param
|
|
296
|
-
* @returns Promise<Models.VirtualMachinesListAvailableSizesResponse>
|
|
904
|
+
* @param options The options parameters.
|
|
297
905
|
*/
|
|
298
|
-
|
|
906
|
+
private _listAvailableSizes(
|
|
907
|
+
resourceGroupName: string,
|
|
908
|
+
vmName: string,
|
|
909
|
+
options?: VirtualMachinesListAvailableSizesOptionalParams
|
|
910
|
+
): Promise<VirtualMachinesListAvailableSizesResponse> {
|
|
911
|
+
return this.client.sendOperationRequest(
|
|
912
|
+
{ resourceGroupName, vmName, options },
|
|
913
|
+
listAvailableSizesOperationSpec
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
|
|
299
917
|
/**
|
|
918
|
+
* The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the
|
|
919
|
+
* same provisioned resources. You are still charged for this virtual machine.
|
|
300
920
|
* @param resourceGroupName The name of the resource group.
|
|
301
921
|
* @param vmName The name of the virtual machine.
|
|
302
|
-
* @param
|
|
303
|
-
*/
|
|
304
|
-
|
|
922
|
+
* @param options The options parameters.
|
|
923
|
+
*/
|
|
924
|
+
async beginPowerOff(
|
|
925
|
+
resourceGroupName: string,
|
|
926
|
+
vmName: string,
|
|
927
|
+
options?: VirtualMachinesPowerOffOptionalParams
|
|
928
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
929
|
+
const directSendOperation = async (
|
|
930
|
+
args: coreClient.OperationArguments,
|
|
931
|
+
spec: coreClient.OperationSpec
|
|
932
|
+
): Promise<void> => {
|
|
933
|
+
return this.client.sendOperationRequest(args, spec);
|
|
934
|
+
};
|
|
935
|
+
const sendOperation = async (
|
|
936
|
+
args: coreClient.OperationArguments,
|
|
937
|
+
spec: coreClient.OperationSpec
|
|
938
|
+
) => {
|
|
939
|
+
let currentRawResponse:
|
|
940
|
+
| coreClient.FullOperationResponse
|
|
941
|
+
| undefined = undefined;
|
|
942
|
+
const providedCallback = args.options?.onResponse;
|
|
943
|
+
const callback: coreClient.RawResponseCallback = (
|
|
944
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
945
|
+
flatResponse: unknown
|
|
946
|
+
) => {
|
|
947
|
+
currentRawResponse = rawResponse;
|
|
948
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
949
|
+
};
|
|
950
|
+
const updatedArgs = {
|
|
951
|
+
...args,
|
|
952
|
+
options: {
|
|
953
|
+
...args.options,
|
|
954
|
+
onResponse: callback
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
958
|
+
return {
|
|
959
|
+
flatResponse,
|
|
960
|
+
rawResponse: {
|
|
961
|
+
statusCode: currentRawResponse!.status,
|
|
962
|
+
body: currentRawResponse!.parsedBody,
|
|
963
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
const lro = new LroImpl(
|
|
969
|
+
sendOperation,
|
|
970
|
+
{ resourceGroupName, vmName, options },
|
|
971
|
+
powerOffOperationSpec
|
|
972
|
+
);
|
|
973
|
+
return new LroEngine(lro, {
|
|
974
|
+
resumeFrom: options?.resumeFrom,
|
|
975
|
+
intervalInMs: options?.updateIntervalInMs
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
|
|
305
979
|
/**
|
|
980
|
+
* The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the
|
|
981
|
+
* same provisioned resources. You are still charged for this virtual machine.
|
|
306
982
|
* @param resourceGroupName The name of the resource group.
|
|
307
983
|
* @param vmName The name of the virtual machine.
|
|
308
|
-
* @param options The
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
options
|
|
318
|
-
},
|
|
319
|
-
listAvailableSizesOperationSpec,
|
|
320
|
-
callback) as Promise<Models.VirtualMachinesListAvailableSizesResponse>;
|
|
984
|
+
* @param options The options parameters.
|
|
985
|
+
*/
|
|
986
|
+
async beginPowerOffAndWait(
|
|
987
|
+
resourceGroupName: string,
|
|
988
|
+
vmName: string,
|
|
989
|
+
options?: VirtualMachinesPowerOffOptionalParams
|
|
990
|
+
): Promise<void> {
|
|
991
|
+
const poller = await this.beginPowerOff(resourceGroupName, vmName, options);
|
|
992
|
+
return poller.pollUntilDone();
|
|
321
993
|
}
|
|
322
994
|
|
|
323
995
|
/**
|
|
324
|
-
* The operation to
|
|
325
|
-
* the same provisioned resources. You are still charged for this virtual machine.
|
|
996
|
+
* The operation to reapply a virtual machine's state.
|
|
326
997
|
* @param resourceGroupName The name of the resource group.
|
|
327
998
|
* @param vmName The name of the virtual machine.
|
|
328
|
-
* @param
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
999
|
+
* @param options The options parameters.
|
|
1000
|
+
*/
|
|
1001
|
+
async beginReapply(
|
|
1002
|
+
resourceGroupName: string,
|
|
1003
|
+
vmName: string,
|
|
1004
|
+
options?: VirtualMachinesReapplyOptionalParams
|
|
1005
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1006
|
+
const directSendOperation = async (
|
|
1007
|
+
args: coreClient.OperationArguments,
|
|
1008
|
+
spec: coreClient.OperationSpec
|
|
1009
|
+
): Promise<void> => {
|
|
1010
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1011
|
+
};
|
|
1012
|
+
const sendOperation = async (
|
|
1013
|
+
args: coreClient.OperationArguments,
|
|
1014
|
+
spec: coreClient.OperationSpec
|
|
1015
|
+
) => {
|
|
1016
|
+
let currentRawResponse:
|
|
1017
|
+
| coreClient.FullOperationResponse
|
|
1018
|
+
| undefined = undefined;
|
|
1019
|
+
const providedCallback = args.options?.onResponse;
|
|
1020
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1021
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1022
|
+
flatResponse: unknown
|
|
1023
|
+
) => {
|
|
1024
|
+
currentRawResponse = rawResponse;
|
|
1025
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1026
|
+
};
|
|
1027
|
+
const updatedArgs = {
|
|
1028
|
+
...args,
|
|
1029
|
+
options: {
|
|
1030
|
+
...args.options,
|
|
1031
|
+
onResponse: callback
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1035
|
+
return {
|
|
1036
|
+
flatResponse,
|
|
1037
|
+
rawResponse: {
|
|
1038
|
+
statusCode: currentRawResponse!.status,
|
|
1039
|
+
body: currentRawResponse!.parsedBody,
|
|
1040
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
const lro = new LroImpl(
|
|
1046
|
+
sendOperation,
|
|
1047
|
+
{ resourceGroupName, vmName, options },
|
|
1048
|
+
reapplyOperationSpec
|
|
1049
|
+
);
|
|
1050
|
+
return new LroEngine(lro, {
|
|
1051
|
+
resumeFrom: options?.resumeFrom,
|
|
1052
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1053
|
+
});
|
|
334
1054
|
}
|
|
335
1055
|
|
|
336
1056
|
/**
|
|
337
1057
|
* The operation to reapply a virtual machine's state.
|
|
338
1058
|
* @param resourceGroupName The name of the resource group.
|
|
339
1059
|
* @param vmName The name of the virtual machine.
|
|
340
|
-
* @param
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
1060
|
+
* @param options The options parameters.
|
|
1061
|
+
*/
|
|
1062
|
+
async beginReapplyAndWait(
|
|
1063
|
+
resourceGroupName: string,
|
|
1064
|
+
vmName: string,
|
|
1065
|
+
options?: VirtualMachinesReapplyOptionalParams
|
|
1066
|
+
): Promise<void> {
|
|
1067
|
+
const poller = await this.beginReapply(resourceGroupName, vmName, options);
|
|
1068
|
+
return poller.pollUntilDone();
|
|
346
1069
|
}
|
|
347
1070
|
|
|
348
1071
|
/**
|
|
349
1072
|
* The operation to restart a virtual machine.
|
|
350
1073
|
* @param resourceGroupName The name of the resource group.
|
|
351
1074
|
* @param vmName The name of the virtual machine.
|
|
352
|
-
* @param
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
1075
|
+
* @param options The options parameters.
|
|
1076
|
+
*/
|
|
1077
|
+
async beginRestart(
|
|
1078
|
+
resourceGroupName: string,
|
|
1079
|
+
vmName: string,
|
|
1080
|
+
options?: VirtualMachinesRestartOptionalParams
|
|
1081
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1082
|
+
const directSendOperation = async (
|
|
1083
|
+
args: coreClient.OperationArguments,
|
|
1084
|
+
spec: coreClient.OperationSpec
|
|
1085
|
+
): Promise<void> => {
|
|
1086
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1087
|
+
};
|
|
1088
|
+
const sendOperation = async (
|
|
1089
|
+
args: coreClient.OperationArguments,
|
|
1090
|
+
spec: coreClient.OperationSpec
|
|
1091
|
+
) => {
|
|
1092
|
+
let currentRawResponse:
|
|
1093
|
+
| coreClient.FullOperationResponse
|
|
1094
|
+
| undefined = undefined;
|
|
1095
|
+
const providedCallback = args.options?.onResponse;
|
|
1096
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1097
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1098
|
+
flatResponse: unknown
|
|
1099
|
+
) => {
|
|
1100
|
+
currentRawResponse = rawResponse;
|
|
1101
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1102
|
+
};
|
|
1103
|
+
const updatedArgs = {
|
|
1104
|
+
...args,
|
|
1105
|
+
options: {
|
|
1106
|
+
...args.options,
|
|
1107
|
+
onResponse: callback
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1111
|
+
return {
|
|
1112
|
+
flatResponse,
|
|
1113
|
+
rawResponse: {
|
|
1114
|
+
statusCode: currentRawResponse!.status,
|
|
1115
|
+
body: currentRawResponse!.parsedBody,
|
|
1116
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
const lro = new LroImpl(
|
|
1122
|
+
sendOperation,
|
|
1123
|
+
{ resourceGroupName, vmName, options },
|
|
1124
|
+
restartOperationSpec
|
|
1125
|
+
);
|
|
1126
|
+
return new LroEngine(lro, {
|
|
1127
|
+
resumeFrom: options?.resumeFrom,
|
|
1128
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1129
|
+
});
|
|
358
1130
|
}
|
|
359
1131
|
|
|
360
1132
|
/**
|
|
361
|
-
* The operation to
|
|
1133
|
+
* The operation to restart a virtual machine.
|
|
362
1134
|
* @param resourceGroupName The name of the resource group.
|
|
363
1135
|
* @param vmName The name of the virtual machine.
|
|
364
|
-
* @param
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
1136
|
+
* @param options The options parameters.
|
|
1137
|
+
*/
|
|
1138
|
+
async beginRestartAndWait(
|
|
1139
|
+
resourceGroupName: string,
|
|
1140
|
+
vmName: string,
|
|
1141
|
+
options?: VirtualMachinesRestartOptionalParams
|
|
1142
|
+
): Promise<void> {
|
|
1143
|
+
const poller = await this.beginRestart(resourceGroupName, vmName, options);
|
|
1144
|
+
return poller.pollUntilDone();
|
|
370
1145
|
}
|
|
371
1146
|
|
|
372
1147
|
/**
|
|
373
|
-
*
|
|
1148
|
+
* The operation to start a virtual machine.
|
|
374
1149
|
* @param resourceGroupName The name of the resource group.
|
|
375
1150
|
* @param vmName The name of the virtual machine.
|
|
376
|
-
* @param
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
1151
|
+
* @param options The options parameters.
|
|
1152
|
+
*/
|
|
1153
|
+
async beginStart(
|
|
1154
|
+
resourceGroupName: string,
|
|
1155
|
+
vmName: string,
|
|
1156
|
+
options?: VirtualMachinesStartOptionalParams
|
|
1157
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1158
|
+
const directSendOperation = async (
|
|
1159
|
+
args: coreClient.OperationArguments,
|
|
1160
|
+
spec: coreClient.OperationSpec
|
|
1161
|
+
): Promise<void> => {
|
|
1162
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1163
|
+
};
|
|
1164
|
+
const sendOperation = async (
|
|
1165
|
+
args: coreClient.OperationArguments,
|
|
1166
|
+
spec: coreClient.OperationSpec
|
|
1167
|
+
) => {
|
|
1168
|
+
let currentRawResponse:
|
|
1169
|
+
| coreClient.FullOperationResponse
|
|
1170
|
+
| undefined = undefined;
|
|
1171
|
+
const providedCallback = args.options?.onResponse;
|
|
1172
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1173
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1174
|
+
flatResponse: unknown
|
|
1175
|
+
) => {
|
|
1176
|
+
currentRawResponse = rawResponse;
|
|
1177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1178
|
+
};
|
|
1179
|
+
const updatedArgs = {
|
|
1180
|
+
...args,
|
|
1181
|
+
options: {
|
|
1182
|
+
...args.options,
|
|
1183
|
+
onResponse: callback
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1187
|
+
return {
|
|
1188
|
+
flatResponse,
|
|
1189
|
+
rawResponse: {
|
|
1190
|
+
statusCode: currentRawResponse!.status,
|
|
1191
|
+
body: currentRawResponse!.parsedBody,
|
|
1192
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
const lro = new LroImpl(
|
|
1198
|
+
sendOperation,
|
|
1199
|
+
{ resourceGroupName, vmName, options },
|
|
1200
|
+
startOperationSpec
|
|
1201
|
+
);
|
|
1202
|
+
return new LroEngine(lro, {
|
|
1203
|
+
resumeFrom: options?.resumeFrom,
|
|
1204
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1205
|
+
});
|
|
382
1206
|
}
|
|
383
1207
|
|
|
384
1208
|
/**
|
|
385
|
-
*
|
|
1209
|
+
* The operation to start a virtual machine.
|
|
386
1210
|
* @param resourceGroupName The name of the resource group.
|
|
387
1211
|
* @param vmName The name of the virtual machine.
|
|
388
|
-
* @param
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
1212
|
+
* @param options The options parameters.
|
|
1213
|
+
*/
|
|
1214
|
+
async beginStartAndWait(
|
|
1215
|
+
resourceGroupName: string,
|
|
1216
|
+
vmName: string,
|
|
1217
|
+
options?: VirtualMachinesStartOptionalParams
|
|
1218
|
+
): Promise<void> {
|
|
1219
|
+
const poller = await this.beginStart(resourceGroupName, vmName, options);
|
|
1220
|
+
return poller.pollUntilDone();
|
|
394
1221
|
}
|
|
395
1222
|
|
|
396
1223
|
/**
|
|
397
|
-
*
|
|
1224
|
+
* Shuts down the virtual machine, moves it to a new node, and powers it back on.
|
|
398
1225
|
* @param resourceGroupName The name of the resource group.
|
|
399
1226
|
* @param vmName The name of the virtual machine.
|
|
400
|
-
* @param
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
1227
|
+
* @param options The options parameters.
|
|
1228
|
+
*/
|
|
1229
|
+
async beginRedeploy(
|
|
1230
|
+
resourceGroupName: string,
|
|
1231
|
+
vmName: string,
|
|
1232
|
+
options?: VirtualMachinesRedeployOptionalParams
|
|
1233
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1234
|
+
const directSendOperation = async (
|
|
1235
|
+
args: coreClient.OperationArguments,
|
|
1236
|
+
spec: coreClient.OperationSpec
|
|
1237
|
+
): Promise<void> => {
|
|
1238
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1239
|
+
};
|
|
1240
|
+
const sendOperation = async (
|
|
1241
|
+
args: coreClient.OperationArguments,
|
|
1242
|
+
spec: coreClient.OperationSpec
|
|
1243
|
+
) => {
|
|
1244
|
+
let currentRawResponse:
|
|
1245
|
+
| coreClient.FullOperationResponse
|
|
1246
|
+
| undefined = undefined;
|
|
1247
|
+
const providedCallback = args.options?.onResponse;
|
|
1248
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1249
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1250
|
+
flatResponse: unknown
|
|
1251
|
+
) => {
|
|
1252
|
+
currentRawResponse = rawResponse;
|
|
1253
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1254
|
+
};
|
|
1255
|
+
const updatedArgs = {
|
|
1256
|
+
...args,
|
|
1257
|
+
options: {
|
|
1258
|
+
...args.options,
|
|
1259
|
+
onResponse: callback
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1263
|
+
return {
|
|
1264
|
+
flatResponse,
|
|
1265
|
+
rawResponse: {
|
|
1266
|
+
statusCode: currentRawResponse!.status,
|
|
1267
|
+
body: currentRawResponse!.parsedBody,
|
|
1268
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
const lro = new LroImpl(
|
|
1274
|
+
sendOperation,
|
|
1275
|
+
{ resourceGroupName, vmName, options },
|
|
1276
|
+
redeployOperationSpec
|
|
1277
|
+
);
|
|
1278
|
+
return new LroEngine(lro, {
|
|
1279
|
+
resumeFrom: options?.resumeFrom,
|
|
1280
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
|
|
404
1284
|
/**
|
|
1285
|
+
* Shuts down the virtual machine, moves it to a new node, and powers it back on.
|
|
405
1286
|
* @param resourceGroupName The name of the resource group.
|
|
406
1287
|
* @param vmName The name of the virtual machine.
|
|
407
|
-
* @param
|
|
408
|
-
*/
|
|
409
|
-
|
|
1288
|
+
* @param options The options parameters.
|
|
1289
|
+
*/
|
|
1290
|
+
async beginRedeployAndWait(
|
|
1291
|
+
resourceGroupName: string,
|
|
1292
|
+
vmName: string,
|
|
1293
|
+
options?: VirtualMachinesRedeployOptionalParams
|
|
1294
|
+
): Promise<void> {
|
|
1295
|
+
const poller = await this.beginRedeploy(resourceGroupName, vmName, options);
|
|
1296
|
+
return poller.pollUntilDone();
|
|
1297
|
+
}
|
|
1298
|
+
|
|
410
1299
|
/**
|
|
1300
|
+
* Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
|
411
1301
|
* @param resourceGroupName The name of the resource group.
|
|
412
1302
|
* @param vmName The name of the virtual machine.
|
|
413
|
-
* @param options The
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
1303
|
+
* @param options The options parameters.
|
|
1304
|
+
*/
|
|
1305
|
+
async beginReimage(
|
|
1306
|
+
resourceGroupName: string,
|
|
1307
|
+
vmName: string,
|
|
1308
|
+
options?: VirtualMachinesReimageOptionalParams
|
|
1309
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1310
|
+
const directSendOperation = async (
|
|
1311
|
+
args: coreClient.OperationArguments,
|
|
1312
|
+
spec: coreClient.OperationSpec
|
|
1313
|
+
): Promise<void> => {
|
|
1314
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1315
|
+
};
|
|
1316
|
+
const sendOperation = async (
|
|
1317
|
+
args: coreClient.OperationArguments,
|
|
1318
|
+
spec: coreClient.OperationSpec
|
|
1319
|
+
) => {
|
|
1320
|
+
let currentRawResponse:
|
|
1321
|
+
| coreClient.FullOperationResponse
|
|
1322
|
+
| undefined = undefined;
|
|
1323
|
+
const providedCallback = args.options?.onResponse;
|
|
1324
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1325
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1326
|
+
flatResponse: unknown
|
|
1327
|
+
) => {
|
|
1328
|
+
currentRawResponse = rawResponse;
|
|
1329
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1330
|
+
};
|
|
1331
|
+
const updatedArgs = {
|
|
1332
|
+
...args,
|
|
1333
|
+
options: {
|
|
1334
|
+
...args.options,
|
|
1335
|
+
onResponse: callback
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1339
|
+
return {
|
|
1340
|
+
flatResponse,
|
|
1341
|
+
rawResponse: {
|
|
1342
|
+
statusCode: currentRawResponse!.status,
|
|
1343
|
+
body: currentRawResponse!.parsedBody,
|
|
1344
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
|
|
1349
|
+
const lro = new LroImpl(
|
|
1350
|
+
sendOperation,
|
|
1351
|
+
{ resourceGroupName, vmName, options },
|
|
1352
|
+
reimageOperationSpec
|
|
1353
|
+
);
|
|
1354
|
+
return new LroEngine(lro, {
|
|
1355
|
+
resumeFrom: options?.resumeFrom,
|
|
1356
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1357
|
+
});
|
|
426
1358
|
}
|
|
427
1359
|
|
|
428
1360
|
/**
|
|
429
|
-
*
|
|
1361
|
+
* Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
|
430
1362
|
* @param resourceGroupName The name of the resource group.
|
|
431
1363
|
* @param vmName The name of the virtual machine.
|
|
432
|
-
* @param
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
1364
|
+
* @param options The options parameters.
|
|
1365
|
+
*/
|
|
1366
|
+
async beginReimageAndWait(
|
|
1367
|
+
resourceGroupName: string,
|
|
1368
|
+
vmName: string,
|
|
1369
|
+
options?: VirtualMachinesReimageOptionalParams
|
|
1370
|
+
): Promise<void> {
|
|
1371
|
+
const poller = await this.beginReimage(resourceGroupName, vmName, options);
|
|
1372
|
+
return poller.pollUntilDone();
|
|
438
1373
|
}
|
|
439
1374
|
|
|
440
1375
|
/**
|
|
441
|
-
* The operation to
|
|
1376
|
+
* The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
|
|
442
1377
|
* @param resourceGroupName The name of the resource group.
|
|
443
1378
|
* @param vmName The name of the virtual machine.
|
|
444
|
-
* @param
|
|
445
|
-
* @returns Promise<msRest.RestResponse>
|
|
1379
|
+
* @param options The options parameters.
|
|
446
1380
|
*/
|
|
447
|
-
|
|
1381
|
+
retrieveBootDiagnosticsData(
|
|
1382
|
+
resourceGroupName: string,
|
|
1383
|
+
vmName: string,
|
|
1384
|
+
options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams
|
|
1385
|
+
): Promise<VirtualMachinesRetrieveBootDiagnosticsDataResponse> {
|
|
1386
|
+
return this.client.sendOperationRequest(
|
|
1387
|
+
{ resourceGroupName, vmName, options },
|
|
1388
|
+
retrieveBootDiagnosticsDataOperationSpec
|
|
1389
|
+
);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
448
1392
|
/**
|
|
1393
|
+
* The operation to perform maintenance on a virtual machine.
|
|
449
1394
|
* @param resourceGroupName The name of the resource group.
|
|
450
1395
|
* @param vmName The name of the virtual machine.
|
|
451
|
-
* @param
|
|
452
|
-
*/
|
|
453
|
-
|
|
1396
|
+
* @param options The options parameters.
|
|
1397
|
+
*/
|
|
1398
|
+
async beginPerformMaintenance(
|
|
1399
|
+
resourceGroupName: string,
|
|
1400
|
+
vmName: string,
|
|
1401
|
+
options?: VirtualMachinesPerformMaintenanceOptionalParams
|
|
1402
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1403
|
+
const directSendOperation = async (
|
|
1404
|
+
args: coreClient.OperationArguments,
|
|
1405
|
+
spec: coreClient.OperationSpec
|
|
1406
|
+
): Promise<void> => {
|
|
1407
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1408
|
+
};
|
|
1409
|
+
const sendOperation = async (
|
|
1410
|
+
args: coreClient.OperationArguments,
|
|
1411
|
+
spec: coreClient.OperationSpec
|
|
1412
|
+
) => {
|
|
1413
|
+
let currentRawResponse:
|
|
1414
|
+
| coreClient.FullOperationResponse
|
|
1415
|
+
| undefined = undefined;
|
|
1416
|
+
const providedCallback = args.options?.onResponse;
|
|
1417
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1418
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1419
|
+
flatResponse: unknown
|
|
1420
|
+
) => {
|
|
1421
|
+
currentRawResponse = rawResponse;
|
|
1422
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1423
|
+
};
|
|
1424
|
+
const updatedArgs = {
|
|
1425
|
+
...args,
|
|
1426
|
+
options: {
|
|
1427
|
+
...args.options,
|
|
1428
|
+
onResponse: callback
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1432
|
+
return {
|
|
1433
|
+
flatResponse,
|
|
1434
|
+
rawResponse: {
|
|
1435
|
+
statusCode: currentRawResponse!.status,
|
|
1436
|
+
body: currentRawResponse!.parsedBody,
|
|
1437
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1438
|
+
}
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
const lro = new LroImpl(
|
|
1443
|
+
sendOperation,
|
|
1444
|
+
{ resourceGroupName, vmName, options },
|
|
1445
|
+
performMaintenanceOperationSpec
|
|
1446
|
+
);
|
|
1447
|
+
return new LroEngine(lro, {
|
|
1448
|
+
resumeFrom: options?.resumeFrom,
|
|
1449
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
|
|
454
1453
|
/**
|
|
1454
|
+
* The operation to perform maintenance on a virtual machine.
|
|
455
1455
|
* @param resourceGroupName The name of the resource group.
|
|
456
1456
|
* @param vmName The name of the virtual machine.
|
|
457
|
-
* @param options The
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
1457
|
+
* @param options The options parameters.
|
|
1458
|
+
*/
|
|
1459
|
+
async beginPerformMaintenanceAndWait(
|
|
1460
|
+
resourceGroupName: string,
|
|
1461
|
+
vmName: string,
|
|
1462
|
+
options?: VirtualMachinesPerformMaintenanceOptionalParams
|
|
1463
|
+
): Promise<void> {
|
|
1464
|
+
const poller = await this.beginPerformMaintenance(
|
|
1465
|
+
resourceGroupName,
|
|
1466
|
+
vmName,
|
|
1467
|
+
options
|
|
1468
|
+
);
|
|
1469
|
+
return poller.pollUntilDone();
|
|
470
1470
|
}
|
|
471
1471
|
|
|
472
1472
|
/**
|
|
473
|
-
*
|
|
1473
|
+
* The operation to simulate the eviction of spot virtual machine.
|
|
474
1474
|
* @param resourceGroupName The name of the resource group.
|
|
475
1475
|
* @param vmName The name of the virtual machine.
|
|
476
|
-
* @param
|
|
477
|
-
* @returns Promise<Models.VirtualMachinesAssessPatchesResponse>
|
|
1476
|
+
* @param options The options parameters.
|
|
478
1477
|
*/
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
1478
|
+
simulateEviction(
|
|
1479
|
+
resourceGroupName: string,
|
|
1480
|
+
vmName: string,
|
|
1481
|
+
options?: VirtualMachinesSimulateEvictionOptionalParams
|
|
1482
|
+
): Promise<void> {
|
|
1483
|
+
return this.client.sendOperationRequest(
|
|
1484
|
+
{ resourceGroupName, vmName, options },
|
|
1485
|
+
simulateEvictionOperationSpec
|
|
1486
|
+
);
|
|
482
1487
|
}
|
|
483
1488
|
|
|
484
1489
|
/**
|
|
485
|
-
*
|
|
1490
|
+
* Assess patches on the VM.
|
|
486
1491
|
* @param resourceGroupName The name of the resource group.
|
|
487
1492
|
* @param vmName The name of the virtual machine.
|
|
488
|
-
* @param
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
1493
|
+
* @param options The options parameters.
|
|
1494
|
+
*/
|
|
1495
|
+
async beginAssessPatches(
|
|
1496
|
+
resourceGroupName: string,
|
|
1497
|
+
vmName: string,
|
|
1498
|
+
options?: VirtualMachinesAssessPatchesOptionalParams
|
|
1499
|
+
): Promise<
|
|
1500
|
+
PollerLike<
|
|
1501
|
+
PollOperationState<VirtualMachinesAssessPatchesResponse>,
|
|
1502
|
+
VirtualMachinesAssessPatchesResponse
|
|
1503
|
+
>
|
|
1504
|
+
> {
|
|
1505
|
+
const directSendOperation = async (
|
|
1506
|
+
args: coreClient.OperationArguments,
|
|
1507
|
+
spec: coreClient.OperationSpec
|
|
1508
|
+
): Promise<VirtualMachinesAssessPatchesResponse> => {
|
|
1509
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1510
|
+
};
|
|
1511
|
+
const sendOperation = async (
|
|
1512
|
+
args: coreClient.OperationArguments,
|
|
1513
|
+
spec: coreClient.OperationSpec
|
|
1514
|
+
) => {
|
|
1515
|
+
let currentRawResponse:
|
|
1516
|
+
| coreClient.FullOperationResponse
|
|
1517
|
+
| undefined = undefined;
|
|
1518
|
+
const providedCallback = args.options?.onResponse;
|
|
1519
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1520
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1521
|
+
flatResponse: unknown
|
|
1522
|
+
) => {
|
|
1523
|
+
currentRawResponse = rawResponse;
|
|
1524
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1525
|
+
};
|
|
1526
|
+
const updatedArgs = {
|
|
1527
|
+
...args,
|
|
1528
|
+
options: {
|
|
1529
|
+
...args.options,
|
|
1530
|
+
onResponse: callback
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1534
|
+
return {
|
|
1535
|
+
flatResponse,
|
|
1536
|
+
rawResponse: {
|
|
1537
|
+
statusCode: currentRawResponse!.status,
|
|
1538
|
+
body: currentRawResponse!.parsedBody,
|
|
1539
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
const lro = new LroImpl(
|
|
1545
|
+
sendOperation,
|
|
1546
|
+
{ resourceGroupName, vmName, options },
|
|
1547
|
+
assessPatchesOperationSpec
|
|
1548
|
+
);
|
|
1549
|
+
return new LroEngine(lro, {
|
|
1550
|
+
resumeFrom: options?.resumeFrom,
|
|
1551
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1552
|
+
lroResourceLocationConfig: "location"
|
|
1553
|
+
});
|
|
495
1554
|
}
|
|
496
1555
|
|
|
497
1556
|
/**
|
|
498
|
-
*
|
|
1557
|
+
* Assess patches on the VM.
|
|
499
1558
|
* @param resourceGroupName The name of the resource group.
|
|
500
1559
|
* @param vmName The name of the virtual machine.
|
|
501
|
-
* @param
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
1560
|
+
* @param options The options parameters.
|
|
1561
|
+
*/
|
|
1562
|
+
async beginAssessPatchesAndWait(
|
|
1563
|
+
resourceGroupName: string,
|
|
1564
|
+
vmName: string,
|
|
1565
|
+
options?: VirtualMachinesAssessPatchesOptionalParams
|
|
1566
|
+
): Promise<VirtualMachinesAssessPatchesResponse> {
|
|
1567
|
+
const poller = await this.beginAssessPatches(
|
|
1568
|
+
resourceGroupName,
|
|
1569
|
+
vmName,
|
|
1570
|
+
options
|
|
1571
|
+
);
|
|
1572
|
+
return poller.pollUntilDone();
|
|
508
1573
|
}
|
|
509
1574
|
|
|
510
1575
|
/**
|
|
511
|
-
*
|
|
512
|
-
* to create similar VMs.
|
|
1576
|
+
* Installs patches on the VM.
|
|
513
1577
|
* @param resourceGroupName The name of the resource group.
|
|
514
1578
|
* @param vmName The name of the virtual machine.
|
|
515
|
-
* @param
|
|
516
|
-
* @param
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
1579
|
+
* @param installPatchesInput Input for InstallPatches as directly received by the API
|
|
1580
|
+
* @param options The options parameters.
|
|
1581
|
+
*/
|
|
1582
|
+
async beginInstallPatches(
|
|
1583
|
+
resourceGroupName: string,
|
|
1584
|
+
vmName: string,
|
|
1585
|
+
installPatchesInput: VirtualMachineInstallPatchesParameters,
|
|
1586
|
+
options?: VirtualMachinesInstallPatchesOptionalParams
|
|
1587
|
+
): Promise<
|
|
1588
|
+
PollerLike<
|
|
1589
|
+
PollOperationState<VirtualMachinesInstallPatchesResponse>,
|
|
1590
|
+
VirtualMachinesInstallPatchesResponse
|
|
1591
|
+
>
|
|
1592
|
+
> {
|
|
1593
|
+
const directSendOperation = async (
|
|
1594
|
+
args: coreClient.OperationArguments,
|
|
1595
|
+
spec: coreClient.OperationSpec
|
|
1596
|
+
): Promise<VirtualMachinesInstallPatchesResponse> => {
|
|
1597
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1598
|
+
};
|
|
1599
|
+
const sendOperation = async (
|
|
1600
|
+
args: coreClient.OperationArguments,
|
|
1601
|
+
spec: coreClient.OperationSpec
|
|
1602
|
+
) => {
|
|
1603
|
+
let currentRawResponse:
|
|
1604
|
+
| coreClient.FullOperationResponse
|
|
1605
|
+
| undefined = undefined;
|
|
1606
|
+
const providedCallback = args.options?.onResponse;
|
|
1607
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1608
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1609
|
+
flatResponse: unknown
|
|
1610
|
+
) => {
|
|
1611
|
+
currentRawResponse = rawResponse;
|
|
1612
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1613
|
+
};
|
|
1614
|
+
const updatedArgs = {
|
|
1615
|
+
...args,
|
|
1616
|
+
options: {
|
|
1617
|
+
...args.options,
|
|
1618
|
+
onResponse: callback
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1622
|
+
return {
|
|
1623
|
+
flatResponse,
|
|
1624
|
+
rawResponse: {
|
|
1625
|
+
statusCode: currentRawResponse!.status,
|
|
1626
|
+
body: currentRawResponse!.parsedBody,
|
|
1627
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
const lro = new LroImpl(
|
|
1633
|
+
sendOperation,
|
|
1634
|
+
{ resourceGroupName, vmName, installPatchesInput, options },
|
|
1635
|
+
installPatchesOperationSpec
|
|
1636
|
+
);
|
|
1637
|
+
return new LroEngine(lro, {
|
|
1638
|
+
resumeFrom: options?.resumeFrom,
|
|
1639
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1640
|
+
lroResourceLocationConfig: "location"
|
|
1641
|
+
});
|
|
529
1642
|
}
|
|
530
1643
|
|
|
531
1644
|
/**
|
|
532
|
-
*
|
|
533
|
-
* during virtual machine creation.
|
|
1645
|
+
* Installs patches on the VM.
|
|
534
1646
|
* @param resourceGroupName The name of the resource group.
|
|
535
1647
|
* @param vmName The name of the virtual machine.
|
|
536
|
-
* @param
|
|
537
|
-
* @param
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
options
|
|
1648
|
+
* @param installPatchesInput Input for InstallPatches as directly received by the API
|
|
1649
|
+
* @param options The options parameters.
|
|
1650
|
+
*/
|
|
1651
|
+
async beginInstallPatchesAndWait(
|
|
1652
|
+
resourceGroupName: string,
|
|
1653
|
+
vmName: string,
|
|
1654
|
+
installPatchesInput: VirtualMachineInstallPatchesParameters,
|
|
1655
|
+
options?: VirtualMachinesInstallPatchesOptionalParams
|
|
1656
|
+
): Promise<VirtualMachinesInstallPatchesResponse> {
|
|
1657
|
+
const poller = await this.beginInstallPatches(
|
|
1658
|
+
resourceGroupName,
|
|
1659
|
+
vmName,
|
|
1660
|
+
installPatchesInput,
|
|
1661
|
+
options
|
|
1662
|
+
);
|
|
1663
|
+
return poller.pollUntilDone();
|
|
550
1664
|
}
|
|
551
1665
|
|
|
552
1666
|
/**
|
|
553
|
-
*
|
|
1667
|
+
* Run command on the VM.
|
|
554
1668
|
* @param resourceGroupName The name of the resource group.
|
|
555
1669
|
* @param vmName The name of the virtual machine.
|
|
556
|
-
* @param parameters Parameters supplied to the
|
|
557
|
-
* @param
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
1670
|
+
* @param parameters Parameters supplied to the Run command operation.
|
|
1671
|
+
* @param options The options parameters.
|
|
1672
|
+
*/
|
|
1673
|
+
async beginRunCommand(
|
|
1674
|
+
resourceGroupName: string,
|
|
1675
|
+
vmName: string,
|
|
1676
|
+
parameters: RunCommandInput,
|
|
1677
|
+
options?: VirtualMachinesRunCommandOptionalParams
|
|
1678
|
+
): Promise<
|
|
1679
|
+
PollerLike<
|
|
1680
|
+
PollOperationState<VirtualMachinesRunCommandResponse>,
|
|
1681
|
+
VirtualMachinesRunCommandResponse
|
|
1682
|
+
>
|
|
1683
|
+
> {
|
|
1684
|
+
const directSendOperation = async (
|
|
1685
|
+
args: coreClient.OperationArguments,
|
|
1686
|
+
spec: coreClient.OperationSpec
|
|
1687
|
+
): Promise<VirtualMachinesRunCommandResponse> => {
|
|
1688
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1689
|
+
};
|
|
1690
|
+
const sendOperation = async (
|
|
1691
|
+
args: coreClient.OperationArguments,
|
|
1692
|
+
spec: coreClient.OperationSpec
|
|
1693
|
+
) => {
|
|
1694
|
+
let currentRawResponse:
|
|
1695
|
+
| coreClient.FullOperationResponse
|
|
1696
|
+
| undefined = undefined;
|
|
1697
|
+
const providedCallback = args.options?.onResponse;
|
|
1698
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1699
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1700
|
+
flatResponse: unknown
|
|
1701
|
+
) => {
|
|
1702
|
+
currentRawResponse = rawResponse;
|
|
1703
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1704
|
+
};
|
|
1705
|
+
const updatedArgs = {
|
|
1706
|
+
...args,
|
|
1707
|
+
options: {
|
|
1708
|
+
...args.options,
|
|
1709
|
+
onResponse: callback
|
|
1710
|
+
}
|
|
1711
|
+
};
|
|
1712
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1713
|
+
return {
|
|
1714
|
+
flatResponse,
|
|
1715
|
+
rawResponse: {
|
|
1716
|
+
statusCode: currentRawResponse!.status,
|
|
1717
|
+
body: currentRawResponse!.parsedBody,
|
|
1718
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1719
|
+
}
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
|
|
1723
|
+
const lro = new LroImpl(
|
|
1724
|
+
sendOperation,
|
|
1725
|
+
{ resourceGroupName, vmName, parameters, options },
|
|
1726
|
+
runCommandOperationSpec
|
|
1727
|
+
);
|
|
1728
|
+
return new LroEngine(lro, {
|
|
1729
|
+
resumeFrom: options?.resumeFrom,
|
|
1730
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1731
|
+
lroResourceLocationConfig: "location"
|
|
1732
|
+
});
|
|
570
1733
|
}
|
|
571
1734
|
|
|
572
1735
|
/**
|
|
573
|
-
*
|
|
1736
|
+
* Run command on the VM.
|
|
574
1737
|
* @param resourceGroupName The name of the resource group.
|
|
575
1738
|
* @param vmName The name of the virtual machine.
|
|
576
|
-
* @param
|
|
577
|
-
* @
|
|
578
|
-
*/
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
1739
|
+
* @param parameters Parameters supplied to the Run command operation.
|
|
1740
|
+
* @param options The options parameters.
|
|
1741
|
+
*/
|
|
1742
|
+
async beginRunCommandAndWait(
|
|
1743
|
+
resourceGroupName: string,
|
|
1744
|
+
vmName: string,
|
|
1745
|
+
parameters: RunCommandInput,
|
|
1746
|
+
options?: VirtualMachinesRunCommandOptionalParams
|
|
1747
|
+
): Promise<VirtualMachinesRunCommandResponse> {
|
|
1748
|
+
const poller = await this.beginRunCommand(
|
|
1749
|
+
resourceGroupName,
|
|
1750
|
+
vmName,
|
|
1751
|
+
parameters,
|
|
1752
|
+
options
|
|
1753
|
+
);
|
|
1754
|
+
return poller.pollUntilDone();
|
|
588
1755
|
}
|
|
589
1756
|
|
|
590
1757
|
/**
|
|
591
|
-
*
|
|
592
|
-
*
|
|
593
|
-
* @param
|
|
594
|
-
* @param
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
beginConvertToManagedDisksOperationSpec,
|
|
606
|
-
options);
|
|
1758
|
+
* ListByLocationNext
|
|
1759
|
+
* @param location The location for which virtual machines under the subscription are queried.
|
|
1760
|
+
* @param nextLink The nextLink from the previous successful call to the ListByLocation method.
|
|
1761
|
+
* @param options The options parameters.
|
|
1762
|
+
*/
|
|
1763
|
+
private _listByLocationNext(
|
|
1764
|
+
location: string,
|
|
1765
|
+
nextLink: string,
|
|
1766
|
+
options?: VirtualMachinesListByLocationNextOptionalParams
|
|
1767
|
+
): Promise<VirtualMachinesListByLocationNextResponse> {
|
|
1768
|
+
return this.client.sendOperationRequest(
|
|
1769
|
+
{ location, nextLink, options },
|
|
1770
|
+
listByLocationNextOperationSpec
|
|
1771
|
+
);
|
|
607
1772
|
}
|
|
608
1773
|
|
|
609
1774
|
/**
|
|
610
|
-
*
|
|
611
|
-
* compute resources that this virtual machine uses.
|
|
1775
|
+
* ListNext
|
|
612
1776
|
* @param resourceGroupName The name of the resource group.
|
|
613
|
-
* @param
|
|
614
|
-
* @param
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
options);
|
|
1777
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1778
|
+
* @param options The options parameters.
|
|
1779
|
+
*/
|
|
1780
|
+
private _listNext(
|
|
1781
|
+
resourceGroupName: string,
|
|
1782
|
+
nextLink: string,
|
|
1783
|
+
options?: VirtualMachinesListNextOptionalParams
|
|
1784
|
+
): Promise<VirtualMachinesListNextResponse> {
|
|
1785
|
+
return this.client.sendOperationRequest(
|
|
1786
|
+
{ resourceGroupName, nextLink, options },
|
|
1787
|
+
listNextOperationSpec
|
|
1788
|
+
);
|
|
626
1789
|
}
|
|
627
1790
|
|
|
628
1791
|
/**
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
* @param
|
|
632
|
-
* @param vmName The name of the virtual machine.
|
|
633
|
-
* @param [options] The optional parameters
|
|
634
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
635
|
-
*/
|
|
636
|
-
beginPowerOff(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginPowerOffOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
637
|
-
return this.client.sendLRORequest(
|
|
638
|
-
{
|
|
639
|
-
resourceGroupName,
|
|
640
|
-
vmName,
|
|
641
|
-
options
|
|
642
|
-
},
|
|
643
|
-
beginPowerOffOperationSpec,
|
|
644
|
-
options);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* The operation to reapply a virtual machine's state.
|
|
649
|
-
* @param resourceGroupName The name of the resource group.
|
|
650
|
-
* @param vmName The name of the virtual machine.
|
|
651
|
-
* @param [options] The optional parameters
|
|
652
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
653
|
-
*/
|
|
654
|
-
beginReapply(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
655
|
-
return this.client.sendLRORequest(
|
|
656
|
-
{
|
|
657
|
-
resourceGroupName,
|
|
658
|
-
vmName,
|
|
659
|
-
options
|
|
660
|
-
},
|
|
661
|
-
beginReapplyOperationSpec,
|
|
662
|
-
options);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* The operation to restart a virtual machine.
|
|
667
|
-
* @param resourceGroupName The name of the resource group.
|
|
668
|
-
* @param vmName The name of the virtual machine.
|
|
669
|
-
* @param [options] The optional parameters
|
|
670
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
671
|
-
*/
|
|
672
|
-
beginRestart(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
673
|
-
return this.client.sendLRORequest(
|
|
674
|
-
{
|
|
675
|
-
resourceGroupName,
|
|
676
|
-
vmName,
|
|
677
|
-
options
|
|
678
|
-
},
|
|
679
|
-
beginRestartOperationSpec,
|
|
680
|
-
options);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* The operation to start a virtual machine.
|
|
685
|
-
* @param resourceGroupName The name of the resource group.
|
|
686
|
-
* @param vmName The name of the virtual machine.
|
|
687
|
-
* @param [options] The optional parameters
|
|
688
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
689
|
-
*/
|
|
690
|
-
beginStart(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
691
|
-
return this.client.sendLRORequest(
|
|
692
|
-
{
|
|
693
|
-
resourceGroupName,
|
|
694
|
-
vmName,
|
|
695
|
-
options
|
|
696
|
-
},
|
|
697
|
-
beginStartOperationSpec,
|
|
698
|
-
options);
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* Shuts down the virtual machine, moves it to a new node, and powers it back on.
|
|
703
|
-
* @param resourceGroupName The name of the resource group.
|
|
704
|
-
* @param vmName The name of the virtual machine.
|
|
705
|
-
* @param [options] The optional parameters
|
|
706
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
707
|
-
*/
|
|
708
|
-
beginRedeploy(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
709
|
-
return this.client.sendLRORequest(
|
|
710
|
-
{
|
|
711
|
-
resourceGroupName,
|
|
712
|
-
vmName,
|
|
713
|
-
options
|
|
714
|
-
},
|
|
715
|
-
beginRedeployOperationSpec,
|
|
716
|
-
options);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
|
721
|
-
* @param resourceGroupName The name of the resource group.
|
|
722
|
-
* @param vmName The name of the virtual machine.
|
|
723
|
-
* @param [options] The optional parameters
|
|
724
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
725
|
-
*/
|
|
726
|
-
beginReimage(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginReimageOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
727
|
-
return this.client.sendLRORequest(
|
|
728
|
-
{
|
|
729
|
-
resourceGroupName,
|
|
730
|
-
vmName,
|
|
731
|
-
options
|
|
732
|
-
},
|
|
733
|
-
beginReimageOperationSpec,
|
|
734
|
-
options);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* The operation to perform maintenance on a virtual machine.
|
|
739
|
-
* @param resourceGroupName The name of the resource group.
|
|
740
|
-
* @param vmName The name of the virtual machine.
|
|
741
|
-
* @param [options] The optional parameters
|
|
742
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
743
|
-
*/
|
|
744
|
-
beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
745
|
-
return this.client.sendLRORequest(
|
|
746
|
-
{
|
|
747
|
-
resourceGroupName,
|
|
748
|
-
vmName,
|
|
749
|
-
options
|
|
750
|
-
},
|
|
751
|
-
beginPerformMaintenanceOperationSpec,
|
|
752
|
-
options);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Assess patches on the VM.
|
|
757
|
-
* @param resourceGroupName The name of the resource group.
|
|
758
|
-
* @param vmName The name of the virtual machine.
|
|
759
|
-
* @param [options] The optional parameters
|
|
760
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
761
|
-
*/
|
|
762
|
-
beginAssessPatches(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
763
|
-
return this.client.sendLRORequest(
|
|
764
|
-
{
|
|
765
|
-
resourceGroupName,
|
|
766
|
-
vmName,
|
|
767
|
-
options
|
|
768
|
-
},
|
|
769
|
-
beginAssessPatchesOperationSpec,
|
|
770
|
-
options);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* Installs patches on the VM.
|
|
775
|
-
* @param resourceGroupName The name of the resource group.
|
|
776
|
-
* @param vmName The name of the virtual machine.
|
|
777
|
-
* @param installPatchesInput Input for InstallPatches as directly received by the API
|
|
778
|
-
* @param [options] The optional parameters
|
|
779
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
780
|
-
*/
|
|
781
|
-
beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
782
|
-
return this.client.sendLRORequest(
|
|
783
|
-
{
|
|
784
|
-
resourceGroupName,
|
|
785
|
-
vmName,
|
|
786
|
-
installPatchesInput,
|
|
787
|
-
options
|
|
788
|
-
},
|
|
789
|
-
beginInstallPatchesOperationSpec,
|
|
790
|
-
options);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Run command on the VM.
|
|
795
|
-
* @param resourceGroupName The name of the resource group.
|
|
796
|
-
* @param vmName The name of the virtual machine.
|
|
797
|
-
* @param parameters Parameters supplied to the Run command operation.
|
|
798
|
-
* @param [options] The optional parameters
|
|
799
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
800
|
-
*/
|
|
801
|
-
beginRunCommand(resourceGroupName: string, vmName: string, parameters: Models.RunCommandInput, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
802
|
-
return this.client.sendLRORequest(
|
|
803
|
-
{
|
|
804
|
-
resourceGroupName,
|
|
805
|
-
vmName,
|
|
806
|
-
parameters,
|
|
807
|
-
options
|
|
808
|
-
},
|
|
809
|
-
beginRunCommandOperationSpec,
|
|
810
|
-
options);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Gets all the virtual machines under the specified subscription for the specified location.
|
|
815
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
816
|
-
* @param [options] The optional parameters
|
|
817
|
-
* @returns Promise<Models.VirtualMachinesListByLocationNextResponse>
|
|
1792
|
+
* ListAllNext
|
|
1793
|
+
* @param nextLink The nextLink from the previous successful call to the ListAll method.
|
|
1794
|
+
* @param options The options parameters.
|
|
818
1795
|
*/
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
*/
|
|
824
|
-
listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
825
|
-
/**
|
|
826
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
827
|
-
* @param options The optional parameters
|
|
828
|
-
* @param callback The callback
|
|
829
|
-
*/
|
|
830
|
-
listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
831
|
-
listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VirtualMachineListResult>, callback?: msRest.ServiceCallback<Models.VirtualMachineListResult>): Promise<Models.VirtualMachinesListByLocationNextResponse> {
|
|
1796
|
+
private _listAllNext(
|
|
1797
|
+
nextLink: string,
|
|
1798
|
+
options?: VirtualMachinesListAllNextOptionalParams
|
|
1799
|
+
): Promise<VirtualMachinesListAllNextResponse> {
|
|
832
1800
|
return this.client.sendOperationRequest(
|
|
833
|
-
{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
},
|
|
837
|
-
listByLocationNextOperationSpec,
|
|
838
|
-
callback) as Promise<Models.VirtualMachinesListByLocationNextResponse>;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Lists all of the virtual machines in the specified resource group. Use the nextLink property in
|
|
843
|
-
* the response to get the next page of virtual machines.
|
|
844
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
845
|
-
* @param [options] The optional parameters
|
|
846
|
-
* @returns Promise<Models.VirtualMachinesListNextResponse>
|
|
847
|
-
*/
|
|
848
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesListNextResponse>;
|
|
849
|
-
/**
|
|
850
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
851
|
-
* @param callback The callback
|
|
852
|
-
*/
|
|
853
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
854
|
-
/**
|
|
855
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
856
|
-
* @param options The optional parameters
|
|
857
|
-
* @param callback The callback
|
|
858
|
-
*/
|
|
859
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
860
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VirtualMachineListResult>, callback?: msRest.ServiceCallback<Models.VirtualMachineListResult>): Promise<Models.VirtualMachinesListNextResponse> {
|
|
861
|
-
return this.client.sendOperationRequest(
|
|
862
|
-
{
|
|
863
|
-
nextPageLink,
|
|
864
|
-
options
|
|
865
|
-
},
|
|
866
|
-
listNextOperationSpec,
|
|
867
|
-
callback) as Promise<Models.VirtualMachinesListNextResponse>;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* Lists all of the virtual machines in the specified subscription. Use the nextLink property in
|
|
872
|
-
* the response to get the next page of virtual machines.
|
|
873
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
874
|
-
* @param [options] The optional parameters
|
|
875
|
-
* @returns Promise<Models.VirtualMachinesListAllNextResponse>
|
|
876
|
-
*/
|
|
877
|
-
listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams): Promise<Models.VirtualMachinesListAllNextResponse>;
|
|
878
|
-
/**
|
|
879
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
880
|
-
* @param callback The callback
|
|
881
|
-
*/
|
|
882
|
-
listAllNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
883
|
-
/**
|
|
884
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
885
|
-
* @param options The optional parameters
|
|
886
|
-
* @param callback The callback
|
|
887
|
-
*/
|
|
888
|
-
listAllNext(nextPageLink: string, options: Models.VirtualMachinesListAllNextOptionalParams, callback: msRest.ServiceCallback<Models.VirtualMachineListResult>): void;
|
|
889
|
-
listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams | msRest.ServiceCallback<Models.VirtualMachineListResult>, callback?: msRest.ServiceCallback<Models.VirtualMachineListResult>): Promise<Models.VirtualMachinesListAllNextResponse> {
|
|
890
|
-
return this.client.sendOperationRequest(
|
|
891
|
-
{
|
|
892
|
-
nextPageLink,
|
|
893
|
-
options
|
|
894
|
-
},
|
|
895
|
-
listAllNextOperationSpec,
|
|
896
|
-
callback) as Promise<Models.VirtualMachinesListAllNextResponse>;
|
|
1801
|
+
{ nextLink, options },
|
|
1802
|
+
listAllNextOperationSpec
|
|
1803
|
+
);
|
|
897
1804
|
}
|
|
898
1805
|
}
|
|
899
|
-
|
|
900
1806
|
// Operation Specifications
|
|
901
|
-
const serializer =
|
|
902
|
-
|
|
1807
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1808
|
+
|
|
1809
|
+
const listByLocationOperationSpec: coreClient.OperationSpec = {
|
|
1810
|
+
path:
|
|
1811
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines",
|
|
903
1812
|
httpMethod: "GET",
|
|
904
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines",
|
|
905
|
-
urlParameters: [
|
|
906
|
-
Parameters.location1,
|
|
907
|
-
Parameters.subscriptionId
|
|
908
|
-
],
|
|
909
|
-
queryParameters: [
|
|
910
|
-
Parameters.apiVersion0
|
|
911
|
-
],
|
|
912
|
-
headerParameters: [
|
|
913
|
-
Parameters.acceptLanguage
|
|
914
|
-
],
|
|
915
1813
|
responses: {
|
|
916
1814
|
200: {
|
|
917
1815
|
bodyMapper: Mappers.VirtualMachineListResult
|
|
918
|
-
},
|
|
919
|
-
default: {
|
|
920
|
-
bodyMapper: Mappers.CloudError
|
|
921
1816
|
}
|
|
922
1817
|
},
|
|
923
|
-
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
927
|
-
httpMethod: "GET",
|
|
928
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1818
|
+
queryParameters: [Parameters.apiVersion],
|
|
929
1819
|
urlParameters: [
|
|
930
|
-
Parameters
|
|
931
|
-
Parameters.
|
|
932
|
-
Parameters.
|
|
933
|
-
],
|
|
934
|
-
queryParameters: [
|
|
935
|
-
Parameters.expand1,
|
|
936
|
-
Parameters.apiVersion0
|
|
937
|
-
],
|
|
938
|
-
headerParameters: [
|
|
939
|
-
Parameters.acceptLanguage
|
|
1820
|
+
Parameters.$host,
|
|
1821
|
+
Parameters.subscriptionId,
|
|
1822
|
+
Parameters.location1
|
|
940
1823
|
],
|
|
941
|
-
|
|
942
|
-
200: {
|
|
943
|
-
bodyMapper: Mappers.VirtualMachine
|
|
944
|
-
},
|
|
945
|
-
default: {
|
|
946
|
-
bodyMapper: Mappers.CloudError
|
|
947
|
-
}
|
|
948
|
-
},
|
|
1824
|
+
headerParameters: [Parameters.accept],
|
|
949
1825
|
serializer
|
|
950
1826
|
};
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView",
|
|
955
|
-
urlParameters: [
|
|
956
|
-
Parameters.resourceGroupName,
|
|
957
|
-
Parameters.vmName,
|
|
958
|
-
Parameters.subscriptionId
|
|
959
|
-
],
|
|
960
|
-
queryParameters: [
|
|
961
|
-
Parameters.apiVersion0
|
|
962
|
-
],
|
|
963
|
-
headerParameters: [
|
|
964
|
-
Parameters.acceptLanguage
|
|
965
|
-
],
|
|
966
|
-
responses: {
|
|
967
|
-
200: {
|
|
968
|
-
bodyMapper: Mappers.VirtualMachineInstanceView
|
|
969
|
-
},
|
|
970
|
-
default: {
|
|
971
|
-
bodyMapper: Mappers.CloudError
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
serializer
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
const generalizeOperationSpec: msRest.OperationSpec = {
|
|
1827
|
+
const captureOperationSpec: coreClient.OperationSpec = {
|
|
1828
|
+
path:
|
|
1829
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture",
|
|
978
1830
|
httpMethod: "POST",
|
|
979
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize",
|
|
980
|
-
urlParameters: [
|
|
981
|
-
Parameters.resourceGroupName,
|
|
982
|
-
Parameters.vmName,
|
|
983
|
-
Parameters.subscriptionId
|
|
984
|
-
],
|
|
985
|
-
queryParameters: [
|
|
986
|
-
Parameters.apiVersion0
|
|
987
|
-
],
|
|
988
|
-
headerParameters: [
|
|
989
|
-
Parameters.acceptLanguage
|
|
990
|
-
],
|
|
991
|
-
responses: {
|
|
992
|
-
200: {},
|
|
993
|
-
default: {
|
|
994
|
-
bodyMapper: Mappers.CloudError
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
serializer
|
|
998
|
-
};
|
|
999
|
-
|
|
1000
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
1001
|
-
httpMethod: "GET",
|
|
1002
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines",
|
|
1003
|
-
urlParameters: [
|
|
1004
|
-
Parameters.resourceGroupName,
|
|
1005
|
-
Parameters.subscriptionId
|
|
1006
|
-
],
|
|
1007
|
-
queryParameters: [
|
|
1008
|
-
Parameters.apiVersion0
|
|
1009
|
-
],
|
|
1010
|
-
headerParameters: [
|
|
1011
|
-
Parameters.acceptLanguage
|
|
1012
|
-
],
|
|
1013
1831
|
responses: {
|
|
1014
1832
|
200: {
|
|
1015
|
-
bodyMapper: Mappers.
|
|
1833
|
+
bodyMapper: Mappers.VirtualMachineCaptureResult
|
|
1016
1834
|
},
|
|
1017
|
-
|
|
1018
|
-
bodyMapper: Mappers.
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
|
-
serializer
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
const listAllOperationSpec: msRest.OperationSpec = {
|
|
1025
|
-
httpMethod: "GET",
|
|
1026
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines",
|
|
1027
|
-
urlParameters: [
|
|
1028
|
-
Parameters.subscriptionId
|
|
1029
|
-
],
|
|
1030
|
-
queryParameters: [
|
|
1031
|
-
Parameters.apiVersion0,
|
|
1032
|
-
Parameters.statusOnly
|
|
1033
|
-
],
|
|
1034
|
-
headerParameters: [
|
|
1035
|
-
Parameters.acceptLanguage
|
|
1036
|
-
],
|
|
1037
|
-
responses: {
|
|
1038
|
-
200: {
|
|
1039
|
-
bodyMapper: Mappers.VirtualMachineListResult
|
|
1835
|
+
201: {
|
|
1836
|
+
bodyMapper: Mappers.VirtualMachineCaptureResult
|
|
1040
1837
|
},
|
|
1041
|
-
|
|
1042
|
-
bodyMapper: Mappers.
|
|
1838
|
+
202: {
|
|
1839
|
+
bodyMapper: Mappers.VirtualMachineCaptureResult
|
|
1840
|
+
},
|
|
1841
|
+
204: {
|
|
1842
|
+
bodyMapper: Mappers.VirtualMachineCaptureResult
|
|
1043
1843
|
}
|
|
1044
1844
|
},
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
const listAvailableSizesOperationSpec: msRest.OperationSpec = {
|
|
1049
|
-
httpMethod: "GET",
|
|
1050
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes",
|
|
1845
|
+
requestBody: Parameters.parameters10,
|
|
1846
|
+
queryParameters: [Parameters.apiVersion],
|
|
1051
1847
|
urlParameters: [
|
|
1848
|
+
Parameters.$host,
|
|
1052
1849
|
Parameters.resourceGroupName,
|
|
1053
|
-
Parameters.
|
|
1054
|
-
Parameters.
|
|
1055
|
-
],
|
|
1056
|
-
queryParameters: [
|
|
1057
|
-
Parameters.apiVersion0
|
|
1850
|
+
Parameters.subscriptionId,
|
|
1851
|
+
Parameters.vmName
|
|
1058
1852
|
],
|
|
1059
|
-
headerParameters: [
|
|
1060
|
-
|
|
1061
|
-
],
|
|
1062
|
-
responses: {
|
|
1063
|
-
200: {
|
|
1064
|
-
bodyMapper: Mappers.VirtualMachineSizeListResult
|
|
1065
|
-
},
|
|
1066
|
-
default: {
|
|
1067
|
-
bodyMapper: Mappers.CloudError
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1853
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1854
|
+
mediaType: "json",
|
|
1070
1855
|
serializer
|
|
1071
1856
|
};
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
urlParameters: [
|
|
1077
|
-
Parameters.resourceGroupName,
|
|
1078
|
-
Parameters.vmName,
|
|
1079
|
-
Parameters.subscriptionId
|
|
1080
|
-
],
|
|
1081
|
-
queryParameters: [
|
|
1082
|
-
Parameters.sasUriExpirationTimeInMinutes,
|
|
1083
|
-
Parameters.apiVersion0
|
|
1084
|
-
],
|
|
1085
|
-
headerParameters: [
|
|
1086
|
-
Parameters.acceptLanguage
|
|
1087
|
-
],
|
|
1857
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
1858
|
+
path:
|
|
1859
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1860
|
+
httpMethod: "PUT",
|
|
1088
1861
|
responses: {
|
|
1089
1862
|
200: {
|
|
1090
|
-
bodyMapper: Mappers.
|
|
1863
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1091
1864
|
},
|
|
1092
|
-
|
|
1093
|
-
bodyMapper: Mappers.
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
httpMethod: "POST",
|
|
1101
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction",
|
|
1102
|
-
urlParameters: [
|
|
1103
|
-
Parameters.resourceGroupName,
|
|
1104
|
-
Parameters.vmName,
|
|
1105
|
-
Parameters.subscriptionId
|
|
1106
|
-
],
|
|
1107
|
-
queryParameters: [
|
|
1108
|
-
Parameters.apiVersion0
|
|
1109
|
-
],
|
|
1110
|
-
headerParameters: [
|
|
1111
|
-
Parameters.acceptLanguage
|
|
1112
|
-
],
|
|
1113
|
-
responses: {
|
|
1114
|
-
204: {},
|
|
1115
|
-
default: {
|
|
1116
|
-
bodyMapper: Mappers.CloudError
|
|
1865
|
+
201: {
|
|
1866
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1867
|
+
},
|
|
1868
|
+
202: {
|
|
1869
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1870
|
+
},
|
|
1871
|
+
204: {
|
|
1872
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1117
1873
|
}
|
|
1118
1874
|
},
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
const beginCaptureOperationSpec: msRest.OperationSpec = {
|
|
1123
|
-
httpMethod: "POST",
|
|
1124
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture",
|
|
1875
|
+
requestBody: Parameters.parameters11,
|
|
1876
|
+
queryParameters: [Parameters.apiVersion],
|
|
1125
1877
|
urlParameters: [
|
|
1878
|
+
Parameters.$host,
|
|
1126
1879
|
Parameters.resourceGroupName,
|
|
1127
|
-
Parameters.
|
|
1128
|
-
Parameters.
|
|
1129
|
-
],
|
|
1130
|
-
queryParameters: [
|
|
1131
|
-
Parameters.apiVersion0
|
|
1880
|
+
Parameters.subscriptionId,
|
|
1881
|
+
Parameters.vmName
|
|
1132
1882
|
],
|
|
1133
|
-
headerParameters: [
|
|
1134
|
-
|
|
1135
|
-
],
|
|
1136
|
-
requestBody: {
|
|
1137
|
-
parameterPath: "parameters",
|
|
1138
|
-
mapper: {
|
|
1139
|
-
...Mappers.VirtualMachineCaptureParameters,
|
|
1140
|
-
required: true
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
|
-
responses: {
|
|
1144
|
-
200: {
|
|
1145
|
-
bodyMapper: Mappers.VirtualMachineCaptureResult
|
|
1146
|
-
},
|
|
1147
|
-
202: {},
|
|
1148
|
-
default: {
|
|
1149
|
-
bodyMapper: Mappers.CloudError
|
|
1150
|
-
}
|
|
1151
|
-
},
|
|
1883
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1884
|
+
mediaType: "json",
|
|
1152
1885
|
serializer
|
|
1153
1886
|
};
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
urlParameters: [
|
|
1159
|
-
Parameters.resourceGroupName,
|
|
1160
|
-
Parameters.vmName,
|
|
1161
|
-
Parameters.subscriptionId
|
|
1162
|
-
],
|
|
1163
|
-
queryParameters: [
|
|
1164
|
-
Parameters.apiVersion0
|
|
1165
|
-
],
|
|
1166
|
-
headerParameters: [
|
|
1167
|
-
Parameters.acceptLanguage
|
|
1168
|
-
],
|
|
1169
|
-
requestBody: {
|
|
1170
|
-
parameterPath: "parameters",
|
|
1171
|
-
mapper: {
|
|
1172
|
-
...Mappers.VirtualMachine,
|
|
1173
|
-
required: true
|
|
1174
|
-
}
|
|
1175
|
-
},
|
|
1887
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1888
|
+
path:
|
|
1889
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1890
|
+
httpMethod: "PATCH",
|
|
1176
1891
|
responses: {
|
|
1177
1892
|
200: {
|
|
1178
1893
|
bodyMapper: Mappers.VirtualMachine
|
|
@@ -1180,457 +1895,463 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
1180
1895
|
201: {
|
|
1181
1896
|
bodyMapper: Mappers.VirtualMachine
|
|
1182
1897
|
},
|
|
1183
|
-
|
|
1184
|
-
bodyMapper: Mappers.
|
|
1898
|
+
202: {
|
|
1899
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1900
|
+
},
|
|
1901
|
+
204: {
|
|
1902
|
+
bodyMapper: Mappers.VirtualMachine
|
|
1185
1903
|
}
|
|
1186
1904
|
},
|
|
1905
|
+
requestBody: Parameters.parameters12,
|
|
1906
|
+
queryParameters: [Parameters.apiVersion],
|
|
1907
|
+
urlParameters: [
|
|
1908
|
+
Parameters.$host,
|
|
1909
|
+
Parameters.resourceGroupName,
|
|
1910
|
+
Parameters.subscriptionId,
|
|
1911
|
+
Parameters.vmName
|
|
1912
|
+
],
|
|
1913
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1914
|
+
mediaType: "json",
|
|
1187
1915
|
serializer
|
|
1188
1916
|
};
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1917
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1918
|
+
path:
|
|
1919
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1920
|
+
httpMethod: "DELETE",
|
|
1921
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
1922
|
+
queryParameters: [Parameters.apiVersion, Parameters.forceDeletion],
|
|
1193
1923
|
urlParameters: [
|
|
1924
|
+
Parameters.$host,
|
|
1194
1925
|
Parameters.resourceGroupName,
|
|
1195
|
-
Parameters.
|
|
1196
|
-
Parameters.
|
|
1926
|
+
Parameters.subscriptionId,
|
|
1927
|
+
Parameters.vmName
|
|
1197
1928
|
],
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
requestBody: {
|
|
1205
|
-
parameterPath: "parameters",
|
|
1206
|
-
mapper: {
|
|
1207
|
-
...Mappers.VirtualMachineUpdate,
|
|
1208
|
-
required: true
|
|
1209
|
-
}
|
|
1210
|
-
},
|
|
1929
|
+
serializer
|
|
1930
|
+
};
|
|
1931
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1932
|
+
path:
|
|
1933
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1934
|
+
httpMethod: "GET",
|
|
1211
1935
|
responses: {
|
|
1212
1936
|
200: {
|
|
1213
1937
|
bodyMapper: Mappers.VirtualMachine
|
|
1214
|
-
},
|
|
1215
|
-
default: {
|
|
1216
|
-
bodyMapper: Mappers.CloudError
|
|
1217
1938
|
}
|
|
1218
|
-
},
|
|
1219
|
-
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
1223
|
-
httpMethod: "DELETE",
|
|
1224
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}",
|
|
1939
|
+
},
|
|
1940
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand1],
|
|
1225
1941
|
urlParameters: [
|
|
1942
|
+
Parameters.$host,
|
|
1226
1943
|
Parameters.resourceGroupName,
|
|
1227
|
-
Parameters.
|
|
1228
|
-
Parameters.
|
|
1229
|
-
],
|
|
1230
|
-
queryParameters: [
|
|
1231
|
-
Parameters.forceDeletion,
|
|
1232
|
-
Parameters.apiVersion0
|
|
1233
|
-
],
|
|
1234
|
-
headerParameters: [
|
|
1235
|
-
Parameters.acceptLanguage
|
|
1944
|
+
Parameters.subscriptionId,
|
|
1945
|
+
Parameters.vmName
|
|
1236
1946
|
],
|
|
1947
|
+
headerParameters: [Parameters.accept],
|
|
1948
|
+
serializer
|
|
1949
|
+
};
|
|
1950
|
+
const instanceViewOperationSpec: coreClient.OperationSpec = {
|
|
1951
|
+
path:
|
|
1952
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView",
|
|
1953
|
+
httpMethod: "GET",
|
|
1237
1954
|
responses: {
|
|
1238
|
-
200: {
|
|
1239
|
-
|
|
1240
|
-
204: {},
|
|
1241
|
-
default: {
|
|
1242
|
-
bodyMapper: Mappers.CloudError
|
|
1955
|
+
200: {
|
|
1956
|
+
bodyMapper: Mappers.VirtualMachineInstanceView
|
|
1243
1957
|
}
|
|
1244
1958
|
},
|
|
1959
|
+
queryParameters: [Parameters.apiVersion],
|
|
1960
|
+
urlParameters: [
|
|
1961
|
+
Parameters.$host,
|
|
1962
|
+
Parameters.resourceGroupName,
|
|
1963
|
+
Parameters.subscriptionId,
|
|
1964
|
+
Parameters.vmName
|
|
1965
|
+
],
|
|
1966
|
+
headerParameters: [Parameters.accept],
|
|
1245
1967
|
serializer
|
|
1246
1968
|
};
|
|
1247
|
-
|
|
1248
|
-
|
|
1969
|
+
const convertToManagedDisksOperationSpec: coreClient.OperationSpec = {
|
|
1970
|
+
path:
|
|
1971
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks",
|
|
1249
1972
|
httpMethod: "POST",
|
|
1250
|
-
|
|
1973
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
1974
|
+
queryParameters: [Parameters.apiVersion],
|
|
1251
1975
|
urlParameters: [
|
|
1976
|
+
Parameters.$host,
|
|
1252
1977
|
Parameters.resourceGroupName,
|
|
1253
|
-
Parameters.
|
|
1254
|
-
Parameters.
|
|
1978
|
+
Parameters.subscriptionId,
|
|
1979
|
+
Parameters.vmName
|
|
1255
1980
|
],
|
|
1256
|
-
queryParameters: [
|
|
1257
|
-
Parameters.apiVersion0
|
|
1258
|
-
],
|
|
1259
|
-
headerParameters: [
|
|
1260
|
-
Parameters.acceptLanguage
|
|
1261
|
-
],
|
|
1262
|
-
responses: {
|
|
1263
|
-
200: {},
|
|
1264
|
-
202: {},
|
|
1265
|
-
default: {
|
|
1266
|
-
bodyMapper: Mappers.CloudError
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
1981
|
serializer
|
|
1270
1982
|
};
|
|
1271
|
-
|
|
1272
|
-
|
|
1983
|
+
const deallocateOperationSpec: coreClient.OperationSpec = {
|
|
1984
|
+
path:
|
|
1985
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate",
|
|
1273
1986
|
httpMethod: "POST",
|
|
1274
|
-
|
|
1987
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
1988
|
+
queryParameters: [Parameters.apiVersion, Parameters.hibernate],
|
|
1275
1989
|
urlParameters: [
|
|
1990
|
+
Parameters.$host,
|
|
1276
1991
|
Parameters.resourceGroupName,
|
|
1277
|
-
Parameters.
|
|
1278
|
-
Parameters.
|
|
1992
|
+
Parameters.subscriptionId,
|
|
1993
|
+
Parameters.vmName
|
|
1279
1994
|
],
|
|
1280
|
-
queryParameters: [
|
|
1281
|
-
Parameters.hibernate,
|
|
1282
|
-
Parameters.apiVersion0
|
|
1283
|
-
],
|
|
1284
|
-
headerParameters: [
|
|
1285
|
-
Parameters.acceptLanguage
|
|
1286
|
-
],
|
|
1287
|
-
responses: {
|
|
1288
|
-
200: {},
|
|
1289
|
-
202: {},
|
|
1290
|
-
default: {
|
|
1291
|
-
bodyMapper: Mappers.CloudError
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
1995
|
serializer
|
|
1295
1996
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1997
|
+
const generalizeOperationSpec: coreClient.OperationSpec = {
|
|
1998
|
+
path:
|
|
1999
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize",
|
|
1298
2000
|
httpMethod: "POST",
|
|
1299
|
-
|
|
2001
|
+
responses: { 200: {} },
|
|
2002
|
+
queryParameters: [Parameters.apiVersion],
|
|
1300
2003
|
urlParameters: [
|
|
2004
|
+
Parameters.$host,
|
|
1301
2005
|
Parameters.resourceGroupName,
|
|
1302
|
-
Parameters.
|
|
1303
|
-
Parameters.
|
|
1304
|
-
],
|
|
1305
|
-
queryParameters: [
|
|
1306
|
-
Parameters.skipShutdown,
|
|
1307
|
-
Parameters.apiVersion0
|
|
1308
|
-
],
|
|
1309
|
-
headerParameters: [
|
|
1310
|
-
Parameters.acceptLanguage
|
|
2006
|
+
Parameters.subscriptionId,
|
|
2007
|
+
Parameters.vmName
|
|
1311
2008
|
],
|
|
2009
|
+
serializer
|
|
2010
|
+
};
|
|
2011
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
2012
|
+
path:
|
|
2013
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines",
|
|
2014
|
+
httpMethod: "GET",
|
|
1312
2015
|
responses: {
|
|
1313
|
-
200: {
|
|
1314
|
-
|
|
1315
|
-
default: {
|
|
1316
|
-
bodyMapper: Mappers.CloudError
|
|
2016
|
+
200: {
|
|
2017
|
+
bodyMapper: Mappers.VirtualMachineListResult
|
|
1317
2018
|
}
|
|
1318
2019
|
},
|
|
1319
|
-
|
|
1320
|
-
};
|
|
1321
|
-
|
|
1322
|
-
const beginReapplyOperationSpec: msRest.OperationSpec = {
|
|
1323
|
-
httpMethod: "POST",
|
|
1324
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply",
|
|
2020
|
+
queryParameters: [Parameters.apiVersion],
|
|
1325
2021
|
urlParameters: [
|
|
2022
|
+
Parameters.$host,
|
|
1326
2023
|
Parameters.resourceGroupName,
|
|
1327
|
-
Parameters.vmName,
|
|
1328
2024
|
Parameters.subscriptionId
|
|
1329
2025
|
],
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
2026
|
+
headerParameters: [Parameters.accept],
|
|
2027
|
+
serializer
|
|
2028
|
+
};
|
|
2029
|
+
const listAllOperationSpec: coreClient.OperationSpec = {
|
|
2030
|
+
path:
|
|
2031
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines",
|
|
2032
|
+
httpMethod: "GET",
|
|
1336
2033
|
responses: {
|
|
1337
|
-
200: {
|
|
1338
|
-
|
|
1339
|
-
default: {
|
|
1340
|
-
bodyMapper: Mappers.CloudError
|
|
2034
|
+
200: {
|
|
2035
|
+
bodyMapper: Mappers.VirtualMachineListResult
|
|
1341
2036
|
}
|
|
1342
2037
|
},
|
|
2038
|
+
queryParameters: [Parameters.apiVersion, Parameters.statusOnly],
|
|
2039
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
2040
|
+
headerParameters: [Parameters.accept],
|
|
1343
2041
|
serializer
|
|
1344
2042
|
};
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
urlParameters: [
|
|
1350
|
-
Parameters.resourceGroupName,
|
|
1351
|
-
Parameters.vmName,
|
|
1352
|
-
Parameters.subscriptionId
|
|
1353
|
-
],
|
|
1354
|
-
queryParameters: [
|
|
1355
|
-
Parameters.apiVersion0
|
|
1356
|
-
],
|
|
1357
|
-
headerParameters: [
|
|
1358
|
-
Parameters.acceptLanguage
|
|
1359
|
-
],
|
|
2043
|
+
const listAvailableSizesOperationSpec: coreClient.OperationSpec = {
|
|
2044
|
+
path:
|
|
2045
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes",
|
|
2046
|
+
httpMethod: "GET",
|
|
1360
2047
|
responses: {
|
|
1361
|
-
200: {
|
|
1362
|
-
|
|
1363
|
-
default: {
|
|
1364
|
-
bodyMapper: Mappers.CloudError
|
|
2048
|
+
200: {
|
|
2049
|
+
bodyMapper: Mappers.VirtualMachineSizeListResult
|
|
1365
2050
|
}
|
|
1366
2051
|
},
|
|
2052
|
+
queryParameters: [Parameters.apiVersion],
|
|
2053
|
+
urlParameters: [
|
|
2054
|
+
Parameters.$host,
|
|
2055
|
+
Parameters.resourceGroupName,
|
|
2056
|
+
Parameters.subscriptionId,
|
|
2057
|
+
Parameters.vmName
|
|
2058
|
+
],
|
|
2059
|
+
headerParameters: [Parameters.accept],
|
|
1367
2060
|
serializer
|
|
1368
2061
|
};
|
|
1369
|
-
|
|
1370
|
-
|
|
2062
|
+
const powerOffOperationSpec: coreClient.OperationSpec = {
|
|
2063
|
+
path:
|
|
2064
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff",
|
|
1371
2065
|
httpMethod: "POST",
|
|
1372
|
-
|
|
2066
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2067
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipShutdown],
|
|
1373
2068
|
urlParameters: [
|
|
2069
|
+
Parameters.$host,
|
|
1374
2070
|
Parameters.resourceGroupName,
|
|
1375
|
-
Parameters.
|
|
1376
|
-
Parameters.
|
|
1377
|
-
],
|
|
1378
|
-
queryParameters: [
|
|
1379
|
-
Parameters.apiVersion0
|
|
1380
|
-
],
|
|
1381
|
-
headerParameters: [
|
|
1382
|
-
Parameters.acceptLanguage
|
|
2071
|
+
Parameters.subscriptionId,
|
|
2072
|
+
Parameters.vmName
|
|
1383
2073
|
],
|
|
2074
|
+
serializer
|
|
2075
|
+
};
|
|
2076
|
+
const reapplyOperationSpec: coreClient.OperationSpec = {
|
|
2077
|
+
path:
|
|
2078
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply",
|
|
2079
|
+
httpMethod: "POST",
|
|
1384
2080
|
responses: {
|
|
1385
2081
|
200: {},
|
|
2082
|
+
201: {},
|
|
1386
2083
|
202: {},
|
|
2084
|
+
204: {},
|
|
1387
2085
|
default: {
|
|
1388
2086
|
bodyMapper: Mappers.CloudError
|
|
1389
2087
|
}
|
|
1390
2088
|
},
|
|
2089
|
+
queryParameters: [Parameters.apiVersion],
|
|
2090
|
+
urlParameters: [
|
|
2091
|
+
Parameters.$host,
|
|
2092
|
+
Parameters.resourceGroupName,
|
|
2093
|
+
Parameters.subscriptionId,
|
|
2094
|
+
Parameters.vmName
|
|
2095
|
+
],
|
|
2096
|
+
headerParameters: [Parameters.accept],
|
|
1391
2097
|
serializer
|
|
1392
2098
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
2099
|
+
const restartOperationSpec: coreClient.OperationSpec = {
|
|
2100
|
+
path:
|
|
2101
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart",
|
|
1395
2102
|
httpMethod: "POST",
|
|
1396
|
-
|
|
2103
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2104
|
+
queryParameters: [Parameters.apiVersion],
|
|
1397
2105
|
urlParameters: [
|
|
2106
|
+
Parameters.$host,
|
|
1398
2107
|
Parameters.resourceGroupName,
|
|
1399
|
-
Parameters.
|
|
1400
|
-
Parameters.
|
|
1401
|
-
],
|
|
1402
|
-
queryParameters: [
|
|
1403
|
-
Parameters.apiVersion0
|
|
1404
|
-
],
|
|
1405
|
-
headerParameters: [
|
|
1406
|
-
Parameters.acceptLanguage
|
|
2108
|
+
Parameters.subscriptionId,
|
|
2109
|
+
Parameters.vmName
|
|
1407
2110
|
],
|
|
1408
|
-
responses: {
|
|
1409
|
-
200: {},
|
|
1410
|
-
202: {},
|
|
1411
|
-
default: {
|
|
1412
|
-
bodyMapper: Mappers.CloudError
|
|
1413
|
-
}
|
|
1414
|
-
},
|
|
1415
2111
|
serializer
|
|
1416
2112
|
};
|
|
1417
|
-
|
|
1418
|
-
|
|
2113
|
+
const startOperationSpec: coreClient.OperationSpec = {
|
|
2114
|
+
path:
|
|
2115
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start",
|
|
1419
2116
|
httpMethod: "POST",
|
|
1420
|
-
|
|
2117
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2118
|
+
queryParameters: [Parameters.apiVersion],
|
|
1421
2119
|
urlParameters: [
|
|
2120
|
+
Parameters.$host,
|
|
1422
2121
|
Parameters.resourceGroupName,
|
|
1423
|
-
Parameters.
|
|
1424
|
-
Parameters.
|
|
1425
|
-
],
|
|
1426
|
-
queryParameters: [
|
|
1427
|
-
Parameters.apiVersion0
|
|
1428
|
-
],
|
|
1429
|
-
headerParameters: [
|
|
1430
|
-
Parameters.acceptLanguage
|
|
2122
|
+
Parameters.subscriptionId,
|
|
2123
|
+
Parameters.vmName
|
|
1431
2124
|
],
|
|
1432
|
-
requestBody: {
|
|
1433
|
-
parameterPath: [
|
|
1434
|
-
"options",
|
|
1435
|
-
"parameters"
|
|
1436
|
-
],
|
|
1437
|
-
mapper: Mappers.VirtualMachineReimageParameters
|
|
1438
|
-
},
|
|
1439
|
-
responses: {
|
|
1440
|
-
200: {},
|
|
1441
|
-
202: {},
|
|
1442
|
-
default: {
|
|
1443
|
-
bodyMapper: Mappers.CloudError
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
2125
|
serializer
|
|
1447
2126
|
};
|
|
1448
|
-
|
|
1449
|
-
|
|
2127
|
+
const redeployOperationSpec: coreClient.OperationSpec = {
|
|
2128
|
+
path:
|
|
2129
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy",
|
|
1450
2130
|
httpMethod: "POST",
|
|
1451
|
-
|
|
2131
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2132
|
+
queryParameters: [Parameters.apiVersion],
|
|
1452
2133
|
urlParameters: [
|
|
2134
|
+
Parameters.$host,
|
|
1453
2135
|
Parameters.resourceGroupName,
|
|
1454
|
-
Parameters.
|
|
1455
|
-
Parameters.
|
|
1456
|
-
],
|
|
1457
|
-
queryParameters: [
|
|
1458
|
-
Parameters.apiVersion0
|
|
2136
|
+
Parameters.subscriptionId,
|
|
2137
|
+
Parameters.vmName
|
|
1459
2138
|
],
|
|
1460
|
-
|
|
1461
|
-
|
|
2139
|
+
serializer
|
|
2140
|
+
};
|
|
2141
|
+
const reimageOperationSpec: coreClient.OperationSpec = {
|
|
2142
|
+
path:
|
|
2143
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage",
|
|
2144
|
+
httpMethod: "POST",
|
|
2145
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2146
|
+
requestBody: Parameters.parameters13,
|
|
2147
|
+
queryParameters: [Parameters.apiVersion],
|
|
2148
|
+
urlParameters: [
|
|
2149
|
+
Parameters.$host,
|
|
2150
|
+
Parameters.resourceGroupName,
|
|
2151
|
+
Parameters.subscriptionId,
|
|
2152
|
+
Parameters.vmName
|
|
1462
2153
|
],
|
|
2154
|
+
headerParameters: [Parameters.contentType],
|
|
2155
|
+
mediaType: "json",
|
|
2156
|
+
serializer
|
|
2157
|
+
};
|
|
2158
|
+
const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = {
|
|
2159
|
+
path:
|
|
2160
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData",
|
|
2161
|
+
httpMethod: "POST",
|
|
1463
2162
|
responses: {
|
|
1464
|
-
200: {
|
|
1465
|
-
|
|
2163
|
+
200: {
|
|
2164
|
+
bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult
|
|
2165
|
+
},
|
|
1466
2166
|
default: {
|
|
1467
2167
|
bodyMapper: Mappers.CloudError
|
|
1468
2168
|
}
|
|
1469
2169
|
},
|
|
2170
|
+
queryParameters: [
|
|
2171
|
+
Parameters.apiVersion,
|
|
2172
|
+
Parameters.sasUriExpirationTimeInMinutes
|
|
2173
|
+
],
|
|
2174
|
+
urlParameters: [
|
|
2175
|
+
Parameters.$host,
|
|
2176
|
+
Parameters.resourceGroupName,
|
|
2177
|
+
Parameters.subscriptionId,
|
|
2178
|
+
Parameters.vmName
|
|
2179
|
+
],
|
|
2180
|
+
headerParameters: [Parameters.accept],
|
|
1470
2181
|
serializer
|
|
1471
2182
|
};
|
|
1472
|
-
|
|
1473
|
-
|
|
2183
|
+
const performMaintenanceOperationSpec: coreClient.OperationSpec = {
|
|
2184
|
+
path:
|
|
2185
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance",
|
|
1474
2186
|
httpMethod: "POST",
|
|
1475
|
-
|
|
2187
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2188
|
+
queryParameters: [Parameters.apiVersion],
|
|
1476
2189
|
urlParameters: [
|
|
2190
|
+
Parameters.$host,
|
|
1477
2191
|
Parameters.resourceGroupName,
|
|
1478
|
-
Parameters.
|
|
1479
|
-
Parameters.
|
|
2192
|
+
Parameters.subscriptionId,
|
|
2193
|
+
Parameters.vmName
|
|
1480
2194
|
],
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
2195
|
+
serializer
|
|
2196
|
+
};
|
|
2197
|
+
const simulateEvictionOperationSpec: coreClient.OperationSpec = {
|
|
2198
|
+
path:
|
|
2199
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction",
|
|
2200
|
+
httpMethod: "POST",
|
|
2201
|
+
responses: { 204: {} },
|
|
2202
|
+
queryParameters: [Parameters.apiVersion],
|
|
2203
|
+
urlParameters: [
|
|
2204
|
+
Parameters.$host,
|
|
2205
|
+
Parameters.resourceGroupName,
|
|
2206
|
+
Parameters.subscriptionId,
|
|
2207
|
+
Parameters.vmName
|
|
1486
2208
|
],
|
|
2209
|
+
serializer
|
|
2210
|
+
};
|
|
2211
|
+
const assessPatchesOperationSpec: coreClient.OperationSpec = {
|
|
2212
|
+
path:
|
|
2213
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches",
|
|
2214
|
+
httpMethod: "POST",
|
|
1487
2215
|
responses: {
|
|
1488
2216
|
200: {
|
|
1489
2217
|
bodyMapper: Mappers.VirtualMachineAssessPatchesResult
|
|
1490
2218
|
},
|
|
1491
|
-
|
|
2219
|
+
201: {
|
|
2220
|
+
bodyMapper: Mappers.VirtualMachineAssessPatchesResult
|
|
2221
|
+
},
|
|
2222
|
+
202: {
|
|
2223
|
+
bodyMapper: Mappers.VirtualMachineAssessPatchesResult
|
|
2224
|
+
},
|
|
2225
|
+
204: {
|
|
2226
|
+
bodyMapper: Mappers.VirtualMachineAssessPatchesResult
|
|
2227
|
+
},
|
|
1492
2228
|
default: {
|
|
1493
2229
|
bodyMapper: Mappers.CloudError
|
|
1494
2230
|
}
|
|
1495
2231
|
},
|
|
1496
|
-
|
|
1497
|
-
};
|
|
1498
|
-
|
|
1499
|
-
const beginInstallPatchesOperationSpec: msRest.OperationSpec = {
|
|
1500
|
-
httpMethod: "POST",
|
|
1501
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches",
|
|
2232
|
+
queryParameters: [Parameters.apiVersion],
|
|
1502
2233
|
urlParameters: [
|
|
2234
|
+
Parameters.$host,
|
|
1503
2235
|
Parameters.resourceGroupName,
|
|
1504
|
-
Parameters.
|
|
1505
|
-
Parameters.
|
|
1506
|
-
],
|
|
1507
|
-
queryParameters: [
|
|
1508
|
-
Parameters.apiVersion0
|
|
1509
|
-
],
|
|
1510
|
-
headerParameters: [
|
|
1511
|
-
Parameters.acceptLanguage
|
|
2236
|
+
Parameters.subscriptionId,
|
|
2237
|
+
Parameters.vmName
|
|
1512
2238
|
],
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
}
|
|
1519
|
-
|
|
2239
|
+
headerParameters: [Parameters.accept],
|
|
2240
|
+
serializer
|
|
2241
|
+
};
|
|
2242
|
+
const installPatchesOperationSpec: coreClient.OperationSpec = {
|
|
2243
|
+
path:
|
|
2244
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches",
|
|
2245
|
+
httpMethod: "POST",
|
|
1520
2246
|
responses: {
|
|
1521
2247
|
200: {
|
|
1522
2248
|
bodyMapper: Mappers.VirtualMachineInstallPatchesResult
|
|
1523
2249
|
},
|
|
1524
|
-
|
|
2250
|
+
201: {
|
|
2251
|
+
bodyMapper: Mappers.VirtualMachineInstallPatchesResult
|
|
2252
|
+
},
|
|
2253
|
+
202: {
|
|
2254
|
+
bodyMapper: Mappers.VirtualMachineInstallPatchesResult
|
|
2255
|
+
},
|
|
2256
|
+
204: {
|
|
2257
|
+
bodyMapper: Mappers.VirtualMachineInstallPatchesResult
|
|
2258
|
+
},
|
|
1525
2259
|
default: {
|
|
1526
2260
|
bodyMapper: Mappers.CloudError
|
|
1527
2261
|
}
|
|
1528
2262
|
},
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
const beginRunCommandOperationSpec: msRest.OperationSpec = {
|
|
1533
|
-
httpMethod: "POST",
|
|
1534
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand",
|
|
2263
|
+
requestBody: Parameters.installPatchesInput,
|
|
2264
|
+
queryParameters: [Parameters.apiVersion],
|
|
1535
2265
|
urlParameters: [
|
|
2266
|
+
Parameters.$host,
|
|
1536
2267
|
Parameters.resourceGroupName,
|
|
1537
|
-
Parameters.
|
|
1538
|
-
Parameters.
|
|
2268
|
+
Parameters.subscriptionId,
|
|
2269
|
+
Parameters.vmName
|
|
1539
2270
|
],
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
mapper: {
|
|
1549
|
-
...Mappers.RunCommandInput,
|
|
1550
|
-
required: true
|
|
1551
|
-
}
|
|
1552
|
-
},
|
|
2271
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2272
|
+
mediaType: "json",
|
|
2273
|
+
serializer
|
|
2274
|
+
};
|
|
2275
|
+
const runCommandOperationSpec: coreClient.OperationSpec = {
|
|
2276
|
+
path:
|
|
2277
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand",
|
|
2278
|
+
httpMethod: "POST",
|
|
1553
2279
|
responses: {
|
|
1554
2280
|
200: {
|
|
1555
2281
|
bodyMapper: Mappers.RunCommandResult
|
|
1556
2282
|
},
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
2283
|
+
201: {
|
|
2284
|
+
bodyMapper: Mappers.RunCommandResult
|
|
2285
|
+
},
|
|
2286
|
+
202: {
|
|
2287
|
+
bodyMapper: Mappers.RunCommandResult
|
|
2288
|
+
},
|
|
2289
|
+
204: {
|
|
2290
|
+
bodyMapper: Mappers.RunCommandResult
|
|
1560
2291
|
}
|
|
1561
2292
|
},
|
|
2293
|
+
requestBody: Parameters.parameters14,
|
|
2294
|
+
queryParameters: [Parameters.apiVersion],
|
|
2295
|
+
urlParameters: [
|
|
2296
|
+
Parameters.$host,
|
|
2297
|
+
Parameters.resourceGroupName,
|
|
2298
|
+
Parameters.subscriptionId,
|
|
2299
|
+
Parameters.vmName
|
|
2300
|
+
],
|
|
2301
|
+
headerParameters: [Parameters.contentType, Parameters.accept1],
|
|
2302
|
+
mediaType: "json",
|
|
1562
2303
|
serializer
|
|
1563
2304
|
};
|
|
1564
|
-
|
|
1565
|
-
const listByLocationNextOperationSpec: msRest.OperationSpec = {
|
|
1566
|
-
httpMethod: "GET",
|
|
1567
|
-
baseUrl: "https://management.azure.com",
|
|
2305
|
+
const listByLocationNextOperationSpec: coreClient.OperationSpec = {
|
|
1568
2306
|
path: "{nextLink}",
|
|
1569
|
-
|
|
1570
|
-
Parameters.nextPageLink
|
|
1571
|
-
],
|
|
1572
|
-
queryParameters: [
|
|
1573
|
-
Parameters.apiVersion0
|
|
1574
|
-
],
|
|
1575
|
-
headerParameters: [
|
|
1576
|
-
Parameters.acceptLanguage
|
|
1577
|
-
],
|
|
2307
|
+
httpMethod: "GET",
|
|
1578
2308
|
responses: {
|
|
1579
2309
|
200: {
|
|
1580
2310
|
bodyMapper: Mappers.VirtualMachineListResult
|
|
1581
|
-
},
|
|
1582
|
-
default: {
|
|
1583
|
-
bodyMapper: Mappers.CloudError
|
|
1584
2311
|
}
|
|
1585
2312
|
},
|
|
2313
|
+
queryParameters: [Parameters.apiVersion],
|
|
2314
|
+
urlParameters: [
|
|
2315
|
+
Parameters.$host,
|
|
2316
|
+
Parameters.subscriptionId,
|
|
2317
|
+
Parameters.nextLink,
|
|
2318
|
+
Parameters.location1
|
|
2319
|
+
],
|
|
2320
|
+
headerParameters: [Parameters.accept],
|
|
1586
2321
|
serializer
|
|
1587
2322
|
};
|
|
1588
|
-
|
|
1589
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
1590
|
-
httpMethod: "GET",
|
|
1591
|
-
baseUrl: "https://management.azure.com",
|
|
2323
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1592
2324
|
path: "{nextLink}",
|
|
1593
|
-
|
|
1594
|
-
Parameters.nextPageLink
|
|
1595
|
-
],
|
|
1596
|
-
queryParameters: [
|
|
1597
|
-
Parameters.apiVersion0
|
|
1598
|
-
],
|
|
1599
|
-
headerParameters: [
|
|
1600
|
-
Parameters.acceptLanguage
|
|
1601
|
-
],
|
|
2325
|
+
httpMethod: "GET",
|
|
1602
2326
|
responses: {
|
|
1603
2327
|
200: {
|
|
1604
2328
|
bodyMapper: Mappers.VirtualMachineListResult
|
|
1605
|
-
},
|
|
1606
|
-
default: {
|
|
1607
|
-
bodyMapper: Mappers.CloudError
|
|
1608
2329
|
}
|
|
1609
2330
|
},
|
|
2331
|
+
queryParameters: [Parameters.apiVersion],
|
|
2332
|
+
urlParameters: [
|
|
2333
|
+
Parameters.$host,
|
|
2334
|
+
Parameters.resourceGroupName,
|
|
2335
|
+
Parameters.subscriptionId,
|
|
2336
|
+
Parameters.nextLink
|
|
2337
|
+
],
|
|
2338
|
+
headerParameters: [Parameters.accept],
|
|
1610
2339
|
serializer
|
|
1611
2340
|
};
|
|
1612
|
-
|
|
1613
|
-
const listAllNextOperationSpec: msRest.OperationSpec = {
|
|
1614
|
-
httpMethod: "GET",
|
|
1615
|
-
baseUrl: "https://management.azure.com",
|
|
2341
|
+
const listAllNextOperationSpec: coreClient.OperationSpec = {
|
|
1616
2342
|
path: "{nextLink}",
|
|
1617
|
-
|
|
1618
|
-
Parameters.nextPageLink
|
|
1619
|
-
],
|
|
1620
|
-
queryParameters: [
|
|
1621
|
-
Parameters.apiVersion0,
|
|
1622
|
-
Parameters.statusOnly
|
|
1623
|
-
],
|
|
1624
|
-
headerParameters: [
|
|
1625
|
-
Parameters.acceptLanguage
|
|
1626
|
-
],
|
|
2343
|
+
httpMethod: "GET",
|
|
1627
2344
|
responses: {
|
|
1628
2345
|
200: {
|
|
1629
2346
|
bodyMapper: Mappers.VirtualMachineListResult
|
|
1630
|
-
},
|
|
1631
|
-
default: {
|
|
1632
|
-
bodyMapper: Mappers.CloudError
|
|
1633
2347
|
}
|
|
1634
2348
|
},
|
|
2349
|
+
queryParameters: [Parameters.apiVersion, Parameters.statusOnly],
|
|
2350
|
+
urlParameters: [
|
|
2351
|
+
Parameters.$host,
|
|
2352
|
+
Parameters.subscriptionId,
|
|
2353
|
+
Parameters.nextLink
|
|
2354
|
+
],
|
|
2355
|
+
headerParameters: [Parameters.accept],
|
|
1635
2356
|
serializer
|
|
1636
2357
|
};
|