@azure/arm-standbypool 1.0.0-beta.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -2
- package/README.md +1 -8
- package/dist/browser/api/index.d.ts +8 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +10 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +10 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +40 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/index.d.ts +31 -0
- package/dist/browser/api/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/index.js +362 -0
- package/dist/browser/api/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/browser/api/standbyPoolManagementContext.d.ts +11 -0
- package/dist/browser/api/standbyPoolManagementContext.d.ts.map +1 -0
- package/dist/browser/api/standbyPoolManagementContext.js +34 -0
- package/dist/browser/api/standbyPoolManagementContext.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/index.d.ts +31 -0
- package/dist/browser/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/index.js +327 -0
- package/dist/browser/api/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/index.d.ts +14 -0
- package/dist/browser/api/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/index.js +97 -0
- package/dist/browser/api/standbyVirtualMachines/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +7 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +14 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/browser/classic/standbyContainerGroupPools/index.d.ts +30 -0
- package/dist/browser/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/browser/classic/standbyContainerGroupPools/index.js +17 -0
- package/dist/browser/classic/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts +30 -0
- package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/browser/classic/standbyVirtualMachinePools/index.js +17 -0
- package/dist/browser/classic/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/browser/classic/standbyVirtualMachines/index.d.ts +17 -0
- package/dist/browser/classic/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/browser/classic/standbyVirtualMachines/index.js +13 -0
- package/dist/browser/classic/standbyVirtualMachines/index.js.map +1 -0
- package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
- package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/browser/helpers/serializerHelpers.js +24 -0
- package/dist/browser/helpers/serializerHelpers.js.map +1 -0
- package/dist/browser/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +3 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +381 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +164 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/models/options.d.ts +67 -0
- package/dist/browser/models/options.d.ts.map +1 -0
- package/dist/browser/models/options.js +4 -0
- package/dist/browser/models/options.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +106 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/standbyPoolManagementClient.d.ts +29 -0
- package/dist/browser/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist/browser/standbyPoolManagementClient.js +27 -0
- package/dist/browser/standbyPoolManagementClient.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +139 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +78 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +8 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +33 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +10 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +45 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js +121 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts +31 -0
- package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/index.js +382 -0
- package/dist/commonjs/api/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/commonjs/api/standbyPoolManagementContext.d.ts +11 -0
- package/dist/commonjs/api/standbyPoolManagementContext.d.ts.map +1 -0
- package/dist/commonjs/api/standbyPoolManagementContext.js +37 -0
- package/dist/commonjs/api/standbyPoolManagementContext.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js +123 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts +31 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/index.js +347 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/index.d.ts +14 -0
- package/dist/commonjs/api/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/index.js +105 -0
- package/dist/commonjs/api/standbyVirtualMachines/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +7 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +14 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +16 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js +17 -0
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts +30 -0
- package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/commonjs/classic/standbyContainerGroupPools/index.js +21 -0
- package/dist/commonjs/classic/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js +17 -0
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts +30 -0
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.js +21 -0
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts +17 -0
- package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/commonjs/classic/standbyVirtualMachines/index.js +17 -0
- package/dist/commonjs/classic/standbyVirtualMachines/index.js.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.js +27 -0
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +7 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +13 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +381 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +182 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/models/options.d.ts +67 -0
- package/dist/commonjs/models/options.d.ts.map +1 -0
- package/dist/commonjs/models/options.js +5 -0
- package/dist/commonjs/models/options.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +109 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/standbyPoolManagementClient.d.ts +29 -0
- package/dist/commonjs/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist/commonjs/standbyPoolManagementClient.js +31 -0
- package/dist/commonjs/standbyPoolManagementClient.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +142 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +81 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/api/index.d.ts +8 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +10 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +10 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +40 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/index.d.ts +31 -0
- package/dist/esm/api/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/index.js +362 -0
- package/dist/esm/api/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/esm/api/standbyPoolManagementContext.d.ts +11 -0
- package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -0
- package/dist/esm/api/standbyPoolManagementContext.js +34 -0
- package/dist/esm/api/standbyPoolManagementContext.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/index.d.ts +31 -0
- package/dist/esm/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/index.js +327 -0
- package/dist/esm/api/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/index.d.ts +14 -0
- package/dist/esm/api/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/index.js +97 -0
- package/dist/esm/api/standbyVirtualMachines/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +7 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +14 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/esm/classic/standbyContainerGroupPools/index.d.ts +30 -0
- package/dist/esm/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/esm/classic/standbyContainerGroupPools/index.js +17 -0
- package/dist/esm/classic/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts +30 -0
- package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/esm/classic/standbyVirtualMachinePools/index.js +17 -0
- package/dist/esm/classic/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/esm/classic/standbyVirtualMachines/index.d.ts +17 -0
- package/dist/esm/classic/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/esm/classic/standbyVirtualMachines/index.js +13 -0
- package/dist/esm/classic/standbyVirtualMachines/index.js.map +1 -0
- package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
- package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/esm/helpers/serializerHelpers.js +24 -0
- package/dist/esm/helpers/serializerHelpers.js.map +1 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +381 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +164 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/models/options.d.ts +67 -0
- package/dist/esm/models/options.d.ts.map +1 -0
- package/dist/esm/models/options.js +4 -0
- package/dist/esm/models/options.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +106 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/standbyPoolManagementClient.d.ts +29 -0
- package/dist/esm/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist/esm/standbyPoolManagementClient.js +27 -0
- package/dist/esm/standbyPoolManagementClient.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +139 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +78 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/index.d.ts +8 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +10 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +10 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +40 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/index.d.ts +31 -0
- package/dist/react-native/api/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/index.js +362 -0
- package/dist/react-native/api/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/react-native/api/standbyPoolManagementContext.d.ts +11 -0
- package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -0
- package/dist/react-native/api/standbyPoolManagementContext.js +34 -0
- package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts +31 -0
- package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/index.js +327 -0
- package/dist/react-native/api/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/index.d.ts +14 -0
- package/dist/react-native/api/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/index.js +97 -0
- package/dist/react-native/api/standbyVirtualMachines/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +7 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +14 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
- package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts +30 -0
- package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
- package/dist/react-native/classic/standbyContainerGroupPools/index.js +17 -0
- package/dist/react-native/classic/standbyContainerGroupPools/index.js.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts +30 -0
- package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachinePools/index.js +17 -0
- package/dist/react-native/classic/standbyVirtualMachinePools/index.js.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachines/index.d.ts +17 -0
- package/dist/react-native/classic/standbyVirtualMachines/index.d.ts.map +1 -0
- package/dist/react-native/classic/standbyVirtualMachines/index.js +13 -0
- package/dist/react-native/classic/standbyVirtualMachines/index.js.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.js +24 -0
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
- package/dist/react-native/index.d.ts +7 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +3 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +381 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +164 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/models/options.d.ts +67 -0
- package/dist/react-native/models/options.d.ts.map +1 -0
- package/dist/react-native/models/options.js +4 -0
- package/dist/react-native/models/options.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +106 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/standbyPoolManagementClient.d.ts +29 -0
- package/dist/react-native/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist/react-native/standbyPoolManagementClient.js +27 -0
- package/dist/react-native/standbyPoolManagementClient.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +139 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +78 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +126 -85
- package/review/arm-standbypool-models.api.md +322 -0
- package/review/arm-standbypool.api.md +120 -224
- package/dist/index.js +0 -2605
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +0 -57
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +0 -39
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +0 -56
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +0 -48
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +0 -39
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +0 -47
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +0 -40
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +0 -55
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.d.ts +0 -11
- package/dist-esm/src/lroImpl.d.ts.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -581
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -62
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -38
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -877
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -16
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -143
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -12
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts +0 -32
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -133
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/standbyContainerGroupPools.d.ts +0 -99
- package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +0 -1
- package/dist-esm/src/operations/standbyContainerGroupPools.js +0 -502
- package/dist-esm/src/operations/standbyContainerGroupPools.js.map +0 -1
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +0 -99
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +0 -1
- package/dist-esm/src/operations/standbyVirtualMachinePools.js +0 -502
- package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +0 -1
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts +0 -47
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operations/standbyVirtualMachines.js +0 -188
- package/dist-esm/src/operations/standbyVirtualMachines.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -12
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts +0 -63
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +0 -9
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +0 -63
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +0 -9
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +0 -21
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +0 -9
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/standbyPoolManagementClient.d.ts +0 -23
- package/dist-esm/src/standbyPoolManagementClient.d.ts.map +0 -1
- package/dist-esm/src/standbyPoolManagementClient.js +0 -103
- package/dist-esm/src/standbyPoolManagementClient.js.map +0 -1
- package/dist-esm/test/standbypool_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/standbypool_operations_test.spec.js +0 -73
- package/dist-esm/test/standbypool_operations_test.spec.js.map +0 -1
- package/src/index.ts +0 -13
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -695
- package/src/models/mappers.ts +0 -947
- package/src/models/parameters.ts +0 -167
- package/src/operations/index.ts +0 -12
- package/src/operations/operations.ts +0 -149
- package/src/operations/standbyContainerGroupPools.ts +0 -650
- package/src/operations/standbyVirtualMachinePools.ts +0 -650
- package/src/operations/standbyVirtualMachines.ts +0 -252
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/standbyContainerGroupPools.ts +0 -127
- package/src/operationsInterfaces/standbyVirtualMachinePools.ts +0 -127
- package/src/operationsInterfaces/standbyVirtualMachines.ts +0 -44
- package/src/pagingHelper.ts +0 -39
- package/src/standbyPoolManagementClient.ts +0 -157
- package/tsconfig.json +0 -33
- package/types/arm-standbypool.d.ts +0 -853
package/dist/index.js
DELETED
|
@@ -1,2605 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
-
* returns a continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link Origin} that the service accepts. */
|
|
70
|
-
exports.KnownOrigin = void 0;
|
|
71
|
-
(function (KnownOrigin) {
|
|
72
|
-
/** User */
|
|
73
|
-
KnownOrigin["User"] = "user";
|
|
74
|
-
/** System */
|
|
75
|
-
KnownOrigin["System"] = "system";
|
|
76
|
-
/** UserSystem */
|
|
77
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
78
|
-
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
79
|
-
/** Known values of {@link ActionType} that the service accepts. */
|
|
80
|
-
exports.KnownActionType = void 0;
|
|
81
|
-
(function (KnownActionType) {
|
|
82
|
-
/** Internal */
|
|
83
|
-
KnownActionType["Internal"] = "Internal";
|
|
84
|
-
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
85
|
-
/** Known values of {@link RefillPolicy} that the service accepts. */
|
|
86
|
-
exports.KnownRefillPolicy = void 0;
|
|
87
|
-
(function (KnownRefillPolicy) {
|
|
88
|
-
/** A refill policy that standby pool is automatically refilled to maintain maxReadyCapacity. */
|
|
89
|
-
KnownRefillPolicy["Always"] = "always";
|
|
90
|
-
})(exports.KnownRefillPolicy || (exports.KnownRefillPolicy = {}));
|
|
91
|
-
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
92
|
-
exports.KnownProvisioningState = void 0;
|
|
93
|
-
(function (KnownProvisioningState) {
|
|
94
|
-
/** Resource has been created. */
|
|
95
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
96
|
-
/** Resource creation failed. */
|
|
97
|
-
KnownProvisioningState["Failed"] = "Failed";
|
|
98
|
-
/** Resource creation was canceled. */
|
|
99
|
-
KnownProvisioningState["Canceled"] = "Canceled";
|
|
100
|
-
/** Resource is being deleted. */
|
|
101
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
|
102
|
-
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
103
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
104
|
-
exports.KnownCreatedByType = void 0;
|
|
105
|
-
(function (KnownCreatedByType) {
|
|
106
|
-
/** User */
|
|
107
|
-
KnownCreatedByType["User"] = "User";
|
|
108
|
-
/** Application */
|
|
109
|
-
KnownCreatedByType["Application"] = "Application";
|
|
110
|
-
/** ManagedIdentity */
|
|
111
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
112
|
-
/** Key */
|
|
113
|
-
KnownCreatedByType["Key"] = "Key";
|
|
114
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
115
|
-
/** Known values of {@link VirtualMachineState} that the service accepts. */
|
|
116
|
-
exports.KnownVirtualMachineState = void 0;
|
|
117
|
-
(function (KnownVirtualMachineState) {
|
|
118
|
-
/** The virtual machine is up and running. */
|
|
119
|
-
KnownVirtualMachineState["Running"] = "Running";
|
|
120
|
-
/** The virtual machine has released the lease on the underlying hardware and is powered off. */
|
|
121
|
-
KnownVirtualMachineState["Deallocated"] = "Deallocated";
|
|
122
|
-
})(exports.KnownVirtualMachineState || (exports.KnownVirtualMachineState = {}));
|
|
123
|
-
|
|
124
|
-
/*
|
|
125
|
-
* Copyright (c) Microsoft Corporation.
|
|
126
|
-
* Licensed under the MIT License.
|
|
127
|
-
*
|
|
128
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
129
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
130
|
-
*/
|
|
131
|
-
const OperationListResult = {
|
|
132
|
-
type: {
|
|
133
|
-
name: "Composite",
|
|
134
|
-
className: "OperationListResult",
|
|
135
|
-
modelProperties: {
|
|
136
|
-
value: {
|
|
137
|
-
serializedName: "value",
|
|
138
|
-
readOnly: true,
|
|
139
|
-
type: {
|
|
140
|
-
name: "Sequence",
|
|
141
|
-
element: {
|
|
142
|
-
type: {
|
|
143
|
-
name: "Composite",
|
|
144
|
-
className: "Operation",
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
nextLink: {
|
|
150
|
-
serializedName: "nextLink",
|
|
151
|
-
readOnly: true,
|
|
152
|
-
type: {
|
|
153
|
-
name: "String",
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
};
|
|
159
|
-
const Operation = {
|
|
160
|
-
type: {
|
|
161
|
-
name: "Composite",
|
|
162
|
-
className: "Operation",
|
|
163
|
-
modelProperties: {
|
|
164
|
-
name: {
|
|
165
|
-
serializedName: "name",
|
|
166
|
-
readOnly: true,
|
|
167
|
-
type: {
|
|
168
|
-
name: "String",
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
isDataAction: {
|
|
172
|
-
serializedName: "isDataAction",
|
|
173
|
-
readOnly: true,
|
|
174
|
-
type: {
|
|
175
|
-
name: "Boolean",
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
display: {
|
|
179
|
-
serializedName: "display",
|
|
180
|
-
type: {
|
|
181
|
-
name: "Composite",
|
|
182
|
-
className: "OperationDisplay",
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
origin: {
|
|
186
|
-
serializedName: "origin",
|
|
187
|
-
readOnly: true,
|
|
188
|
-
type: {
|
|
189
|
-
name: "String",
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
actionType: {
|
|
193
|
-
serializedName: "actionType",
|
|
194
|
-
readOnly: true,
|
|
195
|
-
type: {
|
|
196
|
-
name: "String",
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
};
|
|
202
|
-
const OperationDisplay = {
|
|
203
|
-
type: {
|
|
204
|
-
name: "Composite",
|
|
205
|
-
className: "OperationDisplay",
|
|
206
|
-
modelProperties: {
|
|
207
|
-
provider: {
|
|
208
|
-
serializedName: "provider",
|
|
209
|
-
readOnly: true,
|
|
210
|
-
type: {
|
|
211
|
-
name: "String",
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
resource: {
|
|
215
|
-
serializedName: "resource",
|
|
216
|
-
readOnly: true,
|
|
217
|
-
type: {
|
|
218
|
-
name: "String",
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
operation: {
|
|
222
|
-
serializedName: "operation",
|
|
223
|
-
readOnly: true,
|
|
224
|
-
type: {
|
|
225
|
-
name: "String",
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
description: {
|
|
229
|
-
serializedName: "description",
|
|
230
|
-
readOnly: true,
|
|
231
|
-
type: {
|
|
232
|
-
name: "String",
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
};
|
|
238
|
-
const ErrorResponse = {
|
|
239
|
-
type: {
|
|
240
|
-
name: "Composite",
|
|
241
|
-
className: "ErrorResponse",
|
|
242
|
-
modelProperties: {
|
|
243
|
-
error: {
|
|
244
|
-
serializedName: "error",
|
|
245
|
-
type: {
|
|
246
|
-
name: "Composite",
|
|
247
|
-
className: "ErrorDetail",
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
};
|
|
253
|
-
const ErrorDetail = {
|
|
254
|
-
type: {
|
|
255
|
-
name: "Composite",
|
|
256
|
-
className: "ErrorDetail",
|
|
257
|
-
modelProperties: {
|
|
258
|
-
code: {
|
|
259
|
-
serializedName: "code",
|
|
260
|
-
readOnly: true,
|
|
261
|
-
type: {
|
|
262
|
-
name: "String",
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
message: {
|
|
266
|
-
serializedName: "message",
|
|
267
|
-
readOnly: true,
|
|
268
|
-
type: {
|
|
269
|
-
name: "String",
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
target: {
|
|
273
|
-
serializedName: "target",
|
|
274
|
-
readOnly: true,
|
|
275
|
-
type: {
|
|
276
|
-
name: "String",
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
details: {
|
|
280
|
-
serializedName: "details",
|
|
281
|
-
readOnly: true,
|
|
282
|
-
type: {
|
|
283
|
-
name: "Sequence",
|
|
284
|
-
element: {
|
|
285
|
-
type: {
|
|
286
|
-
name: "Composite",
|
|
287
|
-
className: "ErrorDetail",
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
additionalInfo: {
|
|
293
|
-
serializedName: "additionalInfo",
|
|
294
|
-
readOnly: true,
|
|
295
|
-
type: {
|
|
296
|
-
name: "Sequence",
|
|
297
|
-
element: {
|
|
298
|
-
type: {
|
|
299
|
-
name: "Composite",
|
|
300
|
-
className: "ErrorAdditionalInfo",
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
};
|
|
308
|
-
const ErrorAdditionalInfo = {
|
|
309
|
-
type: {
|
|
310
|
-
name: "Composite",
|
|
311
|
-
className: "ErrorAdditionalInfo",
|
|
312
|
-
modelProperties: {
|
|
313
|
-
type: {
|
|
314
|
-
serializedName: "type",
|
|
315
|
-
readOnly: true,
|
|
316
|
-
type: {
|
|
317
|
-
name: "String",
|
|
318
|
-
},
|
|
319
|
-
},
|
|
320
|
-
info: {
|
|
321
|
-
serializedName: "info",
|
|
322
|
-
readOnly: true,
|
|
323
|
-
type: {
|
|
324
|
-
name: "Dictionary",
|
|
325
|
-
value: { type: { name: "any" } },
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
const StandbyContainerGroupPoolResourceListResult = {
|
|
332
|
-
type: {
|
|
333
|
-
name: "Composite",
|
|
334
|
-
className: "StandbyContainerGroupPoolResourceListResult",
|
|
335
|
-
modelProperties: {
|
|
336
|
-
value: {
|
|
337
|
-
serializedName: "value",
|
|
338
|
-
required: true,
|
|
339
|
-
type: {
|
|
340
|
-
name: "Sequence",
|
|
341
|
-
element: {
|
|
342
|
-
type: {
|
|
343
|
-
name: "Composite",
|
|
344
|
-
className: "StandbyContainerGroupPoolResource",
|
|
345
|
-
},
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
nextLink: {
|
|
350
|
-
serializedName: "nextLink",
|
|
351
|
-
type: {
|
|
352
|
-
name: "String",
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
};
|
|
358
|
-
const StandbyContainerGroupPoolResourceProperties = {
|
|
359
|
-
type: {
|
|
360
|
-
name: "Composite",
|
|
361
|
-
className: "StandbyContainerGroupPoolResourceProperties",
|
|
362
|
-
modelProperties: {
|
|
363
|
-
elasticityProfile: {
|
|
364
|
-
serializedName: "elasticityProfile",
|
|
365
|
-
type: {
|
|
366
|
-
name: "Composite",
|
|
367
|
-
className: "StandbyContainerGroupPoolElasticityProfile",
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
containerGroupProperties: {
|
|
371
|
-
serializedName: "containerGroupProperties",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Composite",
|
|
374
|
-
className: "ContainerGroupProperties",
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
provisioningState: {
|
|
378
|
-
serializedName: "provisioningState",
|
|
379
|
-
readOnly: true,
|
|
380
|
-
type: {
|
|
381
|
-
name: "String",
|
|
382
|
-
},
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
};
|
|
387
|
-
const StandbyContainerGroupPoolElasticityProfile = {
|
|
388
|
-
type: {
|
|
389
|
-
name: "Composite",
|
|
390
|
-
className: "StandbyContainerGroupPoolElasticityProfile",
|
|
391
|
-
modelProperties: {
|
|
392
|
-
maxReadyCapacity: {
|
|
393
|
-
constraints: {
|
|
394
|
-
InclusiveMaximum: 2000,
|
|
395
|
-
InclusiveMinimum: 0,
|
|
396
|
-
},
|
|
397
|
-
serializedName: "maxReadyCapacity",
|
|
398
|
-
required: true,
|
|
399
|
-
type: {
|
|
400
|
-
name: "Number",
|
|
401
|
-
},
|
|
402
|
-
},
|
|
403
|
-
refillPolicy: {
|
|
404
|
-
serializedName: "refillPolicy",
|
|
405
|
-
type: {
|
|
406
|
-
name: "String",
|
|
407
|
-
},
|
|
408
|
-
},
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
};
|
|
412
|
-
const ContainerGroupProperties = {
|
|
413
|
-
type: {
|
|
414
|
-
name: "Composite",
|
|
415
|
-
className: "ContainerGroupProperties",
|
|
416
|
-
modelProperties: {
|
|
417
|
-
containerGroupProfile: {
|
|
418
|
-
serializedName: "containerGroupProfile",
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "ContainerGroupProfile",
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
subnetIds: {
|
|
425
|
-
serializedName: "subnetIds",
|
|
426
|
-
type: {
|
|
427
|
-
name: "Sequence",
|
|
428
|
-
element: {
|
|
429
|
-
type: {
|
|
430
|
-
name: "Composite",
|
|
431
|
-
className: "Subnet",
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
},
|
|
438
|
-
};
|
|
439
|
-
const ContainerGroupProfile = {
|
|
440
|
-
type: {
|
|
441
|
-
name: "Composite",
|
|
442
|
-
className: "ContainerGroupProfile",
|
|
443
|
-
modelProperties: {
|
|
444
|
-
id: {
|
|
445
|
-
serializedName: "id",
|
|
446
|
-
required: true,
|
|
447
|
-
type: {
|
|
448
|
-
name: "String",
|
|
449
|
-
},
|
|
450
|
-
},
|
|
451
|
-
revision: {
|
|
452
|
-
serializedName: "revision",
|
|
453
|
-
type: {
|
|
454
|
-
name: "Number",
|
|
455
|
-
},
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
};
|
|
460
|
-
const Subnet = {
|
|
461
|
-
type: {
|
|
462
|
-
name: "Composite",
|
|
463
|
-
className: "Subnet",
|
|
464
|
-
modelProperties: {
|
|
465
|
-
id: {
|
|
466
|
-
serializedName: "id",
|
|
467
|
-
required: true,
|
|
468
|
-
type: {
|
|
469
|
-
name: "String",
|
|
470
|
-
},
|
|
471
|
-
},
|
|
472
|
-
},
|
|
473
|
-
},
|
|
474
|
-
};
|
|
475
|
-
const Resource = {
|
|
476
|
-
type: {
|
|
477
|
-
name: "Composite",
|
|
478
|
-
className: "Resource",
|
|
479
|
-
modelProperties: {
|
|
480
|
-
id: {
|
|
481
|
-
serializedName: "id",
|
|
482
|
-
readOnly: true,
|
|
483
|
-
type: {
|
|
484
|
-
name: "String",
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
name: {
|
|
488
|
-
serializedName: "name",
|
|
489
|
-
readOnly: true,
|
|
490
|
-
type: {
|
|
491
|
-
name: "String",
|
|
492
|
-
},
|
|
493
|
-
},
|
|
494
|
-
type: {
|
|
495
|
-
serializedName: "type",
|
|
496
|
-
readOnly: true,
|
|
497
|
-
type: {
|
|
498
|
-
name: "String",
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
systemData: {
|
|
502
|
-
serializedName: "systemData",
|
|
503
|
-
type: {
|
|
504
|
-
name: "Composite",
|
|
505
|
-
className: "SystemData",
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
},
|
|
509
|
-
},
|
|
510
|
-
};
|
|
511
|
-
const SystemData = {
|
|
512
|
-
type: {
|
|
513
|
-
name: "Composite",
|
|
514
|
-
className: "SystemData",
|
|
515
|
-
modelProperties: {
|
|
516
|
-
createdBy: {
|
|
517
|
-
serializedName: "createdBy",
|
|
518
|
-
type: {
|
|
519
|
-
name: "String",
|
|
520
|
-
},
|
|
521
|
-
},
|
|
522
|
-
createdByType: {
|
|
523
|
-
serializedName: "createdByType",
|
|
524
|
-
type: {
|
|
525
|
-
name: "String",
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
createdAt: {
|
|
529
|
-
serializedName: "createdAt",
|
|
530
|
-
type: {
|
|
531
|
-
name: "DateTime",
|
|
532
|
-
},
|
|
533
|
-
},
|
|
534
|
-
lastModifiedBy: {
|
|
535
|
-
serializedName: "lastModifiedBy",
|
|
536
|
-
type: {
|
|
537
|
-
name: "String",
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
|
-
lastModifiedByType: {
|
|
541
|
-
serializedName: "lastModifiedByType",
|
|
542
|
-
type: {
|
|
543
|
-
name: "String",
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
lastModifiedAt: {
|
|
547
|
-
serializedName: "lastModifiedAt",
|
|
548
|
-
type: {
|
|
549
|
-
name: "DateTime",
|
|
550
|
-
},
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
};
|
|
555
|
-
const StandbyVirtualMachinePoolResourceListResult = {
|
|
556
|
-
type: {
|
|
557
|
-
name: "Composite",
|
|
558
|
-
className: "StandbyVirtualMachinePoolResourceListResult",
|
|
559
|
-
modelProperties: {
|
|
560
|
-
value: {
|
|
561
|
-
serializedName: "value",
|
|
562
|
-
required: true,
|
|
563
|
-
type: {
|
|
564
|
-
name: "Sequence",
|
|
565
|
-
element: {
|
|
566
|
-
type: {
|
|
567
|
-
name: "Composite",
|
|
568
|
-
className: "StandbyVirtualMachinePoolResource",
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
},
|
|
572
|
-
},
|
|
573
|
-
nextLink: {
|
|
574
|
-
serializedName: "nextLink",
|
|
575
|
-
type: {
|
|
576
|
-
name: "String",
|
|
577
|
-
},
|
|
578
|
-
},
|
|
579
|
-
},
|
|
580
|
-
},
|
|
581
|
-
};
|
|
582
|
-
const StandbyVirtualMachinePoolResourceProperties = {
|
|
583
|
-
type: {
|
|
584
|
-
name: "Composite",
|
|
585
|
-
className: "StandbyVirtualMachinePoolResourceProperties",
|
|
586
|
-
modelProperties: {
|
|
587
|
-
elasticityProfile: {
|
|
588
|
-
serializedName: "elasticityProfile",
|
|
589
|
-
type: {
|
|
590
|
-
name: "Composite",
|
|
591
|
-
className: "StandbyVirtualMachinePoolElasticityProfile",
|
|
592
|
-
},
|
|
593
|
-
},
|
|
594
|
-
virtualMachineState: {
|
|
595
|
-
serializedName: "virtualMachineState",
|
|
596
|
-
required: true,
|
|
597
|
-
type: {
|
|
598
|
-
name: "String",
|
|
599
|
-
},
|
|
600
|
-
},
|
|
601
|
-
attachedVirtualMachineScaleSetId: {
|
|
602
|
-
serializedName: "attachedVirtualMachineScaleSetId",
|
|
603
|
-
type: {
|
|
604
|
-
name: "String",
|
|
605
|
-
},
|
|
606
|
-
},
|
|
607
|
-
provisioningState: {
|
|
608
|
-
serializedName: "provisioningState",
|
|
609
|
-
readOnly: true,
|
|
610
|
-
type: {
|
|
611
|
-
name: "String",
|
|
612
|
-
},
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
const StandbyVirtualMachinePoolElasticityProfile = {
|
|
618
|
-
type: {
|
|
619
|
-
name: "Composite",
|
|
620
|
-
className: "StandbyVirtualMachinePoolElasticityProfile",
|
|
621
|
-
modelProperties: {
|
|
622
|
-
maxReadyCapacity: {
|
|
623
|
-
constraints: {
|
|
624
|
-
InclusiveMaximum: 2000,
|
|
625
|
-
InclusiveMinimum: 0,
|
|
626
|
-
},
|
|
627
|
-
serializedName: "maxReadyCapacity",
|
|
628
|
-
required: true,
|
|
629
|
-
type: {
|
|
630
|
-
name: "Number",
|
|
631
|
-
},
|
|
632
|
-
},
|
|
633
|
-
},
|
|
634
|
-
},
|
|
635
|
-
};
|
|
636
|
-
const StandbyContainerGroupPoolResourceUpdate = {
|
|
637
|
-
type: {
|
|
638
|
-
name: "Composite",
|
|
639
|
-
className: "StandbyContainerGroupPoolResourceUpdate",
|
|
640
|
-
modelProperties: {
|
|
641
|
-
tags: {
|
|
642
|
-
serializedName: "tags",
|
|
643
|
-
type: {
|
|
644
|
-
name: "Dictionary",
|
|
645
|
-
value: { type: { name: "String" } },
|
|
646
|
-
},
|
|
647
|
-
},
|
|
648
|
-
properties: {
|
|
649
|
-
serializedName: "properties",
|
|
650
|
-
type: {
|
|
651
|
-
name: "Composite",
|
|
652
|
-
className: "StandbyContainerGroupPoolResourceUpdateProperties",
|
|
653
|
-
},
|
|
654
|
-
},
|
|
655
|
-
},
|
|
656
|
-
},
|
|
657
|
-
};
|
|
658
|
-
const StandbyContainerGroupPoolResourceUpdateProperties = {
|
|
659
|
-
type: {
|
|
660
|
-
name: "Composite",
|
|
661
|
-
className: "StandbyContainerGroupPoolResourceUpdateProperties",
|
|
662
|
-
modelProperties: {
|
|
663
|
-
elasticityProfile: {
|
|
664
|
-
serializedName: "elasticityProfile",
|
|
665
|
-
type: {
|
|
666
|
-
name: "Composite",
|
|
667
|
-
className: "StandbyContainerGroupPoolElasticityProfileUpdate",
|
|
668
|
-
},
|
|
669
|
-
},
|
|
670
|
-
containerGroupProperties: {
|
|
671
|
-
serializedName: "containerGroupProperties",
|
|
672
|
-
type: {
|
|
673
|
-
name: "Composite",
|
|
674
|
-
className: "ContainerGroupPropertiesUpdate",
|
|
675
|
-
},
|
|
676
|
-
},
|
|
677
|
-
},
|
|
678
|
-
},
|
|
679
|
-
};
|
|
680
|
-
const StandbyContainerGroupPoolElasticityProfileUpdate = {
|
|
681
|
-
type: {
|
|
682
|
-
name: "Composite",
|
|
683
|
-
className: "StandbyContainerGroupPoolElasticityProfileUpdate",
|
|
684
|
-
modelProperties: {
|
|
685
|
-
maxReadyCapacity: {
|
|
686
|
-
constraints: {
|
|
687
|
-
InclusiveMaximum: 2000,
|
|
688
|
-
InclusiveMinimum: 0,
|
|
689
|
-
},
|
|
690
|
-
serializedName: "maxReadyCapacity",
|
|
691
|
-
type: {
|
|
692
|
-
name: "Number",
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
refillPolicy: {
|
|
696
|
-
serializedName: "refillPolicy",
|
|
697
|
-
type: {
|
|
698
|
-
name: "String",
|
|
699
|
-
},
|
|
700
|
-
},
|
|
701
|
-
},
|
|
702
|
-
},
|
|
703
|
-
};
|
|
704
|
-
const ContainerGroupPropertiesUpdate = {
|
|
705
|
-
type: {
|
|
706
|
-
name: "Composite",
|
|
707
|
-
className: "ContainerGroupPropertiesUpdate",
|
|
708
|
-
modelProperties: {
|
|
709
|
-
containerGroupProfile: {
|
|
710
|
-
serializedName: "containerGroupProfile",
|
|
711
|
-
type: {
|
|
712
|
-
name: "Composite",
|
|
713
|
-
className: "ContainerGroupProfileUpdate",
|
|
714
|
-
},
|
|
715
|
-
},
|
|
716
|
-
subnetIds: {
|
|
717
|
-
serializedName: "subnetIds",
|
|
718
|
-
type: {
|
|
719
|
-
name: "Sequence",
|
|
720
|
-
element: {
|
|
721
|
-
type: {
|
|
722
|
-
name: "Composite",
|
|
723
|
-
className: "Subnet",
|
|
724
|
-
},
|
|
725
|
-
},
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
},
|
|
729
|
-
},
|
|
730
|
-
};
|
|
731
|
-
const ContainerGroupProfileUpdate = {
|
|
732
|
-
type: {
|
|
733
|
-
name: "Composite",
|
|
734
|
-
className: "ContainerGroupProfileUpdate",
|
|
735
|
-
modelProperties: {
|
|
736
|
-
id: {
|
|
737
|
-
serializedName: "id",
|
|
738
|
-
type: {
|
|
739
|
-
name: "String",
|
|
740
|
-
},
|
|
741
|
-
},
|
|
742
|
-
revision: {
|
|
743
|
-
serializedName: "revision",
|
|
744
|
-
type: {
|
|
745
|
-
name: "Number",
|
|
746
|
-
},
|
|
747
|
-
},
|
|
748
|
-
},
|
|
749
|
-
},
|
|
750
|
-
};
|
|
751
|
-
const StandbyVirtualMachinePoolResourceUpdate = {
|
|
752
|
-
type: {
|
|
753
|
-
name: "Composite",
|
|
754
|
-
className: "StandbyVirtualMachinePoolResourceUpdate",
|
|
755
|
-
modelProperties: {
|
|
756
|
-
tags: {
|
|
757
|
-
serializedName: "tags",
|
|
758
|
-
type: {
|
|
759
|
-
name: "Dictionary",
|
|
760
|
-
value: { type: { name: "String" } },
|
|
761
|
-
},
|
|
762
|
-
},
|
|
763
|
-
properties: {
|
|
764
|
-
serializedName: "properties",
|
|
765
|
-
type: {
|
|
766
|
-
name: "Composite",
|
|
767
|
-
className: "StandbyVirtualMachinePoolResourceUpdateProperties",
|
|
768
|
-
},
|
|
769
|
-
},
|
|
770
|
-
},
|
|
771
|
-
},
|
|
772
|
-
};
|
|
773
|
-
const StandbyVirtualMachinePoolResourceUpdateProperties = {
|
|
774
|
-
type: {
|
|
775
|
-
name: "Composite",
|
|
776
|
-
className: "StandbyVirtualMachinePoolResourceUpdateProperties",
|
|
777
|
-
modelProperties: {
|
|
778
|
-
elasticityProfile: {
|
|
779
|
-
serializedName: "elasticityProfile",
|
|
780
|
-
type: {
|
|
781
|
-
name: "Composite",
|
|
782
|
-
className: "StandbyVirtualMachinePoolElasticityProfileUpdate",
|
|
783
|
-
},
|
|
784
|
-
},
|
|
785
|
-
virtualMachineState: {
|
|
786
|
-
serializedName: "virtualMachineState",
|
|
787
|
-
type: {
|
|
788
|
-
name: "String",
|
|
789
|
-
},
|
|
790
|
-
},
|
|
791
|
-
attachedVirtualMachineScaleSetId: {
|
|
792
|
-
serializedName: "attachedVirtualMachineScaleSetId",
|
|
793
|
-
type: {
|
|
794
|
-
name: "String",
|
|
795
|
-
},
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
},
|
|
799
|
-
};
|
|
800
|
-
const StandbyVirtualMachinePoolElasticityProfileUpdate = {
|
|
801
|
-
type: {
|
|
802
|
-
name: "Composite",
|
|
803
|
-
className: "StandbyVirtualMachinePoolElasticityProfileUpdate",
|
|
804
|
-
modelProperties: {
|
|
805
|
-
maxReadyCapacity: {
|
|
806
|
-
constraints: {
|
|
807
|
-
InclusiveMaximum: 2000,
|
|
808
|
-
InclusiveMinimum: 0,
|
|
809
|
-
},
|
|
810
|
-
serializedName: "maxReadyCapacity",
|
|
811
|
-
type: {
|
|
812
|
-
name: "Number",
|
|
813
|
-
},
|
|
814
|
-
},
|
|
815
|
-
},
|
|
816
|
-
},
|
|
817
|
-
};
|
|
818
|
-
const StandbyVirtualMachineResourceListResult = {
|
|
819
|
-
type: {
|
|
820
|
-
name: "Composite",
|
|
821
|
-
className: "StandbyVirtualMachineResourceListResult",
|
|
822
|
-
modelProperties: {
|
|
823
|
-
value: {
|
|
824
|
-
serializedName: "value",
|
|
825
|
-
required: true,
|
|
826
|
-
type: {
|
|
827
|
-
name: "Sequence",
|
|
828
|
-
element: {
|
|
829
|
-
type: {
|
|
830
|
-
name: "Composite",
|
|
831
|
-
className: "StandbyVirtualMachineResource",
|
|
832
|
-
},
|
|
833
|
-
},
|
|
834
|
-
},
|
|
835
|
-
},
|
|
836
|
-
nextLink: {
|
|
837
|
-
serializedName: "nextLink",
|
|
838
|
-
type: {
|
|
839
|
-
name: "String",
|
|
840
|
-
},
|
|
841
|
-
},
|
|
842
|
-
},
|
|
843
|
-
},
|
|
844
|
-
};
|
|
845
|
-
const StandbyVirtualMachineResourceProperties = {
|
|
846
|
-
type: {
|
|
847
|
-
name: "Composite",
|
|
848
|
-
className: "StandbyVirtualMachineResourceProperties",
|
|
849
|
-
modelProperties: {
|
|
850
|
-
virtualMachineResourceId: {
|
|
851
|
-
serializedName: "virtualMachineResourceId",
|
|
852
|
-
required: true,
|
|
853
|
-
type: {
|
|
854
|
-
name: "String",
|
|
855
|
-
},
|
|
856
|
-
},
|
|
857
|
-
provisioningState: {
|
|
858
|
-
serializedName: "provisioningState",
|
|
859
|
-
readOnly: true,
|
|
860
|
-
type: {
|
|
861
|
-
name: "String",
|
|
862
|
-
},
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
};
|
|
867
|
-
const TrackedResource = {
|
|
868
|
-
type: {
|
|
869
|
-
name: "Composite",
|
|
870
|
-
className: "TrackedResource",
|
|
871
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
872
|
-
serializedName: "tags",
|
|
873
|
-
type: {
|
|
874
|
-
name: "Dictionary",
|
|
875
|
-
value: { type: { name: "String" } },
|
|
876
|
-
},
|
|
877
|
-
}, location: {
|
|
878
|
-
serializedName: "location",
|
|
879
|
-
required: true,
|
|
880
|
-
type: {
|
|
881
|
-
name: "String",
|
|
882
|
-
},
|
|
883
|
-
} }),
|
|
884
|
-
},
|
|
885
|
-
};
|
|
886
|
-
const ProxyResource = {
|
|
887
|
-
type: {
|
|
888
|
-
name: "Composite",
|
|
889
|
-
className: "ProxyResource",
|
|
890
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties),
|
|
891
|
-
},
|
|
892
|
-
};
|
|
893
|
-
const StandbyContainerGroupPoolResource = {
|
|
894
|
-
type: {
|
|
895
|
-
name: "Composite",
|
|
896
|
-
className: "StandbyContainerGroupPoolResource",
|
|
897
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
898
|
-
serializedName: "properties",
|
|
899
|
-
type: {
|
|
900
|
-
name: "Composite",
|
|
901
|
-
className: "StandbyContainerGroupPoolResourceProperties",
|
|
902
|
-
},
|
|
903
|
-
} }),
|
|
904
|
-
},
|
|
905
|
-
};
|
|
906
|
-
const StandbyVirtualMachinePoolResource = {
|
|
907
|
-
type: {
|
|
908
|
-
name: "Composite",
|
|
909
|
-
className: "StandbyVirtualMachinePoolResource",
|
|
910
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
911
|
-
serializedName: "properties",
|
|
912
|
-
type: {
|
|
913
|
-
name: "Composite",
|
|
914
|
-
className: "StandbyVirtualMachinePoolResourceProperties",
|
|
915
|
-
},
|
|
916
|
-
} }),
|
|
917
|
-
},
|
|
918
|
-
};
|
|
919
|
-
const StandbyVirtualMachineResource = {
|
|
920
|
-
type: {
|
|
921
|
-
name: "Composite",
|
|
922
|
-
className: "StandbyVirtualMachineResource",
|
|
923
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
924
|
-
serializedName: "properties",
|
|
925
|
-
type: {
|
|
926
|
-
name: "Composite",
|
|
927
|
-
className: "StandbyVirtualMachineResourceProperties",
|
|
928
|
-
},
|
|
929
|
-
} }),
|
|
930
|
-
},
|
|
931
|
-
};
|
|
932
|
-
const StandbyContainerGroupPoolsCreateOrUpdateHeaders = {
|
|
933
|
-
type: {
|
|
934
|
-
name: "Composite",
|
|
935
|
-
className: "StandbyContainerGroupPoolsCreateOrUpdateHeaders",
|
|
936
|
-
modelProperties: {
|
|
937
|
-
retryAfter: {
|
|
938
|
-
serializedName: "retry-after",
|
|
939
|
-
type: {
|
|
940
|
-
name: "Number",
|
|
941
|
-
},
|
|
942
|
-
},
|
|
943
|
-
},
|
|
944
|
-
},
|
|
945
|
-
};
|
|
946
|
-
const StandbyContainerGroupPoolsDeleteHeaders = {
|
|
947
|
-
type: {
|
|
948
|
-
name: "Composite",
|
|
949
|
-
className: "StandbyContainerGroupPoolsDeleteHeaders",
|
|
950
|
-
modelProperties: {
|
|
951
|
-
location: {
|
|
952
|
-
serializedName: "location",
|
|
953
|
-
type: {
|
|
954
|
-
name: "String",
|
|
955
|
-
},
|
|
956
|
-
},
|
|
957
|
-
retryAfter: {
|
|
958
|
-
serializedName: "retry-after",
|
|
959
|
-
type: {
|
|
960
|
-
name: "Number",
|
|
961
|
-
},
|
|
962
|
-
},
|
|
963
|
-
},
|
|
964
|
-
},
|
|
965
|
-
};
|
|
966
|
-
const StandbyVirtualMachinePoolsCreateOrUpdateHeaders = {
|
|
967
|
-
type: {
|
|
968
|
-
name: "Composite",
|
|
969
|
-
className: "StandbyVirtualMachinePoolsCreateOrUpdateHeaders",
|
|
970
|
-
modelProperties: {
|
|
971
|
-
retryAfter: {
|
|
972
|
-
serializedName: "retry-after",
|
|
973
|
-
type: {
|
|
974
|
-
name: "Number",
|
|
975
|
-
},
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
};
|
|
980
|
-
const StandbyVirtualMachinePoolsDeleteHeaders = {
|
|
981
|
-
type: {
|
|
982
|
-
name: "Composite",
|
|
983
|
-
className: "StandbyVirtualMachinePoolsDeleteHeaders",
|
|
984
|
-
modelProperties: {
|
|
985
|
-
location: {
|
|
986
|
-
serializedName: "location",
|
|
987
|
-
type: {
|
|
988
|
-
name: "String",
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
retryAfter: {
|
|
992
|
-
serializedName: "retry-after",
|
|
993
|
-
type: {
|
|
994
|
-
name: "Number",
|
|
995
|
-
},
|
|
996
|
-
},
|
|
997
|
-
},
|
|
998
|
-
},
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1002
|
-
__proto__: null,
|
|
1003
|
-
ContainerGroupProfile: ContainerGroupProfile,
|
|
1004
|
-
ContainerGroupProfileUpdate: ContainerGroupProfileUpdate,
|
|
1005
|
-
ContainerGroupProperties: ContainerGroupProperties,
|
|
1006
|
-
ContainerGroupPropertiesUpdate: ContainerGroupPropertiesUpdate,
|
|
1007
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1008
|
-
ErrorDetail: ErrorDetail,
|
|
1009
|
-
ErrorResponse: ErrorResponse,
|
|
1010
|
-
Operation: Operation,
|
|
1011
|
-
OperationDisplay: OperationDisplay,
|
|
1012
|
-
OperationListResult: OperationListResult,
|
|
1013
|
-
ProxyResource: ProxyResource,
|
|
1014
|
-
Resource: Resource,
|
|
1015
|
-
StandbyContainerGroupPoolElasticityProfile: StandbyContainerGroupPoolElasticityProfile,
|
|
1016
|
-
StandbyContainerGroupPoolElasticityProfileUpdate: StandbyContainerGroupPoolElasticityProfileUpdate,
|
|
1017
|
-
StandbyContainerGroupPoolResource: StandbyContainerGroupPoolResource,
|
|
1018
|
-
StandbyContainerGroupPoolResourceListResult: StandbyContainerGroupPoolResourceListResult,
|
|
1019
|
-
StandbyContainerGroupPoolResourceProperties: StandbyContainerGroupPoolResourceProperties,
|
|
1020
|
-
StandbyContainerGroupPoolResourceUpdate: StandbyContainerGroupPoolResourceUpdate,
|
|
1021
|
-
StandbyContainerGroupPoolResourceUpdateProperties: StandbyContainerGroupPoolResourceUpdateProperties,
|
|
1022
|
-
StandbyContainerGroupPoolsCreateOrUpdateHeaders: StandbyContainerGroupPoolsCreateOrUpdateHeaders,
|
|
1023
|
-
StandbyContainerGroupPoolsDeleteHeaders: StandbyContainerGroupPoolsDeleteHeaders,
|
|
1024
|
-
StandbyVirtualMachinePoolElasticityProfile: StandbyVirtualMachinePoolElasticityProfile,
|
|
1025
|
-
StandbyVirtualMachinePoolElasticityProfileUpdate: StandbyVirtualMachinePoolElasticityProfileUpdate,
|
|
1026
|
-
StandbyVirtualMachinePoolResource: StandbyVirtualMachinePoolResource,
|
|
1027
|
-
StandbyVirtualMachinePoolResourceListResult: StandbyVirtualMachinePoolResourceListResult,
|
|
1028
|
-
StandbyVirtualMachinePoolResourceProperties: StandbyVirtualMachinePoolResourceProperties,
|
|
1029
|
-
StandbyVirtualMachinePoolResourceUpdate: StandbyVirtualMachinePoolResourceUpdate,
|
|
1030
|
-
StandbyVirtualMachinePoolResourceUpdateProperties: StandbyVirtualMachinePoolResourceUpdateProperties,
|
|
1031
|
-
StandbyVirtualMachinePoolsCreateOrUpdateHeaders: StandbyVirtualMachinePoolsCreateOrUpdateHeaders,
|
|
1032
|
-
StandbyVirtualMachinePoolsDeleteHeaders: StandbyVirtualMachinePoolsDeleteHeaders,
|
|
1033
|
-
StandbyVirtualMachineResource: StandbyVirtualMachineResource,
|
|
1034
|
-
StandbyVirtualMachineResourceListResult: StandbyVirtualMachineResourceListResult,
|
|
1035
|
-
StandbyVirtualMachineResourceProperties: StandbyVirtualMachineResourceProperties,
|
|
1036
|
-
Subnet: Subnet,
|
|
1037
|
-
SystemData: SystemData,
|
|
1038
|
-
TrackedResource: TrackedResource
|
|
1039
|
-
});
|
|
1040
|
-
|
|
1041
|
-
/*
|
|
1042
|
-
* Copyright (c) Microsoft Corporation.
|
|
1043
|
-
* Licensed under the MIT License.
|
|
1044
|
-
*
|
|
1045
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1046
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1047
|
-
*/
|
|
1048
|
-
const accept = {
|
|
1049
|
-
parameterPath: "accept",
|
|
1050
|
-
mapper: {
|
|
1051
|
-
defaultValue: "application/json",
|
|
1052
|
-
isConstant: true,
|
|
1053
|
-
serializedName: "Accept",
|
|
1054
|
-
type: {
|
|
1055
|
-
name: "String",
|
|
1056
|
-
},
|
|
1057
|
-
},
|
|
1058
|
-
};
|
|
1059
|
-
const $host = {
|
|
1060
|
-
parameterPath: "$host",
|
|
1061
|
-
mapper: {
|
|
1062
|
-
serializedName: "$host",
|
|
1063
|
-
required: true,
|
|
1064
|
-
type: {
|
|
1065
|
-
name: "String",
|
|
1066
|
-
},
|
|
1067
|
-
},
|
|
1068
|
-
skipEncoding: true,
|
|
1069
|
-
};
|
|
1070
|
-
const apiVersion = {
|
|
1071
|
-
parameterPath: "apiVersion",
|
|
1072
|
-
mapper: {
|
|
1073
|
-
defaultValue: "2023-12-01-preview",
|
|
1074
|
-
isConstant: true,
|
|
1075
|
-
serializedName: "api-version",
|
|
1076
|
-
type: {
|
|
1077
|
-
name: "String",
|
|
1078
|
-
},
|
|
1079
|
-
},
|
|
1080
|
-
};
|
|
1081
|
-
const nextLink = {
|
|
1082
|
-
parameterPath: "nextLink",
|
|
1083
|
-
mapper: {
|
|
1084
|
-
serializedName: "nextLink",
|
|
1085
|
-
required: true,
|
|
1086
|
-
type: {
|
|
1087
|
-
name: "String",
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1090
|
-
skipEncoding: true,
|
|
1091
|
-
};
|
|
1092
|
-
const subscriptionId = {
|
|
1093
|
-
parameterPath: "subscriptionId",
|
|
1094
|
-
mapper: {
|
|
1095
|
-
serializedName: "subscriptionId",
|
|
1096
|
-
required: true,
|
|
1097
|
-
type: {
|
|
1098
|
-
name: "Uuid",
|
|
1099
|
-
},
|
|
1100
|
-
},
|
|
1101
|
-
};
|
|
1102
|
-
const resourceGroupName = {
|
|
1103
|
-
parameterPath: "resourceGroupName",
|
|
1104
|
-
mapper: {
|
|
1105
|
-
constraints: {
|
|
1106
|
-
MaxLength: 90,
|
|
1107
|
-
MinLength: 1,
|
|
1108
|
-
},
|
|
1109
|
-
serializedName: "resourceGroupName",
|
|
1110
|
-
required: true,
|
|
1111
|
-
type: {
|
|
1112
|
-
name: "String",
|
|
1113
|
-
},
|
|
1114
|
-
},
|
|
1115
|
-
};
|
|
1116
|
-
const standbyContainerGroupPoolName = {
|
|
1117
|
-
parameterPath: "standbyContainerGroupPoolName",
|
|
1118
|
-
mapper: {
|
|
1119
|
-
constraints: {
|
|
1120
|
-
Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"),
|
|
1121
|
-
},
|
|
1122
|
-
serializedName: "standbyContainerGroupPoolName",
|
|
1123
|
-
required: true,
|
|
1124
|
-
type: {
|
|
1125
|
-
name: "String",
|
|
1126
|
-
},
|
|
1127
|
-
},
|
|
1128
|
-
};
|
|
1129
|
-
const contentType = {
|
|
1130
|
-
parameterPath: ["options", "contentType"],
|
|
1131
|
-
mapper: {
|
|
1132
|
-
defaultValue: "application/json",
|
|
1133
|
-
isConstant: true,
|
|
1134
|
-
serializedName: "Content-Type",
|
|
1135
|
-
type: {
|
|
1136
|
-
name: "String",
|
|
1137
|
-
},
|
|
1138
|
-
},
|
|
1139
|
-
};
|
|
1140
|
-
const resource = {
|
|
1141
|
-
parameterPath: "resource",
|
|
1142
|
-
mapper: StandbyContainerGroupPoolResource,
|
|
1143
|
-
};
|
|
1144
|
-
const properties = {
|
|
1145
|
-
parameterPath: "properties",
|
|
1146
|
-
mapper: StandbyContainerGroupPoolResourceUpdate,
|
|
1147
|
-
};
|
|
1148
|
-
const standbyVirtualMachinePoolName = {
|
|
1149
|
-
parameterPath: "standbyVirtualMachinePoolName",
|
|
1150
|
-
mapper: {
|
|
1151
|
-
constraints: {
|
|
1152
|
-
Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"),
|
|
1153
|
-
},
|
|
1154
|
-
serializedName: "standbyVirtualMachinePoolName",
|
|
1155
|
-
required: true,
|
|
1156
|
-
type: {
|
|
1157
|
-
name: "String",
|
|
1158
|
-
},
|
|
1159
|
-
},
|
|
1160
|
-
};
|
|
1161
|
-
const resource1 = {
|
|
1162
|
-
parameterPath: "resource",
|
|
1163
|
-
mapper: StandbyVirtualMachinePoolResource,
|
|
1164
|
-
};
|
|
1165
|
-
const properties1 = {
|
|
1166
|
-
parameterPath: "properties",
|
|
1167
|
-
mapper: StandbyVirtualMachinePoolResourceUpdate,
|
|
1168
|
-
};
|
|
1169
|
-
const standbyVirtualMachineName = {
|
|
1170
|
-
parameterPath: "standbyVirtualMachineName",
|
|
1171
|
-
mapper: {
|
|
1172
|
-
constraints: {
|
|
1173
|
-
Pattern: new RegExp("^[_a-zA-Z0-9-]{3,64}$"),
|
|
1174
|
-
},
|
|
1175
|
-
serializedName: "standbyVirtualMachineName",
|
|
1176
|
-
required: true,
|
|
1177
|
-
type: {
|
|
1178
|
-
name: "String",
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
};
|
|
1182
|
-
|
|
1183
|
-
/*
|
|
1184
|
-
* Copyright (c) Microsoft Corporation.
|
|
1185
|
-
* Licensed under the MIT License.
|
|
1186
|
-
*
|
|
1187
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1188
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1189
|
-
*/
|
|
1190
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1191
|
-
/** Class containing Operations operations. */
|
|
1192
|
-
class OperationsImpl {
|
|
1193
|
-
/**
|
|
1194
|
-
* Initialize a new instance of the class Operations class.
|
|
1195
|
-
* @param client Reference to the service client
|
|
1196
|
-
*/
|
|
1197
|
-
constructor(client) {
|
|
1198
|
-
this.client = client;
|
|
1199
|
-
}
|
|
1200
|
-
/**
|
|
1201
|
-
* List the operations for the provider
|
|
1202
|
-
* @param options The options parameters.
|
|
1203
|
-
*/
|
|
1204
|
-
list(options) {
|
|
1205
|
-
const iter = this.listPagingAll(options);
|
|
1206
|
-
return {
|
|
1207
|
-
next() {
|
|
1208
|
-
return iter.next();
|
|
1209
|
-
},
|
|
1210
|
-
[Symbol.asyncIterator]() {
|
|
1211
|
-
return this;
|
|
1212
|
-
},
|
|
1213
|
-
byPage: (settings) => {
|
|
1214
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1215
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1216
|
-
}
|
|
1217
|
-
return this.listPagingPage(options, settings);
|
|
1218
|
-
},
|
|
1219
|
-
};
|
|
1220
|
-
}
|
|
1221
|
-
listPagingPage(options, settings) {
|
|
1222
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1223
|
-
let result;
|
|
1224
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1225
|
-
if (!continuationToken) {
|
|
1226
|
-
result = yield tslib.__await(this._list(options));
|
|
1227
|
-
let page = result.value || [];
|
|
1228
|
-
continuationToken = result.nextLink;
|
|
1229
|
-
setContinuationToken(page, continuationToken);
|
|
1230
|
-
yield yield tslib.__await(page);
|
|
1231
|
-
}
|
|
1232
|
-
while (continuationToken) {
|
|
1233
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1234
|
-
continuationToken = result.nextLink;
|
|
1235
|
-
let page = result.value || [];
|
|
1236
|
-
setContinuationToken(page, continuationToken);
|
|
1237
|
-
yield yield tslib.__await(page);
|
|
1238
|
-
}
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
listPagingAll(options) {
|
|
1242
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1243
|
-
var _a, e_1, _b, _c;
|
|
1244
|
-
try {
|
|
1245
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1246
|
-
_c = _f.value;
|
|
1247
|
-
_d = false;
|
|
1248
|
-
const page = _c;
|
|
1249
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1253
|
-
finally {
|
|
1254
|
-
try {
|
|
1255
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1256
|
-
}
|
|
1257
|
-
finally { if (e_1) throw e_1.error; }
|
|
1258
|
-
}
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
/**
|
|
1262
|
-
* List the operations for the provider
|
|
1263
|
-
* @param options The options parameters.
|
|
1264
|
-
*/
|
|
1265
|
-
_list(options) {
|
|
1266
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* ListNext
|
|
1270
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1271
|
-
* @param options The options parameters.
|
|
1272
|
-
*/
|
|
1273
|
-
_listNext(nextLink, options) {
|
|
1274
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
// Operation Specifications
|
|
1278
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1279
|
-
const listOperationSpec = {
|
|
1280
|
-
path: "/providers/Microsoft.StandbyPool/operations",
|
|
1281
|
-
httpMethod: "GET",
|
|
1282
|
-
responses: {
|
|
1283
|
-
200: {
|
|
1284
|
-
bodyMapper: OperationListResult,
|
|
1285
|
-
},
|
|
1286
|
-
default: {
|
|
1287
|
-
bodyMapper: ErrorResponse,
|
|
1288
|
-
},
|
|
1289
|
-
},
|
|
1290
|
-
queryParameters: [apiVersion],
|
|
1291
|
-
urlParameters: [$host],
|
|
1292
|
-
headerParameters: [accept],
|
|
1293
|
-
serializer: serializer$3,
|
|
1294
|
-
};
|
|
1295
|
-
const listNextOperationSpec = {
|
|
1296
|
-
path: "{nextLink}",
|
|
1297
|
-
httpMethod: "GET",
|
|
1298
|
-
responses: {
|
|
1299
|
-
200: {
|
|
1300
|
-
bodyMapper: OperationListResult,
|
|
1301
|
-
},
|
|
1302
|
-
default: {
|
|
1303
|
-
bodyMapper: ErrorResponse,
|
|
1304
|
-
},
|
|
1305
|
-
},
|
|
1306
|
-
urlParameters: [$host, nextLink],
|
|
1307
|
-
headerParameters: [accept],
|
|
1308
|
-
serializer: serializer$3,
|
|
1309
|
-
};
|
|
1310
|
-
|
|
1311
|
-
/*
|
|
1312
|
-
* Copyright (c) Microsoft Corporation.
|
|
1313
|
-
* Licensed under the MIT License.
|
|
1314
|
-
*
|
|
1315
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1316
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1317
|
-
*/
|
|
1318
|
-
function createLroSpec(inputs) {
|
|
1319
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
1320
|
-
return {
|
|
1321
|
-
requestMethod: spec.httpMethod,
|
|
1322
|
-
requestPath: spec.path,
|
|
1323
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1324
|
-
sendPollRequest: (path, options) => {
|
|
1325
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1326
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1327
|
-
},
|
|
1328
|
-
};
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
/*
|
|
1332
|
-
* Copyright (c) Microsoft Corporation.
|
|
1333
|
-
* Licensed under the MIT License.
|
|
1334
|
-
*
|
|
1335
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1336
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1337
|
-
*/
|
|
1338
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1339
|
-
/** Class containing StandbyContainerGroupPools operations. */
|
|
1340
|
-
class StandbyContainerGroupPoolsImpl {
|
|
1341
|
-
/**
|
|
1342
|
-
* Initialize a new instance of the class StandbyContainerGroupPools class.
|
|
1343
|
-
* @param client Reference to the service client
|
|
1344
|
-
*/
|
|
1345
|
-
constructor(client) {
|
|
1346
|
-
this.client = client;
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* List StandbyContainerGroupPoolResource resources by subscription ID
|
|
1350
|
-
* @param options The options parameters.
|
|
1351
|
-
*/
|
|
1352
|
-
listBySubscription(options) {
|
|
1353
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1354
|
-
return {
|
|
1355
|
-
next() {
|
|
1356
|
-
return iter.next();
|
|
1357
|
-
},
|
|
1358
|
-
[Symbol.asyncIterator]() {
|
|
1359
|
-
return this;
|
|
1360
|
-
},
|
|
1361
|
-
byPage: (settings) => {
|
|
1362
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1363
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1364
|
-
}
|
|
1365
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1366
|
-
},
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1370
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1371
|
-
let result;
|
|
1372
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1373
|
-
if (!continuationToken) {
|
|
1374
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1375
|
-
let page = result.value || [];
|
|
1376
|
-
continuationToken = result.nextLink;
|
|
1377
|
-
setContinuationToken(page, continuationToken);
|
|
1378
|
-
yield yield tslib.__await(page);
|
|
1379
|
-
}
|
|
1380
|
-
while (continuationToken) {
|
|
1381
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1382
|
-
continuationToken = result.nextLink;
|
|
1383
|
-
let page = result.value || [];
|
|
1384
|
-
setContinuationToken(page, continuationToken);
|
|
1385
|
-
yield yield tslib.__await(page);
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
listBySubscriptionPagingAll(options) {
|
|
1390
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1391
|
-
var _a, e_1, _b, _c;
|
|
1392
|
-
try {
|
|
1393
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1394
|
-
_c = _f.value;
|
|
1395
|
-
_d = false;
|
|
1396
|
-
const page = _c;
|
|
1397
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1401
|
-
finally {
|
|
1402
|
-
try {
|
|
1403
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1404
|
-
}
|
|
1405
|
-
finally { if (e_1) throw e_1.error; }
|
|
1406
|
-
}
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
* List StandbyContainerGroupPoolResource resources by resource group
|
|
1411
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1412
|
-
* @param options The options parameters.
|
|
1413
|
-
*/
|
|
1414
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1415
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1416
|
-
return {
|
|
1417
|
-
next() {
|
|
1418
|
-
return iter.next();
|
|
1419
|
-
},
|
|
1420
|
-
[Symbol.asyncIterator]() {
|
|
1421
|
-
return this;
|
|
1422
|
-
},
|
|
1423
|
-
byPage: (settings) => {
|
|
1424
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1425
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1426
|
-
}
|
|
1427
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1428
|
-
},
|
|
1429
|
-
};
|
|
1430
|
-
}
|
|
1431
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1432
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1433
|
-
let result;
|
|
1434
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1435
|
-
if (!continuationToken) {
|
|
1436
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1437
|
-
let page = result.value || [];
|
|
1438
|
-
continuationToken = result.nextLink;
|
|
1439
|
-
setContinuationToken(page, continuationToken);
|
|
1440
|
-
yield yield tslib.__await(page);
|
|
1441
|
-
}
|
|
1442
|
-
while (continuationToken) {
|
|
1443
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1444
|
-
continuationToken = result.nextLink;
|
|
1445
|
-
let page = result.value || [];
|
|
1446
|
-
setContinuationToken(page, continuationToken);
|
|
1447
|
-
yield yield tslib.__await(page);
|
|
1448
|
-
}
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1452
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1453
|
-
var _a, e_2, _b, _c;
|
|
1454
|
-
try {
|
|
1455
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1456
|
-
_c = _f.value;
|
|
1457
|
-
_d = false;
|
|
1458
|
-
const page = _c;
|
|
1459
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1463
|
-
finally {
|
|
1464
|
-
try {
|
|
1465
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1466
|
-
}
|
|
1467
|
-
finally { if (e_2) throw e_2.error; }
|
|
1468
|
-
}
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
/**
|
|
1472
|
-
* List StandbyContainerGroupPoolResource resources by subscription ID
|
|
1473
|
-
* @param options The options parameters.
|
|
1474
|
-
*/
|
|
1475
|
-
_listBySubscription(options) {
|
|
1476
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
|
1477
|
-
}
|
|
1478
|
-
/**
|
|
1479
|
-
* List StandbyContainerGroupPoolResource resources by resource group
|
|
1480
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1481
|
-
* @param options The options parameters.
|
|
1482
|
-
*/
|
|
1483
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1484
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1485
|
-
}
|
|
1486
|
-
/**
|
|
1487
|
-
* Get a StandbyContainerGroupPoolResource
|
|
1488
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1489
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1490
|
-
* @param options The options parameters.
|
|
1491
|
-
*/
|
|
1492
|
-
get(resourceGroupName, standbyContainerGroupPoolName, options) {
|
|
1493
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyContainerGroupPoolName, options }, getOperationSpec$2);
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* Create a StandbyContainerGroupPoolResource
|
|
1497
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1498
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1499
|
-
* @param resource Resource create parameters.
|
|
1500
|
-
* @param options The options parameters.
|
|
1501
|
-
*/
|
|
1502
|
-
beginCreateOrUpdate(resourceGroupName, standbyContainerGroupPoolName, resource, options) {
|
|
1503
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1504
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1505
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1506
|
-
});
|
|
1507
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1508
|
-
var _a;
|
|
1509
|
-
let currentRawResponse = undefined;
|
|
1510
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1511
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1512
|
-
currentRawResponse = rawResponse;
|
|
1513
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1514
|
-
};
|
|
1515
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1516
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1517
|
-
return {
|
|
1518
|
-
flatResponse,
|
|
1519
|
-
rawResponse: {
|
|
1520
|
-
statusCode: currentRawResponse.status,
|
|
1521
|
-
body: currentRawResponse.parsedBody,
|
|
1522
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
1523
|
-
},
|
|
1524
|
-
};
|
|
1525
|
-
});
|
|
1526
|
-
const lro = createLroSpec({
|
|
1527
|
-
sendOperationFn,
|
|
1528
|
-
args: {
|
|
1529
|
-
resourceGroupName,
|
|
1530
|
-
standbyContainerGroupPoolName,
|
|
1531
|
-
resource,
|
|
1532
|
-
options,
|
|
1533
|
-
},
|
|
1534
|
-
spec: createOrUpdateOperationSpec$1,
|
|
1535
|
-
});
|
|
1536
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1537
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1538
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1539
|
-
resourceLocationConfig: "azure-async-operation",
|
|
1540
|
-
});
|
|
1541
|
-
yield poller.poll();
|
|
1542
|
-
return poller;
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
/**
|
|
1546
|
-
* Create a StandbyContainerGroupPoolResource
|
|
1547
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1548
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1549
|
-
* @param resource Resource create parameters.
|
|
1550
|
-
* @param options The options parameters.
|
|
1551
|
-
*/
|
|
1552
|
-
beginCreateOrUpdateAndWait(resourceGroupName, standbyContainerGroupPoolName, resource, options) {
|
|
1553
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1554
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, standbyContainerGroupPoolName, resource, options);
|
|
1555
|
-
return poller.pollUntilDone();
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* Update a StandbyContainerGroupPoolResource
|
|
1560
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1561
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1562
|
-
* @param properties The resource properties to be updated.
|
|
1563
|
-
* @param options The options parameters.
|
|
1564
|
-
*/
|
|
1565
|
-
update(resourceGroupName, standbyContainerGroupPoolName, properties, options) {
|
|
1566
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyContainerGroupPoolName, properties, options }, updateOperationSpec$1);
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* Delete a StandbyContainerGroupPoolResource
|
|
1570
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1571
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1572
|
-
* @param options The options parameters.
|
|
1573
|
-
*/
|
|
1574
|
-
beginDelete(resourceGroupName, standbyContainerGroupPoolName, options) {
|
|
1575
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1576
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1577
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1578
|
-
});
|
|
1579
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1580
|
-
var _a;
|
|
1581
|
-
let currentRawResponse = undefined;
|
|
1582
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1583
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1584
|
-
currentRawResponse = rawResponse;
|
|
1585
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1586
|
-
};
|
|
1587
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1588
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1589
|
-
return {
|
|
1590
|
-
flatResponse,
|
|
1591
|
-
rawResponse: {
|
|
1592
|
-
statusCode: currentRawResponse.status,
|
|
1593
|
-
body: currentRawResponse.parsedBody,
|
|
1594
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
1595
|
-
},
|
|
1596
|
-
};
|
|
1597
|
-
});
|
|
1598
|
-
const lro = createLroSpec({
|
|
1599
|
-
sendOperationFn,
|
|
1600
|
-
args: { resourceGroupName, standbyContainerGroupPoolName, options },
|
|
1601
|
-
spec: deleteOperationSpec$1,
|
|
1602
|
-
});
|
|
1603
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1604
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1605
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1606
|
-
resourceLocationConfig: "location",
|
|
1607
|
-
});
|
|
1608
|
-
yield poller.poll();
|
|
1609
|
-
return poller;
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
/**
|
|
1613
|
-
* Delete a StandbyContainerGroupPoolResource
|
|
1614
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1615
|
-
* @param standbyContainerGroupPoolName Name of the standby container group pool
|
|
1616
|
-
* @param options The options parameters.
|
|
1617
|
-
*/
|
|
1618
|
-
beginDeleteAndWait(resourceGroupName, standbyContainerGroupPoolName, options) {
|
|
1619
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1620
|
-
const poller = yield this.beginDelete(resourceGroupName, standbyContainerGroupPoolName, options);
|
|
1621
|
-
return poller.pollUntilDone();
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* ListBySubscriptionNext
|
|
1626
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1627
|
-
* @param options The options parameters.
|
|
1628
|
-
*/
|
|
1629
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
1630
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
|
1631
|
-
}
|
|
1632
|
-
/**
|
|
1633
|
-
* ListByResourceGroupNext
|
|
1634
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1635
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1636
|
-
* @param options The options parameters.
|
|
1637
|
-
*/
|
|
1638
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1639
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
// Operation Specifications
|
|
1643
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1644
|
-
const listBySubscriptionOperationSpec$1 = {
|
|
1645
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyContainerGroupPools",
|
|
1646
|
-
httpMethod: "GET",
|
|
1647
|
-
responses: {
|
|
1648
|
-
200: {
|
|
1649
|
-
bodyMapper: StandbyContainerGroupPoolResourceListResult,
|
|
1650
|
-
},
|
|
1651
|
-
default: {
|
|
1652
|
-
bodyMapper: ErrorResponse,
|
|
1653
|
-
},
|
|
1654
|
-
},
|
|
1655
|
-
queryParameters: [apiVersion],
|
|
1656
|
-
urlParameters: [$host, subscriptionId],
|
|
1657
|
-
headerParameters: [accept],
|
|
1658
|
-
serializer: serializer$2,
|
|
1659
|
-
};
|
|
1660
|
-
const listByResourceGroupOperationSpec$1 = {
|
|
1661
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools",
|
|
1662
|
-
httpMethod: "GET",
|
|
1663
|
-
responses: {
|
|
1664
|
-
200: {
|
|
1665
|
-
bodyMapper: StandbyContainerGroupPoolResourceListResult,
|
|
1666
|
-
},
|
|
1667
|
-
default: {
|
|
1668
|
-
bodyMapper: ErrorResponse,
|
|
1669
|
-
},
|
|
1670
|
-
},
|
|
1671
|
-
queryParameters: [apiVersion],
|
|
1672
|
-
urlParameters: [
|
|
1673
|
-
$host,
|
|
1674
|
-
subscriptionId,
|
|
1675
|
-
resourceGroupName,
|
|
1676
|
-
],
|
|
1677
|
-
headerParameters: [accept],
|
|
1678
|
-
serializer: serializer$2,
|
|
1679
|
-
};
|
|
1680
|
-
const getOperationSpec$2 = {
|
|
1681
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}",
|
|
1682
|
-
httpMethod: "GET",
|
|
1683
|
-
responses: {
|
|
1684
|
-
200: {
|
|
1685
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1686
|
-
},
|
|
1687
|
-
default: {
|
|
1688
|
-
bodyMapper: ErrorResponse,
|
|
1689
|
-
},
|
|
1690
|
-
},
|
|
1691
|
-
queryParameters: [apiVersion],
|
|
1692
|
-
urlParameters: [
|
|
1693
|
-
$host,
|
|
1694
|
-
subscriptionId,
|
|
1695
|
-
resourceGroupName,
|
|
1696
|
-
standbyContainerGroupPoolName,
|
|
1697
|
-
],
|
|
1698
|
-
headerParameters: [accept],
|
|
1699
|
-
serializer: serializer$2,
|
|
1700
|
-
};
|
|
1701
|
-
const createOrUpdateOperationSpec$1 = {
|
|
1702
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}",
|
|
1703
|
-
httpMethod: "PUT",
|
|
1704
|
-
responses: {
|
|
1705
|
-
200: {
|
|
1706
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1707
|
-
},
|
|
1708
|
-
201: {
|
|
1709
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1710
|
-
},
|
|
1711
|
-
202: {
|
|
1712
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1713
|
-
},
|
|
1714
|
-
204: {
|
|
1715
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1716
|
-
},
|
|
1717
|
-
default: {
|
|
1718
|
-
bodyMapper: ErrorResponse,
|
|
1719
|
-
},
|
|
1720
|
-
},
|
|
1721
|
-
requestBody: resource,
|
|
1722
|
-
queryParameters: [apiVersion],
|
|
1723
|
-
urlParameters: [
|
|
1724
|
-
$host,
|
|
1725
|
-
subscriptionId,
|
|
1726
|
-
resourceGroupName,
|
|
1727
|
-
standbyContainerGroupPoolName,
|
|
1728
|
-
],
|
|
1729
|
-
headerParameters: [accept, contentType],
|
|
1730
|
-
mediaType: "json",
|
|
1731
|
-
serializer: serializer$2,
|
|
1732
|
-
};
|
|
1733
|
-
const updateOperationSpec$1 = {
|
|
1734
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}",
|
|
1735
|
-
httpMethod: "PATCH",
|
|
1736
|
-
responses: {
|
|
1737
|
-
200: {
|
|
1738
|
-
bodyMapper: StandbyContainerGroupPoolResource,
|
|
1739
|
-
},
|
|
1740
|
-
default: {
|
|
1741
|
-
bodyMapper: ErrorResponse,
|
|
1742
|
-
},
|
|
1743
|
-
},
|
|
1744
|
-
requestBody: properties,
|
|
1745
|
-
queryParameters: [apiVersion],
|
|
1746
|
-
urlParameters: [
|
|
1747
|
-
$host,
|
|
1748
|
-
subscriptionId,
|
|
1749
|
-
resourceGroupName,
|
|
1750
|
-
standbyContainerGroupPoolName,
|
|
1751
|
-
],
|
|
1752
|
-
headerParameters: [accept, contentType],
|
|
1753
|
-
mediaType: "json",
|
|
1754
|
-
serializer: serializer$2,
|
|
1755
|
-
};
|
|
1756
|
-
const deleteOperationSpec$1 = {
|
|
1757
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}",
|
|
1758
|
-
httpMethod: "DELETE",
|
|
1759
|
-
responses: {
|
|
1760
|
-
200: {
|
|
1761
|
-
headersMapper: StandbyContainerGroupPoolsDeleteHeaders,
|
|
1762
|
-
},
|
|
1763
|
-
201: {
|
|
1764
|
-
headersMapper: StandbyContainerGroupPoolsDeleteHeaders,
|
|
1765
|
-
},
|
|
1766
|
-
202: {
|
|
1767
|
-
headersMapper: StandbyContainerGroupPoolsDeleteHeaders,
|
|
1768
|
-
},
|
|
1769
|
-
204: {
|
|
1770
|
-
headersMapper: StandbyContainerGroupPoolsDeleteHeaders,
|
|
1771
|
-
},
|
|
1772
|
-
default: {
|
|
1773
|
-
bodyMapper: ErrorResponse,
|
|
1774
|
-
},
|
|
1775
|
-
},
|
|
1776
|
-
queryParameters: [apiVersion],
|
|
1777
|
-
urlParameters: [
|
|
1778
|
-
$host,
|
|
1779
|
-
subscriptionId,
|
|
1780
|
-
resourceGroupName,
|
|
1781
|
-
standbyContainerGroupPoolName,
|
|
1782
|
-
],
|
|
1783
|
-
headerParameters: [accept],
|
|
1784
|
-
serializer: serializer$2,
|
|
1785
|
-
};
|
|
1786
|
-
const listBySubscriptionNextOperationSpec$1 = {
|
|
1787
|
-
path: "{nextLink}",
|
|
1788
|
-
httpMethod: "GET",
|
|
1789
|
-
responses: {
|
|
1790
|
-
200: {
|
|
1791
|
-
bodyMapper: StandbyContainerGroupPoolResourceListResult,
|
|
1792
|
-
},
|
|
1793
|
-
default: {
|
|
1794
|
-
bodyMapper: ErrorResponse,
|
|
1795
|
-
},
|
|
1796
|
-
},
|
|
1797
|
-
urlParameters: [
|
|
1798
|
-
$host,
|
|
1799
|
-
nextLink,
|
|
1800
|
-
subscriptionId,
|
|
1801
|
-
],
|
|
1802
|
-
headerParameters: [accept],
|
|
1803
|
-
serializer: serializer$2,
|
|
1804
|
-
};
|
|
1805
|
-
const listByResourceGroupNextOperationSpec$1 = {
|
|
1806
|
-
path: "{nextLink}",
|
|
1807
|
-
httpMethod: "GET",
|
|
1808
|
-
responses: {
|
|
1809
|
-
200: {
|
|
1810
|
-
bodyMapper: StandbyContainerGroupPoolResourceListResult,
|
|
1811
|
-
},
|
|
1812
|
-
default: {
|
|
1813
|
-
bodyMapper: ErrorResponse,
|
|
1814
|
-
},
|
|
1815
|
-
},
|
|
1816
|
-
urlParameters: [
|
|
1817
|
-
$host,
|
|
1818
|
-
nextLink,
|
|
1819
|
-
subscriptionId,
|
|
1820
|
-
resourceGroupName,
|
|
1821
|
-
],
|
|
1822
|
-
headerParameters: [accept],
|
|
1823
|
-
serializer: serializer$2,
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
|
-
/*
|
|
1827
|
-
* Copyright (c) Microsoft Corporation.
|
|
1828
|
-
* Licensed under the MIT License.
|
|
1829
|
-
*
|
|
1830
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1831
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1832
|
-
*/
|
|
1833
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1834
|
-
/** Class containing StandbyVirtualMachinePools operations. */
|
|
1835
|
-
class StandbyVirtualMachinePoolsImpl {
|
|
1836
|
-
/**
|
|
1837
|
-
* Initialize a new instance of the class StandbyVirtualMachinePools class.
|
|
1838
|
-
* @param client Reference to the service client
|
|
1839
|
-
*/
|
|
1840
|
-
constructor(client) {
|
|
1841
|
-
this.client = client;
|
|
1842
|
-
}
|
|
1843
|
-
/**
|
|
1844
|
-
* List StandbyVirtualMachinePoolResource resources by subscription ID
|
|
1845
|
-
* @param options The options parameters.
|
|
1846
|
-
*/
|
|
1847
|
-
listBySubscription(options) {
|
|
1848
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1849
|
-
return {
|
|
1850
|
-
next() {
|
|
1851
|
-
return iter.next();
|
|
1852
|
-
},
|
|
1853
|
-
[Symbol.asyncIterator]() {
|
|
1854
|
-
return this;
|
|
1855
|
-
},
|
|
1856
|
-
byPage: (settings) => {
|
|
1857
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1858
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1859
|
-
}
|
|
1860
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1861
|
-
},
|
|
1862
|
-
};
|
|
1863
|
-
}
|
|
1864
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1865
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1866
|
-
let result;
|
|
1867
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1868
|
-
if (!continuationToken) {
|
|
1869
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1870
|
-
let page = result.value || [];
|
|
1871
|
-
continuationToken = result.nextLink;
|
|
1872
|
-
setContinuationToken(page, continuationToken);
|
|
1873
|
-
yield yield tslib.__await(page);
|
|
1874
|
-
}
|
|
1875
|
-
while (continuationToken) {
|
|
1876
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1877
|
-
continuationToken = result.nextLink;
|
|
1878
|
-
let page = result.value || [];
|
|
1879
|
-
setContinuationToken(page, continuationToken);
|
|
1880
|
-
yield yield tslib.__await(page);
|
|
1881
|
-
}
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
listBySubscriptionPagingAll(options) {
|
|
1885
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1886
|
-
var _a, e_1, _b, _c;
|
|
1887
|
-
try {
|
|
1888
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1889
|
-
_c = _f.value;
|
|
1890
|
-
_d = false;
|
|
1891
|
-
const page = _c;
|
|
1892
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1896
|
-
finally {
|
|
1897
|
-
try {
|
|
1898
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1899
|
-
}
|
|
1900
|
-
finally { if (e_1) throw e_1.error; }
|
|
1901
|
-
}
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
/**
|
|
1905
|
-
* List StandbyVirtualMachinePoolResource resources by resource group
|
|
1906
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1907
|
-
* @param options The options parameters.
|
|
1908
|
-
*/
|
|
1909
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1910
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1911
|
-
return {
|
|
1912
|
-
next() {
|
|
1913
|
-
return iter.next();
|
|
1914
|
-
},
|
|
1915
|
-
[Symbol.asyncIterator]() {
|
|
1916
|
-
return this;
|
|
1917
|
-
},
|
|
1918
|
-
byPage: (settings) => {
|
|
1919
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1920
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1921
|
-
}
|
|
1922
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1923
|
-
},
|
|
1924
|
-
};
|
|
1925
|
-
}
|
|
1926
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1927
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1928
|
-
let result;
|
|
1929
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1930
|
-
if (!continuationToken) {
|
|
1931
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1932
|
-
let page = result.value || [];
|
|
1933
|
-
continuationToken = result.nextLink;
|
|
1934
|
-
setContinuationToken(page, continuationToken);
|
|
1935
|
-
yield yield tslib.__await(page);
|
|
1936
|
-
}
|
|
1937
|
-
while (continuationToken) {
|
|
1938
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1939
|
-
continuationToken = result.nextLink;
|
|
1940
|
-
let page = result.value || [];
|
|
1941
|
-
setContinuationToken(page, continuationToken);
|
|
1942
|
-
yield yield tslib.__await(page);
|
|
1943
|
-
}
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1947
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1948
|
-
var _a, e_2, _b, _c;
|
|
1949
|
-
try {
|
|
1950
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1951
|
-
_c = _f.value;
|
|
1952
|
-
_d = false;
|
|
1953
|
-
const page = _c;
|
|
1954
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1958
|
-
finally {
|
|
1959
|
-
try {
|
|
1960
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1961
|
-
}
|
|
1962
|
-
finally { if (e_2) throw e_2.error; }
|
|
1963
|
-
}
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
/**
|
|
1967
|
-
* List StandbyVirtualMachinePoolResource resources by subscription ID
|
|
1968
|
-
* @param options The options parameters.
|
|
1969
|
-
*/
|
|
1970
|
-
_listBySubscription(options) {
|
|
1971
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1972
|
-
}
|
|
1973
|
-
/**
|
|
1974
|
-
* List StandbyVirtualMachinePoolResource resources by resource group
|
|
1975
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1976
|
-
* @param options The options parameters.
|
|
1977
|
-
*/
|
|
1978
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1979
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1980
|
-
}
|
|
1981
|
-
/**
|
|
1982
|
-
* Get a StandbyVirtualMachinePoolResource
|
|
1983
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1984
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
1985
|
-
* @param options The options parameters.
|
|
1986
|
-
*/
|
|
1987
|
-
get(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
1988
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, options }, getOperationSpec$1);
|
|
1989
|
-
}
|
|
1990
|
-
/**
|
|
1991
|
-
* Create a StandbyVirtualMachinePoolResource
|
|
1992
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1993
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
1994
|
-
* @param resource Resource create parameters.
|
|
1995
|
-
* @param options The options parameters.
|
|
1996
|
-
*/
|
|
1997
|
-
beginCreateOrUpdate(resourceGroupName, standbyVirtualMachinePoolName, resource, options) {
|
|
1998
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1999
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2000
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2001
|
-
});
|
|
2002
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2003
|
-
var _a;
|
|
2004
|
-
let currentRawResponse = undefined;
|
|
2005
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2006
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2007
|
-
currentRawResponse = rawResponse;
|
|
2008
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2009
|
-
};
|
|
2010
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2011
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2012
|
-
return {
|
|
2013
|
-
flatResponse,
|
|
2014
|
-
rawResponse: {
|
|
2015
|
-
statusCode: currentRawResponse.status,
|
|
2016
|
-
body: currentRawResponse.parsedBody,
|
|
2017
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2018
|
-
},
|
|
2019
|
-
};
|
|
2020
|
-
});
|
|
2021
|
-
const lro = createLroSpec({
|
|
2022
|
-
sendOperationFn,
|
|
2023
|
-
args: {
|
|
2024
|
-
resourceGroupName,
|
|
2025
|
-
standbyVirtualMachinePoolName,
|
|
2026
|
-
resource,
|
|
2027
|
-
options,
|
|
2028
|
-
},
|
|
2029
|
-
spec: createOrUpdateOperationSpec,
|
|
2030
|
-
});
|
|
2031
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2032
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2033
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2034
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2035
|
-
});
|
|
2036
|
-
yield poller.poll();
|
|
2037
|
-
return poller;
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
/**
|
|
2041
|
-
* Create a StandbyVirtualMachinePoolResource
|
|
2042
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2043
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2044
|
-
* @param resource Resource create parameters.
|
|
2045
|
-
* @param options The options parameters.
|
|
2046
|
-
*/
|
|
2047
|
-
beginCreateOrUpdateAndWait(resourceGroupName, standbyVirtualMachinePoolName, resource, options) {
|
|
2048
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2049
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, standbyVirtualMachinePoolName, resource, options);
|
|
2050
|
-
return poller.pollUntilDone();
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
/**
|
|
2054
|
-
* Update a StandbyVirtualMachinePoolResource
|
|
2055
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2056
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2057
|
-
* @param properties The resource properties to be updated.
|
|
2058
|
-
* @param options The options parameters.
|
|
2059
|
-
*/
|
|
2060
|
-
update(resourceGroupName, standbyVirtualMachinePoolName, properties, options) {
|
|
2061
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, properties, options }, updateOperationSpec);
|
|
2062
|
-
}
|
|
2063
|
-
/**
|
|
2064
|
-
* Delete a StandbyVirtualMachinePoolResource
|
|
2065
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2066
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2067
|
-
* @param options The options parameters.
|
|
2068
|
-
*/
|
|
2069
|
-
beginDelete(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
2070
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2071
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2072
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2073
|
-
});
|
|
2074
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2075
|
-
var _a;
|
|
2076
|
-
let currentRawResponse = undefined;
|
|
2077
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2078
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2079
|
-
currentRawResponse = rawResponse;
|
|
2080
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2081
|
-
};
|
|
2082
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2083
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2084
|
-
return {
|
|
2085
|
-
flatResponse,
|
|
2086
|
-
rawResponse: {
|
|
2087
|
-
statusCode: currentRawResponse.status,
|
|
2088
|
-
body: currentRawResponse.parsedBody,
|
|
2089
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2090
|
-
},
|
|
2091
|
-
};
|
|
2092
|
-
});
|
|
2093
|
-
const lro = createLroSpec({
|
|
2094
|
-
sendOperationFn,
|
|
2095
|
-
args: { resourceGroupName, standbyVirtualMachinePoolName, options },
|
|
2096
|
-
spec: deleteOperationSpec,
|
|
2097
|
-
});
|
|
2098
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2099
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2100
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2101
|
-
resourceLocationConfig: "location",
|
|
2102
|
-
});
|
|
2103
|
-
yield poller.poll();
|
|
2104
|
-
return poller;
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
/**
|
|
2108
|
-
* Delete a StandbyVirtualMachinePoolResource
|
|
2109
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2110
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2111
|
-
* @param options The options parameters.
|
|
2112
|
-
*/
|
|
2113
|
-
beginDeleteAndWait(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
2114
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2115
|
-
const poller = yield this.beginDelete(resourceGroupName, standbyVirtualMachinePoolName, options);
|
|
2116
|
-
return poller.pollUntilDone();
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
/**
|
|
2120
|
-
* ListBySubscriptionNext
|
|
2121
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2122
|
-
* @param options The options parameters.
|
|
2123
|
-
*/
|
|
2124
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
2125
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2126
|
-
}
|
|
2127
|
-
/**
|
|
2128
|
-
* ListByResourceGroupNext
|
|
2129
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2130
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2131
|
-
* @param options The options parameters.
|
|
2132
|
-
*/
|
|
2133
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2134
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
// Operation Specifications
|
|
2138
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2139
|
-
const listBySubscriptionOperationSpec = {
|
|
2140
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools",
|
|
2141
|
-
httpMethod: "GET",
|
|
2142
|
-
responses: {
|
|
2143
|
-
200: {
|
|
2144
|
-
bodyMapper: StandbyVirtualMachinePoolResourceListResult,
|
|
2145
|
-
},
|
|
2146
|
-
default: {
|
|
2147
|
-
bodyMapper: ErrorResponse,
|
|
2148
|
-
},
|
|
2149
|
-
},
|
|
2150
|
-
queryParameters: [apiVersion],
|
|
2151
|
-
urlParameters: [$host, subscriptionId],
|
|
2152
|
-
headerParameters: [accept],
|
|
2153
|
-
serializer: serializer$1,
|
|
2154
|
-
};
|
|
2155
|
-
const listByResourceGroupOperationSpec = {
|
|
2156
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools",
|
|
2157
|
-
httpMethod: "GET",
|
|
2158
|
-
responses: {
|
|
2159
|
-
200: {
|
|
2160
|
-
bodyMapper: StandbyVirtualMachinePoolResourceListResult,
|
|
2161
|
-
},
|
|
2162
|
-
default: {
|
|
2163
|
-
bodyMapper: ErrorResponse,
|
|
2164
|
-
},
|
|
2165
|
-
},
|
|
2166
|
-
queryParameters: [apiVersion],
|
|
2167
|
-
urlParameters: [
|
|
2168
|
-
$host,
|
|
2169
|
-
subscriptionId,
|
|
2170
|
-
resourceGroupName,
|
|
2171
|
-
],
|
|
2172
|
-
headerParameters: [accept],
|
|
2173
|
-
serializer: serializer$1,
|
|
2174
|
-
};
|
|
2175
|
-
const getOperationSpec$1 = {
|
|
2176
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
|
|
2177
|
-
httpMethod: "GET",
|
|
2178
|
-
responses: {
|
|
2179
|
-
200: {
|
|
2180
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2181
|
-
},
|
|
2182
|
-
default: {
|
|
2183
|
-
bodyMapper: ErrorResponse,
|
|
2184
|
-
},
|
|
2185
|
-
},
|
|
2186
|
-
queryParameters: [apiVersion],
|
|
2187
|
-
urlParameters: [
|
|
2188
|
-
$host,
|
|
2189
|
-
subscriptionId,
|
|
2190
|
-
resourceGroupName,
|
|
2191
|
-
standbyVirtualMachinePoolName,
|
|
2192
|
-
],
|
|
2193
|
-
headerParameters: [accept],
|
|
2194
|
-
serializer: serializer$1,
|
|
2195
|
-
};
|
|
2196
|
-
const createOrUpdateOperationSpec = {
|
|
2197
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
|
|
2198
|
-
httpMethod: "PUT",
|
|
2199
|
-
responses: {
|
|
2200
|
-
200: {
|
|
2201
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2202
|
-
},
|
|
2203
|
-
201: {
|
|
2204
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2205
|
-
},
|
|
2206
|
-
202: {
|
|
2207
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2208
|
-
},
|
|
2209
|
-
204: {
|
|
2210
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2211
|
-
},
|
|
2212
|
-
default: {
|
|
2213
|
-
bodyMapper: ErrorResponse,
|
|
2214
|
-
},
|
|
2215
|
-
},
|
|
2216
|
-
requestBody: resource1,
|
|
2217
|
-
queryParameters: [apiVersion],
|
|
2218
|
-
urlParameters: [
|
|
2219
|
-
$host,
|
|
2220
|
-
subscriptionId,
|
|
2221
|
-
resourceGroupName,
|
|
2222
|
-
standbyVirtualMachinePoolName,
|
|
2223
|
-
],
|
|
2224
|
-
headerParameters: [accept, contentType],
|
|
2225
|
-
mediaType: "json",
|
|
2226
|
-
serializer: serializer$1,
|
|
2227
|
-
};
|
|
2228
|
-
const updateOperationSpec = {
|
|
2229
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
|
|
2230
|
-
httpMethod: "PATCH",
|
|
2231
|
-
responses: {
|
|
2232
|
-
200: {
|
|
2233
|
-
bodyMapper: StandbyVirtualMachinePoolResource,
|
|
2234
|
-
},
|
|
2235
|
-
default: {
|
|
2236
|
-
bodyMapper: ErrorResponse,
|
|
2237
|
-
},
|
|
2238
|
-
},
|
|
2239
|
-
requestBody: properties1,
|
|
2240
|
-
queryParameters: [apiVersion],
|
|
2241
|
-
urlParameters: [
|
|
2242
|
-
$host,
|
|
2243
|
-
subscriptionId,
|
|
2244
|
-
resourceGroupName,
|
|
2245
|
-
standbyVirtualMachinePoolName,
|
|
2246
|
-
],
|
|
2247
|
-
headerParameters: [accept, contentType],
|
|
2248
|
-
mediaType: "json",
|
|
2249
|
-
serializer: serializer$1,
|
|
2250
|
-
};
|
|
2251
|
-
const deleteOperationSpec = {
|
|
2252
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
|
|
2253
|
-
httpMethod: "DELETE",
|
|
2254
|
-
responses: {
|
|
2255
|
-
200: {
|
|
2256
|
-
headersMapper: StandbyVirtualMachinePoolsDeleteHeaders,
|
|
2257
|
-
},
|
|
2258
|
-
201: {
|
|
2259
|
-
headersMapper: StandbyVirtualMachinePoolsDeleteHeaders,
|
|
2260
|
-
},
|
|
2261
|
-
202: {
|
|
2262
|
-
headersMapper: StandbyVirtualMachinePoolsDeleteHeaders,
|
|
2263
|
-
},
|
|
2264
|
-
204: {
|
|
2265
|
-
headersMapper: StandbyVirtualMachinePoolsDeleteHeaders,
|
|
2266
|
-
},
|
|
2267
|
-
default: {
|
|
2268
|
-
bodyMapper: ErrorResponse,
|
|
2269
|
-
},
|
|
2270
|
-
},
|
|
2271
|
-
queryParameters: [apiVersion],
|
|
2272
|
-
urlParameters: [
|
|
2273
|
-
$host,
|
|
2274
|
-
subscriptionId,
|
|
2275
|
-
resourceGroupName,
|
|
2276
|
-
standbyVirtualMachinePoolName,
|
|
2277
|
-
],
|
|
2278
|
-
headerParameters: [accept],
|
|
2279
|
-
serializer: serializer$1,
|
|
2280
|
-
};
|
|
2281
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2282
|
-
path: "{nextLink}",
|
|
2283
|
-
httpMethod: "GET",
|
|
2284
|
-
responses: {
|
|
2285
|
-
200: {
|
|
2286
|
-
bodyMapper: StandbyVirtualMachinePoolResourceListResult,
|
|
2287
|
-
},
|
|
2288
|
-
default: {
|
|
2289
|
-
bodyMapper: ErrorResponse,
|
|
2290
|
-
},
|
|
2291
|
-
},
|
|
2292
|
-
urlParameters: [
|
|
2293
|
-
$host,
|
|
2294
|
-
nextLink,
|
|
2295
|
-
subscriptionId,
|
|
2296
|
-
],
|
|
2297
|
-
headerParameters: [accept],
|
|
2298
|
-
serializer: serializer$1,
|
|
2299
|
-
};
|
|
2300
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2301
|
-
path: "{nextLink}",
|
|
2302
|
-
httpMethod: "GET",
|
|
2303
|
-
responses: {
|
|
2304
|
-
200: {
|
|
2305
|
-
bodyMapper: StandbyVirtualMachinePoolResourceListResult,
|
|
2306
|
-
},
|
|
2307
|
-
default: {
|
|
2308
|
-
bodyMapper: ErrorResponse,
|
|
2309
|
-
},
|
|
2310
|
-
},
|
|
2311
|
-
urlParameters: [
|
|
2312
|
-
$host,
|
|
2313
|
-
nextLink,
|
|
2314
|
-
subscriptionId,
|
|
2315
|
-
resourceGroupName,
|
|
2316
|
-
],
|
|
2317
|
-
headerParameters: [accept],
|
|
2318
|
-
serializer: serializer$1,
|
|
2319
|
-
};
|
|
2320
|
-
|
|
2321
|
-
/*
|
|
2322
|
-
* Copyright (c) Microsoft Corporation.
|
|
2323
|
-
* Licensed under the MIT License.
|
|
2324
|
-
*
|
|
2325
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2326
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2327
|
-
*/
|
|
2328
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2329
|
-
/** Class containing StandbyVirtualMachines operations. */
|
|
2330
|
-
class StandbyVirtualMachinesImpl {
|
|
2331
|
-
/**
|
|
2332
|
-
* Initialize a new instance of the class StandbyVirtualMachines class.
|
|
2333
|
-
* @param client Reference to the service client
|
|
2334
|
-
*/
|
|
2335
|
-
constructor(client) {
|
|
2336
|
-
this.client = client;
|
|
2337
|
-
}
|
|
2338
|
-
/**
|
|
2339
|
-
* List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource
|
|
2340
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2341
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2342
|
-
* @param options The options parameters.
|
|
2343
|
-
*/
|
|
2344
|
-
listByStandbyVirtualMachinePoolResource(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
2345
|
-
const iter = this.listByStandbyVirtualMachinePoolResourcePagingAll(resourceGroupName, standbyVirtualMachinePoolName, options);
|
|
2346
|
-
return {
|
|
2347
|
-
next() {
|
|
2348
|
-
return iter.next();
|
|
2349
|
-
},
|
|
2350
|
-
[Symbol.asyncIterator]() {
|
|
2351
|
-
return this;
|
|
2352
|
-
},
|
|
2353
|
-
byPage: (settings) => {
|
|
2354
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2355
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2356
|
-
}
|
|
2357
|
-
return this.listByStandbyVirtualMachinePoolResourcePagingPage(resourceGroupName, standbyVirtualMachinePoolName, options, settings);
|
|
2358
|
-
},
|
|
2359
|
-
};
|
|
2360
|
-
}
|
|
2361
|
-
listByStandbyVirtualMachinePoolResourcePagingPage(resourceGroupName, standbyVirtualMachinePoolName, options, settings) {
|
|
2362
|
-
return tslib.__asyncGenerator(this, arguments, function* listByStandbyVirtualMachinePoolResourcePagingPage_1() {
|
|
2363
|
-
let result;
|
|
2364
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2365
|
-
if (!continuationToken) {
|
|
2366
|
-
result = yield tslib.__await(this._listByStandbyVirtualMachinePoolResource(resourceGroupName, standbyVirtualMachinePoolName, options));
|
|
2367
|
-
let page = result.value || [];
|
|
2368
|
-
continuationToken = result.nextLink;
|
|
2369
|
-
setContinuationToken(page, continuationToken);
|
|
2370
|
-
yield yield tslib.__await(page);
|
|
2371
|
-
}
|
|
2372
|
-
while (continuationToken) {
|
|
2373
|
-
result = yield tslib.__await(this._listByStandbyVirtualMachinePoolResourceNext(resourceGroupName, standbyVirtualMachinePoolName, continuationToken, options));
|
|
2374
|
-
continuationToken = result.nextLink;
|
|
2375
|
-
let page = result.value || [];
|
|
2376
|
-
setContinuationToken(page, continuationToken);
|
|
2377
|
-
yield yield tslib.__await(page);
|
|
2378
|
-
}
|
|
2379
|
-
});
|
|
2380
|
-
}
|
|
2381
|
-
listByStandbyVirtualMachinePoolResourcePagingAll(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
2382
|
-
return tslib.__asyncGenerator(this, arguments, function* listByStandbyVirtualMachinePoolResourcePagingAll_1() {
|
|
2383
|
-
var _a, e_1, _b, _c;
|
|
2384
|
-
try {
|
|
2385
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByStandbyVirtualMachinePoolResourcePagingPage(resourceGroupName, standbyVirtualMachinePoolName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2386
|
-
_c = _f.value;
|
|
2387
|
-
_d = false;
|
|
2388
|
-
const page = _c;
|
|
2389
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2393
|
-
finally {
|
|
2394
|
-
try {
|
|
2395
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2396
|
-
}
|
|
2397
|
-
finally { if (e_1) throw e_1.error; }
|
|
2398
|
-
}
|
|
2399
|
-
});
|
|
2400
|
-
}
|
|
2401
|
-
/**
|
|
2402
|
-
* List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource
|
|
2403
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2404
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2405
|
-
* @param options The options parameters.
|
|
2406
|
-
*/
|
|
2407
|
-
_listByStandbyVirtualMachinePoolResource(resourceGroupName, standbyVirtualMachinePoolName, options) {
|
|
2408
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, options }, listByStandbyVirtualMachinePoolResourceOperationSpec);
|
|
2409
|
-
}
|
|
2410
|
-
/**
|
|
2411
|
-
* Get a StandbyVirtualMachineResource
|
|
2412
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2413
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2414
|
-
* @param standbyVirtualMachineName Name of the standby virtual machine
|
|
2415
|
-
* @param options The options parameters.
|
|
2416
|
-
*/
|
|
2417
|
-
get(resourceGroupName, standbyVirtualMachinePoolName, standbyVirtualMachineName, options) {
|
|
2418
|
-
return this.client.sendOperationRequest({
|
|
2419
|
-
resourceGroupName,
|
|
2420
|
-
standbyVirtualMachinePoolName,
|
|
2421
|
-
standbyVirtualMachineName,
|
|
2422
|
-
options,
|
|
2423
|
-
}, getOperationSpec);
|
|
2424
|
-
}
|
|
2425
|
-
/**
|
|
2426
|
-
* ListByStandbyVirtualMachinePoolResourceNext
|
|
2427
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2428
|
-
* @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
|
|
2429
|
-
* @param nextLink The nextLink from the previous successful call to the
|
|
2430
|
-
* ListByStandbyVirtualMachinePoolResource method.
|
|
2431
|
-
* @param options The options parameters.
|
|
2432
|
-
*/
|
|
2433
|
-
_listByStandbyVirtualMachinePoolResourceNext(resourceGroupName, standbyVirtualMachinePoolName, nextLink, options) {
|
|
2434
|
-
return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, nextLink, options }, listByStandbyVirtualMachinePoolResourceNextOperationSpec);
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
// Operation Specifications
|
|
2438
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2439
|
-
const listByStandbyVirtualMachinePoolResourceOperationSpec = {
|
|
2440
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines",
|
|
2441
|
-
httpMethod: "GET",
|
|
2442
|
-
responses: {
|
|
2443
|
-
200: {
|
|
2444
|
-
bodyMapper: StandbyVirtualMachineResourceListResult,
|
|
2445
|
-
},
|
|
2446
|
-
default: {
|
|
2447
|
-
bodyMapper: ErrorResponse,
|
|
2448
|
-
},
|
|
2449
|
-
},
|
|
2450
|
-
queryParameters: [apiVersion],
|
|
2451
|
-
urlParameters: [
|
|
2452
|
-
$host,
|
|
2453
|
-
subscriptionId,
|
|
2454
|
-
resourceGroupName,
|
|
2455
|
-
standbyVirtualMachinePoolName,
|
|
2456
|
-
],
|
|
2457
|
-
headerParameters: [accept],
|
|
2458
|
-
serializer,
|
|
2459
|
-
};
|
|
2460
|
-
const getOperationSpec = {
|
|
2461
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}",
|
|
2462
|
-
httpMethod: "GET",
|
|
2463
|
-
responses: {
|
|
2464
|
-
200: {
|
|
2465
|
-
bodyMapper: StandbyVirtualMachineResource,
|
|
2466
|
-
},
|
|
2467
|
-
default: {
|
|
2468
|
-
bodyMapper: ErrorResponse,
|
|
2469
|
-
},
|
|
2470
|
-
},
|
|
2471
|
-
queryParameters: [apiVersion],
|
|
2472
|
-
urlParameters: [
|
|
2473
|
-
$host,
|
|
2474
|
-
subscriptionId,
|
|
2475
|
-
resourceGroupName,
|
|
2476
|
-
standbyVirtualMachinePoolName,
|
|
2477
|
-
standbyVirtualMachineName,
|
|
2478
|
-
],
|
|
2479
|
-
headerParameters: [accept],
|
|
2480
|
-
serializer,
|
|
2481
|
-
};
|
|
2482
|
-
const listByStandbyVirtualMachinePoolResourceNextOperationSpec = {
|
|
2483
|
-
path: "{nextLink}",
|
|
2484
|
-
httpMethod: "GET",
|
|
2485
|
-
responses: {
|
|
2486
|
-
200: {
|
|
2487
|
-
bodyMapper: StandbyVirtualMachineResourceListResult,
|
|
2488
|
-
},
|
|
2489
|
-
default: {
|
|
2490
|
-
bodyMapper: ErrorResponse,
|
|
2491
|
-
},
|
|
2492
|
-
},
|
|
2493
|
-
urlParameters: [
|
|
2494
|
-
$host,
|
|
2495
|
-
nextLink,
|
|
2496
|
-
subscriptionId,
|
|
2497
|
-
resourceGroupName,
|
|
2498
|
-
standbyVirtualMachinePoolName,
|
|
2499
|
-
],
|
|
2500
|
-
headerParameters: [accept],
|
|
2501
|
-
serializer,
|
|
2502
|
-
};
|
|
2503
|
-
|
|
2504
|
-
/*
|
|
2505
|
-
* Copyright (c) Microsoft Corporation.
|
|
2506
|
-
* Licensed under the MIT License.
|
|
2507
|
-
*
|
|
2508
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2509
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2510
|
-
*/
|
|
2511
|
-
class StandbyPoolManagementClient extends coreClient__namespace.ServiceClient {
|
|
2512
|
-
/**
|
|
2513
|
-
* Initializes a new instance of the StandbyPoolManagementClient class.
|
|
2514
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2515
|
-
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
2516
|
-
* @param options The parameter options
|
|
2517
|
-
*/
|
|
2518
|
-
constructor(credentials, subscriptionId, options) {
|
|
2519
|
-
var _a, _b, _c;
|
|
2520
|
-
if (credentials === undefined) {
|
|
2521
|
-
throw new Error("'credentials' cannot be null");
|
|
2522
|
-
}
|
|
2523
|
-
if (subscriptionId === undefined) {
|
|
2524
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
2525
|
-
}
|
|
2526
|
-
// Initializing default values for options
|
|
2527
|
-
if (!options) {
|
|
2528
|
-
options = {};
|
|
2529
|
-
}
|
|
2530
|
-
const defaults = {
|
|
2531
|
-
requestContentType: "application/json; charset=utf-8",
|
|
2532
|
-
credential: credentials,
|
|
2533
|
-
};
|
|
2534
|
-
const packageDetails = `azsdk-js-arm-standbypool/1.0.0-beta.1`;
|
|
2535
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2536
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2537
|
-
: `${packageDetails}`;
|
|
2538
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2539
|
-
userAgentPrefix,
|
|
2540
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2541
|
-
super(optionsWithDefaults);
|
|
2542
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
2543
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2544
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2545
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2546
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2547
|
-
}
|
|
2548
|
-
if (!options ||
|
|
2549
|
-
!options.pipeline ||
|
|
2550
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2551
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
2552
|
-
this.pipeline.removePolicy({
|
|
2553
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
|
2554
|
-
});
|
|
2555
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2556
|
-
credential: credentials,
|
|
2557
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2558
|
-
challengeCallbacks: {
|
|
2559
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
2560
|
-
},
|
|
2561
|
-
}));
|
|
2562
|
-
}
|
|
2563
|
-
// Parameter assignments
|
|
2564
|
-
this.subscriptionId = subscriptionId;
|
|
2565
|
-
// Assigning values to Constant parameters
|
|
2566
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
2567
|
-
this.apiVersion = options.apiVersion || "2023-12-01-preview";
|
|
2568
|
-
this.operations = new OperationsImpl(this);
|
|
2569
|
-
this.standbyContainerGroupPools = new StandbyContainerGroupPoolsImpl(this);
|
|
2570
|
-
this.standbyVirtualMachinePools = new StandbyVirtualMachinePoolsImpl(this);
|
|
2571
|
-
this.standbyVirtualMachines = new StandbyVirtualMachinesImpl(this);
|
|
2572
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2573
|
-
}
|
|
2574
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2575
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
2576
|
-
if (!apiVersion) {
|
|
2577
|
-
return;
|
|
2578
|
-
}
|
|
2579
|
-
const apiVersionPolicy = {
|
|
2580
|
-
name: "CustomApiVersionPolicy",
|
|
2581
|
-
sendRequest(request, next) {
|
|
2582
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2583
|
-
const param = request.url.split("?");
|
|
2584
|
-
if (param.length > 1) {
|
|
2585
|
-
const newParams = param[1].split("&").map((item) => {
|
|
2586
|
-
if (item.indexOf("api-version") > -1) {
|
|
2587
|
-
return "api-version=" + apiVersion;
|
|
2588
|
-
}
|
|
2589
|
-
else {
|
|
2590
|
-
return item;
|
|
2591
|
-
}
|
|
2592
|
-
});
|
|
2593
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
2594
|
-
}
|
|
2595
|
-
return next(request);
|
|
2596
|
-
});
|
|
2597
|
-
},
|
|
2598
|
-
};
|
|
2599
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2600
|
-
}
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
exports.StandbyPoolManagementClient = StandbyPoolManagementClient;
|
|
2604
|
-
exports.getContinuationToken = getContinuationToken;
|
|
2605
|
-
//# sourceMappingURL=index.js.map
|