@azure/arm-scvmm 1.0.0-alpha.20220428.4
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 +15 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +6535 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsGetSample.js +31 -0
- package/dist-esm/samples-dev/availabilitySetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js +32 -0
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/cloudsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsGetSample.js +31 -0
- package/dist-esm/samples-dev/cloudsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudsUpdateSample.js +32 -0
- package/dist-esm/samples-dev/cloudsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/inventoryItemsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js +34 -0
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/inventoryItemsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsGetSample.js +32 -0
- package/dist-esm/samples-dev/inventoryItemsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.js +45 -0
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js +36 -0
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +42 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js +33 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js +33 -0
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +33 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +48 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js +31 -0
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +31 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js +32 -0
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersDeleteSample.js +31 -0
- package/dist-esm/samples-dev/vmmServersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersGetSample.js +31 -0
- package/dist-esm/samples-dev/vmmServersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/vmmServersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/vmmServersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vmmServersUpdateSample.js +32 -0
- package/dist-esm/samples-dev/vmmServersUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1484 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +61 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +64 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +2248 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +31 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +224 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilitySets.d.ts +107 -0
- package/dist-esm/src/operations/availabilitySets.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilitySets.js +508 -0
- package/dist-esm/src/operations/availabilitySets.js.map +1 -0
- package/dist-esm/src/operations/clouds.d.ts +107 -0
- package/dist-esm/src/operations/clouds.d.ts.map +1 -0
- package/dist-esm/src/operations/clouds.js +509 -0
- package/dist-esm/src/operations/clouds.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +9 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +16 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/inventoryItems.d.ts +62 -0
- package/dist-esm/src/operations/inventoryItems.d.ts.map +1 -0
- package/dist-esm/src/operations/inventoryItems.js +234 -0
- package/dist-esm/src/operations/inventoryItems.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts +107 -0
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineTemplates.js +509 -0
- package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +191 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +955 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts +107 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.js +509 -0
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -0
- package/dist-esm/src/operations/vmmServers.d.ts +107 -0
- package/dist-esm/src/operations/vmmServers.d.ts.map +1 -0
- package/dist-esm/src/operations/vmmServers.js +509 -0
- package/dist-esm/src/operations/vmmServers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.js +9 -0
- package/dist-esm/src/operationsInterfaces/availabilitySets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clouds.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/clouds.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clouds.js +9 -0
- package/dist-esm/src/operationsInterfaces/clouds.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +16 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/inventoryItems.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/inventoryItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/inventoryItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/inventoryItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +155 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vmmServers.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/vmmServers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vmmServers.js +9 -0
- package/dist-esm/src/operationsInterfaces/vmmServers.js.map +1 -0
- package/dist-esm/src/scvmm.d.ts +26 -0
- package/dist-esm/src/scvmm.d.ts.map +1 -0
- package/dist-esm/src/scvmm.js +77 -0
- package/dist-esm/src/scvmm.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-scvmm.api.md +1194 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1690 -0
- package/src/models/mappers.ts +2337 -0
- package/src/models/parameters.ts +272 -0
- package/src/operations/availabilitySets.ts +682 -0
- package/src/operations/clouds.ts +679 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/inventoryItems.ts +321 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/virtualMachineTemplates.ts +683 -0
- package/src/operations/virtualMachines.ts +1327 -0
- package/src/operations/virtualNetworks.ts +683 -0
- package/src/operations/vmmServers.ts +682 -0
- package/src/operationsInterfaces/availabilitySets.ts +139 -0
- package/src/operationsInterfaces/clouds.ts +136 -0
- package/src/operationsInterfaces/index.ts +16 -0
- package/src/operationsInterfaces/inventoryItems.ts +73 -0
- package/src/operationsInterfaces/operations.ts +25 -0
- package/src/operationsInterfaces/virtualMachineTemplates.ts +139 -0
- package/src/operationsInterfaces/virtualMachines.ts +277 -0
- package/src/operationsInterfaces/virtualNetworks.ts +139 -0
- package/src/operationsInterfaces/vmmServers.ts +139 -0
- package/src/scvmm.ts +133 -0
- package/tsconfig.json +33 -0
- package/types/arm-scvmm.d.ts +2229 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { AvailabilitySets } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { Scvmm } from "../scvmm";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
AvailabilitySet,
|
|
19
|
+
AvailabilitySetsListByResourceGroupNextOptionalParams,
|
|
20
|
+
AvailabilitySetsListByResourceGroupOptionalParams,
|
|
21
|
+
AvailabilitySetsListBySubscriptionNextOptionalParams,
|
|
22
|
+
AvailabilitySetsListBySubscriptionOptionalParams,
|
|
23
|
+
AvailabilitySetsGetOptionalParams,
|
|
24
|
+
AvailabilitySetsGetResponse,
|
|
25
|
+
AvailabilitySetsCreateOrUpdateOptionalParams,
|
|
26
|
+
AvailabilitySetsCreateOrUpdateResponse,
|
|
27
|
+
AvailabilitySetsDeleteOptionalParams,
|
|
28
|
+
ResourcePatch,
|
|
29
|
+
AvailabilitySetsUpdateOptionalParams,
|
|
30
|
+
AvailabilitySetsUpdateResponse,
|
|
31
|
+
AvailabilitySetsListByResourceGroupResponse,
|
|
32
|
+
AvailabilitySetsListBySubscriptionResponse,
|
|
33
|
+
AvailabilitySetsListByResourceGroupNextResponse,
|
|
34
|
+
AvailabilitySetsListBySubscriptionNextResponse
|
|
35
|
+
} from "../models";
|
|
36
|
+
|
|
37
|
+
/// <reference lib="esnext.asynciterable" />
|
|
38
|
+
/** Class containing AvailabilitySets operations. */
|
|
39
|
+
export class AvailabilitySetsImpl implements AvailabilitySets {
|
|
40
|
+
private readonly client: Scvmm;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initialize a new instance of the class AvailabilitySets class.
|
|
44
|
+
* @param client Reference to the service client
|
|
45
|
+
*/
|
|
46
|
+
constructor(client: Scvmm) {
|
|
47
|
+
this.client = client;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* List of AvailabilitySets in a resource group.
|
|
52
|
+
* @param resourceGroupName The name of the resource group.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public listByResourceGroup(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
58
|
+
): PagedAsyncIterableIterator<AvailabilitySet> {
|
|
59
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private async *listByResourceGroupPagingPage(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
76
|
+
): AsyncIterableIterator<AvailabilitySet[]> {
|
|
77
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
let continuationToken = result.nextLink;
|
|
80
|
+
while (continuationToken) {
|
|
81
|
+
result = await this._listByResourceGroupNext(
|
|
82
|
+
resourceGroupName,
|
|
83
|
+
continuationToken,
|
|
84
|
+
options
|
|
85
|
+
);
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private async *listByResourceGroupPagingAll(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
options?: AvailabilitySetsListByResourceGroupOptionalParams
|
|
94
|
+
): AsyncIterableIterator<AvailabilitySet> {
|
|
95
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
options
|
|
98
|
+
)) {
|
|
99
|
+
yield* page;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* List of AvailabilitySets in a subscription.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
public listBySubscription(
|
|
108
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams
|
|
109
|
+
): PagedAsyncIterableIterator<AvailabilitySet> {
|
|
110
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
111
|
+
return {
|
|
112
|
+
next() {
|
|
113
|
+
return iter.next();
|
|
114
|
+
},
|
|
115
|
+
[Symbol.asyncIterator]() {
|
|
116
|
+
return this;
|
|
117
|
+
},
|
|
118
|
+
byPage: () => {
|
|
119
|
+
return this.listBySubscriptionPagingPage(options);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private async *listBySubscriptionPagingPage(
|
|
125
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams
|
|
126
|
+
): AsyncIterableIterator<AvailabilitySet[]> {
|
|
127
|
+
let result = await this._listBySubscription(options);
|
|
128
|
+
yield result.value || [];
|
|
129
|
+
let continuationToken = result.nextLink;
|
|
130
|
+
while (continuationToken) {
|
|
131
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
132
|
+
continuationToken = result.nextLink;
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private async *listBySubscriptionPagingAll(
|
|
138
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams
|
|
139
|
+
): AsyncIterableIterator<AvailabilitySet> {
|
|
140
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
141
|
+
yield* page;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Implements AvailabilitySet GET method.
|
|
147
|
+
* @param resourceGroupName The name of the resource group.
|
|
148
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
149
|
+
* @param options The options parameters.
|
|
150
|
+
*/
|
|
151
|
+
get(
|
|
152
|
+
resourceGroupName: string,
|
|
153
|
+
availabilitySetName: string,
|
|
154
|
+
options?: AvailabilitySetsGetOptionalParams
|
|
155
|
+
): Promise<AvailabilitySetsGetResponse> {
|
|
156
|
+
return this.client.sendOperationRequest(
|
|
157
|
+
{ resourceGroupName, availabilitySetName, options },
|
|
158
|
+
getOperationSpec
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Onboards the ScVmm availability set as an Azure resource.
|
|
164
|
+
* @param resourceGroupName The name of the resource group.
|
|
165
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
166
|
+
* @param body Request payload.
|
|
167
|
+
* @param options The options parameters.
|
|
168
|
+
*/
|
|
169
|
+
async beginCreateOrUpdate(
|
|
170
|
+
resourceGroupName: string,
|
|
171
|
+
availabilitySetName: string,
|
|
172
|
+
body: AvailabilitySet,
|
|
173
|
+
options?: AvailabilitySetsCreateOrUpdateOptionalParams
|
|
174
|
+
): Promise<
|
|
175
|
+
PollerLike<
|
|
176
|
+
PollOperationState<AvailabilitySetsCreateOrUpdateResponse>,
|
|
177
|
+
AvailabilitySetsCreateOrUpdateResponse
|
|
178
|
+
>
|
|
179
|
+
> {
|
|
180
|
+
const directSendOperation = async (
|
|
181
|
+
args: coreClient.OperationArguments,
|
|
182
|
+
spec: coreClient.OperationSpec
|
|
183
|
+
): Promise<AvailabilitySetsCreateOrUpdateResponse> => {
|
|
184
|
+
return this.client.sendOperationRequest(args, spec);
|
|
185
|
+
};
|
|
186
|
+
const sendOperation = async (
|
|
187
|
+
args: coreClient.OperationArguments,
|
|
188
|
+
spec: coreClient.OperationSpec
|
|
189
|
+
) => {
|
|
190
|
+
let currentRawResponse:
|
|
191
|
+
| coreClient.FullOperationResponse
|
|
192
|
+
| undefined = undefined;
|
|
193
|
+
const providedCallback = args.options?.onResponse;
|
|
194
|
+
const callback: coreClient.RawResponseCallback = (
|
|
195
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
196
|
+
flatResponse: unknown
|
|
197
|
+
) => {
|
|
198
|
+
currentRawResponse = rawResponse;
|
|
199
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
200
|
+
};
|
|
201
|
+
const updatedArgs = {
|
|
202
|
+
...args,
|
|
203
|
+
options: {
|
|
204
|
+
...args.options,
|
|
205
|
+
onResponse: callback
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
209
|
+
return {
|
|
210
|
+
flatResponse,
|
|
211
|
+
rawResponse: {
|
|
212
|
+
statusCode: currentRawResponse!.status,
|
|
213
|
+
body: currentRawResponse!.parsedBody,
|
|
214
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const lro = new LroImpl(
|
|
220
|
+
sendOperation,
|
|
221
|
+
{ resourceGroupName, availabilitySetName, body, options },
|
|
222
|
+
createOrUpdateOperationSpec
|
|
223
|
+
);
|
|
224
|
+
const poller = new LroEngine(lro, {
|
|
225
|
+
resumeFrom: options?.resumeFrom,
|
|
226
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
227
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
228
|
+
});
|
|
229
|
+
await poller.poll();
|
|
230
|
+
return poller;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Onboards the ScVmm availability set as an Azure resource.
|
|
235
|
+
* @param resourceGroupName The name of the resource group.
|
|
236
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
237
|
+
* @param body Request payload.
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
async beginCreateOrUpdateAndWait(
|
|
241
|
+
resourceGroupName: string,
|
|
242
|
+
availabilitySetName: string,
|
|
243
|
+
body: AvailabilitySet,
|
|
244
|
+
options?: AvailabilitySetsCreateOrUpdateOptionalParams
|
|
245
|
+
): Promise<AvailabilitySetsCreateOrUpdateResponse> {
|
|
246
|
+
const poller = await this.beginCreateOrUpdate(
|
|
247
|
+
resourceGroupName,
|
|
248
|
+
availabilitySetName,
|
|
249
|
+
body,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
return poller.pollUntilDone();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Deregisters the ScVmm availability set from Azure.
|
|
257
|
+
* @param resourceGroupName The name of the resource group.
|
|
258
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
259
|
+
* @param options The options parameters.
|
|
260
|
+
*/
|
|
261
|
+
async beginDelete(
|
|
262
|
+
resourceGroupName: string,
|
|
263
|
+
availabilitySetName: string,
|
|
264
|
+
options?: AvailabilitySetsDeleteOptionalParams
|
|
265
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
266
|
+
const directSendOperation = async (
|
|
267
|
+
args: coreClient.OperationArguments,
|
|
268
|
+
spec: coreClient.OperationSpec
|
|
269
|
+
): Promise<void> => {
|
|
270
|
+
return this.client.sendOperationRequest(args, spec);
|
|
271
|
+
};
|
|
272
|
+
const sendOperation = async (
|
|
273
|
+
args: coreClient.OperationArguments,
|
|
274
|
+
spec: coreClient.OperationSpec
|
|
275
|
+
) => {
|
|
276
|
+
let currentRawResponse:
|
|
277
|
+
| coreClient.FullOperationResponse
|
|
278
|
+
| undefined = undefined;
|
|
279
|
+
const providedCallback = args.options?.onResponse;
|
|
280
|
+
const callback: coreClient.RawResponseCallback = (
|
|
281
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
282
|
+
flatResponse: unknown
|
|
283
|
+
) => {
|
|
284
|
+
currentRawResponse = rawResponse;
|
|
285
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
286
|
+
};
|
|
287
|
+
const updatedArgs = {
|
|
288
|
+
...args,
|
|
289
|
+
options: {
|
|
290
|
+
...args.options,
|
|
291
|
+
onResponse: callback
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
295
|
+
return {
|
|
296
|
+
flatResponse,
|
|
297
|
+
rawResponse: {
|
|
298
|
+
statusCode: currentRawResponse!.status,
|
|
299
|
+
body: currentRawResponse!.parsedBody,
|
|
300
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
const lro = new LroImpl(
|
|
306
|
+
sendOperation,
|
|
307
|
+
{ resourceGroupName, availabilitySetName, options },
|
|
308
|
+
deleteOperationSpec
|
|
309
|
+
);
|
|
310
|
+
const poller = new LroEngine(lro, {
|
|
311
|
+
resumeFrom: options?.resumeFrom,
|
|
312
|
+
intervalInMs: options?.updateIntervalInMs
|
|
313
|
+
});
|
|
314
|
+
await poller.poll();
|
|
315
|
+
return poller;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Deregisters the ScVmm availability set from Azure.
|
|
320
|
+
* @param resourceGroupName The name of the resource group.
|
|
321
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
322
|
+
* @param options The options parameters.
|
|
323
|
+
*/
|
|
324
|
+
async beginDeleteAndWait(
|
|
325
|
+
resourceGroupName: string,
|
|
326
|
+
availabilitySetName: string,
|
|
327
|
+
options?: AvailabilitySetsDeleteOptionalParams
|
|
328
|
+
): Promise<void> {
|
|
329
|
+
const poller = await this.beginDelete(
|
|
330
|
+
resourceGroupName,
|
|
331
|
+
availabilitySetName,
|
|
332
|
+
options
|
|
333
|
+
);
|
|
334
|
+
return poller.pollUntilDone();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Updates the AvailabilitySets resource.
|
|
339
|
+
* @param resourceGroupName The name of the resource group.
|
|
340
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
341
|
+
* @param body AvailabilitySets patch payload.
|
|
342
|
+
* @param options The options parameters.
|
|
343
|
+
*/
|
|
344
|
+
async beginUpdate(
|
|
345
|
+
resourceGroupName: string,
|
|
346
|
+
availabilitySetName: string,
|
|
347
|
+
body: ResourcePatch,
|
|
348
|
+
options?: AvailabilitySetsUpdateOptionalParams
|
|
349
|
+
): Promise<
|
|
350
|
+
PollerLike<
|
|
351
|
+
PollOperationState<AvailabilitySetsUpdateResponse>,
|
|
352
|
+
AvailabilitySetsUpdateResponse
|
|
353
|
+
>
|
|
354
|
+
> {
|
|
355
|
+
const directSendOperation = async (
|
|
356
|
+
args: coreClient.OperationArguments,
|
|
357
|
+
spec: coreClient.OperationSpec
|
|
358
|
+
): Promise<AvailabilitySetsUpdateResponse> => {
|
|
359
|
+
return this.client.sendOperationRequest(args, spec);
|
|
360
|
+
};
|
|
361
|
+
const sendOperation = async (
|
|
362
|
+
args: coreClient.OperationArguments,
|
|
363
|
+
spec: coreClient.OperationSpec
|
|
364
|
+
) => {
|
|
365
|
+
let currentRawResponse:
|
|
366
|
+
| coreClient.FullOperationResponse
|
|
367
|
+
| undefined = undefined;
|
|
368
|
+
const providedCallback = args.options?.onResponse;
|
|
369
|
+
const callback: coreClient.RawResponseCallback = (
|
|
370
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
371
|
+
flatResponse: unknown
|
|
372
|
+
) => {
|
|
373
|
+
currentRawResponse = rawResponse;
|
|
374
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
375
|
+
};
|
|
376
|
+
const updatedArgs = {
|
|
377
|
+
...args,
|
|
378
|
+
options: {
|
|
379
|
+
...args.options,
|
|
380
|
+
onResponse: callback
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
384
|
+
return {
|
|
385
|
+
flatResponse,
|
|
386
|
+
rawResponse: {
|
|
387
|
+
statusCode: currentRawResponse!.status,
|
|
388
|
+
body: currentRawResponse!.parsedBody,
|
|
389
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
const lro = new LroImpl(
|
|
395
|
+
sendOperation,
|
|
396
|
+
{ resourceGroupName, availabilitySetName, body, options },
|
|
397
|
+
updateOperationSpec
|
|
398
|
+
);
|
|
399
|
+
const poller = new LroEngine(lro, {
|
|
400
|
+
resumeFrom: options?.resumeFrom,
|
|
401
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
402
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
403
|
+
});
|
|
404
|
+
await poller.poll();
|
|
405
|
+
return poller;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Updates the AvailabilitySets resource.
|
|
410
|
+
* @param resourceGroupName The name of the resource group.
|
|
411
|
+
* @param availabilitySetName Name of the AvailabilitySet.
|
|
412
|
+
* @param body AvailabilitySets patch payload.
|
|
413
|
+
* @param options The options parameters.
|
|
414
|
+
*/
|
|
415
|
+
async beginUpdateAndWait(
|
|
416
|
+
resourceGroupName: string,
|
|
417
|
+
availabilitySetName: string,
|
|
418
|
+
body: ResourcePatch,
|
|
419
|
+
options?: AvailabilitySetsUpdateOptionalParams
|
|
420
|
+
): Promise<AvailabilitySetsUpdateResponse> {
|
|
421
|
+
const poller = await this.beginUpdate(
|
|
422
|
+
resourceGroupName,
|
|
423
|
+
availabilitySetName,
|
|
424
|
+
body,
|
|
425
|
+
options
|
|
426
|
+
);
|
|
427
|
+
return poller.pollUntilDone();
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* List of AvailabilitySets in a resource group.
|
|
432
|
+
* @param resourceGroupName The name of the resource group.
|
|
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.
|
|
447
|
+
* @param options The options parameters.
|
|
448
|
+
*/
|
|
449
|
+
private _listBySubscription(
|
|
450
|
+
options?: AvailabilitySetsListBySubscriptionOptionalParams
|
|
451
|
+
): Promise<AvailabilitySetsListBySubscriptionResponse> {
|
|
452
|
+
return this.client.sendOperationRequest(
|
|
453
|
+
{ options },
|
|
454
|
+
listBySubscriptionOperationSpec
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* ListByResourceGroupNext
|
|
460
|
+
* @param resourceGroupName The name of the resource group.
|
|
461
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
462
|
+
* @param options The options parameters.
|
|
463
|
+
*/
|
|
464
|
+
private _listByResourceGroupNext(
|
|
465
|
+
resourceGroupName: string,
|
|
466
|
+
nextLink: string,
|
|
467
|
+
options?: AvailabilitySetsListByResourceGroupNextOptionalParams
|
|
468
|
+
): Promise<AvailabilitySetsListByResourceGroupNextResponse> {
|
|
469
|
+
return this.client.sendOperationRequest(
|
|
470
|
+
{ 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
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
// Operation Specifications
|
|
491
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
492
|
+
|
|
493
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
494
|
+
path:
|
|
495
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
496
|
+
httpMethod: "GET",
|
|
497
|
+
responses: {
|
|
498
|
+
200: {
|
|
499
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
500
|
+
},
|
|
501
|
+
default: {
|
|
502
|
+
bodyMapper: Mappers.ErrorResponse
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
queryParameters: [Parameters.apiVersion],
|
|
506
|
+
urlParameters: [
|
|
507
|
+
Parameters.$host,
|
|
508
|
+
Parameters.subscriptionId,
|
|
509
|
+
Parameters.resourceGroupName,
|
|
510
|
+
Parameters.availabilitySetName
|
|
511
|
+
],
|
|
512
|
+
headerParameters: [Parameters.accept],
|
|
513
|
+
serializer
|
|
514
|
+
};
|
|
515
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
516
|
+
path:
|
|
517
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
518
|
+
httpMethod: "PUT",
|
|
519
|
+
responses: {
|
|
520
|
+
200: {
|
|
521
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
522
|
+
},
|
|
523
|
+
201: {
|
|
524
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
525
|
+
},
|
|
526
|
+
202: {
|
|
527
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
528
|
+
},
|
|
529
|
+
204: {
|
|
530
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
531
|
+
},
|
|
532
|
+
default: {
|
|
533
|
+
bodyMapper: Mappers.ErrorResponse
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
requestBody: Parameters.body11,
|
|
537
|
+
queryParameters: [Parameters.apiVersion],
|
|
538
|
+
urlParameters: [
|
|
539
|
+
Parameters.$host,
|
|
540
|
+
Parameters.subscriptionId,
|
|
541
|
+
Parameters.resourceGroupName,
|
|
542
|
+
Parameters.availabilitySetName
|
|
543
|
+
],
|
|
544
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
545
|
+
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
|
|
570
|
+
};
|
|
571
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
572
|
+
path:
|
|
573
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}",
|
|
574
|
+
httpMethod: "PATCH",
|
|
575
|
+
responses: {
|
|
576
|
+
200: {
|
|
577
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
578
|
+
},
|
|
579
|
+
201: {
|
|
580
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
581
|
+
},
|
|
582
|
+
202: {
|
|
583
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
584
|
+
},
|
|
585
|
+
204: {
|
|
586
|
+
bodyMapper: Mappers.AvailabilitySet
|
|
587
|
+
},
|
|
588
|
+
default: {
|
|
589
|
+
bodyMapper: Mappers.ErrorResponse
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
requestBody: Parameters.body1,
|
|
593
|
+
queryParameters: [Parameters.apiVersion],
|
|
594
|
+
urlParameters: [
|
|
595
|
+
Parameters.$host,
|
|
596
|
+
Parameters.subscriptionId,
|
|
597
|
+
Parameters.resourceGroupName,
|
|
598
|
+
Parameters.availabilitySetName
|
|
599
|
+
],
|
|
600
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
601
|
+
mediaType: "json",
|
|
602
|
+
serializer
|
|
603
|
+
};
|
|
604
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
605
|
+
path:
|
|
606
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets",
|
|
607
|
+
httpMethod: "GET",
|
|
608
|
+
responses: {
|
|
609
|
+
200: {
|
|
610
|
+
bodyMapper: Mappers.AvailabilitySetListResult
|
|
611
|
+
},
|
|
612
|
+
default: {
|
|
613
|
+
bodyMapper: Mappers.ErrorResponse
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
queryParameters: [Parameters.apiVersion],
|
|
617
|
+
urlParameters: [
|
|
618
|
+
Parameters.$host,
|
|
619
|
+
Parameters.subscriptionId,
|
|
620
|
+
Parameters.resourceGroupName
|
|
621
|
+
],
|
|
622
|
+
headerParameters: [Parameters.accept],
|
|
623
|
+
serializer
|
|
624
|
+
};
|
|
625
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
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 = {
|
|
643
|
+
path: "{nextLink}",
|
|
644
|
+
httpMethod: "GET",
|
|
645
|
+
responses: {
|
|
646
|
+
200: {
|
|
647
|
+
bodyMapper: Mappers.AvailabilitySetListResult
|
|
648
|
+
},
|
|
649
|
+
default: {
|
|
650
|
+
bodyMapper: Mappers.ErrorResponse
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
queryParameters: [Parameters.apiVersion],
|
|
654
|
+
urlParameters: [
|
|
655
|
+
Parameters.$host,
|
|
656
|
+
Parameters.subscriptionId,
|
|
657
|
+
Parameters.resourceGroupName,
|
|
658
|
+
Parameters.nextLink
|
|
659
|
+
],
|
|
660
|
+
headerParameters: [Parameters.accept],
|
|
661
|
+
serializer
|
|
662
|
+
};
|
|
663
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
664
|
+
path: "{nextLink}",
|
|
665
|
+
httpMethod: "GET",
|
|
666
|
+
responses: {
|
|
667
|
+
200: {
|
|
668
|
+
bodyMapper: Mappers.AvailabilitySetListResult
|
|
669
|
+
},
|
|
670
|
+
default: {
|
|
671
|
+
bodyMapper: Mappers.ErrorResponse
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
queryParameters: [Parameters.apiVersion],
|
|
675
|
+
urlParameters: [
|
|
676
|
+
Parameters.$host,
|
|
677
|
+
Parameters.subscriptionId,
|
|
678
|
+
Parameters.nextLink
|
|
679
|
+
],
|
|
680
|
+
headerParameters: [Parameters.accept],
|
|
681
|
+
serializer
|
|
682
|
+
};
|