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