@azure/arm-scvmm 1.0.0-alpha.20240625.1 → 1.0.0-alpha.20240626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -33
- package/LICENSE +1 -1
- package/README.md +13 -13
- package/dist/index.js +4948 -3626
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.js +41 -15
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js +30 -9
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsGetSample.js +28 -9
- package/dist-esm/samples-dev/availabilitySetsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js +41 -7
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js +39 -6
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js +32 -10
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js +40 -15
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsDeleteSample.js +30 -9
- package/dist-esm/samples-dev/cloudsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsGetSample.js +28 -9
- package/dist-esm/samples-dev/cloudsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js +41 -7
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js +39 -6
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsUpdateSample.js +32 -10
- package/dist-esm/samples-dev/cloudsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/guestAgentsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/guestAgentsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/guestAgentsCreateSample.js +63 -0
- package/dist-esm/samples-dev/guestAgentsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/guestAgentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/guestAgentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/guestAgentsDeleteSample.js +52 -0
- package/dist-esm/samples-dev/guestAgentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/guestAgentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/guestAgentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/guestAgentsGetSample.js +52 -0
- package/dist-esm/samples-dev/guestAgentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/guestAgentsListByVirtualMachineInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/guestAgentsListByVirtualMachineInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/guestAgentsListByVirtualMachineInstanceSample.js +84 -0
- package/dist-esm/samples-dev/guestAgentsListByVirtualMachineInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js +35 -12
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js +30 -10
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsGetSample.js +30 -10
- package/dist-esm/samples-dev/inventoryItemsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.js +46 -11
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +40 -7
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineInstancesCreateCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateCheckpointSample.js +57 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateOrUpdateSample.js +127 -0
- package/dist-esm/samples-dev/virtualMachineInstancesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteCheckpointSample.js +56 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteSample.js +58 -0
- package/dist-esm/samples-dev/virtualMachineInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesGetSample.js +52 -0
- package/dist-esm/samples-dev/virtualMachineInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesListSample.js +84 -0
- package/dist-esm/samples-dev/virtualMachineInstancesListSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestartSample.js +52 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestoreCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestoreCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestoreCheckpointSample.js +54 -0
- package/dist-esm/samples-dev/virtualMachineInstancesRestoreCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStartSample.js +52 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStopSample.js +54 -0
- package/dist-esm/samples-dev/virtualMachineInstancesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineInstancesUpdateSample.js +99 -0
- package/dist-esm/samples-dev/virtualMachineInstancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.js +47 -15
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js +29 -8
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +27 -8
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js +41 -7
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js +39 -6
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js +32 -10
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js +39 -15
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js +29 -8
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +27 -8
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js +41 -7
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js +39 -6
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js +30 -10
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasGetSample.js +52 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSample.js +84 -0
- package/dist-esm/samples-dev/vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js +44 -18
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersDeleteSample.js +31 -10
- package/dist-esm/samples-dev/vmmServersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersGetSample.js +29 -10
- package/dist-esm/samples-dev/vmmServersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js +41 -7
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js +39 -6
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersUpdateSample.js +32 -10
- package/dist-esm/samples-dev/vmmServersUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +1299 -838
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +112 -34
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +83 -38
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +2251 -1581
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +25 -20
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +184 -131
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilitySets.d.ts +50 -50
- package/dist-esm/src/operations/availabilitySets.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilitySets.js +218 -187
- package/dist-esm/src/operations/availabilitySets.js.map +1 -1
- package/dist-esm/src/operations/clouds.d.ts +50 -50
- package/dist-esm/src/operations/clouds.d.ts.map +1 -1
- package/dist-esm/src/operations/clouds.js +207 -187
- package/dist-esm/src/operations/clouds.js.map +1 -1
- package/dist-esm/src/operations/guestAgents.d.ts +63 -0
- package/dist-esm/src/operations/guestAgents.d.ts.map +1 -0
- package/dist-esm/src/operations/guestAgents.js +273 -0
- package/dist-esm/src/operations/guestAgents.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +6 -4
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/inventoryItems.d.ts +33 -32
- package/dist-esm/src/operations/inventoryItems.d.ts.map +1 -1
- package/dist-esm/src/operations/inventoryItems.js +95 -85
- package/dist-esm/src/operations/inventoryItems.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +6 -6
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +11 -11
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/virtualMachineInstances.d.ts +164 -0
- package/dist-esm/src/operations/virtualMachineInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineInstances.js +907 -0
- package/dist-esm/src/operations/virtualMachineInstances.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts +44 -44
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.js +205 -175
- package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.d.ts +44 -44
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.js +195 -175
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -1
- package/dist-esm/src/operations/vmInstanceHybridIdentityMetadatas.d.ts +42 -0
- package/dist-esm/src/operations/vmInstanceHybridIdentityMetadatas.d.ts.map +1 -0
- package/dist-esm/src/operations/vmInstanceHybridIdentityMetadatas.js +165 -0
- package/dist-esm/src/operations/vmInstanceHybridIdentityMetadatas.js.map +1 -0
- package/dist-esm/src/operations/vmmServers.d.ts +52 -52
- package/dist-esm/src/operations/vmmServers.d.ts.map +1 -1
- package/dist-esm/src/operations/vmmServers.js +205 -185
- package/dist-esm/src/operations/vmmServers.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts +36 -36
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clouds.d.ts +36 -36
- package/dist-esm/src/operationsInterfaces/clouds.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/guestAgents.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/guestAgents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{virtualMachines.js → guestAgents.js} +1 -1
- package/dist-esm/src/operationsInterfaces/guestAgents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -4
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +6 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/inventoryItems.d.ts +20 -19
- package/dist-esm/src/operationsInterfaces/inventoryItems.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualMachineInstances.d.ts +141 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts +28 -28
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts +28 -28
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/vmInstanceHybridIdentityMetadatas.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/vmInstanceHybridIdentityMetadatas.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vmInstanceHybridIdentityMetadatas.js +9 -0
- package/dist-esm/src/operationsInterfaces/vmInstanceHybridIdentityMetadatas.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vmmServers.d.ts +38 -38
- package/dist-esm/src/operationsInterfaces/vmmServers.d.ts.map +1 -1
- package/dist-esm/src/scVmm.d.ts +30 -0
- package/dist-esm/src/scVmm.d.ts.map +1 -0
- package/dist-esm/src/{scvmm.js → scVmm.js} +25 -25
- package/dist-esm/src/scVmm.js.map +1 -0
- package/dist-esm/test/scvmm_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/scvmm_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/scvmm_operations_test.spec.js +74 -0
- package/dist-esm/test/scvmm_operations_test.spec.js.map +1 -0
- package/package.json +13 -13
- package/review/arm-scvmm.api.md +724 -330
- package/src/index.ts +1 -1
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1487 -909
- package/src/models/mappers.ts +2339 -1570
- package/src/models/parameters.ts +209 -144
- package/src/operations/availabilitySets.ts +339 -310
- package/src/operations/clouds.ts +323 -307
- package/src/operations/guestAgents.ts +365 -0
- package/src/operations/index.ts +6 -4
- package/src/operations/inventoryItems.ts +128 -121
- package/src/operations/operations.ts +25 -25
- package/src/operations/virtualMachineInstances.ts +1239 -0
- package/src/operations/virtualMachineTemplates.ts +320 -292
- package/src/operations/virtualNetworks.ts +310 -292
- package/src/operations/vmInstanceHybridIdentityMetadatas.ts +214 -0
- package/src/operations/vmmServers.ts +327 -308
- package/src/operationsInterfaces/availabilitySets.ts +71 -65
- package/src/operationsInterfaces/clouds.ts +66 -63
- package/src/operationsInterfaces/guestAgents.ts +78 -0
- package/src/operationsInterfaces/index.ts +6 -4
- package/src/operationsInterfaces/inventoryItems.ts +32 -30
- package/src/operationsInterfaces/operations.ts +4 -7
- package/src/operationsInterfaces/virtualMachineInstances.ts +295 -0
- package/src/operationsInterfaces/virtualMachineTemplates.ts +57 -51
- package/src/operationsInterfaces/virtualNetworks.ts +57 -51
- package/src/operationsInterfaces/vmInstanceHybridIdentityMetadatas.ts +38 -0
- package/src/operationsInterfaces/vmmServers.ts +70 -64
- package/src/pagingHelper.ts +1 -1
- package/src/{scvmm.ts → scVmm.ts} +65 -42
- package/types/arm-scvmm.d.ts +1501 -915
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js +0 -44
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +0 -50
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js +0 -41
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +0 -39
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesRestartSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesRestartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js +0 -39
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js +0 -41
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +0 -39
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +0 -41
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +0 -56
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +0 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +0 -191
- package/dist-esm/src/operations/virtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operations/virtualMachines.js +0 -980
- package/dist-esm/src/operations/virtualMachines.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +0 -155
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +0 -1
- package/dist-esm/src/scvmm.d.ts +0 -28
- package/dist-esm/src/scvmm.d.ts.map +0 -1
- package/dist-esm/src/scvmm.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/operations/virtualMachines.ts +0 -1354
- package/src/operationsInterfaces/virtualMachines.ts +0 -277
|
@@ -12,52 +12,55 @@ import { AvailabilitySets } from "../operationsInterfaces";
|
|
|
12
12
|
import * as coreClient from "@azure/core-client";
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
15
|
+
import { ScVmm } from "../scVmm";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
AvailabilitySet,
|
|
20
|
-
AvailabilitySetsListByResourceGroupNextOptionalParams,
|
|
21
|
-
AvailabilitySetsListByResourceGroupOptionalParams,
|
|
22
|
-
AvailabilitySetsListByResourceGroupResponse,
|
|
23
24
|
AvailabilitySetsListBySubscriptionNextOptionalParams,
|
|
24
25
|
AvailabilitySetsListBySubscriptionOptionalParams,
|
|
25
26
|
AvailabilitySetsListBySubscriptionResponse,
|
|
27
|
+
AvailabilitySetsListByResourceGroupNextOptionalParams,
|
|
28
|
+
AvailabilitySetsListByResourceGroupOptionalParams,
|
|
29
|
+
AvailabilitySetsListByResourceGroupResponse,
|
|
26
30
|
AvailabilitySetsGetOptionalParams,
|
|
27
31
|
AvailabilitySetsGetResponse,
|
|
28
32
|
AvailabilitySetsCreateOrUpdateOptionalParams,
|
|
29
33
|
AvailabilitySetsCreateOrUpdateResponse,
|
|
30
|
-
|
|
31
|
-
ResourcePatch,
|
|
34
|
+
AvailabilitySetTagsUpdate,
|
|
32
35
|
AvailabilitySetsUpdateOptionalParams,
|
|
33
36
|
AvailabilitySetsUpdateResponse,
|
|
37
|
+
AvailabilitySetsDeleteOptionalParams,
|
|
38
|
+
AvailabilitySetsDeleteResponse,
|
|
39
|
+
AvailabilitySetsListBySubscriptionNextResponse,
|
|
34
40
|
AvailabilitySetsListByResourceGroupNextResponse,
|
|
35
|
-
AvailabilitySetsListBySubscriptionNextResponse
|
|
36
41
|
} from "../models";
|
|
37
42
|
|
|
38
43
|
/// <reference lib="esnext.asynciterable" />
|
|
39
44
|
/** Class containing AvailabilitySets operations. */
|
|
40
45
|
export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
41
|
-
private readonly client:
|
|
46
|
+
private readonly client: ScVmm;
|
|
42
47
|
|
|
43
48
|
/**
|
|
44
49
|
* Initialize a new instance of the class AvailabilitySets class.
|
|
45
50
|
* @param client Reference to the service client
|
|
46
51
|
*/
|
|
47
|
-
constructor(client:
|
|
52
|
+
constructor(client: ScVmm) {
|
|
48
53
|
this.client = client;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
/**
|
|
52
|
-
* List of AvailabilitySets in a
|
|
53
|
-
* @param resourceGroupName The name of the resource group.
|
|
57
|
+
* List of AvailabilitySets in a subscription.
|
|
54
58
|
* @param options The options parameters.
|
|
55
59
|
*/
|
|
56
|
-
public
|
|
57
|
-
|
|
58
|
-
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
60
|
+
public listBySubscription(
|
|
61
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams,
|
|
59
62
|
): PagedAsyncIterableIterator<AvailabilitySet> {
|
|
60
|
-
const iter = this.
|
|
63
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
61
64
|
return {
|
|
62
65
|
next() {
|
|
63
66
|
return iter.next();
|
|
@@ -69,35 +72,26 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
69
72
|
if (settings?.maxPageSize) {
|
|
70
73
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
74
|
}
|
|
72
|
-
return this.
|
|
73
|
-
|
|
74
|
-
options,
|
|
75
|
-
settings
|
|
76
|
-
);
|
|
77
|
-
}
|
|
75
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
76
|
+
},
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
private async *
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
settings?: PageSettings
|
|
80
|
+
private async *listBySubscriptionPagingPage(
|
|
81
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams,
|
|
82
|
+
settings?: PageSettings,
|
|
85
83
|
): AsyncIterableIterator<AvailabilitySet[]> {
|
|
86
|
-
let result:
|
|
84
|
+
let result: AvailabilitySetsListBySubscriptionResponse;
|
|
87
85
|
let continuationToken = settings?.continuationToken;
|
|
88
86
|
if (!continuationToken) {
|
|
89
|
-
result = await this.
|
|
87
|
+
result = await this._listBySubscription(options);
|
|
90
88
|
let page = result.value || [];
|
|
91
89
|
continuationToken = result.nextLink;
|
|
92
90
|
setContinuationToken(page, continuationToken);
|
|
93
91
|
yield page;
|
|
94
92
|
}
|
|
95
93
|
while (continuationToken) {
|
|
96
|
-
result = await this.
|
|
97
|
-
resourceGroupName,
|
|
98
|
-
continuationToken,
|
|
99
|
-
options
|
|
100
|
-
);
|
|
94
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
101
95
|
continuationToken = result.nextLink;
|
|
102
96
|
let page = result.value || [];
|
|
103
97
|
setContinuationToken(page, continuationToken);
|
|
@@ -105,26 +99,24 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
105
99
|
}
|
|
106
100
|
}
|
|
107
101
|
|
|
108
|
-
private async *
|
|
109
|
-
|
|
110
|
-
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
102
|
+
private async *listBySubscriptionPagingAll(
|
|
103
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams,
|
|
111
104
|
): AsyncIterableIterator<AvailabilitySet> {
|
|
112
|
-
for await (const page of this.
|
|
113
|
-
resourceGroupName,
|
|
114
|
-
options
|
|
115
|
-
)) {
|
|
105
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
116
106
|
yield* page;
|
|
117
107
|
}
|
|
118
108
|
}
|
|
119
109
|
|
|
120
110
|
/**
|
|
121
|
-
* List of AvailabilitySets in a
|
|
111
|
+
* List of AvailabilitySets in a resource group.
|
|
112
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
113
|
* @param options The options parameters.
|
|
123
114
|
*/
|
|
124
|
-
public
|
|
125
|
-
|
|
115
|
+
public listByResourceGroup(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams,
|
|
126
118
|
): PagedAsyncIterableIterator<AvailabilitySet> {
|
|
127
|
-
const iter = this.
|
|
119
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
128
120
|
return {
|
|
129
121
|
next() {
|
|
130
122
|
return iter.next();
|
|
@@ -136,26 +128,35 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
136
128
|
if (settings?.maxPageSize) {
|
|
137
129
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
138
130
|
}
|
|
139
|
-
return this.
|
|
140
|
-
|
|
131
|
+
return this.listByResourceGroupPagingPage(
|
|
132
|
+
resourceGroupName,
|
|
133
|
+
options,
|
|
134
|
+
settings,
|
|
135
|
+
);
|
|
136
|
+
},
|
|
141
137
|
};
|
|
142
138
|
}
|
|
143
139
|
|
|
144
|
-
private async *
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
private async *listByResourceGroupPagingPage(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams,
|
|
143
|
+
settings?: PageSettings,
|
|
147
144
|
): AsyncIterableIterator<AvailabilitySet[]> {
|
|
148
|
-
let result:
|
|
145
|
+
let result: AvailabilitySetsListByResourceGroupResponse;
|
|
149
146
|
let continuationToken = settings?.continuationToken;
|
|
150
147
|
if (!continuationToken) {
|
|
151
|
-
result = await this.
|
|
148
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
152
149
|
let page = result.value || [];
|
|
153
150
|
continuationToken = result.nextLink;
|
|
154
151
|
setContinuationToken(page, continuationToken);
|
|
155
152
|
yield page;
|
|
156
153
|
}
|
|
157
154
|
while (continuationToken) {
|
|
158
|
-
result = await this.
|
|
155
|
+
result = await this._listByResourceGroupNext(
|
|
156
|
+
resourceGroupName,
|
|
157
|
+
continuationToken,
|
|
158
|
+
options,
|
|
159
|
+
);
|
|
159
160
|
continuationToken = result.nextLink;
|
|
160
161
|
let page = result.value || [];
|
|
161
162
|
setContinuationToken(page, continuationToken);
|
|
@@ -163,66 +164,97 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
|
|
166
|
-
private async *
|
|
167
|
-
|
|
167
|
+
private async *listByResourceGroupPagingAll(
|
|
168
|
+
resourceGroupName: string,
|
|
169
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams,
|
|
168
170
|
): AsyncIterableIterator<AvailabilitySet> {
|
|
169
|
-
for await (const page of this.
|
|
171
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
172
|
+
resourceGroupName,
|
|
173
|
+
options,
|
|
174
|
+
)) {
|
|
170
175
|
yield* page;
|
|
171
176
|
}
|
|
172
177
|
}
|
|
173
178
|
|
|
179
|
+
/**
|
|
180
|
+
* List of AvailabilitySets in a subscription.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listBySubscription(
|
|
184
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams,
|
|
185
|
+
): Promise<AvailabilitySetsListBySubscriptionResponse> {
|
|
186
|
+
return this.client.sendOperationRequest(
|
|
187
|
+
{ options },
|
|
188
|
+
listBySubscriptionOperationSpec,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* List of AvailabilitySets in a resource group.
|
|
194
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
private _listByResourceGroup(
|
|
198
|
+
resourceGroupName: string,
|
|
199
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams,
|
|
200
|
+
): Promise<AvailabilitySetsListByResourceGroupResponse> {
|
|
201
|
+
return this.client.sendOperationRequest(
|
|
202
|
+
{ resourceGroupName, options },
|
|
203
|
+
listByResourceGroupOperationSpec,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
174
207
|
/**
|
|
175
208
|
* Implements AvailabilitySet GET method.
|
|
176
|
-
* @param resourceGroupName The name of the resource group.
|
|
177
|
-
* @param
|
|
209
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
210
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
178
211
|
* @param options The options parameters.
|
|
179
212
|
*/
|
|
180
213
|
get(
|
|
181
214
|
resourceGroupName: string,
|
|
182
|
-
|
|
183
|
-
options?: AvailabilitySetsGetOptionalParams
|
|
215
|
+
availabilitySetResourceName: string,
|
|
216
|
+
options?: AvailabilitySetsGetOptionalParams,
|
|
184
217
|
): Promise<AvailabilitySetsGetResponse> {
|
|
185
218
|
return this.client.sendOperationRequest(
|
|
186
|
-
{ resourceGroupName,
|
|
187
|
-
getOperationSpec
|
|
219
|
+
{ resourceGroupName, availabilitySetResourceName, options },
|
|
220
|
+
getOperationSpec,
|
|
188
221
|
);
|
|
189
222
|
}
|
|
190
223
|
|
|
191
224
|
/**
|
|
192
225
|
* Onboards the ScVmm availability set as an Azure resource.
|
|
193
|
-
* @param resourceGroupName The name of the resource group.
|
|
194
|
-
* @param
|
|
195
|
-
* @param
|
|
226
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
227
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
228
|
+
* @param resource Resource create parameters.
|
|
196
229
|
* @param options The options parameters.
|
|
197
230
|
*/
|
|
198
231
|
async beginCreateOrUpdate(
|
|
199
232
|
resourceGroupName: string,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
options?: AvailabilitySetsCreateOrUpdateOptionalParams
|
|
233
|
+
availabilitySetResourceName: string,
|
|
234
|
+
resource: AvailabilitySet,
|
|
235
|
+
options?: AvailabilitySetsCreateOrUpdateOptionalParams,
|
|
203
236
|
): Promise<
|
|
204
|
-
|
|
205
|
-
|
|
237
|
+
SimplePollerLike<
|
|
238
|
+
OperationState<AvailabilitySetsCreateOrUpdateResponse>,
|
|
206
239
|
AvailabilitySetsCreateOrUpdateResponse
|
|
207
240
|
>
|
|
208
241
|
> {
|
|
209
242
|
const directSendOperation = async (
|
|
210
243
|
args: coreClient.OperationArguments,
|
|
211
|
-
spec: coreClient.OperationSpec
|
|
244
|
+
spec: coreClient.OperationSpec,
|
|
212
245
|
): Promise<AvailabilitySetsCreateOrUpdateResponse> => {
|
|
213
246
|
return this.client.sendOperationRequest(args, spec);
|
|
214
247
|
};
|
|
215
|
-
const
|
|
248
|
+
const sendOperationFn = async (
|
|
216
249
|
args: coreClient.OperationArguments,
|
|
217
|
-
spec: coreClient.OperationSpec
|
|
250
|
+
spec: coreClient.OperationSpec,
|
|
218
251
|
) => {
|
|
219
|
-
let currentRawResponse:
|
|
220
|
-
|
|
221
|
-
| undefined = undefined;
|
|
252
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
253
|
+
undefined;
|
|
222
254
|
const providedCallback = args.options?.onResponse;
|
|
223
255
|
const callback: coreClient.RawResponseCallback = (
|
|
224
256
|
rawResponse: coreClient.FullOperationResponse,
|
|
225
|
-
flatResponse: unknown
|
|
257
|
+
flatResponse: unknown,
|
|
226
258
|
) => {
|
|
227
259
|
currentRawResponse = rawResponse;
|
|
228
260
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -231,8 +263,8 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
231
263
|
...args,
|
|
232
264
|
options: {
|
|
233
265
|
...args.options,
|
|
234
|
-
onResponse: callback
|
|
235
|
-
}
|
|
266
|
+
onResponse: callback,
|
|
267
|
+
},
|
|
236
268
|
};
|
|
237
269
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
238
270
|
return {
|
|
@@ -240,20 +272,28 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
240
272
|
rawResponse: {
|
|
241
273
|
statusCode: currentRawResponse!.status,
|
|
242
274
|
body: currentRawResponse!.parsedBody,
|
|
243
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
244
|
-
}
|
|
275
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
276
|
+
},
|
|
245
277
|
};
|
|
246
278
|
};
|
|
247
279
|
|
|
248
|
-
const lro =
|
|
249
|
-
|
|
250
|
-
{
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
280
|
+
const lro = createLroSpec({
|
|
281
|
+
sendOperationFn,
|
|
282
|
+
args: {
|
|
283
|
+
resourceGroupName,
|
|
284
|
+
availabilitySetResourceName,
|
|
285
|
+
resource,
|
|
286
|
+
options,
|
|
287
|
+
},
|
|
288
|
+
spec: createOrUpdateOperationSpec,
|
|
289
|
+
});
|
|
290
|
+
const poller = await createHttpPoller<
|
|
291
|
+
AvailabilitySetsCreateOrUpdateResponse,
|
|
292
|
+
OperationState<AvailabilitySetsCreateOrUpdateResponse>
|
|
293
|
+
>(lro, {
|
|
294
|
+
restoreFrom: options?.resumeFrom,
|
|
255
295
|
intervalInMs: options?.updateIntervalInMs,
|
|
256
|
-
|
|
296
|
+
resourceLocationConfig: "azure-async-operation",
|
|
257
297
|
});
|
|
258
298
|
await poller.poll();
|
|
259
299
|
return poller;
|
|
@@ -261,54 +301,60 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
261
301
|
|
|
262
302
|
/**
|
|
263
303
|
* Onboards the ScVmm availability set as an Azure resource.
|
|
264
|
-
* @param resourceGroupName The name of the resource group.
|
|
265
|
-
* @param
|
|
266
|
-
* @param
|
|
304
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
305
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
306
|
+
* @param resource Resource create parameters.
|
|
267
307
|
* @param options The options parameters.
|
|
268
308
|
*/
|
|
269
309
|
async beginCreateOrUpdateAndWait(
|
|
270
310
|
resourceGroupName: string,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
options?: AvailabilitySetsCreateOrUpdateOptionalParams
|
|
311
|
+
availabilitySetResourceName: string,
|
|
312
|
+
resource: AvailabilitySet,
|
|
313
|
+
options?: AvailabilitySetsCreateOrUpdateOptionalParams,
|
|
274
314
|
): Promise<AvailabilitySetsCreateOrUpdateResponse> {
|
|
275
315
|
const poller = await this.beginCreateOrUpdate(
|
|
276
316
|
resourceGroupName,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
options
|
|
317
|
+
availabilitySetResourceName,
|
|
318
|
+
resource,
|
|
319
|
+
options,
|
|
280
320
|
);
|
|
281
321
|
return poller.pollUntilDone();
|
|
282
322
|
}
|
|
283
323
|
|
|
284
324
|
/**
|
|
285
|
-
*
|
|
286
|
-
* @param resourceGroupName The name of the resource group.
|
|
287
|
-
* @param
|
|
325
|
+
* Updates the AvailabilitySets resource.
|
|
326
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
327
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
328
|
+
* @param properties The resource properties to be updated.
|
|
288
329
|
* @param options The options parameters.
|
|
289
330
|
*/
|
|
290
|
-
async
|
|
331
|
+
async beginUpdate(
|
|
291
332
|
resourceGroupName: string,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
333
|
+
availabilitySetResourceName: string,
|
|
334
|
+
properties: AvailabilitySetTagsUpdate,
|
|
335
|
+
options?: AvailabilitySetsUpdateOptionalParams,
|
|
336
|
+
): Promise<
|
|
337
|
+
SimplePollerLike<
|
|
338
|
+
OperationState<AvailabilitySetsUpdateResponse>,
|
|
339
|
+
AvailabilitySetsUpdateResponse
|
|
340
|
+
>
|
|
341
|
+
> {
|
|
295
342
|
const directSendOperation = async (
|
|
296
343
|
args: coreClient.OperationArguments,
|
|
297
|
-
spec: coreClient.OperationSpec
|
|
298
|
-
): Promise<
|
|
344
|
+
spec: coreClient.OperationSpec,
|
|
345
|
+
): Promise<AvailabilitySetsUpdateResponse> => {
|
|
299
346
|
return this.client.sendOperationRequest(args, spec);
|
|
300
347
|
};
|
|
301
|
-
const
|
|
348
|
+
const sendOperationFn = async (
|
|
302
349
|
args: coreClient.OperationArguments,
|
|
303
|
-
spec: coreClient.OperationSpec
|
|
350
|
+
spec: coreClient.OperationSpec,
|
|
304
351
|
) => {
|
|
305
|
-
let currentRawResponse:
|
|
306
|
-
|
|
307
|
-
| undefined = undefined;
|
|
352
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
353
|
+
undefined;
|
|
308
354
|
const providedCallback = args.options?.onResponse;
|
|
309
355
|
const callback: coreClient.RawResponseCallback = (
|
|
310
356
|
rawResponse: coreClient.FullOperationResponse,
|
|
311
|
-
flatResponse: unknown
|
|
357
|
+
flatResponse: unknown,
|
|
312
358
|
) => {
|
|
313
359
|
currentRawResponse = rawResponse;
|
|
314
360
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -317,8 +363,8 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
317
363
|
...args,
|
|
318
364
|
options: {
|
|
319
365
|
...args.options,
|
|
320
|
-
onResponse: callback
|
|
321
|
-
}
|
|
366
|
+
onResponse: callback,
|
|
367
|
+
},
|
|
322
368
|
};
|
|
323
369
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
324
370
|
return {
|
|
@@ -326,78 +372,87 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
326
372
|
rawResponse: {
|
|
327
373
|
statusCode: currentRawResponse!.status,
|
|
328
374
|
body: currentRawResponse!.parsedBody,
|
|
329
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
330
|
-
}
|
|
375
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
376
|
+
},
|
|
331
377
|
};
|
|
332
378
|
};
|
|
333
379
|
|
|
334
|
-
const lro =
|
|
335
|
-
|
|
336
|
-
{
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
380
|
+
const lro = createLroSpec({
|
|
381
|
+
sendOperationFn,
|
|
382
|
+
args: {
|
|
383
|
+
resourceGroupName,
|
|
384
|
+
availabilitySetResourceName,
|
|
385
|
+
properties,
|
|
386
|
+
options,
|
|
387
|
+
},
|
|
388
|
+
spec: updateOperationSpec,
|
|
389
|
+
});
|
|
390
|
+
const poller = await createHttpPoller<
|
|
391
|
+
AvailabilitySetsUpdateResponse,
|
|
392
|
+
OperationState<AvailabilitySetsUpdateResponse>
|
|
393
|
+
>(lro, {
|
|
394
|
+
restoreFrom: options?.resumeFrom,
|
|
395
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
396
|
+
resourceLocationConfig: "azure-async-operation",
|
|
342
397
|
});
|
|
343
398
|
await poller.poll();
|
|
344
399
|
return poller;
|
|
345
400
|
}
|
|
346
401
|
|
|
347
402
|
/**
|
|
348
|
-
*
|
|
349
|
-
* @param resourceGroupName The name of the resource group.
|
|
350
|
-
* @param
|
|
403
|
+
* Updates the AvailabilitySets resource.
|
|
404
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
405
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
406
|
+
* @param properties The resource properties to be updated.
|
|
351
407
|
* @param options The options parameters.
|
|
352
408
|
*/
|
|
353
|
-
async
|
|
409
|
+
async beginUpdateAndWait(
|
|
354
410
|
resourceGroupName: string,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
411
|
+
availabilitySetResourceName: string,
|
|
412
|
+
properties: AvailabilitySetTagsUpdate,
|
|
413
|
+
options?: AvailabilitySetsUpdateOptionalParams,
|
|
414
|
+
): Promise<AvailabilitySetsUpdateResponse> {
|
|
415
|
+
const poller = await this.beginUpdate(
|
|
359
416
|
resourceGroupName,
|
|
360
|
-
|
|
361
|
-
|
|
417
|
+
availabilitySetResourceName,
|
|
418
|
+
properties,
|
|
419
|
+
options,
|
|
362
420
|
);
|
|
363
421
|
return poller.pollUntilDone();
|
|
364
422
|
}
|
|
365
423
|
|
|
366
424
|
/**
|
|
367
|
-
*
|
|
368
|
-
* @param resourceGroupName The name of the resource group.
|
|
369
|
-
* @param
|
|
370
|
-
* @param body AvailabilitySets patch payload.
|
|
425
|
+
* Deregisters the ScVmm availability set from Azure.
|
|
426
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
427
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
371
428
|
* @param options The options parameters.
|
|
372
429
|
*/
|
|
373
|
-
async
|
|
430
|
+
async beginDelete(
|
|
374
431
|
resourceGroupName: string,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
options?: AvailabilitySetsUpdateOptionalParams
|
|
432
|
+
availabilitySetResourceName: string,
|
|
433
|
+
options?: AvailabilitySetsDeleteOptionalParams,
|
|
378
434
|
): Promise<
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
435
|
+
SimplePollerLike<
|
|
436
|
+
OperationState<AvailabilitySetsDeleteResponse>,
|
|
437
|
+
AvailabilitySetsDeleteResponse
|
|
382
438
|
>
|
|
383
439
|
> {
|
|
384
440
|
const directSendOperation = async (
|
|
385
441
|
args: coreClient.OperationArguments,
|
|
386
|
-
spec: coreClient.OperationSpec
|
|
387
|
-
): Promise<
|
|
442
|
+
spec: coreClient.OperationSpec,
|
|
443
|
+
): Promise<AvailabilitySetsDeleteResponse> => {
|
|
388
444
|
return this.client.sendOperationRequest(args, spec);
|
|
389
445
|
};
|
|
390
|
-
const
|
|
446
|
+
const sendOperationFn = async (
|
|
391
447
|
args: coreClient.OperationArguments,
|
|
392
|
-
spec: coreClient.OperationSpec
|
|
448
|
+
spec: coreClient.OperationSpec,
|
|
393
449
|
) => {
|
|
394
|
-
let currentRawResponse:
|
|
395
|
-
|
|
396
|
-
| undefined = undefined;
|
|
450
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
451
|
+
undefined;
|
|
397
452
|
const providedCallback = args.options?.onResponse;
|
|
398
453
|
const callback: coreClient.RawResponseCallback = (
|
|
399
454
|
rawResponse: coreClient.FullOperationResponse,
|
|
400
|
-
flatResponse: unknown
|
|
455
|
+
flatResponse: unknown,
|
|
401
456
|
) => {
|
|
402
457
|
currentRawResponse = rawResponse;
|
|
403
458
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -406,8 +461,8 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
406
461
|
...args,
|
|
407
462
|
options: {
|
|
408
463
|
...args.options,
|
|
409
|
-
onResponse: callback
|
|
410
|
-
}
|
|
464
|
+
onResponse: callback,
|
|
465
|
+
},
|
|
411
466
|
};
|
|
412
467
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
413
468
|
return {
|
|
@@ -415,295 +470,269 @@ export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
|
415
470
|
rawResponse: {
|
|
416
471
|
statusCode: currentRawResponse!.status,
|
|
417
472
|
body: currentRawResponse!.parsedBody,
|
|
418
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
419
|
-
}
|
|
473
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
474
|
+
},
|
|
420
475
|
};
|
|
421
476
|
};
|
|
422
477
|
|
|
423
|
-
const lro =
|
|
424
|
-
|
|
425
|
-
{ resourceGroupName,
|
|
426
|
-
|
|
427
|
-
);
|
|
428
|
-
const poller =
|
|
429
|
-
|
|
478
|
+
const lro = createLroSpec({
|
|
479
|
+
sendOperationFn,
|
|
480
|
+
args: { resourceGroupName, availabilitySetResourceName, options },
|
|
481
|
+
spec: deleteOperationSpec,
|
|
482
|
+
});
|
|
483
|
+
const poller = await createHttpPoller<
|
|
484
|
+
AvailabilitySetsDeleteResponse,
|
|
485
|
+
OperationState<AvailabilitySetsDeleteResponse>
|
|
486
|
+
>(lro, {
|
|
487
|
+
restoreFrom: options?.resumeFrom,
|
|
430
488
|
intervalInMs: options?.updateIntervalInMs,
|
|
431
|
-
|
|
489
|
+
resourceLocationConfig: "location",
|
|
432
490
|
});
|
|
433
491
|
await poller.poll();
|
|
434
492
|
return poller;
|
|
435
493
|
}
|
|
436
494
|
|
|
437
495
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @param resourceGroupName The name of the resource group.
|
|
440
|
-
* @param
|
|
441
|
-
* @param body AvailabilitySets patch payload.
|
|
496
|
+
* Deregisters the ScVmm availability set from Azure.
|
|
497
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
498
|
+
* @param availabilitySetResourceName Name of the AvailabilitySet.
|
|
442
499
|
* @param options The options parameters.
|
|
443
500
|
*/
|
|
444
|
-
async
|
|
501
|
+
async beginDeleteAndWait(
|
|
445
502
|
resourceGroupName: string,
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
const poller = await this.beginUpdate(
|
|
503
|
+
availabilitySetResourceName: string,
|
|
504
|
+
options?: AvailabilitySetsDeleteOptionalParams,
|
|
505
|
+
): Promise<AvailabilitySetsDeleteResponse> {
|
|
506
|
+
const poller = await this.beginDelete(
|
|
451
507
|
resourceGroupName,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
options
|
|
508
|
+
availabilitySetResourceName,
|
|
509
|
+
options,
|
|
455
510
|
);
|
|
456
511
|
return poller.pollUntilDone();
|
|
457
512
|
}
|
|
458
513
|
|
|
459
514
|
/**
|
|
460
|
-
*
|
|
461
|
-
* @param
|
|
462
|
-
* @param options The options parameters.
|
|
463
|
-
*/
|
|
464
|
-
private _listByResourceGroup(
|
|
465
|
-
resourceGroupName: string,
|
|
466
|
-
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
467
|
-
): Promise<AvailabilitySetsListByResourceGroupResponse> {
|
|
468
|
-
return this.client.sendOperationRequest(
|
|
469
|
-
{ resourceGroupName, options },
|
|
470
|
-
listByResourceGroupOperationSpec
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* List of AvailabilitySets in a subscription.
|
|
515
|
+
* ListBySubscriptionNext
|
|
516
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
476
517
|
* @param options The options parameters.
|
|
477
518
|
*/
|
|
478
|
-
private
|
|
479
|
-
|
|
480
|
-
|
|
519
|
+
private _listBySubscriptionNext(
|
|
520
|
+
nextLink: string,
|
|
521
|
+
options?: AvailabilitySetsListBySubscriptionNextOptionalParams,
|
|
522
|
+
): Promise<AvailabilitySetsListBySubscriptionNextResponse> {
|
|
481
523
|
return this.client.sendOperationRequest(
|
|
482
|
-
{ options },
|
|
483
|
-
|
|
524
|
+
{ nextLink, options },
|
|
525
|
+
listBySubscriptionNextOperationSpec,
|
|
484
526
|
);
|
|
485
527
|
}
|
|
486
528
|
|
|
487
529
|
/**
|
|
488
530
|
* ListByResourceGroupNext
|
|
489
|
-
* @param resourceGroupName The name of the resource group.
|
|
531
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
490
532
|
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
491
533
|
* @param options The options parameters.
|
|
492
534
|
*/
|
|
493
535
|
private _listByResourceGroupNext(
|
|
494
536
|
resourceGroupName: string,
|
|
495
537
|
nextLink: string,
|
|
496
|
-
options?: AvailabilitySetsListByResourceGroupNextOptionalParams
|
|
538
|
+
options?: AvailabilitySetsListByResourceGroupNextOptionalParams,
|
|
497
539
|
): Promise<AvailabilitySetsListByResourceGroupNextResponse> {
|
|
498
540
|
return this.client.sendOperationRequest(
|
|
499
541
|
{ resourceGroupName, nextLink, options },
|
|
500
|
-
listByResourceGroupNextOperationSpec
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* ListBySubscriptionNext
|
|
506
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
507
|
-
* @param options The options parameters.
|
|
508
|
-
*/
|
|
509
|
-
private _listBySubscriptionNext(
|
|
510
|
-
nextLink: string,
|
|
511
|
-
options?: AvailabilitySetsListBySubscriptionNextOptionalParams
|
|
512
|
-
): Promise<AvailabilitySetsListBySubscriptionNextResponse> {
|
|
513
|
-
return this.client.sendOperationRequest(
|
|
514
|
-
{ nextLink, options },
|
|
515
|
-
listBySubscriptionNextOperationSpec
|
|
542
|
+
listByResourceGroupNextOperationSpec,
|
|
516
543
|
);
|
|
517
544
|
}
|
|
518
545
|
}
|
|
519
546
|
// Operation Specifications
|
|
520
547
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
521
548
|
|
|
549
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
550
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/availabilitySets",
|
|
551
|
+
httpMethod: "GET",
|
|
552
|
+
responses: {
|
|
553
|
+
200: {
|
|
554
|
+
bodyMapper: Mappers.AvailabilitySetListResult,
|
|
555
|
+
},
|
|
556
|
+
default: {
|
|
557
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
queryParameters: [Parameters.apiVersion],
|
|
561
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
562
|
+
headerParameters: [Parameters.accept],
|
|
563
|
+
serializer,
|
|
564
|
+
};
|
|
565
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
566
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets",
|
|
567
|
+
httpMethod: "GET",
|
|
568
|
+
responses: {
|
|
569
|
+
200: {
|
|
570
|
+
bodyMapper: Mappers.AvailabilitySetListResult,
|
|
571
|
+
},
|
|
572
|
+
default: {
|
|
573
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
queryParameters: [Parameters.apiVersion],
|
|
577
|
+
urlParameters: [
|
|
578
|
+
Parameters.$host,
|
|
579
|
+
Parameters.subscriptionId,
|
|
580
|
+
Parameters.resourceGroupName,
|
|
581
|
+
],
|
|
582
|
+
headerParameters: [Parameters.accept],
|
|
583
|
+
serializer,
|
|
584
|
+
};
|
|
522
585
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
523
|
-
path:
|
|
524
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
586
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}",
|
|
525
587
|
httpMethod: "GET",
|
|
526
588
|
responses: {
|
|
527
589
|
200: {
|
|
528
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
590
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
529
591
|
},
|
|
530
592
|
default: {
|
|
531
|
-
bodyMapper: Mappers.ErrorResponse
|
|
532
|
-
}
|
|
593
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
594
|
+
},
|
|
533
595
|
},
|
|
534
596
|
queryParameters: [Parameters.apiVersion],
|
|
535
597
|
urlParameters: [
|
|
536
598
|
Parameters.$host,
|
|
537
599
|
Parameters.subscriptionId,
|
|
538
600
|
Parameters.resourceGroupName,
|
|
539
|
-
Parameters.
|
|
601
|
+
Parameters.availabilitySetResourceName,
|
|
540
602
|
],
|
|
541
603
|
headerParameters: [Parameters.accept],
|
|
542
|
-
serializer
|
|
604
|
+
serializer,
|
|
543
605
|
};
|
|
544
606
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
545
|
-
path:
|
|
546
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
607
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}",
|
|
547
608
|
httpMethod: "PUT",
|
|
548
609
|
responses: {
|
|
549
610
|
200: {
|
|
550
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
611
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
551
612
|
},
|
|
552
613
|
201: {
|
|
553
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
614
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
554
615
|
},
|
|
555
616
|
202: {
|
|
556
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
617
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
557
618
|
},
|
|
558
619
|
204: {
|
|
559
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
620
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
560
621
|
},
|
|
561
622
|
default: {
|
|
562
|
-
bodyMapper: Mappers.ErrorResponse
|
|
563
|
-
}
|
|
623
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
624
|
+
},
|
|
564
625
|
},
|
|
565
|
-
requestBody: Parameters.
|
|
626
|
+
requestBody: Parameters.resource2,
|
|
566
627
|
queryParameters: [Parameters.apiVersion],
|
|
567
628
|
urlParameters: [
|
|
568
629
|
Parameters.$host,
|
|
569
630
|
Parameters.subscriptionId,
|
|
570
631
|
Parameters.resourceGroupName,
|
|
571
|
-
Parameters.
|
|
632
|
+
Parameters.availabilitySetResourceName,
|
|
572
633
|
],
|
|
573
634
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
574
635
|
mediaType: "json",
|
|
575
|
-
serializer
|
|
576
|
-
};
|
|
577
|
-
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
578
|
-
path:
|
|
579
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
580
|
-
httpMethod: "DELETE",
|
|
581
|
-
responses: {
|
|
582
|
-
200: {},
|
|
583
|
-
201: {},
|
|
584
|
-
202: {},
|
|
585
|
-
204: {},
|
|
586
|
-
default: {
|
|
587
|
-
bodyMapper: Mappers.ErrorResponse
|
|
588
|
-
}
|
|
589
|
-
},
|
|
590
|
-
queryParameters: [Parameters.apiVersion, Parameters.force],
|
|
591
|
-
urlParameters: [
|
|
592
|
-
Parameters.$host,
|
|
593
|
-
Parameters.subscriptionId,
|
|
594
|
-
Parameters.resourceGroupName,
|
|
595
|
-
Parameters.availabilitySetName
|
|
596
|
-
],
|
|
597
|
-
headerParameters: [Parameters.accept],
|
|
598
|
-
serializer
|
|
636
|
+
serializer,
|
|
599
637
|
};
|
|
600
638
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
601
|
-
path:
|
|
602
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
639
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}",
|
|
603
640
|
httpMethod: "PATCH",
|
|
604
641
|
responses: {
|
|
605
642
|
200: {
|
|
606
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
643
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
607
644
|
},
|
|
608
645
|
201: {
|
|
609
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
646
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
610
647
|
},
|
|
611
648
|
202: {
|
|
612
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
649
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
613
650
|
},
|
|
614
651
|
204: {
|
|
615
|
-
bodyMapper: Mappers.AvailabilitySet
|
|
652
|
+
bodyMapper: Mappers.AvailabilitySet,
|
|
616
653
|
},
|
|
617
654
|
default: {
|
|
618
|
-
bodyMapper: Mappers.ErrorResponse
|
|
619
|
-
}
|
|
655
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
656
|
+
},
|
|
620
657
|
},
|
|
621
|
-
requestBody: Parameters.
|
|
658
|
+
requestBody: Parameters.properties1,
|
|
622
659
|
queryParameters: [Parameters.apiVersion],
|
|
623
660
|
urlParameters: [
|
|
624
661
|
Parameters.$host,
|
|
625
662
|
Parameters.subscriptionId,
|
|
626
663
|
Parameters.resourceGroupName,
|
|
627
|
-
Parameters.
|
|
664
|
+
Parameters.availabilitySetResourceName,
|
|
628
665
|
],
|
|
629
666
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
630
667
|
mediaType: "json",
|
|
631
|
-
serializer
|
|
668
|
+
serializer,
|
|
632
669
|
};
|
|
633
|
-
const
|
|
634
|
-
path:
|
|
635
|
-
|
|
636
|
-
httpMethod: "GET",
|
|
670
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
671
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}",
|
|
672
|
+
httpMethod: "DELETE",
|
|
637
673
|
responses: {
|
|
638
674
|
200: {
|
|
639
|
-
|
|
675
|
+
headersMapper: Mappers.AvailabilitySetsDeleteHeaders,
|
|
676
|
+
},
|
|
677
|
+
201: {
|
|
678
|
+
headersMapper: Mappers.AvailabilitySetsDeleteHeaders,
|
|
679
|
+
},
|
|
680
|
+
202: {
|
|
681
|
+
headersMapper: Mappers.AvailabilitySetsDeleteHeaders,
|
|
682
|
+
},
|
|
683
|
+
204: {
|
|
684
|
+
headersMapper: Mappers.AvailabilitySetsDeleteHeaders,
|
|
640
685
|
},
|
|
641
686
|
default: {
|
|
642
|
-
bodyMapper: Mappers.ErrorResponse
|
|
643
|
-
}
|
|
687
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
688
|
+
},
|
|
644
689
|
},
|
|
645
|
-
queryParameters: [Parameters.apiVersion],
|
|
690
|
+
queryParameters: [Parameters.apiVersion, Parameters.force],
|
|
646
691
|
urlParameters: [
|
|
647
692
|
Parameters.$host,
|
|
648
693
|
Parameters.subscriptionId,
|
|
649
|
-
Parameters.resourceGroupName
|
|
694
|
+
Parameters.resourceGroupName,
|
|
695
|
+
Parameters.availabilitySetResourceName,
|
|
650
696
|
],
|
|
651
697
|
headerParameters: [Parameters.accept],
|
|
652
|
-
serializer
|
|
653
|
-
};
|
|
654
|
-
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
655
|
-
path:
|
|
656
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/availabilitySets",
|
|
657
|
-
httpMethod: "GET",
|
|
658
|
-
responses: {
|
|
659
|
-
200: {
|
|
660
|
-
bodyMapper: Mappers.AvailabilitySetListResult
|
|
661
|
-
},
|
|
662
|
-
default: {
|
|
663
|
-
bodyMapper: Mappers.ErrorResponse
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
queryParameters: [Parameters.apiVersion],
|
|
667
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
668
|
-
headerParameters: [Parameters.accept],
|
|
669
|
-
serializer
|
|
698
|
+
serializer,
|
|
670
699
|
};
|
|
671
|
-
const
|
|
700
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
672
701
|
path: "{nextLink}",
|
|
673
702
|
httpMethod: "GET",
|
|
674
703
|
responses: {
|
|
675
704
|
200: {
|
|
676
|
-
bodyMapper: Mappers.AvailabilitySetListResult
|
|
705
|
+
bodyMapper: Mappers.AvailabilitySetListResult,
|
|
677
706
|
},
|
|
678
707
|
default: {
|
|
679
|
-
bodyMapper: Mappers.ErrorResponse
|
|
680
|
-
}
|
|
708
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
709
|
+
},
|
|
681
710
|
},
|
|
682
711
|
urlParameters: [
|
|
683
712
|
Parameters.$host,
|
|
713
|
+
Parameters.nextLink,
|
|
684
714
|
Parameters.subscriptionId,
|
|
685
|
-
Parameters.resourceGroupName,
|
|
686
|
-
Parameters.nextLink
|
|
687
715
|
],
|
|
688
716
|
headerParameters: [Parameters.accept],
|
|
689
|
-
serializer
|
|
717
|
+
serializer,
|
|
690
718
|
};
|
|
691
|
-
const
|
|
719
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
692
720
|
path: "{nextLink}",
|
|
693
721
|
httpMethod: "GET",
|
|
694
722
|
responses: {
|
|
695
723
|
200: {
|
|
696
|
-
bodyMapper: Mappers.AvailabilitySetListResult
|
|
724
|
+
bodyMapper: Mappers.AvailabilitySetListResult,
|
|
697
725
|
},
|
|
698
726
|
default: {
|
|
699
|
-
bodyMapper: Mappers.ErrorResponse
|
|
700
|
-
}
|
|
727
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
728
|
+
},
|
|
701
729
|
},
|
|
702
730
|
urlParameters: [
|
|
703
731
|
Parameters.$host,
|
|
732
|
+
Parameters.nextLink,
|
|
704
733
|
Parameters.subscriptionId,
|
|
705
|
-
Parameters.
|
|
734
|
+
Parameters.resourceGroupName,
|
|
706
735
|
],
|
|
707
736
|
headerParameters: [Parameters.accept],
|
|
708
|
-
serializer
|
|
737
|
+
serializer,
|
|
709
738
|
};
|