@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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._standbyVirtualMachinePoolRuntimeViewsGetSend = _standbyVirtualMachinePoolRuntimeViewsGetSend;
|
|
6
|
+
exports._standbyVirtualMachinePoolRuntimeViewsGetDeserialize = _standbyVirtualMachinePoolRuntimeViewsGetDeserialize;
|
|
7
|
+
exports.standbyVirtualMachinePoolRuntimeViewsGet = standbyVirtualMachinePoolRuntimeViewsGet;
|
|
8
|
+
exports._standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend = _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend;
|
|
9
|
+
exports._standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize = _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize;
|
|
10
|
+
exports.standbyVirtualMachinePoolRuntimeViewsListByStandbyPool = standbyVirtualMachinePoolRuntimeViewsListByStandbyPool;
|
|
11
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
12
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
13
|
+
function _standbyVirtualMachinePoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
|
|
14
|
+
requestOptions: {},
|
|
15
|
+
}) {
|
|
16
|
+
return context
|
|
17
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView)
|
|
18
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
19
|
+
}
|
|
20
|
+
async function _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
22
|
+
const expectedStatuses = ["200"];
|
|
23
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
24
|
+
throw (0, core_client_1.createRestError)(result);
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
id: result.body["id"],
|
|
28
|
+
name: result.body["name"],
|
|
29
|
+
type: result.body["type"],
|
|
30
|
+
systemData: !result.body.systemData
|
|
31
|
+
? undefined
|
|
32
|
+
: {
|
|
33
|
+
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
34
|
+
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
35
|
+
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
36
|
+
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
37
|
+
: undefined,
|
|
38
|
+
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
39
|
+
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
40
|
+
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
41
|
+
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
42
|
+
: undefined,
|
|
43
|
+
},
|
|
44
|
+
properties: !result.body.properties
|
|
45
|
+
? undefined
|
|
46
|
+
: {
|
|
47
|
+
instanceCountSummary: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
|
|
48
|
+
return {
|
|
49
|
+
zone: p["zone"],
|
|
50
|
+
instanceCountsByState: p["instanceCountsByState"].map((p) => {
|
|
51
|
+
return { state: p["state"], count: p["count"] };
|
|
52
|
+
}),
|
|
53
|
+
};
|
|
54
|
+
}),
|
|
55
|
+
provisioningState: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/** Get a StandbyVirtualMachinePoolRuntimeViewResource */
|
|
60
|
+
async function standbyVirtualMachinePoolRuntimeViewsGet(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
|
|
61
|
+
requestOptions: {},
|
|
62
|
+
}) {
|
|
63
|
+
const result = await _standbyVirtualMachinePoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options);
|
|
64
|
+
return _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result);
|
|
65
|
+
}
|
|
66
|
+
function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
67
|
+
requestOptions: {},
|
|
68
|
+
}) {
|
|
69
|
+
return context
|
|
70
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
71
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
72
|
+
}
|
|
73
|
+
async function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize(result) {
|
|
74
|
+
const expectedStatuses = ["200"];
|
|
75
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
76
|
+
throw (0, core_client_1.createRestError)(result);
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
value: result.body["value"].map((p) => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
|
+
return {
|
|
82
|
+
id: p["id"],
|
|
83
|
+
name: p["name"],
|
|
84
|
+
type: p["type"],
|
|
85
|
+
systemData: !p.systemData
|
|
86
|
+
? undefined
|
|
87
|
+
: {
|
|
88
|
+
createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
89
|
+
createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
90
|
+
createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
91
|
+
? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
92
|
+
: undefined,
|
|
93
|
+
lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
94
|
+
lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
95
|
+
lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
96
|
+
? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
97
|
+
: undefined,
|
|
98
|
+
},
|
|
99
|
+
properties: !p.properties
|
|
100
|
+
? undefined
|
|
101
|
+
: {
|
|
102
|
+
instanceCountSummary: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
|
|
103
|
+
return {
|
|
104
|
+
zone: p["zone"],
|
|
105
|
+
instanceCountsByState: p["instanceCountsByState"].map((p) => {
|
|
106
|
+
return { state: p["state"], count: p["count"] };
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
provisioningState: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}),
|
|
114
|
+
nextLink: result.body["nextLink"],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */
|
|
118
|
+
function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
119
|
+
requestOptions: {},
|
|
120
|
+
}) {
|
|
121
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options), _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePoolRuntimeViews/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,sGAmBC;AAED,oHA0CC;AAGD,4FAmBC;AAED,kIAiBC;AAED,gJA+CC;AAGD,wHAuBC;AAlMD,yDAKiC;AACjC,4EAG+C;AAM/C,SAAgB,6CAA6C,CAC3D,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,WAAmB,EACnB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,0LAA0L,EAC1L,cAAc,EACd,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,CACZ;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,oDAAoD,CACxE,MAA6B;;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,C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CAAC,CAAC,UAAU,0CAAG,sBAAsB,EAAE,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;4BAC1E,OAAO;gCACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gCACf,qBAAqB,EAAE,CAAC,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;oCAC/D,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;gCAClD,CAAC,CAAC;6BACH,CAAC;wBACJ,CAAC,CAAC;wBACF,iBAAiB,EAAE,MAAA,CAAC,CAAC,UAAU,0CAAG,mBAAmB,CAAC;qBACvD;aACN,CAAC;QACJ,CAAC,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,uGAAuG;AACvG,SAAgB,sDAAsD,CACpE,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,UAAgF;IAC9E,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,2DAA2D,CACzD,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,6BAA6B,EAC7B,OAAO,CACR,EACH,kEAAkE,EAClE,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n StandbyVirtualMachinePoolRuntimeViewResource,\n _StandbyVirtualMachinePoolRuntimeViewResourceListResult,\n} from \"../../models/models.js\";\nimport { StandbyPoolContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams,\n StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _standbyVirtualMachinePoolRuntimeViewsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n runtimeView,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n instanceCountSummary: result.body.properties?.[\"instanceCountSummary\"].map((p: any) => {\n return {\n zone: p[\"zone\"],\n instanceCountsByState: p[\"instanceCountsByState\"].map((p: any) => {\n return { state: p[\"state\"], count: p[\"count\"] };\n }),\n };\n }),\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a StandbyVirtualMachinePoolRuntimeViewResource */\nexport async function standbyVirtualMachinePoolRuntimeViewsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\n const result = await _standbyVirtualMachinePoolRuntimeViewsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n runtimeView,\n options,\n );\n return _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolRuntimeViewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n instanceCountSummary: p.properties?.[\"instanceCountSummary\"].map((p: any) => {\n return {\n zone: p[\"zone\"],\n instanceCountsByState: p[\"instanceCountsByState\"].map((p: any) => {\n return { state: p[\"state\"], count: p[\"count\"] };\n }),\n };\n }),\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolRuntimeViewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n ),\n _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StandbyVirtualMachinePoolResource, StandbyVirtualMachinePoolResourceUpdate, _StandbyVirtualMachinePoolResourceListResult } from "../../models/models.js";
|
|
2
|
+
import { StandbyPoolContext as Client } from "../index.js";
|
|
3
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
import { StandbyVirtualMachinePoolsGetOptionalParams, StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, StandbyVirtualMachinePoolsDeleteOptionalParams, StandbyVirtualMachinePoolsUpdateOptionalParams, StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, StandbyVirtualMachinePoolsListBySubscriptionOptionalParams } from "../../models/options.js";
|
|
7
|
+
export declare function _standbyVirtualMachinePoolsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsGetOptionalParams): StreamableMethod;
|
|
8
|
+
export declare function _standbyVirtualMachinePoolsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
|
|
9
|
+
/** Get a StandbyVirtualMachinePoolResource */
|
|
10
|
+
export declare function standbyVirtualMachinePoolsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsGetOptionalParams): Promise<StandbyVirtualMachinePoolResource>;
|
|
11
|
+
export declare function _standbyVirtualMachinePoolsCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, resource: StandbyVirtualMachinePoolResource, options?: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
12
|
+
export declare function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
|
|
13
|
+
/** Create a StandbyVirtualMachinePoolResource */
|
|
14
|
+
export declare function standbyVirtualMachinePoolsCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, resource: StandbyVirtualMachinePoolResource, options?: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams): PollerLike<OperationState<StandbyVirtualMachinePoolResource>, StandbyVirtualMachinePoolResource>;
|
|
15
|
+
export declare function _standbyVirtualMachinePoolsDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsDeleteOptionalParams): StreamableMethod;
|
|
16
|
+
export declare function _standbyVirtualMachinePoolsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
17
|
+
/** Delete a StandbyVirtualMachinePoolResource */
|
|
18
|
+
export declare function standbyVirtualMachinePoolsDelete(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
19
|
+
export declare function _standbyVirtualMachinePoolsUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, properties: StandbyVirtualMachinePoolResourceUpdate, options?: StandbyVirtualMachinePoolsUpdateOptionalParams): StreamableMethod;
|
|
20
|
+
export declare function _standbyVirtualMachinePoolsUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
|
|
21
|
+
/** Update a StandbyVirtualMachinePoolResource */
|
|
22
|
+
export declare function standbyVirtualMachinePoolsUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, properties: StandbyVirtualMachinePoolResourceUpdate, options?: StandbyVirtualMachinePoolsUpdateOptionalParams): Promise<StandbyVirtualMachinePoolResource>;
|
|
23
|
+
export declare function _standbyVirtualMachinePoolsListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams): StreamableMethod;
|
|
24
|
+
export declare function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_StandbyVirtualMachinePoolResourceListResult>;
|
|
25
|
+
/** List StandbyVirtualMachinePoolResource resources by resource group */
|
|
26
|
+
export declare function standbyVirtualMachinePoolsListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;
|
|
27
|
+
export declare function _standbyVirtualMachinePoolsListBySubscriptionSend(context: Client, subscriptionId: string, options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams): StreamableMethod;
|
|
28
|
+
export declare function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_StandbyVirtualMachinePoolResourceListResult>;
|
|
29
|
+
/** List StandbyVirtualMachinePoolResource resources by subscription ID */
|
|
30
|
+
export declare function standbyVirtualMachinePoolsListBySubscription(context: Client, subscriptionId: string, options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,iCAAiC,EACjC,uCAAuC,EACvC,4CAA4C,EAC7C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,2CAA2C,EAC3C,sDAAsD,EACtD,8CAA8C,EAC9C,8CAA8C,EAC9C,2DAA2D,EAC3D,0DAA0D,EAC3D,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,cAAc,EA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ED,wBAAsB,wDAAwD,CAC5E,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,4CAA4C,CAAC,CA+CvD;AAED,0EAA0E;AAC1E,wBAAgB,4CAA4C,CAC1D,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,0DAER,GACA,0BAA0B,CAAC,iCAAiC,CAAC,CAQ/D"}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._standbyVirtualMachinePoolsGetSend = _standbyVirtualMachinePoolsGetSend;
|
|
6
|
+
exports._standbyVirtualMachinePoolsGetDeserialize = _standbyVirtualMachinePoolsGetDeserialize;
|
|
7
|
+
exports.standbyVirtualMachinePoolsGet = standbyVirtualMachinePoolsGet;
|
|
8
|
+
exports._standbyVirtualMachinePoolsCreateOrUpdateSend = _standbyVirtualMachinePoolsCreateOrUpdateSend;
|
|
9
|
+
exports._standbyVirtualMachinePoolsCreateOrUpdateDeserialize = _standbyVirtualMachinePoolsCreateOrUpdateDeserialize;
|
|
10
|
+
exports.standbyVirtualMachinePoolsCreateOrUpdate = standbyVirtualMachinePoolsCreateOrUpdate;
|
|
11
|
+
exports._standbyVirtualMachinePoolsDeleteSend = _standbyVirtualMachinePoolsDeleteSend;
|
|
12
|
+
exports._standbyVirtualMachinePoolsDeleteDeserialize = _standbyVirtualMachinePoolsDeleteDeserialize;
|
|
13
|
+
exports.standbyVirtualMachinePoolsDelete = standbyVirtualMachinePoolsDelete;
|
|
14
|
+
exports._standbyVirtualMachinePoolsUpdateSend = _standbyVirtualMachinePoolsUpdateSend;
|
|
15
|
+
exports._standbyVirtualMachinePoolsUpdateDeserialize = _standbyVirtualMachinePoolsUpdateDeserialize;
|
|
16
|
+
exports.standbyVirtualMachinePoolsUpdate = standbyVirtualMachinePoolsUpdate;
|
|
17
|
+
exports._standbyVirtualMachinePoolsListByResourceGroupSend = _standbyVirtualMachinePoolsListByResourceGroupSend;
|
|
18
|
+
exports._standbyVirtualMachinePoolsListByResourceGroupDeserialize = _standbyVirtualMachinePoolsListByResourceGroupDeserialize;
|
|
19
|
+
exports.standbyVirtualMachinePoolsListByResourceGroup = standbyVirtualMachinePoolsListByResourceGroup;
|
|
20
|
+
exports._standbyVirtualMachinePoolsListBySubscriptionSend = _standbyVirtualMachinePoolsListBySubscriptionSend;
|
|
21
|
+
exports._standbyVirtualMachinePoolsListBySubscriptionDeserialize = _standbyVirtualMachinePoolsListBySubscriptionDeserialize;
|
|
22
|
+
exports.standbyVirtualMachinePoolsListBySubscription = standbyVirtualMachinePoolsListBySubscription;
|
|
23
|
+
const models_js_1 = require("../../models/models.js");
|
|
24
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
25
|
+
const serializerHelpers_js_1 = require("../../helpers/serializerHelpers.js");
|
|
26
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
27
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
28
|
+
function _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
|
|
29
|
+
return context
|
|
30
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
31
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
32
|
+
}
|
|
33
|
+
async function _standbyVirtualMachinePoolsGetDeserialize(result) {
|
|
34
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
35
|
+
const expectedStatuses = ["200"];
|
|
36
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
37
|
+
throw (0, core_client_1.createRestError)(result);
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
tags: result.body["tags"],
|
|
41
|
+
location: result.body["location"],
|
|
42
|
+
id: result.body["id"],
|
|
43
|
+
name: result.body["name"],
|
|
44
|
+
type: result.body["type"],
|
|
45
|
+
systemData: !result.body.systemData
|
|
46
|
+
? undefined
|
|
47
|
+
: {
|
|
48
|
+
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
49
|
+
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
50
|
+
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
51
|
+
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
52
|
+
: undefined,
|
|
53
|
+
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
54
|
+
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
55
|
+
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
56
|
+
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
57
|
+
: undefined,
|
|
58
|
+
},
|
|
59
|
+
properties: !result.body.properties
|
|
60
|
+
? undefined
|
|
61
|
+
: {
|
|
62
|
+
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
63
|
+
? undefined
|
|
64
|
+
: {
|
|
65
|
+
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
66
|
+
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
67
|
+
},
|
|
68
|
+
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
69
|
+
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
70
|
+
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/** Get a StandbyVirtualMachinePoolResource */
|
|
75
|
+
async function standbyVirtualMachinePoolsGet(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
|
|
76
|
+
const result = await _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options);
|
|
77
|
+
return _standbyVirtualMachinePoolsGetDeserialize(result);
|
|
78
|
+
}
|
|
79
|
+
function _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
|
|
80
|
+
requestOptions: {},
|
|
81
|
+
}) {
|
|
82
|
+
return context
|
|
83
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
84
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
|
|
85
|
+
tags: !resource.tags ? resource.tags : (0, serializerHelpers_js_1.serializeRecord)(resource.tags),
|
|
86
|
+
location: resource["location"],
|
|
87
|
+
properties: !resource.properties
|
|
88
|
+
? resource.properties
|
|
89
|
+
: (0, models_js_1.standbyVirtualMachinePoolResourcePropertiesSerializer)(resource.properties),
|
|
90
|
+
} }));
|
|
91
|
+
}
|
|
92
|
+
async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(result) {
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
94
|
+
const expectedStatuses = ["200", "201"];
|
|
95
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
96
|
+
throw (0, core_client_1.createRestError)(result);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
tags: result.body["tags"],
|
|
100
|
+
location: result.body["location"],
|
|
101
|
+
id: result.body["id"],
|
|
102
|
+
name: result.body["name"],
|
|
103
|
+
type: result.body["type"],
|
|
104
|
+
systemData: !result.body.systemData
|
|
105
|
+
? undefined
|
|
106
|
+
: {
|
|
107
|
+
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
108
|
+
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
109
|
+
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
110
|
+
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
111
|
+
: undefined,
|
|
112
|
+
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
113
|
+
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
114
|
+
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
115
|
+
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
116
|
+
: undefined,
|
|
117
|
+
},
|
|
118
|
+
properties: !result.body.properties
|
|
119
|
+
? undefined
|
|
120
|
+
: {
|
|
121
|
+
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
122
|
+
? undefined
|
|
123
|
+
: {
|
|
124
|
+
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
125
|
+
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
126
|
+
},
|
|
127
|
+
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
128
|
+
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
129
|
+
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/** Create a StandbyVirtualMachinePoolResource */
|
|
134
|
+
function standbyVirtualMachinePoolsCreateOrUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
|
|
135
|
+
requestOptions: {},
|
|
136
|
+
}) {
|
|
137
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _standbyVirtualMachinePoolsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
138
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
139
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
140
|
+
getInitialResponse: () => _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options),
|
|
141
|
+
resourceLocationConfig: "azure-async-operation",
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
145
|
+
requestOptions: {},
|
|
146
|
+
}) {
|
|
147
|
+
return context
|
|
148
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
149
|
+
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
150
|
+
}
|
|
151
|
+
async function _standbyVirtualMachinePoolsDeleteDeserialize(result) {
|
|
152
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
153
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
154
|
+
throw (0, core_client_1.createRestError)(result);
|
|
155
|
+
}
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
/** Delete a StandbyVirtualMachinePoolResource */
|
|
159
|
+
function standbyVirtualMachinePoolsDelete(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
160
|
+
requestOptions: {},
|
|
161
|
+
}) {
|
|
162
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _standbyVirtualMachinePoolsDeleteDeserialize, ["202", "204", "200"], {
|
|
163
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
164
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
165
|
+
getInitialResponse: () => _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options),
|
|
166
|
+
resourceLocationConfig: "location",
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
|
|
170
|
+
requestOptions: {},
|
|
171
|
+
}) {
|
|
172
|
+
return context
|
|
173
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
174
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
|
|
175
|
+
tags: !properties.tags ? properties.tags : (0, serializerHelpers_js_1.serializeRecord)(properties.tags),
|
|
176
|
+
properties: !properties.properties
|
|
177
|
+
? properties.properties
|
|
178
|
+
: (0, models_js_1.standbyVirtualMachinePoolResourceUpdatePropertiesSerializer)(properties.properties),
|
|
179
|
+
} }));
|
|
180
|
+
}
|
|
181
|
+
async function _standbyVirtualMachinePoolsUpdateDeserialize(result) {
|
|
182
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
183
|
+
const expectedStatuses = ["200"];
|
|
184
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
185
|
+
throw (0, core_client_1.createRestError)(result);
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
tags: result.body["tags"],
|
|
189
|
+
location: result.body["location"],
|
|
190
|
+
id: result.body["id"],
|
|
191
|
+
name: result.body["name"],
|
|
192
|
+
type: result.body["type"],
|
|
193
|
+
systemData: !result.body.systemData
|
|
194
|
+
? undefined
|
|
195
|
+
: {
|
|
196
|
+
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
197
|
+
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
198
|
+
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
199
|
+
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
200
|
+
: undefined,
|
|
201
|
+
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
202
|
+
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
203
|
+
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
204
|
+
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
205
|
+
: undefined,
|
|
206
|
+
},
|
|
207
|
+
properties: !result.body.properties
|
|
208
|
+
? undefined
|
|
209
|
+
: {
|
|
210
|
+
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
211
|
+
? undefined
|
|
212
|
+
: {
|
|
213
|
+
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
214
|
+
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
215
|
+
},
|
|
216
|
+
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
217
|
+
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
218
|
+
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/** Update a StandbyVirtualMachinePoolResource */
|
|
223
|
+
async function standbyVirtualMachinePoolsUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
|
|
224
|
+
requestOptions: {},
|
|
225
|
+
}) {
|
|
226
|
+
const result = await _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options);
|
|
227
|
+
return _standbyVirtualMachinePoolsUpdateDeserialize(result);
|
|
228
|
+
}
|
|
229
|
+
function _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options = {
|
|
230
|
+
requestOptions: {},
|
|
231
|
+
}) {
|
|
232
|
+
return context
|
|
233
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId, resourceGroupName)
|
|
234
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
235
|
+
}
|
|
236
|
+
async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(result) {
|
|
237
|
+
const expectedStatuses = ["200"];
|
|
238
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
239
|
+
throw (0, core_client_1.createRestError)(result);
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
value: result.body["value"].map((p) => {
|
|
243
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
244
|
+
return {
|
|
245
|
+
tags: p["tags"],
|
|
246
|
+
location: p["location"],
|
|
247
|
+
id: p["id"],
|
|
248
|
+
name: p["name"],
|
|
249
|
+
type: p["type"],
|
|
250
|
+
systemData: !p.systemData
|
|
251
|
+
? undefined
|
|
252
|
+
: {
|
|
253
|
+
createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
254
|
+
createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
255
|
+
createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
256
|
+
? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
257
|
+
: undefined,
|
|
258
|
+
lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
259
|
+
lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
260
|
+
lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
261
|
+
? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
262
|
+
: undefined,
|
|
263
|
+
},
|
|
264
|
+
properties: !p.properties
|
|
265
|
+
? undefined
|
|
266
|
+
: {
|
|
267
|
+
elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
268
|
+
? undefined
|
|
269
|
+
: {
|
|
270
|
+
maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
271
|
+
minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
272
|
+
},
|
|
273
|
+
virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
274
|
+
attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
275
|
+
provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
279
|
+
nextLink: result.body["nextLink"],
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
/** List StandbyVirtualMachinePoolResource resources by resource group */
|
|
283
|
+
function standbyVirtualMachinePoolsListByResourceGroup(context, subscriptionId, resourceGroupName, options = {
|
|
284
|
+
requestOptions: {},
|
|
285
|
+
}) {
|
|
286
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _standbyVirtualMachinePoolsListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
287
|
+
}
|
|
288
|
+
function _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options = {
|
|
289
|
+
requestOptions: {},
|
|
290
|
+
}) {
|
|
291
|
+
return context
|
|
292
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId)
|
|
293
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
294
|
+
}
|
|
295
|
+
async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(result) {
|
|
296
|
+
const expectedStatuses = ["200"];
|
|
297
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
298
|
+
throw (0, core_client_1.createRestError)(result);
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
value: result.body["value"].map((p) => {
|
|
302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
303
|
+
return {
|
|
304
|
+
tags: p["tags"],
|
|
305
|
+
location: p["location"],
|
|
306
|
+
id: p["id"],
|
|
307
|
+
name: p["name"],
|
|
308
|
+
type: p["type"],
|
|
309
|
+
systemData: !p.systemData
|
|
310
|
+
? undefined
|
|
311
|
+
: {
|
|
312
|
+
createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
313
|
+
createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
314
|
+
createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
315
|
+
? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
316
|
+
: undefined,
|
|
317
|
+
lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
318
|
+
lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
319
|
+
lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
320
|
+
? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
321
|
+
: undefined,
|
|
322
|
+
},
|
|
323
|
+
properties: !p.properties
|
|
324
|
+
? undefined
|
|
325
|
+
: {
|
|
326
|
+
elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
327
|
+
? undefined
|
|
328
|
+
: {
|
|
329
|
+
maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
330
|
+
minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
331
|
+
},
|
|
332
|
+
virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
333
|
+
attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
334
|
+
provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
335
|
+
},
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
338
|
+
nextLink: result.body["nextLink"],
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
/** List StandbyVirtualMachinePoolResource resources by subscription ID */
|
|
342
|
+
function standbyVirtualMachinePoolsListBySubscription(context, subscriptionId, options = {
|
|
343
|
+
requestOptions: {},
|
|
344
|
+
}) {
|
|
345
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options), _standbyVirtualMachinePoolsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=index.js.map
|