@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
|
@@ -1 +1 @@
|
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WAAW,QAOtB;AAaD,mEAAmE;AACnE,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,0EAA0E;AAC1E,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,aAAa;IACb,2CAAiB,CAAA;IACjB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { serializeRecord } from \"../helpers/serializerHelpers.js\";\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource) {\n return item as any;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** Contains information about a standby container group pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolRuntimeViewResourceProperties;\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResourceProperties {\n /** A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider. */\n readonly instanceCountSummary: ContainerGroupInstanceCountSummary[];\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n}\n\n/** Displays the counts of container groups in each state, as known by the StandbyPool resource provider. */\nexport interface ContainerGroupInstanceCountSummary {\n /** The count of pooled resources in each state. */\n instanceCountsByState: PoolResourceStateCount[];\n}\n\n/** Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider. */\nexport interface PoolResourceStateCount {\n /** The state that the pooled resources count is for. */\n state: string;\n /** The count of pooled resources in the given state. */\n count: number;\n}\n\n/** The response of a StandbyContainerGroupPoolRuntimeViewResource list operation. */\nexport interface _StandbyContainerGroupPoolRuntimeViewResourceListResult {\n /** The StandbyContainerGroupPoolRuntimeViewResource items on this page */\n value: StandbyContainerGroupPoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n };\n}\n\n/** A StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceProperties;\n}\n\nexport function standbyContainerGroupPoolResourceSerializer(\n item: StandbyContainerGroupPoolResource,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n properties: !item.properties\n ? item.properties\n : standbyContainerGroupPoolResourcePropertiesSerializer(item.properties),\n };\n}\n\n/** Details of the StandbyContainerGroupPool. */\nexport interface StandbyContainerGroupPoolResourceProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties: ContainerGroupProperties;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyContainerGroupPoolResourcePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile),\n containerGroupProperties: containerGroupPropertiesSerializer(item.containerGroupProperties),\n };\n}\n\n/** Specifies the elasticity profile of the standby container group pools. */\nexport interface StandbyContainerGroupPoolElasticityProfile {\n /** Specifies maximum number of standby container groups in the standby pool. */\n maxReadyCapacity: number;\n /** Specifies refill policy of the pool. */\n refillPolicy?: RefillPolicy;\n}\n\nexport function standbyContainerGroupPoolElasticityProfileSerializer(\n item: StandbyContainerGroupPoolElasticityProfile,\n): Record<string, unknown> {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n refillPolicy: item[\"refillPolicy\"],\n };\n}\n\n/** Known values of {@link RefillPolicy} that the service accepts. */\nexport enum KnownRefillPolicy {\n /** always */\n Always = \"always\",\n}\n\n/**\n * Refill policy of standby pool \\\n * {@link KnownRefillPolicy} can be used interchangeably with RefillPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **always**\n */\nexport type RefillPolicy = string;\n\n/** Details of the ContainerGroupProperties. */\nexport interface ContainerGroupProperties {\n /** Specifies container group profile of standby container groups. */\n containerGroupProfile: ContainerGroupProfile;\n /** Specifies subnet Ids for container group. */\n subnetIds?: Subnet[];\n}\n\nexport function containerGroupPropertiesSerializer(\n item: ContainerGroupProperties,\n): Record<string, unknown> {\n return {\n containerGroupProfile: containerGroupProfileSerializer(item.containerGroupProfile),\n subnetIds:\n item[\"subnetIds\"] === undefined ? item[\"subnetIds\"] : item[\"subnetIds\"].map(subnetSerializer),\n };\n}\n\n/** Details of the ContainerGroupProfile. */\nexport interface ContainerGroupProfile {\n /** Specifies container group profile id of standby container groups. */\n id: string;\n /** Specifies revision of container group profile. */\n revision?: number;\n}\n\nexport function containerGroupProfileSerializer(\n item: ContainerGroupProfile,\n): Record<string, unknown> {\n return {\n id: item[\"id\"],\n revision: item[\"revision\"],\n };\n}\n\n/** Subnet of container group */\nexport interface Subnet {\n /** Specifies ARM resource id of the subnet. */\n id: string;\n}\n\nexport function subnetSerializer(item: Subnet): Record<string, unknown> {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The type used for update operations of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceUpdateProperties;\n}\n\nexport function standbyContainerGroupPoolResourceUpdateSerializer(\n item: StandbyContainerGroupPoolResourceUpdate,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n properties: !item.properties\n ? item.properties\n : standbyContainerGroupPoolResourceUpdatePropertiesSerializer(item.properties),\n };\n}\n\n/** The updatable properties of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdateProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile?: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties?: ContainerGroupProperties;\n}\n\nexport function standbyContainerGroupPoolResourceUpdatePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceUpdateProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile),\n containerGroupProperties: !item.containerGroupProperties\n ? item.containerGroupProperties\n : containerGroupPropertiesSerializer(item.containerGroupProperties),\n };\n}\n\n/** The response of a StandbyContainerGroupPoolResource list operation. */\nexport interface _StandbyContainerGroupPoolResourceListResult {\n /** The StandbyContainerGroupPoolResource items on this page */\n value: StandbyContainerGroupPoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolRuntimeViewResourceProperties;\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResourceProperties {\n /**\n * A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider.\n * If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.\n * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.\n * Note: any resources in the Running state may still be installing extensions / not fully provisioned.\n */\n readonly instanceCountSummary: VirtualMachineInstanceCountSummary[];\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n}\n\n/**\n * Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource provider.\n * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.\n * Note: any resources in the Running state may still be installing extensions / not fully provisioned.\n */\nexport interface VirtualMachineInstanceCountSummary {\n /** The zone that the provided counts are in. This is null if zones are not enabled on the attached VMSS. */\n zone?: number;\n /** The count of pooled resources in each state for the given zone. */\n instanceCountsByState: PoolResourceStateCount[];\n}\n\n/** The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation. */\nexport interface _StandbyVirtualMachinePoolRuntimeViewResourceListResult {\n /** The StandbyVirtualMachinePoolRuntimeViewResource items on this page */\n value: StandbyVirtualMachinePoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface StandbyVirtualMachineResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachineResourceProperties;\n}\n\n/** Details of the StandbyVirtualMachine. */\nexport interface StandbyVirtualMachineResourceProperties {\n /** Resource id of the virtual machine. */\n virtualMachineResourceId: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\n/** The response of a StandbyVirtualMachineResource list operation. */\nexport interface _StandbyVirtualMachineResourceListResult {\n /** The StandbyVirtualMachineResource items on this page */\n value: StandbyVirtualMachineResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** A StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceSerializer(\n item: StandbyVirtualMachinePoolResource,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n properties: !item.properties\n ? item.properties\n : standbyVirtualMachinePoolResourcePropertiesSerializer(item.properties),\n };\n}\n\n/** Details of the StandbyVirtualMachinePool. */\nexport interface StandbyVirtualMachinePoolResourceProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyVirtualMachinePoolResourcePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\n/** Details of the elasticity profile. */\nexport interface StandbyVirtualMachinePoolElasticityProfile {\n /** Specifies the maximum number of virtual machines in the standby virtual machine pool. */\n maxReadyCapacity: number;\n /** Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity. */\n minReadyCapacity?: number;\n}\n\nexport function standbyVirtualMachinePoolElasticityProfileSerializer(\n item: StandbyVirtualMachinePoolElasticityProfile,\n): Record<string, unknown> {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n minReadyCapacity: item[\"minReadyCapacity\"],\n };\n}\n\n/** Known values of {@link VirtualMachineState} that the service accepts. */\nexport enum KnownVirtualMachineState {\n /** Running */\n Running = \"Running\",\n /** Deallocated */\n Deallocated = \"Deallocated\",\n}\n\n/**\n * State of standby virtual machines \\\n * {@link KnownVirtualMachineState} can be used interchangeably with VirtualMachineState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Running** \\\n * **Deallocated**\n */\nexport type VirtualMachineState = string;\n\n/** The type used for update operations of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceUpdateProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdateSerializer(\n item: StandbyVirtualMachinePoolResourceUpdate,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n properties: !item.properties\n ? item.properties\n : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(item.properties),\n };\n}\n\n/** The updatable properties of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdateProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState?: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceUpdateProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\n/** The response of a StandbyVirtualMachinePoolResource list operation. */\nexport interface _StandbyVirtualMachinePoolResourceListResult {\n /** The StandbyVirtualMachinePoolResource items on this page */\n value: StandbyVirtualMachinePoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** user */\n User = \"user\",\n /** system */\n System = \"system\",\n /** user,system */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Deleting */\n Deleting = \"Deleting\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Deleting**\n */\n/** Alias for ProvisioningState */\n\nexport type ProvisioningState = string;\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA4CD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAKD,oFAEC;AAQD,kGAUC;AAED,sGAgBC;AAcD,sHAUC;AAED,0HAWC;AAUD,oHAOC;AAED,wHAOC;AAuDD,8DAEC;AAED,kEAWC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAkCD,8GASC;AAYD,kIAUC;AAUD,4HAOC;AAED,4GAMC;AAED,gHAMC;AAQD,8FAcC;AAUD,kHAOC;AAKD,8DASC;AAUD,oHAOC;AAED,wGAMC;AAQD,4HAcC;AAcD,gJAaC;AAED,kHAMC;AAUD,wGASC;AAED,sGAMC;AAUD,4FAKC;AA8CD,wDAKC;AA8BD,0GAQC;AAQD,kHAQC;AAUD,kJAOC;AAED,sIAMC;AAQD,kGAUC;AAED,sGAgBC;AAcD,sHAcC;AAED,0HAiBC;AAUD,oHAOC;AAED,wHAOC;AAyBD,gFAKC;AAED,oFAKC;AAUD,0EAEC;AAED,8EAKC;AAED,sDAIC;AAED,0DAIC;AAQD,4CAEC;AAED,gDAIC;AAUD,8GASC;AAYD,kIAgBC;AAUD,4HAOC;AAED,4GAMC;AAED,gHAMC;AAQD,4HAcC;AAcD,gJAaC;AAED,kHAMC;AAUD,wGASC;AAED,sGAMC;AAUD,4FAKC;AAiCD,0GAQC;AAQD,kHAQC;A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,cAAc,EAAE,mDAAmD,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC3F,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACtD,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC;AAQD,SAAgB,mDAAmD,CACjE,IAAS;IAET,OAAO;QACL,uBAAuB,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YACtE,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;KACH,CAAC;AACJ,CAAC;AAUD,SAAgB,mEAAmE,CACjF,IAAS;IAET,OAAO;QACL,KAAK,EAAE,6DAA6D,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnF,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,6DAA6D,CAC3E,MAA2D;IAE3D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,wDAAwD,CAAC,IAAI,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,uDAAuD;AACvD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,yCAAwB,CAAA;IACxB,8BAA8B;IAC9B,yCAAwB,CAAA;AAC1B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** A StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceSerializer(\n item: StandbyVirtualMachinePoolResource,\n): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyVirtualMachinePoolResourcePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function standbyVirtualMachinePoolResourceDeserializer(\n item: any,\n): StandbyVirtualMachinePoolResource {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyVirtualMachinePoolResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the StandbyVirtualMachinePool. */\nexport interface StandbyVirtualMachinePoolResourceProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyVirtualMachinePoolResourcePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceProperties,\n): any {\n return {\n elasticityProfile: !item[\"elasticityProfile\"]\n ? item[\"elasticityProfile\"]\n : standbyVirtualMachinePoolElasticityProfileSerializer(item[\"elasticityProfile\"]),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\nexport function standbyVirtualMachinePoolResourcePropertiesDeserializer(\n item: any,\n): StandbyVirtualMachinePoolResourceProperties {\n return {\n elasticityProfile: !item[\"elasticityProfile\"]\n ? item[\"elasticityProfile\"]\n : standbyVirtualMachinePoolElasticityProfileDeserializer(item[\"elasticityProfile\"]),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Details of the elasticity profile. */\nexport interface StandbyVirtualMachinePoolElasticityProfile {\n /** Specifies the maximum number of virtual machines in the standby virtual machine pool. */\n maxReadyCapacity: number;\n /** Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity. */\n minReadyCapacity?: number;\n}\n\nexport function standbyVirtualMachinePoolElasticityProfileSerializer(\n item: StandbyVirtualMachinePoolElasticityProfile,\n): any {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n minReadyCapacity: item[\"minReadyCapacity\"],\n };\n}\n\nexport function standbyVirtualMachinePoolElasticityProfileDeserializer(\n item: any,\n): StandbyVirtualMachinePoolElasticityProfile {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n minReadyCapacity: item[\"minReadyCapacity\"],\n };\n}\n\n/** State of standby virtual machines */\nexport enum KnownVirtualMachineState {\n /** The virtual machine is up and running. */\n Running = \"Running\",\n /** The virtual machine has released the lease on the underlying hardware and is powered off. */\n Deallocated = \"Deallocated\",\n /** The virtual machine has released the lease on the underlying hardware and is powered off. Memory contents of the VM are stored in the OS disk. When started again, applications and processes that were previously running in your VM resume from the state prior to hibernation. */\n Hibernated = \"Hibernated\",\n}\n\n/**\n * State of standby virtual machines \\\n * {@link KnownVirtualMachineState} can be used interchangeably with VirtualMachineState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Running**: The virtual machine is up and running. \\\n * **Deallocated**: The virtual machine has released the lease on the underlying hardware and is powered off. \\\n * **Hibernated**: The virtual machine has released the lease on the underlying hardware and is powered off. Memory contents of the VM are stored in the OS disk. When started again, applications and processes that were previously running in your VM resume from the state prior to hibernation.\n */\nexport type VirtualMachineState = string;\n\n/** Provisioning state */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** Resource is being deleted. */\n Deleting = \"Deleting\",\n}\n\n/**\n * Provisioning state \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Deleting**: Resource is being deleted.\n */\nexport type ProvisioningState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The type used for update operations of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceUpdateProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdateSerializer(\n item: StandbyVirtualMachinePoolResourceUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdateProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState?: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceUpdateProperties,\n): any {\n return {\n elasticityProfile: !item[\"elasticityProfile\"]\n ? item[\"elasticityProfile\"]\n : standbyVirtualMachinePoolElasticityProfileSerializer(item[\"elasticityProfile\"]),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\n/** The response of a StandbyVirtualMachinePoolResource list operation. */\nexport interface _StandbyVirtualMachinePoolResourceListResult {\n /** The StandbyVirtualMachinePoolResource items on this page */\n value: StandbyVirtualMachinePoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _standbyVirtualMachinePoolResourceListResultDeserializer(\n item: any,\n): _StandbyVirtualMachinePoolResourceListResult {\n return {\n value: standbyVirtualMachinePoolResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function standbyVirtualMachinePoolResourceArraySerializer(\n result: Array<StandbyVirtualMachinePoolResource>,\n): any[] {\n return result.map((item) => {\n return standbyVirtualMachinePoolResourceSerializer(item);\n });\n}\n\nexport function standbyVirtualMachinePoolResourceArrayDeserializer(\n result: Array<StandbyVirtualMachinePoolResource>,\n): any[] {\n return result.map((item) => {\n return standbyVirtualMachinePoolResourceDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface StandbyVirtualMachineResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachineResourceProperties;\n}\n\nexport function standbyVirtualMachineResourceDeserializer(\n item: any,\n): StandbyVirtualMachineResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyVirtualMachineResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the StandbyVirtualMachine. */\nexport interface StandbyVirtualMachineResourceProperties {\n /** Resource id of the virtual machine. */\n virtualMachineResourceId: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyVirtualMachineResourcePropertiesDeserializer(\n item: any,\n): StandbyVirtualMachineResourceProperties {\n return {\n virtualMachineResourceId: item[\"virtualMachineResourceId\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a StandbyVirtualMachineResource list operation. */\nexport interface _StandbyVirtualMachineResourceListResult {\n /** The StandbyVirtualMachineResource items on this page */\n value: StandbyVirtualMachineResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _standbyVirtualMachineResourceListResultDeserializer(\n item: any,\n): _StandbyVirtualMachineResourceListResult {\n return {\n value: standbyVirtualMachineResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function standbyVirtualMachineResourceArrayDeserializer(\n result: Array<StandbyVirtualMachineResource>,\n): any[] {\n return result.map((item) => {\n return standbyVirtualMachineResourceDeserializer(item);\n });\n}\n\n/** Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolRuntimeViewResourceProperties;\n}\n\nexport function standbyVirtualMachinePoolRuntimeViewResourceDeserializer(\n item: any,\n): StandbyVirtualMachinePoolRuntimeViewResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyVirtualMachinePoolRuntimeViewResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResourceProperties {\n /** A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider. If zones are not enabled on the attached VMSS, the list will contain a single entry without zone values. Note: any resources in the Running state may still be installing extensions / not fully provisioned. */\n readonly instanceCountSummary: VirtualMachineInstanceCountSummary[];\n /** Display status of the standby pool */\n readonly status?: PoolStatus;\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n /** Displays prediction information of the standby pool */\n readonly prediction?: StandbyVirtualMachinePoolPrediction;\n}\n\nexport function standbyVirtualMachinePoolRuntimeViewResourcePropertiesDeserializer(\n item: any,\n): StandbyVirtualMachinePoolRuntimeViewResourceProperties {\n return {\n instanceCountSummary: virtualMachineInstanceCountSummaryArrayDeserializer(\n item[\"instanceCountSummary\"],\n ),\n status: !item[\"status\"] ? item[\"status\"] : poolStatusDeserializer(item[\"status\"]),\n provisioningState: item[\"provisioningState\"],\n prediction: !item[\"prediction\"]\n ? item[\"prediction\"]\n : standbyVirtualMachinePoolPredictionDeserializer(item[\"prediction\"]),\n };\n}\n\nexport function virtualMachineInstanceCountSummaryArrayDeserializer(\n result: Array<VirtualMachineInstanceCountSummary>,\n): any[] {\n return result.map((item) => {\n return virtualMachineInstanceCountSummaryDeserializer(item);\n });\n}\n\n/** Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource provider. Note: any resources in the Running state may still be installing extensions / not fully provisioned. */\nexport interface VirtualMachineInstanceCountSummary {\n /** The zone that the provided counts are in. It will not have a value if zones are not enabled on the attached VMSS. */\n zone?: number;\n /** The count of pooled virtual machines in each state for the given zone. */\n instanceCountsByState: PoolVirtualMachineStateCount[];\n}\n\nexport function virtualMachineInstanceCountSummaryDeserializer(\n item: any,\n): VirtualMachineInstanceCountSummary {\n return {\n zone: item[\"zone\"],\n instanceCountsByState: poolVirtualMachineStateCountArrayDeserializer(\n item[\"instanceCountsByState\"],\n ),\n };\n}\n\nexport function poolVirtualMachineStateCountArrayDeserializer(\n result: Array<PoolVirtualMachineStateCount>,\n): any[] {\n return result.map((item) => {\n return poolVirtualMachineStateCountDeserializer(item);\n });\n}\n\n/** Displays the counts of pooled virtual machines in each state, as known by the StandbyPool resource provider. */\nexport interface PoolVirtualMachineStateCount {\n /** The state that the pooled virtual machines count is for. */\n state: PoolVirtualMachineState;\n /** The count of pooled virtual machines in the given state. */\n count: number;\n}\n\nexport function poolVirtualMachineStateCountDeserializer(item: any): PoolVirtualMachineStateCount {\n return {\n state: item[\"state\"],\n count: item[\"count\"],\n };\n}\n\n/** The state of the pooled virtual machines. */\nexport enum KnownPoolVirtualMachineState {\n /** The virtual machine is up and running. */\n Running = \"Running\",\n /** The virtual machine is creating. */\n Creating = \"Creating\",\n /** The virtual machine is starting. */\n Starting = \"Starting\",\n /** The virtual machine is deleting. */\n Deleting = \"Deleting\",\n /** The virtual machine has released the lease on the underlying hardware and is powered off. */\n Deallocated = \"Deallocated\",\n /** The virtual machine is releasing the lease on the underlying hardware and is powered off. */\n Deallocating = \"Deallocating\",\n /** The virtual machine has released the lease on the underlying hardware and is powered off. Memory contents of the VM are stored in the OS disk. When started again, applications and processes that were previously running in your VM resume from the state prior to hibernation. */\n Hibernated = \"Hibernated\",\n /** The virtual machine is hibernating. */\n Hibernating = \"Hibernating\",\n}\n\n/**\n * The state of the pooled virtual machines. \\\n * {@link KnownPoolVirtualMachineState} can be used interchangeably with PoolVirtualMachineState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Running**: The virtual machine is up and running. \\\n * **Creating**: The virtual machine is creating. \\\n * **Starting**: The virtual machine is starting. \\\n * **Deleting**: The virtual machine is deleting. \\\n * **Deallocated**: The virtual machine has released the lease on the underlying hardware and is powered off. \\\n * **Deallocating**: The virtual machine is releasing the lease on the underlying hardware and is powered off. \\\n * **Hibernated**: The virtual machine has released the lease on the underlying hardware and is powered off. Memory contents of the VM are stored in the OS disk. When started again, applications and processes that were previously running in your VM resume from the state prior to hibernation. \\\n * **Hibernating**: The virtual machine is hibernating.\n */\nexport type PoolVirtualMachineState = string;\n\n/** Displays StandbyPool status. */\nexport interface PoolStatus {\n /** Displays the healthy state of the StandbyPool. */\n readonly code: HealthStateCode;\n /** Displays the StandbyPool health state details. */\n readonly message?: string;\n}\n\nexport function poolStatusDeserializer(item: any): PoolStatus {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** StandbyPool health state. */\nexport enum KnownHealthStateCode {\n /** StandbyPool is in healthy state. */\n Healthy = \"HealthState/healthy\",\n /** StandbyPool is in degraded state. */\n Degraded = \"HealthState/degraded\",\n}\n\n/**\n * StandbyPool health state. \\\n * {@link KnownHealthStateCode} can be used interchangeably with HealthStateCode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **HealthState\\/healthy**: StandbyPool is in healthy state. \\\n * **HealthState\\/degraded**: StandbyPool is in degraded state.\n */\nexport type HealthStateCode = string;\n\n/** Displays prediction information of the standby pool. */\nexport interface StandbyVirtualMachinePoolPrediction {\n /** Displays the forecast information of the standby pool. */\n readonly forecastValues: StandbyVirtualMachinePoolForecastValues;\n /** Displays the UTC timestamp of when the prediction was retrieved for the standby pool. */\n readonly forecastStartTime: Date;\n /** Displays additional information for the prediction of the standby pool. */\n readonly forecastInfo: string;\n}\n\nexport function standbyVirtualMachinePoolPredictionDeserializer(\n item: any,\n): StandbyVirtualMachinePoolPrediction {\n return {\n forecastValues: standbyVirtualMachinePoolForecastValuesDeserializer(item[\"forecastValues\"]),\n forecastStartTime: new Date(item[\"forecastStartTime\"]),\n forecastInfo: item[\"forecastInfo\"],\n };\n}\n\n/** Displays the forecast information of the standby pool. */\nexport interface StandbyVirtualMachinePoolForecastValues {\n /** Displays the predicted count of instances to be requested from the standby pool. */\n readonly instancesRequestedCount: number[];\n}\n\nexport function standbyVirtualMachinePoolForecastValuesDeserializer(\n item: any,\n): StandbyVirtualMachinePoolForecastValues {\n return {\n instancesRequestedCount: item[\"instancesRequestedCount\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation. */\nexport interface _StandbyVirtualMachinePoolRuntimeViewResourceListResult {\n /** The StandbyVirtualMachinePoolRuntimeViewResource items on this page */\n value: StandbyVirtualMachinePoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer(\n item: any,\n): _StandbyVirtualMachinePoolRuntimeViewResourceListResult {\n return {\n value: standbyVirtualMachinePoolRuntimeViewResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function standbyVirtualMachinePoolRuntimeViewResourceArrayDeserializer(\n result: Array<StandbyVirtualMachinePoolRuntimeViewResource>,\n): any[] {\n return result.map((item) => {\n return standbyVirtualMachinePoolRuntimeViewResourceDeserializer(item);\n });\n}\n\n/** A StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceProperties;\n}\n\nexport function standbyContainerGroupPoolResourceSerializer(\n item: StandbyContainerGroupPoolResource,\n): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyContainerGroupPoolResourcePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function standbyContainerGroupPoolResourceDeserializer(\n item: any,\n): StandbyContainerGroupPoolResource {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyContainerGroupPoolResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the StandbyContainerGroupPool. */\nexport interface StandbyContainerGroupPoolResourceProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties: ContainerGroupProperties;\n /** Specifies zones of standby container group pools. */\n zones?: string[];\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyContainerGroupPoolResourcePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceProperties,\n): any {\n return {\n elasticityProfile: standbyContainerGroupPoolElasticityProfileSerializer(\n item[\"elasticityProfile\"],\n ),\n containerGroupProperties: containerGroupPropertiesSerializer(item[\"containerGroupProperties\"]),\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function standbyContainerGroupPoolResourcePropertiesDeserializer(\n item: any,\n): StandbyContainerGroupPoolResourceProperties {\n return {\n elasticityProfile: standbyContainerGroupPoolElasticityProfileDeserializer(\n item[\"elasticityProfile\"],\n ),\n containerGroupProperties: containerGroupPropertiesDeserializer(\n item[\"containerGroupProperties\"],\n ),\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Specifies the elasticity profile of the standby container group pools. */\nexport interface StandbyContainerGroupPoolElasticityProfile {\n /** Specifies maximum number of standby container groups in the standby pool. */\n maxReadyCapacity: number;\n /** Specifies refill policy of the pool. */\n refillPolicy?: RefillPolicy;\n}\n\nexport function standbyContainerGroupPoolElasticityProfileSerializer(\n item: StandbyContainerGroupPoolElasticityProfile,\n): any {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n refillPolicy: item[\"refillPolicy\"],\n };\n}\n\nexport function standbyContainerGroupPoolElasticityProfileDeserializer(\n item: any,\n): StandbyContainerGroupPoolElasticityProfile {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n refillPolicy: item[\"refillPolicy\"],\n };\n}\n\n/** Refill policy of standby pool */\nexport enum KnownRefillPolicy {\n /** A refill policy that standby pool is automatically refilled to maintain maxReadyCapacity. */\n Always = \"always\",\n}\n\n/**\n * Refill policy of standby pool \\\n * {@link KnownRefillPolicy} can be used interchangeably with RefillPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **always**: A refill policy that standby pool is automatically refilled to maintain maxReadyCapacity.\n */\nexport type RefillPolicy = string;\n\n/** Details of the ContainerGroupProperties. */\nexport interface ContainerGroupProperties {\n /** Specifies container group profile of standby container groups. */\n containerGroupProfile: ContainerGroupProfile;\n /** Specifies subnet Ids for container group. */\n subnetIds?: Subnet[];\n}\n\nexport function containerGroupPropertiesSerializer(item: ContainerGroupProperties): any {\n return {\n containerGroupProfile: containerGroupProfileSerializer(item[\"containerGroupProfile\"]),\n subnetIds: !item[\"subnetIds\"] ? item[\"subnetIds\"] : subnetArraySerializer(item[\"subnetIds\"]),\n };\n}\n\nexport function containerGroupPropertiesDeserializer(item: any): ContainerGroupProperties {\n return {\n containerGroupProfile: containerGroupProfileDeserializer(item[\"containerGroupProfile\"]),\n subnetIds: !item[\"subnetIds\"] ? item[\"subnetIds\"] : subnetArrayDeserializer(item[\"subnetIds\"]),\n };\n}\n\n/** Details of the ContainerGroupProfile. */\nexport interface ContainerGroupProfile {\n /** Specifies container group profile id of standby container groups. */\n id: string;\n /** Specifies revision of container group profile. */\n revision?: number;\n}\n\nexport function containerGroupProfileSerializer(item: ContainerGroupProfile): any {\n return { id: item[\"id\"], revision: item[\"revision\"] };\n}\n\nexport function containerGroupProfileDeserializer(item: any): ContainerGroupProfile {\n return {\n id: item[\"id\"],\n revision: item[\"revision\"],\n };\n}\n\nexport function subnetArraySerializer(result: Array<Subnet>): any[] {\n return result.map((item) => {\n return subnetSerializer(item);\n });\n}\n\nexport function subnetArrayDeserializer(result: Array<Subnet>): any[] {\n return result.map((item) => {\n return subnetDeserializer(item);\n });\n}\n\n/** Subnet of container group */\nexport interface Subnet {\n /** Specifies ARM resource id of the subnet. */\n id: string;\n}\n\nexport function subnetSerializer(item: Subnet): any {\n return { id: item[\"id\"] };\n}\n\nexport function subnetDeserializer(item: any): Subnet {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The type used for update operations of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceUpdateProperties;\n}\n\nexport function standbyContainerGroupPoolResourceUpdateSerializer(\n item: StandbyContainerGroupPoolResourceUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyContainerGroupPoolResourceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdateProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile?: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties?: ContainerGroupProperties;\n /** Specifies zones of standby container group pools. */\n zones?: string[];\n}\n\nexport function standbyContainerGroupPoolResourceUpdatePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceUpdateProperties,\n): any {\n return {\n elasticityProfile: !item[\"elasticityProfile\"]\n ? item[\"elasticityProfile\"]\n : standbyContainerGroupPoolElasticityProfileSerializer(item[\"elasticityProfile\"]),\n containerGroupProperties: !item[\"containerGroupProperties\"]\n ? item[\"containerGroupProperties\"]\n : containerGroupPropertiesSerializer(item[\"containerGroupProperties\"]),\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a StandbyContainerGroupPoolResource list operation. */\nexport interface _StandbyContainerGroupPoolResourceListResult {\n /** The StandbyContainerGroupPoolResource items on this page */\n value: StandbyContainerGroupPoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _standbyContainerGroupPoolResourceListResultDeserializer(\n item: any,\n): _StandbyContainerGroupPoolResourceListResult {\n return {\n value: standbyContainerGroupPoolResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function standbyContainerGroupPoolResourceArraySerializer(\n result: Array<StandbyContainerGroupPoolResource>,\n): any[] {\n return result.map((item) => {\n return standbyContainerGroupPoolResourceSerializer(item);\n });\n}\n\nexport function standbyContainerGroupPoolResourceArrayDeserializer(\n result: Array<StandbyContainerGroupPoolResource>,\n): any[] {\n return result.map((item) => {\n return standbyContainerGroupPoolResourceDeserializer(item);\n });\n}\n\n/** Contains information about a standby container group pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolRuntimeViewResourceProperties;\n}\n\nexport function standbyContainerGroupPoolRuntimeViewResourceDeserializer(\n item: any,\n): StandbyContainerGroupPoolRuntimeViewResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : standbyContainerGroupPoolRuntimeViewResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResourceProperties {\n /** A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider. */\n readonly instanceCountSummary: ContainerGroupInstanceCountSummary[];\n /** Display status of the standby pool */\n readonly status?: PoolStatus;\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n /** Displays prediction information of the standby pool */\n readonly prediction?: StandbyContainerGroupPoolPrediction;\n}\n\nexport function standbyContainerGroupPoolRuntimeViewResourcePropertiesDeserializer(\n item: any,\n): StandbyContainerGroupPoolRuntimeViewResourceProperties {\n return {\n instanceCountSummary: containerGroupInstanceCountSummaryArrayDeserializer(\n item[\"instanceCountSummary\"],\n ),\n status: !item[\"status\"] ? item[\"status\"] : poolStatusDeserializer(item[\"status\"]),\n provisioningState: item[\"provisioningState\"],\n prediction: !item[\"prediction\"]\n ? item[\"prediction\"]\n : standbyContainerGroupPoolPredictionDeserializer(item[\"prediction\"]),\n };\n}\n\nexport function containerGroupInstanceCountSummaryArrayDeserializer(\n result: Array<ContainerGroupInstanceCountSummary>,\n): any[] {\n return result.map((item) => {\n return containerGroupInstanceCountSummaryDeserializer(item);\n });\n}\n\n/** Displays the counts of container groups in each state, as known by the StandbyPool resource provider. */\nexport interface ContainerGroupInstanceCountSummary {\n /** The zone that the provided counts are in. It will not have a value if zones are not enabled. */\n zone?: number;\n /** The count of pooled container groups in each state for the given zone. */\n instanceCountsByState: PoolContainerGroupStateCount[];\n}\n\nexport function containerGroupInstanceCountSummaryDeserializer(\n item: any,\n): ContainerGroupInstanceCountSummary {\n return {\n zone: item[\"zone\"],\n instanceCountsByState: poolContainerGroupStateCountArrayDeserializer(\n item[\"instanceCountsByState\"],\n ),\n };\n}\n\nexport function poolContainerGroupStateCountArrayDeserializer(\n result: Array<PoolContainerGroupStateCount>,\n): any[] {\n return result.map((item) => {\n return poolContainerGroupStateCountDeserializer(item);\n });\n}\n\n/** Displays the counts of pooled container groups in each state, as known by the StandbyPool resource provider. */\nexport interface PoolContainerGroupStateCount {\n /** The state that the pooled container groups count is for. */\n state: PoolContainerGroupState;\n /** The count of pooled container groups in the given state. */\n count: number;\n}\n\nexport function poolContainerGroupStateCountDeserializer(item: any): PoolContainerGroupStateCount {\n return {\n state: item[\"state\"],\n count: item[\"count\"],\n };\n}\n\n/** The state of the pooled container groups. */\nexport enum KnownPoolContainerGroupState {\n /** The container group is up and running. */\n Running = \"Running\",\n /** The container group is creating. */\n Creating = \"Creating\",\n /** The container group is deleting. */\n Deleting = \"Deleting\",\n}\n\n/**\n * The state of the pooled container groups. \\\n * {@link KnownPoolContainerGroupState} can be used interchangeably with PoolContainerGroupState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Running**: The container group is up and running. \\\n * **Creating**: The container group is creating. \\\n * **Deleting**: The container group is deleting.\n */\nexport type PoolContainerGroupState = string;\n\n/** Displays prediction information of the standby pool. */\nexport interface StandbyContainerGroupPoolPrediction {\n /** Displays the forecast information of the standby pool. */\n readonly forecastValues: StandbyContainerGroupPoolForecastValues;\n /** Displays the UTC timestamp of when the prediction was retrieved for the standby pool. */\n readonly forecastStartTime: Date;\n /** Displays additional information for the prediction of the standby pool. */\n readonly forecastInfo: string;\n}\n\nexport function standbyContainerGroupPoolPredictionDeserializer(\n item: any,\n): StandbyContainerGroupPoolPrediction {\n return {\n forecastValues: standbyContainerGroupPoolForecastValuesDeserializer(item[\"forecastValues\"]),\n forecastStartTime: new Date(item[\"forecastStartTime\"]),\n forecastInfo: item[\"forecastInfo\"],\n };\n}\n\n/** Displays the forecast information of the standby pool. */\nexport interface StandbyContainerGroupPoolForecastValues {\n /** Displays the predicted count of instances to be requested from the standby pool. */\n readonly instancesRequestedCount: number[];\n}\n\nexport function standbyContainerGroupPoolForecastValuesDeserializer(\n item: any,\n): StandbyContainerGroupPoolForecastValues {\n return {\n instancesRequestedCount: item[\"instancesRequestedCount\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a StandbyContainerGroupPoolRuntimeViewResource list operation. */\nexport interface _StandbyContainerGroupPoolRuntimeViewResourceListResult {\n /** The StandbyContainerGroupPoolRuntimeViewResource items on this page */\n value: StandbyContainerGroupPoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _standbyContainerGroupPoolRuntimeViewResourceListResultDeserializer(\n item: any,\n): _StandbyContainerGroupPoolRuntimeViewResourceListResult {\n return {\n value: standbyContainerGroupPoolRuntimeViewResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function standbyContainerGroupPoolRuntimeViewResourceArrayDeserializer(\n result: Array<StandbyContainerGroupPoolRuntimeViewResource>,\n): any[] {\n return result.map((item) => {\n return standbyContainerGroupPoolRuntimeViewResourceDeserializer(item);\n });\n}\n\n/** Supported API Versions for Microsoft.StandbyPool */\nexport enum KnownVersions {\n /** API Version 2024-03-01. */\n _20240301 = \"2024-03-01\",\n /** API Version 2025-03-01. */\n _20250301 = \"2025-03-01\",\n}\n"]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.restorePoller = restorePoller;
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const operations_js_1 = require("./api/standbyContainerGroupPools/operations.js");
|
|
7
|
+
const operations_js_2 = require("./api/standbyVirtualMachinePools/operations.js");
|
|
8
8
|
const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
|
|
9
9
|
const core_lro_1 = require("@azure/core-lro");
|
|
10
10
|
/**
|
|
@@ -34,22 +34,22 @@ function restorePoller(client, serializedState, sourceOperation, options) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
const deserializeMap = {
|
|
37
|
-
"
|
|
38
|
-
deserializer:
|
|
39
|
-
expectedStatuses: ["200", "201"],
|
|
40
|
-
},
|
|
41
|
-
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}": {
|
|
42
|
-
deserializer: index_js_1._standbyVirtualMachinePoolsDeleteDeserialize,
|
|
37
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}": {
|
|
38
|
+
deserializer: operations_js_1._$deleteDeserialize,
|
|
43
39
|
expectedStatuses: ["202", "204", "200"],
|
|
44
40
|
},
|
|
45
41
|
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}": {
|
|
46
|
-
deserializer:
|
|
42
|
+
deserializer: operations_js_1._createOrUpdateDeserialize,
|
|
47
43
|
expectedStatuses: ["200", "201"],
|
|
48
44
|
},
|
|
49
|
-
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/
|
|
50
|
-
deserializer:
|
|
45
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}": {
|
|
46
|
+
deserializer: operations_js_2._$deleteDeserialize,
|
|
51
47
|
expectedStatuses: ["202", "204", "200"],
|
|
52
48
|
},
|
|
49
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}": {
|
|
50
|
+
deserializer: operations_js_2._createOrUpdateDeserialize,
|
|
51
|
+
expectedStatuses: ["200", "201"],
|
|
52
|
+
},
|
|
53
53
|
};
|
|
54
54
|
function getDeserializationHelper(urlStr, method) {
|
|
55
55
|
var _a, _b, _c, _d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwClC,sCAoCC;AAzED,wEAGmD;AACnD,wEAGmD;AACnD,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAmC,EACnC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IA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Client } from \"./standbyPoolManagementClient.js\";\nimport {\n _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n _standbyVirtualMachinePoolsDeleteDeserialize,\n} from \"./api/standbyVirtualMachinePools/index.js\";\nimport {\n _standbyContainerGroupPoolsCreateOrUpdateDeserialize,\n _standbyContainerGroupPoolsDeleteDeserialize,\n} from \"./api/standbyContainerGroupPools/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: StandbyPoolManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _standbyVirtualMachinePoolsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _standbyContainerGroupPoolsCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _standbyContainerGroupPoolsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwClC,sCAoCC;AAzED,kFAGwD;AACxD,kFAGwD;AACxD,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAmC,EACnC,eAAuB,EACvB,eA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ACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StandbyPoolManagementClient } from \"./standbyPoolManagementClient.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/standbyContainerGroupPools/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeStandbyVirtualMachinePools,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeStandbyVirtualMachinePools,\n} from \"./api/standbyVirtualMachinePools/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: StandbyPoolManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _$deleteDeserializeStandbyVirtualMachinePools,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _createOrUpdateDeserializeStandbyVirtualMachinePools,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
2
|
-
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
3
|
-
import { OperationsOperations } from "./classic/operations/index.js";
|
|
4
|
-
import { StandbyVirtualMachinePoolsOperations } from "./classic/standbyVirtualMachinePools/index.js";
|
|
5
|
-
import { StandbyVirtualMachinesOperations } from "./classic/standbyVirtualMachines/index.js";
|
|
6
|
-
import { StandbyVirtualMachinePoolRuntimeViewsOperations } from "./classic/standbyVirtualMachinePoolRuntimeViews/index.js";
|
|
7
|
-
import { StandbyContainerGroupPoolsOperations } from "./classic/standbyContainerGroupPools/index.js";
|
|
8
|
-
import { StandbyContainerGroupPoolRuntimeViewsOperations } from "./classic/standbyContainerGroupPoolRuntimeViews/index.js";
|
|
9
1
|
import { StandbyPoolManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import { StandbyContainerGroupPoolRuntimeViewsOperations } from "./classic/standbyContainerGroupPoolRuntimeViews/index.js";
|
|
3
|
+
import { StandbyContainerGroupPoolsOperations } from "./classic/standbyContainerGroupPools/index.js";
|
|
4
|
+
import { StandbyVirtualMachinePoolRuntimeViewsOperations } from "./classic/standbyVirtualMachinePoolRuntimeViews/index.js";
|
|
5
|
+
import { StandbyVirtualMachinesOperations } from "./classic/standbyVirtualMachines/index.js";
|
|
6
|
+
import { StandbyVirtualMachinePoolsOperations } from "./classic/standbyVirtualMachinePools/index.js";
|
|
7
|
+
import { OperationsOperations } from "./classic/operations/index.js";
|
|
8
|
+
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
9
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
10
10
|
export { StandbyPoolManagementClientOptionalParams } from "./api/standbyPoolManagementContext.js";
|
|
11
11
|
export declare class StandbyPoolManagementClient {
|
|
12
12
|
private _client;
|
|
13
13
|
/** The pipeline used by this client to make requests */
|
|
14
14
|
readonly pipeline: Pipeline;
|
|
15
15
|
constructor(credential: TokenCredential, subscriptionId: string, options?: StandbyPoolManagementClientOptionalParams);
|
|
16
|
-
/** The operation groups for
|
|
17
|
-
readonly operations: OperationsOperations;
|
|
18
|
-
/** The operation groups for StandbyVirtualMachinePools */
|
|
19
|
-
readonly standbyVirtualMachinePools: StandbyVirtualMachinePoolsOperations;
|
|
20
|
-
/** The operation groups for StandbyVirtualMachines */
|
|
21
|
-
readonly standbyVirtualMachines: StandbyVirtualMachinesOperations;
|
|
22
|
-
/** The operation groups for StandbyVirtualMachinePoolRuntimeViews */
|
|
23
|
-
readonly standbyVirtualMachinePoolRuntimeViews: StandbyVirtualMachinePoolRuntimeViewsOperations;
|
|
24
|
-
/** The operation groups for StandbyContainerGroupPools */
|
|
25
|
-
readonly standbyContainerGroupPools: StandbyContainerGroupPoolsOperations;
|
|
26
|
-
/** The operation groups for StandbyContainerGroupPoolRuntimeViews */
|
|
16
|
+
/** The operation groups for standbyContainerGroupPoolRuntimeViews */
|
|
27
17
|
readonly standbyContainerGroupPoolRuntimeViews: StandbyContainerGroupPoolRuntimeViewsOperations;
|
|
18
|
+
/** The operation groups for standbyContainerGroupPools */
|
|
19
|
+
readonly standbyContainerGroupPools: StandbyContainerGroupPoolsOperations;
|
|
20
|
+
/** The operation groups for standbyVirtualMachinePoolRuntimeViews */
|
|
21
|
+
readonly standbyVirtualMachinePoolRuntimeViews: StandbyVirtualMachinePoolRuntimeViewsOperations;
|
|
22
|
+
/** The operation groups for standbyVirtualMachines */
|
|
23
|
+
readonly standbyVirtualMachines: StandbyVirtualMachinesOperations;
|
|
24
|
+
/** The operation groups for standbyVirtualMachinePools */
|
|
25
|
+
readonly standbyVirtualMachinePools: StandbyVirtualMachinePoolsOperations;
|
|
26
|
+
/** The operation groups for operations */
|
|
27
|
+
readonly operations: OperationsOperations;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=standbyPoolManagementClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementClient.d.ts","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementClient.d.ts","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,yCAAyC,EAC1C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+CAA+C,EAEhD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,oCAAoC,EAErC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,+CAA+C,EAEhD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,gCAAgC,EAEjC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,oCAAoC,EAErC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAA4B,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,yCAAyC,EAAE,MAAM,uCAAuC,CAAC;AAElG,qBAAa,2BAA2B;IACtC,OAAO,CAAC,OAAO,CAA+B;IAC9C,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,yCAA8C;IAqBzD,qEAAqE;IACrE,SAAgB,qCAAqC,EAAE,+CAA+C,CAAC;IACvG,0DAA0D;IAC1D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,qEAAqE;IACrE,SAAgB,qCAAqC,EAAE,+CAA+C,CAAC;IACvG,sDAAsD;IACtD,SAAgB,sBAAsB,EAAE,gCAAgC,CAAC;IACzE,0DAA0D;IAC1D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;CAClD"}
|
|
@@ -3,28 +3,30 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.StandbyPoolManagementClient = void 0;
|
|
6
|
-
const index_js_1 = require("./
|
|
7
|
-
const index_js_2 = require("./classic/
|
|
8
|
-
const index_js_3 = require("./classic/
|
|
6
|
+
const index_js_1 = require("./api/index.js");
|
|
7
|
+
const index_js_2 = require("./classic/standbyContainerGroupPoolRuntimeViews/index.js");
|
|
8
|
+
const index_js_3 = require("./classic/standbyContainerGroupPools/index.js");
|
|
9
9
|
const index_js_4 = require("./classic/standbyVirtualMachinePoolRuntimeViews/index.js");
|
|
10
|
-
const index_js_5 = require("./classic/
|
|
11
|
-
const index_js_6 = require("./classic/
|
|
12
|
-
const index_js_7 = require("./
|
|
10
|
+
const index_js_5 = require("./classic/standbyVirtualMachines/index.js");
|
|
11
|
+
const index_js_6 = require("./classic/standbyVirtualMachinePools/index.js");
|
|
12
|
+
const index_js_7 = require("./classic/operations/index.js");
|
|
13
13
|
class StandbyPoolManagementClient {
|
|
14
14
|
constructor(credential, subscriptionId, options = {}) {
|
|
15
15
|
var _a;
|
|
16
16
|
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
|
17
17
|
const userAgentPrefix = prefixFromOptions
|
|
18
18
|
? `${prefixFromOptions} azsdk-js-client`
|
|
19
|
-
:
|
|
20
|
-
this._client = (0,
|
|
19
|
+
: `azsdk-js-client`;
|
|
20
|
+
this._client = (0, index_js_1.createStandbyPoolManagement)(credential, subscriptionId, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
|
|
21
21
|
this.pipeline = this._client.pipeline;
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
this.
|
|
25
|
-
this.standbyVirtualMachinePoolRuntimeViews =
|
|
26
|
-
|
|
27
|
-
this.
|
|
22
|
+
this.standbyContainerGroupPoolRuntimeViews =
|
|
23
|
+
(0, index_js_2._getStandbyContainerGroupPoolRuntimeViewsOperations)(this._client);
|
|
24
|
+
this.standbyContainerGroupPools = (0, index_js_3._getStandbyContainerGroupPoolsOperations)(this._client);
|
|
25
|
+
this.standbyVirtualMachinePoolRuntimeViews =
|
|
26
|
+
(0, index_js_4._getStandbyVirtualMachinePoolRuntimeViewsOperations)(this._client);
|
|
27
|
+
this.standbyVirtualMachines = (0, index_js_5._getStandbyVirtualMachinesOperations)(this._client);
|
|
28
|
+
this.standbyVirtualMachinePools = (0, index_js_6._getStandbyVirtualMachinePoolsOperations)(this._client);
|
|
29
|
+
this.operations = (0, index_js_7._getOperationsOperations)(this._client);
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
exports.StandbyPoolManagementClient = StandbyPoolManagementClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementClient.js","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementClient.js","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,6CAIwB;AACxB,uFAGkE;AAClE,4EAGuD;AACvD,uFAGkE;AAClE,wEAGmD;AACnD,4EAGuD;AACvD,4DAA+F;AAM/F,MAAa,2BAA2B;IAKtC,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAqD,EAAE;;QAEvD,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAA,sCAA2B,EAAC,UAAU,EAAE,cAAc,kCAChE,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,qCAAqC;YACxC,IAAA,8DAAmD,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,IAAI,CAAC,0BAA0B,GAAG,IAAA,mDAAwC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,CAAC,qCAAqC;YACxC,IAAA,8DAAmD,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,IAAI,CAAC,sBAAsB,GAAG,IAAA,+CAAoC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjF,IAAI,CAAC,0BAA0B,GAAG,IAAA,mDAAwC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,CAAC,UAAU,GAAG,IAAA,mCAAwB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAcF;AAzCD,kEAyCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createStandbyPoolManagement,\n StandbyPoolManagementContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport {\n StandbyContainerGroupPoolRuntimeViewsOperations,\n _getStandbyContainerGroupPoolRuntimeViewsOperations,\n} from \"./classic/standbyContainerGroupPoolRuntimeViews/index.js\";\nimport {\n StandbyContainerGroupPoolsOperations,\n _getStandbyContainerGroupPoolsOperations,\n} from \"./classic/standbyContainerGroupPools/index.js\";\nimport {\n StandbyVirtualMachinePoolRuntimeViewsOperations,\n _getStandbyVirtualMachinePoolRuntimeViewsOperations,\n} from \"./classic/standbyVirtualMachinePoolRuntimeViews/index.js\";\nimport {\n StandbyVirtualMachinesOperations,\n _getStandbyVirtualMachinesOperations,\n} from \"./classic/standbyVirtualMachines/index.js\";\nimport {\n StandbyVirtualMachinePoolsOperations,\n _getStandbyVirtualMachinePoolsOperations,\n} from \"./classic/standbyVirtualMachinePools/index.js\";\nimport { OperationsOperations, _getOperationsOperations } from \"./classic/operations/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { StandbyPoolManagementClientOptionalParams } from \"./api/standbyPoolManagementContext.js\";\n\nexport class StandbyPoolManagementClient {\n private _client: StandbyPoolManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: StandbyPoolManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createStandbyPoolManagement(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.standbyContainerGroupPoolRuntimeViews =\n _getStandbyContainerGroupPoolRuntimeViewsOperations(this._client);\n this.standbyContainerGroupPools = _getStandbyContainerGroupPoolsOperations(this._client);\n this.standbyVirtualMachinePoolRuntimeViews =\n _getStandbyVirtualMachinePoolRuntimeViewsOperations(this._client);\n this.standbyVirtualMachines = _getStandbyVirtualMachinesOperations(this._client);\n this.standbyVirtualMachinePools = _getStandbyVirtualMachinePoolsOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for standbyContainerGroupPoolRuntimeViews */\n public readonly standbyContainerGroupPoolRuntimeViews: StandbyContainerGroupPoolRuntimeViewsOperations;\n /** The operation groups for standbyContainerGroupPools */\n public readonly standbyContainerGroupPools: StandbyContainerGroupPoolsOperations;\n /** The operation groups for standbyVirtualMachinePoolRuntimeViews */\n public readonly standbyVirtualMachinePoolRuntimeViews: StandbyVirtualMachinePoolRuntimeViewsOperations;\n /** The operation groups for standbyVirtualMachines */\n public readonly standbyVirtualMachines: StandbyVirtualMachinesOperations;\n /** The operation groups for standbyVirtualMachinePools */\n public readonly standbyVirtualMachinePools: StandbyVirtualMachinePoolsOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACrF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;CAC/F;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAC1B,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;IAC5F;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE/F;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
5
|
exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
|
-
// Copyright (c) Microsoft Corporation.
|
|
6
|
-
// Licensed under the MIT License.
|
|
7
7
|
const core_client_1 = require("@azure-rest/core-client");
|
|
8
8
|
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":";;AAqFA,0DAqCC;;AA1HD,uCAAuC;AACvC,kCAAkC;AAClC,yDAAyF;AACzF,kEAAsD;AA+EtD;;GAEG;AACH,SAAgB,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAmB,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YACpD,MAAM,MAAM,GAAG,WAAW,CAAW,OAAO,EAAE,QAAQ,CAAU,CAAC;YACjE,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,YAAY,EAAE,QAAQ;aACvB,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,CAAC,QAAwB,EAAE,EAAE;YACnC,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;YAC7C,O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,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,8BAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,IAAA,6BAAe,EACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqFlC,0DAqCC;;AAxHD,yDAAyF;AACzF,kEAAsD;AA+EtD;;GAEG;AACH,SAAgB,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAmB,CAAC,CAAC;YAC/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AAK,WAAW,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,8BAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,8BAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,IAAA,6BAAe,EACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLongRunningPoller = getLongRunningPoller;
|
|
4
2
|
// Copyright (c) Microsoft Corporation.
|
|
5
3
|
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getLongRunningPoller = getLongRunningPoller;
|
|
6
6
|
const core_lro_1 = require("@azure/core-lro");
|
|
7
7
|
const core_client_1 = require("@azure-rest/core-client");
|
|
8
8
|
function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
|