@azure/arm-standbypool 1.0.2-alpha.20250423.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -7
- package/LICENSE +1 -1
- package/README.md +15 -8
- package/dist/browser/api/index.d.ts +1 -7
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +0 -6
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +2 -9
- package/dist/browser/api/operations/index.d.ts.map +1 -1
- package/dist/browser/api/operations/index.js +1 -37
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/index.d.ts +2 -30
- package/dist/browser/api/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/browser/api/standbyContainerGroupPools/index.js +1 -359
- package/dist/browser/api/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/browser/api/standbyContainerGroupPools/operations.d.ts +36 -0
- package/dist/browser/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/operations.js +192 -0
- package/dist/browser/api/standbyContainerGroupPools/operations.js.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/options.d.ts +24 -0
- package/dist/browser/api/standbyContainerGroupPools/options.d.ts.map +1 -0
- package/dist/browser/api/standbyContainerGroupPools/options.js.map +1 -0
- package/dist/browser/api/standbyPoolManagementContext.d.ts +9 -3
- package/dist/browser/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/browser/api/standbyPoolManagementContext.js +7 -6
- package/dist/browser/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
- package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/index.d.ts +2 -30
- package/dist/browser/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/browser/api/standbyVirtualMachinePools/index.js +1 -324
- package/dist/browser/api/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/browser/api/standbyVirtualMachinePools/operations.d.ts +36 -0
- package/dist/browser/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/operations.js +192 -0
- package/dist/browser/api/standbyVirtualMachinePools/operations.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/options.d.ts +24 -0
- package/dist/browser/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachinePools/options.js +4 -0
- package/dist/browser/api/standbyVirtualMachinePools/options.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/index.d.ts +2 -13
- package/dist/browser/api/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/browser/api/standbyVirtualMachines/index.js +1 -94
- package/dist/browser/api/standbyVirtualMachines/index.js.map +1 -1
- package/dist/browser/api/standbyVirtualMachines/operations.d.ts +14 -0
- package/dist/browser/api/standbyVirtualMachines/operations.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/operations.js +63 -0
- package/dist/browser/api/standbyVirtualMachines/operations.js.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/options.d.ts +8 -0
- package/dist/browser/api/standbyVirtualMachines/options.d.ts.map +1 -0
- package/dist/browser/api/standbyVirtualMachines/options.js +4 -0
- package/dist/browser/api/standbyVirtualMachines/options.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +3 -6
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +5 -5
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
- package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/browser/classic/standbyContainerGroupPools/index.d.ts +18 -21
- package/dist/browser/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/browser/classic/standbyContainerGroupPools/index.js +10 -10
- package/dist/browser/classic/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
- package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts +18 -21
- package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/browser/classic/standbyVirtualMachinePools/index.js +10 -10
- package/dist/browser/classic/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/browser/classic/standbyVirtualMachines/index.d.ts +5 -9
- package/dist/browser/classic/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/browser/classic/standbyVirtualMachines/index.js +6 -6
- package/dist/browser/classic/standbyVirtualMachines/index.js.map +1 -1
- package/dist/browser/index.d.ts +9 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +447 -238
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +546 -91
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -11
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/standbyPoolManagementClient.d.ts +19 -19
- package/dist/browser/standbyPoolManagementClient.d.ts.map +1 -1
- package/dist/browser/standbyPoolManagementClient.js +16 -14
- package/dist/browser/standbyPoolManagementClient.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +1 -7
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +1 -26
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.d.ts +2 -9
- package/dist/commonjs/api/operations/index.d.ts.map +1 -1
- package/dist/commonjs/api/operations/index.js +3 -40
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js +4 -116
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.js +75 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.js +5 -0
- package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts +2 -30
- package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/commonjs/api/standbyContainerGroupPools/index.js +8 -377
- package/dist/commonjs/api/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/commonjs/api/standbyContainerGroupPools/operations.d.ts +36 -0
- package/dist/commonjs/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/operations.js +212 -0
- package/dist/commonjs/api/standbyContainerGroupPools/operations.js.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/options.d.ts +24 -0
- package/dist/commonjs/api/standbyContainerGroupPools/options.d.ts.map +1 -0
- package/dist/commonjs/api/standbyContainerGroupPools/options.js +5 -0
- package/dist/commonjs/api/standbyContainerGroupPools/options.js.map +1 -0
- package/dist/commonjs/api/standbyPoolManagementContext.d.ts +9 -3
- package/dist/commonjs/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/commonjs/api/standbyPoolManagementContext.js +7 -6
- package/dist/commonjs/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js +4 -118
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.js +75 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.js +5 -0
- package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts +2 -30
- package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachinePools/index.js +8 -342
- package/dist/commonjs/api/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachinePools/operations.d.ts +36 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/operations.js +212 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/operations.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/options.d.ts +24 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/options.js +5 -0
- package/dist/commonjs/api/standbyVirtualMachinePools/options.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/index.d.ts +2 -13
- package/dist/commonjs/api/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachines/index.js +4 -100
- package/dist/commonjs/api/standbyVirtualMachines/index.js.map +1 -1
- package/dist/commonjs/api/standbyVirtualMachines/operations.d.ts +14 -0
- package/dist/commonjs/api/standbyVirtualMachines/operations.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/operations.js +71 -0
- package/dist/commonjs/api/standbyVirtualMachines/operations.js.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/options.d.ts +8 -0
- package/dist/commonjs/api/standbyVirtualMachines/options.d.ts.map +1 -0
- package/dist/commonjs/api/standbyVirtualMachines/options.js +5 -0
- package/dist/commonjs/api/standbyVirtualMachines/options.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +3 -6
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +6 -7
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js +7 -8
- package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts +18 -21
- package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/commonjs/classic/standbyContainerGroupPools/index.js +11 -12
- package/dist/commonjs/classic/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js +7 -8
- package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts +18 -21
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.js +11 -12
- package/dist/commonjs/classic/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts +5 -9
- package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/commonjs/classic/standbyVirtualMachines/index.js +7 -8
- package/dist/commonjs/classic/standbyVirtualMachines/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +9 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +9 -5
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +9 -5
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +447 -238
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +609 -98
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -11
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/standbyPoolManagementClient.d.ts +19 -19
- package/dist/commonjs/standbyPoolManagementClient.d.ts.map +1 -1
- package/dist/commonjs/standbyPoolManagementClient.js +16 -14
- package/dist/commonjs/standbyPoolManagementClient.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +2 -2
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/api/index.d.ts +1 -7
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +0 -6
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +2 -9
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +1 -37
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.js +4 -0
- package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/index.d.ts +2 -30
- package/dist/esm/api/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/esm/api/standbyContainerGroupPools/index.js +1 -359
- package/dist/esm/api/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/esm/api/standbyContainerGroupPools/operations.d.ts +36 -0
- package/dist/esm/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/operations.js +192 -0
- package/dist/esm/api/standbyContainerGroupPools/operations.js.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/options.d.ts +24 -0
- package/dist/esm/api/standbyContainerGroupPools/options.d.ts.map +1 -0
- package/dist/esm/api/standbyContainerGroupPools/options.js +4 -0
- package/dist/esm/api/standbyContainerGroupPools/options.js.map +1 -0
- package/dist/esm/api/standbyPoolManagementContext.d.ts +9 -3
- package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/esm/api/standbyPoolManagementContext.js +7 -6
- package/dist/esm/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
- package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/index.d.ts +2 -30
- package/dist/esm/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/esm/api/standbyVirtualMachinePools/index.js +1 -324
- package/dist/esm/api/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/esm/api/standbyVirtualMachinePools/operations.d.ts +36 -0
- package/dist/esm/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/operations.js +192 -0
- package/dist/esm/api/standbyVirtualMachinePools/operations.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/options.d.ts +24 -0
- package/dist/esm/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachinePools/options.js +4 -0
- package/dist/esm/api/standbyVirtualMachinePools/options.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/index.d.ts +2 -13
- package/dist/esm/api/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/esm/api/standbyVirtualMachines/index.js +1 -94
- package/dist/esm/api/standbyVirtualMachines/index.js.map +1 -1
- package/dist/esm/api/standbyVirtualMachines/operations.d.ts +14 -0
- package/dist/esm/api/standbyVirtualMachines/operations.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/operations.js +63 -0
- package/dist/esm/api/standbyVirtualMachines/operations.js.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/options.d.ts +8 -0
- package/dist/esm/api/standbyVirtualMachines/options.d.ts.map +1 -0
- package/dist/esm/api/standbyVirtualMachines/options.js +4 -0
- package/dist/esm/api/standbyVirtualMachines/options.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +3 -6
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +5 -5
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
- package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/esm/classic/standbyContainerGroupPools/index.d.ts +18 -21
- package/dist/esm/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/esm/classic/standbyContainerGroupPools/index.js +10 -10
- package/dist/esm/classic/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
- package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts +18 -21
- package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/esm/classic/standbyVirtualMachinePools/index.js +10 -10
- package/dist/esm/classic/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/esm/classic/standbyVirtualMachines/index.d.ts +5 -9
- package/dist/esm/classic/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/esm/classic/standbyVirtualMachines/index.js +6 -6
- package/dist/esm/classic/standbyVirtualMachines/index.js.map +1 -1
- package/dist/esm/index.d.ts +9 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +447 -238
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +546 -91
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -11
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/standbyPoolManagementClient.d.ts +19 -19
- package/dist/esm/standbyPoolManagementClient.d.ts.map +1 -1
- package/dist/esm/standbyPoolManagementClient.js +16 -14
- package/dist/esm/standbyPoolManagementClient.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/index.d.ts +1 -7
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +0 -6
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +2 -9
- package/dist/react-native/api/operations/index.d.ts.map +1 -1
- package/dist/react-native/api/operations/index.js +1 -37
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.js +4 -0
- package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/index.d.ts +2 -30
- package/dist/react-native/api/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/react-native/api/standbyContainerGroupPools/index.js +1 -359
- package/dist/react-native/api/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/react-native/api/standbyContainerGroupPools/operations.d.ts +36 -0
- package/dist/react-native/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/operations.js +192 -0
- package/dist/react-native/api/standbyContainerGroupPools/operations.js.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/options.d.ts +24 -0
- package/dist/react-native/api/standbyContainerGroupPools/options.d.ts.map +1 -0
- package/dist/react-native/api/standbyContainerGroupPools/options.js +4 -0
- package/dist/react-native/api/standbyContainerGroupPools/options.js.map +1 -0
- package/dist/react-native/api/standbyPoolManagementContext.d.ts +9 -3
- package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/react-native/api/standbyPoolManagementContext.js +7 -6
- package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
- package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts +2 -30
- package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/react-native/api/standbyVirtualMachinePools/index.js +1 -324
- package/dist/react-native/api/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/react-native/api/standbyVirtualMachinePools/operations.d.ts +36 -0
- package/dist/react-native/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/operations.js +192 -0
- package/dist/react-native/api/standbyVirtualMachinePools/operations.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/options.d.ts +24 -0
- package/dist/react-native/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachinePools/options.js +4 -0
- package/dist/react-native/api/standbyVirtualMachinePools/options.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/index.d.ts +2 -13
- package/dist/react-native/api/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/react-native/api/standbyVirtualMachines/index.js +1 -94
- package/dist/react-native/api/standbyVirtualMachines/index.js.map +1 -1
- package/dist/react-native/api/standbyVirtualMachines/operations.d.ts +14 -0
- package/dist/react-native/api/standbyVirtualMachines/operations.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/operations.js +63 -0
- package/dist/react-native/api/standbyVirtualMachines/operations.js.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/options.d.ts +8 -0
- package/dist/react-native/api/standbyVirtualMachines/options.d.ts.map +1 -0
- package/dist/react-native/api/standbyVirtualMachines/options.js +4 -0
- package/dist/react-native/api/standbyVirtualMachines/options.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +3 -6
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +5 -5
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
- package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
- package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts +18 -21
- package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
- package/dist/react-native/classic/standbyContainerGroupPools/index.js +10 -10
- package/dist/react-native/classic/standbyContainerGroupPools/index.js.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
- package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts +18 -21
- package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachinePools/index.js +10 -10
- package/dist/react-native/classic/standbyVirtualMachinePools/index.js.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachines/index.d.ts +5 -9
- package/dist/react-native/classic/standbyVirtualMachines/index.d.ts.map +1 -1
- package/dist/react-native/classic/standbyVirtualMachines/index.js +6 -6
- package/dist/react-native/classic/standbyVirtualMachines/index.js.map +1 -1
- package/dist/react-native/index.d.ts +9 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +447 -238
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +546 -91
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -11
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/standbyPoolManagementClient.d.ts +19 -19
- package/dist/react-native/standbyPoolManagementClient.d.ts.map +1 -1
- package/dist/react-native/standbyPoolManagementClient.js +16 -14
- package/dist/react-native/standbyPoolManagementClient.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +149 -16
- package/review/arm-standbypool-api-operations.api.md +19 -0
- package/review/arm-standbypool-api-standbyContainerGroupPoolRuntimeViews.api.md +26 -0
- package/review/arm-standbypool-api-standbyContainerGroupPools.api.md +58 -0
- package/review/arm-standbypool-api-standbyVirtualMachinePoolRuntimeViews.api.md +26 -0
- package/review/arm-standbypool-api-standbyVirtualMachinePools.api.md +58 -0
- package/review/arm-standbypool-api-standbyVirtualMachines.api.md +26 -0
- package/review/arm-standbypool-api.api.md +27 -0
- package/review/arm-standbypool-models.api.md +105 -83
- package/review/arm-standbypool.api.md +110 -6
- package/dist/browser/helpers/serializerHelpers.d.ts +0 -3
- package/dist/browser/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/browser/helpers/serializerHelpers.js +0 -24
- package/dist/browser/helpers/serializerHelpers.js.map +0 -1
- package/dist/browser/models/options.d.ts +0 -67
- package/dist/browser/models/options.d.ts.map +0 -1
- package/dist/browser/models/options.js.map +0 -1
- package/dist/commonjs/helpers/serializerHelpers.d.ts +0 -3
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/commonjs/helpers/serializerHelpers.js +0 -27
- package/dist/commonjs/helpers/serializerHelpers.js.map +0 -1
- package/dist/commonjs/models/options.d.ts +0 -67
- package/dist/commonjs/models/options.d.ts.map +0 -1
- package/dist/commonjs/models/options.js.map +0 -1
- package/dist/esm/helpers/serializerHelpers.d.ts +0 -3
- package/dist/esm/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/esm/helpers/serializerHelpers.js +0 -24
- package/dist/esm/helpers/serializerHelpers.js.map +0 -1
- package/dist/esm/models/options.d.ts +0 -67
- package/dist/esm/models/options.d.ts.map +0 -1
- package/dist/esm/models/options.js.map +0 -1
- package/dist/react-native/helpers/serializerHelpers.d.ts +0 -3
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/react-native/helpers/serializerHelpers.js +0 -24
- package/dist/react-native/helpers/serializerHelpers.js.map +0 -1
- package/dist/react-native/models/options.d.ts +0 -67
- package/dist/react-native/models/options.d.ts.map +0 -1
- package/dist/react-native/models/options.js.map +0 -1
- /package/dist/browser/{models → api/operations}/options.js +0 -0
- /package/dist/{esm/models → browser/api/standbyContainerGroupPoolRuntimeViews}/options.js +0 -0
- /package/dist/{react-native/models → browser/api/standbyContainerGroupPools}/options.js +0 -0
- /package/dist/commonjs/{models → api/operations}/options.js +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, standbyVirtualMachinePoolRuntimeViewResourceDeserializer, _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _listByStandbyPoolSend(context, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
8
|
+
requestOptions: {},
|
|
9
|
+
}) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews{?api%2Dversion}", {
|
|
12
|
+
subscriptionId: context.subscriptionId,
|
|
13
|
+
resourceGroupName: resourceGroupName,
|
|
14
|
+
standbyVirtualMachinePoolName: standbyVirtualMachinePoolName,
|
|
15
|
+
"api%2Dversion": context.apiVersion,
|
|
16
|
+
}, {
|
|
17
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
20
|
+
}
|
|
21
|
+
export async function _listByStandbyPoolDeserialize(result) {
|
|
22
|
+
const expectedStatuses = ["200"];
|
|
23
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
24
|
+
const error = createRestError(result);
|
|
25
|
+
error.details = errorResponseDeserializer(result.body);
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
return _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer(result.body);
|
|
29
|
+
}
|
|
30
|
+
/** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */
|
|
31
|
+
export function listByStandbyPool(context, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
32
|
+
requestOptions: {},
|
|
33
|
+
}) {
|
|
34
|
+
return buildPagedAsyncIterator(context, () => _listByStandbyPoolSend(context, resourceGroupName, standbyVirtualMachinePoolName, options), _listByStandbyPoolDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
35
|
+
}
|
|
36
|
+
export function _getSend(context, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
|
|
37
|
+
requestOptions: {},
|
|
38
|
+
}) {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}{?api%2Dversion}", {
|
|
41
|
+
subscriptionId: context.subscriptionId,
|
|
42
|
+
resourceGroupName: resourceGroupName,
|
|
43
|
+
standbyVirtualMachinePoolName: standbyVirtualMachinePoolName,
|
|
44
|
+
runtimeView: runtimeView,
|
|
45
|
+
"api%2Dversion": context.apiVersion,
|
|
46
|
+
}, {
|
|
47
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
48
|
+
});
|
|
49
|
+
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
50
|
+
}
|
|
51
|
+
export async function _getDeserialize(result) {
|
|
52
|
+
const expectedStatuses = ["200"];
|
|
53
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
54
|
+
const error = createRestError(result);
|
|
55
|
+
error.details = errorResponseDeserializer(result.body);
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
return standbyVirtualMachinePoolRuntimeViewResourceDeserializer(result.body);
|
|
59
|
+
}
|
|
60
|
+
/** Get a StandbyVirtualMachinePoolRuntimeViewResource */
|
|
61
|
+
export async function get(context, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
|
|
62
|
+
requestOptions: {},
|
|
63
|
+
}) {
|
|
64
|
+
const result = await _getSend(context, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options);
|
|
65
|
+
return _getDeserialize(result);
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePoolRuntimeViews/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,wDAAwD,EAExD,mEAAmE,GACpE,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,iBAAyB,EACzB,6BAAqC,EACrC,UAAgF;IAC9E,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,4LAA4L,EAC5L;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,6BAA6B,EAAE,6BAA6B;QAC5D,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KAC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E,iBAAiB;QACpC,6BAA6B,EAAE,6BAA6B;QAC5D,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,wDAAwD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/E,CAAC;AAED,yDAAyD;AACzD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,6BAAqC,EACrC,WAAmB,EACnB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StandbyPoolManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n StandbyVirtualMachinePoolRuntimeViewResource,\n standbyVirtualMachinePoolRuntimeViewResourceDeserializer,\n _StandbyVirtualMachinePoolRuntimeViewResourceListResult,\n _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams,\n StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByStandbyPoolSend(\n context: Client,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n standbyVirtualMachinePoolName: standbyVirtualMachinePoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByStandbyPoolDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolRuntimeViewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer(result.body);\n}\n\n/** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */\nexport function listByStandbyPool(\n context: Client,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolRuntimeViewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _listByStandbyPoolSend(context, resourceGroupName, standbyVirtualMachinePoolName, options),\n _listByStandbyPoolDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n standbyVirtualMachinePoolName: standbyVirtualMachinePoolName,\n runtimeView: runtimeView,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return standbyVirtualMachinePoolRuntimeViewResourceDeserializer(result.body);\n}\n\n/** Get a StandbyVirtualMachinePoolRuntimeViewResource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\n const result = await _getSend(\n context,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n runtimeView,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePoolRuntimeViews/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,oEACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,sDAAuD,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePoolRuntimeViews/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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>;
|
|
1
|
+
export { listBySubscription, listByResourceGroup, update, $delete, createOrUpdate, get, } from "./operations.js";
|
|
2
|
+
export { StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, StandbyVirtualMachinePoolsUpdateOptionalParams, StandbyVirtualMachinePoolsDeleteOptionalParams, StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, StandbyVirtualMachinePoolsGetOptionalParams, } from "./options.js";
|
|
31
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0DAA0D,EAC1D,2DAA2D,EAC3D,8CAA8C,EAC9C,8CAA8C,EAC9C,sDAAsD,EACtD,2CAA2C,GAC5C,MAAM,cAAc,CAAC"}
|
|
@@ -1,327 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client";
|
|
5
|
-
import { serializeRecord } from "../../helpers/serializerHelpers.js";
|
|
6
|
-
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
7
|
-
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
8
|
-
export function _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
|
|
9
|
-
return context
|
|
10
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
11
|
-
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
12
|
-
}
|
|
13
|
-
export async function _standbyVirtualMachinePoolsGetDeserialize(result) {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
15
|
-
const expectedStatuses = ["200"];
|
|
16
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
17
|
-
throw createRestError(result);
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
tags: result.body["tags"],
|
|
21
|
-
location: result.body["location"],
|
|
22
|
-
id: result.body["id"],
|
|
23
|
-
name: result.body["name"],
|
|
24
|
-
type: result.body["type"],
|
|
25
|
-
systemData: !result.body.systemData
|
|
26
|
-
? undefined
|
|
27
|
-
: {
|
|
28
|
-
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
29
|
-
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
30
|
-
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
31
|
-
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
32
|
-
: undefined,
|
|
33
|
-
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
34
|
-
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
35
|
-
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
36
|
-
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
37
|
-
: undefined,
|
|
38
|
-
},
|
|
39
|
-
properties: !result.body.properties
|
|
40
|
-
? undefined
|
|
41
|
-
: {
|
|
42
|
-
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
43
|
-
? undefined
|
|
44
|
-
: {
|
|
45
|
-
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
46
|
-
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
47
|
-
},
|
|
48
|
-
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
49
|
-
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
50
|
-
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
/** Get a StandbyVirtualMachinePoolResource */
|
|
55
|
-
export async function standbyVirtualMachinePoolsGet(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
|
|
56
|
-
const result = await _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options);
|
|
57
|
-
return _standbyVirtualMachinePoolsGetDeserialize(result);
|
|
58
|
-
}
|
|
59
|
-
export function _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
|
|
60
|
-
requestOptions: {},
|
|
61
|
-
}) {
|
|
62
|
-
return context
|
|
63
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
64
|
-
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
|
|
65
|
-
tags: !resource.tags ? resource.tags : serializeRecord(resource.tags),
|
|
66
|
-
location: resource["location"],
|
|
67
|
-
properties: !resource.properties
|
|
68
|
-
? resource.properties
|
|
69
|
-
: standbyVirtualMachinePoolResourcePropertiesSerializer(resource.properties),
|
|
70
|
-
} }));
|
|
71
|
-
}
|
|
72
|
-
export async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(result) {
|
|
73
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
74
|
-
const expectedStatuses = ["200", "201"];
|
|
75
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
76
|
-
throw createRestError(result);
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
tags: result.body["tags"],
|
|
80
|
-
location: result.body["location"],
|
|
81
|
-
id: result.body["id"],
|
|
82
|
-
name: result.body["name"],
|
|
83
|
-
type: result.body["type"],
|
|
84
|
-
systemData: !result.body.systemData
|
|
85
|
-
? undefined
|
|
86
|
-
: {
|
|
87
|
-
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
88
|
-
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
89
|
-
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
90
|
-
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
91
|
-
: undefined,
|
|
92
|
-
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
93
|
-
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
94
|
-
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
95
|
-
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
96
|
-
: undefined,
|
|
97
|
-
},
|
|
98
|
-
properties: !result.body.properties
|
|
99
|
-
? undefined
|
|
100
|
-
: {
|
|
101
|
-
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
102
|
-
? undefined
|
|
103
|
-
: {
|
|
104
|
-
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
105
|
-
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
106
|
-
},
|
|
107
|
-
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
108
|
-
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
109
|
-
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
/** Create a StandbyVirtualMachinePoolResource */
|
|
114
|
-
export function standbyVirtualMachinePoolsCreateOrUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
|
|
115
|
-
requestOptions: {},
|
|
116
|
-
}) {
|
|
117
|
-
return getLongRunningPoller(context, _standbyVirtualMachinePoolsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
118
|
-
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
119
|
-
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
120
|
-
getInitialResponse: () => _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options),
|
|
121
|
-
resourceLocationConfig: "azure-async-operation",
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
export function _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
125
|
-
requestOptions: {},
|
|
126
|
-
}) {
|
|
127
|
-
return context
|
|
128
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
129
|
-
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
130
|
-
}
|
|
131
|
-
export async function _standbyVirtualMachinePoolsDeleteDeserialize(result) {
|
|
132
|
-
const expectedStatuses = ["202", "204", "200"];
|
|
133
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
134
|
-
throw createRestError(result);
|
|
135
|
-
}
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
/** Delete a StandbyVirtualMachinePoolResource */
|
|
139
|
-
export function standbyVirtualMachinePoolsDelete(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
|
|
140
|
-
requestOptions: {},
|
|
141
|
-
}) {
|
|
142
|
-
return getLongRunningPoller(context, _standbyVirtualMachinePoolsDeleteDeserialize, ["202", "204", "200"], {
|
|
143
|
-
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
144
|
-
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
145
|
-
getInitialResponse: () => _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options),
|
|
146
|
-
resourceLocationConfig: "location",
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
export function _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
|
|
150
|
-
requestOptions: {},
|
|
151
|
-
}) {
|
|
152
|
-
return context
|
|
153
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
|
|
154
|
-
.patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
|
|
155
|
-
tags: !properties.tags ? properties.tags : serializeRecord(properties.tags),
|
|
156
|
-
properties: !properties.properties
|
|
157
|
-
? properties.properties
|
|
158
|
-
: standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(properties.properties),
|
|
159
|
-
} }));
|
|
160
|
-
}
|
|
161
|
-
export async function _standbyVirtualMachinePoolsUpdateDeserialize(result) {
|
|
162
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
163
|
-
const expectedStatuses = ["200"];
|
|
164
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
165
|
-
throw createRestError(result);
|
|
166
|
-
}
|
|
167
|
-
return {
|
|
168
|
-
tags: result.body["tags"],
|
|
169
|
-
location: result.body["location"],
|
|
170
|
-
id: result.body["id"],
|
|
171
|
-
name: result.body["name"],
|
|
172
|
-
type: result.body["type"],
|
|
173
|
-
systemData: !result.body.systemData
|
|
174
|
-
? undefined
|
|
175
|
-
: {
|
|
176
|
-
createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
177
|
-
createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
178
|
-
createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
179
|
-
? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
180
|
-
: undefined,
|
|
181
|
-
lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
182
|
-
lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
183
|
-
lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
184
|
-
? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
185
|
-
: undefined,
|
|
186
|
-
},
|
|
187
|
-
properties: !result.body.properties
|
|
188
|
-
? undefined
|
|
189
|
-
: {
|
|
190
|
-
elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
191
|
-
? undefined
|
|
192
|
-
: {
|
|
193
|
-
maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
194
|
-
minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
195
|
-
},
|
|
196
|
-
virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
197
|
-
attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
198
|
-
provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
/** Update a StandbyVirtualMachinePoolResource */
|
|
203
|
-
export async function standbyVirtualMachinePoolsUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
|
|
204
|
-
requestOptions: {},
|
|
205
|
-
}) {
|
|
206
|
-
const result = await _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options);
|
|
207
|
-
return _standbyVirtualMachinePoolsUpdateDeserialize(result);
|
|
208
|
-
}
|
|
209
|
-
export function _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options = {
|
|
210
|
-
requestOptions: {},
|
|
211
|
-
}) {
|
|
212
|
-
return context
|
|
213
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId, resourceGroupName)
|
|
214
|
-
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
215
|
-
}
|
|
216
|
-
export async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(result) {
|
|
217
|
-
const expectedStatuses = ["200"];
|
|
218
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
219
|
-
throw createRestError(result);
|
|
220
|
-
}
|
|
221
|
-
return {
|
|
222
|
-
value: result.body["value"].map((p) => {
|
|
223
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
224
|
-
return {
|
|
225
|
-
tags: p["tags"],
|
|
226
|
-
location: p["location"],
|
|
227
|
-
id: p["id"],
|
|
228
|
-
name: p["name"],
|
|
229
|
-
type: p["type"],
|
|
230
|
-
systemData: !p.systemData
|
|
231
|
-
? undefined
|
|
232
|
-
: {
|
|
233
|
-
createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
234
|
-
createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
235
|
-
createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
236
|
-
? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
237
|
-
: undefined,
|
|
238
|
-
lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
239
|
-
lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
240
|
-
lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
241
|
-
? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
242
|
-
: undefined,
|
|
243
|
-
},
|
|
244
|
-
properties: !p.properties
|
|
245
|
-
? undefined
|
|
246
|
-
: {
|
|
247
|
-
elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
248
|
-
? undefined
|
|
249
|
-
: {
|
|
250
|
-
maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
251
|
-
minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
252
|
-
},
|
|
253
|
-
virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
254
|
-
attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
255
|
-
provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
}),
|
|
259
|
-
nextLink: result.body["nextLink"],
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
/** List StandbyVirtualMachinePoolResource resources by resource group */
|
|
263
|
-
export function standbyVirtualMachinePoolsListByResourceGroup(context, subscriptionId, resourceGroupName, options = {
|
|
264
|
-
requestOptions: {},
|
|
265
|
-
}) {
|
|
266
|
-
return buildPagedAsyncIterator(context, () => _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _standbyVirtualMachinePoolsListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
267
|
-
}
|
|
268
|
-
export function _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options = {
|
|
269
|
-
requestOptions: {},
|
|
270
|
-
}) {
|
|
271
|
-
return context
|
|
272
|
-
.path("/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId)
|
|
273
|
-
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
274
|
-
}
|
|
275
|
-
export async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(result) {
|
|
276
|
-
const expectedStatuses = ["200"];
|
|
277
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
278
|
-
throw createRestError(result);
|
|
279
|
-
}
|
|
280
|
-
return {
|
|
281
|
-
value: result.body["value"].map((p) => {
|
|
282
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
283
|
-
return {
|
|
284
|
-
tags: p["tags"],
|
|
285
|
-
location: p["location"],
|
|
286
|
-
id: p["id"],
|
|
287
|
-
name: p["name"],
|
|
288
|
-
type: p["type"],
|
|
289
|
-
systemData: !p.systemData
|
|
290
|
-
? undefined
|
|
291
|
-
: {
|
|
292
|
-
createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
|
|
293
|
-
createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
|
|
294
|
-
createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
|
|
295
|
-
? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
|
|
296
|
-
: undefined,
|
|
297
|
-
lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
|
|
298
|
-
lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
|
|
299
|
-
lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
|
|
300
|
-
? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
|
|
301
|
-
: undefined,
|
|
302
|
-
},
|
|
303
|
-
properties: !p.properties
|
|
304
|
-
? undefined
|
|
305
|
-
: {
|
|
306
|
-
elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
|
|
307
|
-
? undefined
|
|
308
|
-
: {
|
|
309
|
-
maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
|
|
310
|
-
minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
|
|
311
|
-
},
|
|
312
|
-
virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
|
|
313
|
-
attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
|
|
314
|
-
provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
}),
|
|
318
|
-
nextLink: result.body["nextLink"],
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
/** List StandbyVirtualMachinePoolResource resources by subscription ID */
|
|
322
|
-
export function standbyVirtualMachinePoolsListBySubscription(context, subscriptionId, options = {
|
|
323
|
-
requestOptions: {},
|
|
324
|
-
}) {
|
|
325
|
-
return buildPagedAsyncIterator(context, () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options), _standbyVirtualMachinePoolsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
326
|
-
}
|
|
3
|
+
export { listBySubscription, listByResourceGroup, update, $delete, createOrUpdate, get, } from "./operations.js";
|
|
327
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qDAAqD,EACrD,2DAA2D,GAI5D,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAW/C,MAAM,UAAU,kCAAkC,CAChD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,OAAO;SACX,IAAI,CACH,+JAA+J,EAC/J,cAAc,EACd,iBAAiB,EACj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sB,EACtB,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,iDAAiD,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EACzF,wDAAwD,EACxD,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 standbyVirtualMachinePoolResourcePropertiesSerializer,\n standbyVirtualMachinePoolResourceUpdatePropertiesSerializer,\n StandbyVirtualMachinePoolResource,\n StandbyVirtualMachinePoolResourceUpdate,\n _StandbyVirtualMachinePoolResourceListResult,\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 { serializeRecord } from \"../../helpers/serializerHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StandbyVirtualMachinePoolsGetOptionalParams,\n StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams,\n StandbyVirtualMachinePoolsDeleteOptionalParams,\n StandbyVirtualMachinePoolsUpdateOptionalParams,\n StandbyVirtualMachinePoolsListByResourceGroupOptionalParams,\n StandbyVirtualMachinePoolsListBySubscriptionOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _standbyVirtualMachinePoolsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a StandbyVirtualMachinePoolResource */\nexport async function standbyVirtualMachinePoolsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsGetOptionalParams = { requestOptions: {} },\n): Promise<StandbyVirtualMachinePoolResource> {\n const result = await _standbyVirtualMachinePoolsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n );\n return _standbyVirtualMachinePoolsGetDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n resource: StandbyVirtualMachinePoolResource,\n options: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any),\n location: resource[\"location\"],\n properties: !resource.properties\n ? resource.properties\n : standbyVirtualMachinePoolResourcePropertiesSerializer(resource.properties),\n },\n });\n}\n\nexport async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Create a StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n resource: StandbyVirtualMachinePoolResource,\n options: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<StandbyVirtualMachinePoolResource>,\n StandbyVirtualMachinePoolResource\n> {\n return getLongRunningPoller(\n context,\n _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _standbyVirtualMachinePoolsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<\n OperationState<StandbyVirtualMachinePoolResource>,\n StandbyVirtualMachinePoolResource\n >;\n}\n\nexport function _standbyVirtualMachinePoolsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _standbyVirtualMachinePoolsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _standbyVirtualMachinePoolsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _standbyVirtualMachinePoolsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n properties: StandbyVirtualMachinePoolResourceUpdate,\n options: StandbyVirtualMachinePoolsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any),\n properties: !properties.properties\n ? properties.properties\n : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(properties.properties),\n },\n });\n}\n\nexport async function _standbyVirtualMachinePoolsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Update a StandbyVirtualMachinePoolResource */\nexport async function standbyVirtualMachinePoolsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n properties: StandbyVirtualMachinePoolResourceUpdate,\n options: StandbyVirtualMachinePoolsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyVirtualMachinePoolResource> {\n const result = await _standbyVirtualMachinePoolsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n properties,\n options,\n );\n return _standbyVirtualMachinePoolsUpdateDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolResourceListResult> {\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 tags: p[\"tags\"],\n location: p[\"location\"],\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 elasticityProfile: !p.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: p.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: p.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: p.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: p.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyVirtualMachinePoolResource resources by resource group */\nexport function standbyVirtualMachinePoolsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _standbyVirtualMachinePoolsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _standbyVirtualMachinePoolsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _standbyVirtualMachinePoolsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolResourceListResult> {\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 tags: p[\"tags\"],\n location: p[\"location\"],\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 elasticityProfile: !p.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: p.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: p.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: p.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: p.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyVirtualMachinePoolResource resources by subscription ID */\nexport function standbyVirtualMachinePoolsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource> {\n return buildPagedAsyncIterator(\n context,\n () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options),\n _standbyVirtualMachinePoolsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listBySubscription,\n listByResourceGroup,\n update,\n $delete,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport {\n StandbyVirtualMachinePoolsListBySubscriptionOptionalParams,\n StandbyVirtualMachinePoolsListByResourceGroupOptionalParams,\n StandbyVirtualMachinePoolsUpdateOptionalParams,\n StandbyVirtualMachinePoolsDeleteOptionalParams,\n StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams,\n StandbyVirtualMachinePoolsGetOptionalParams,\n} from \"./options.js\";\n"]}
|