@azure/arm-chaos 1.1.1-alpha.20250605.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 +116 -7
- package/LICENSE +1 -1
- package/README.md +10 -15
- package/dist/browser/api/capabilities/index.d.ts +3 -0
- package/dist/browser/api/capabilities/index.js +4 -0
- package/dist/browser/api/capabilities/index.js.map +1 -0
- package/dist/browser/api/capabilities/operations.d.ts +27 -0
- package/dist/browser/api/capabilities/operations.js +131 -0
- package/dist/browser/api/capabilities/operations.js.map +1 -0
- package/dist/browser/api/capabilities/options.d.ts +16 -0
- package/dist/browser/api/capabilities/options.js +4 -0
- package/dist/browser/api/capabilities/options.js.map +1 -0
- package/dist/browser/api/capabilityTypes/index.d.ts +3 -0
- package/dist/browser/api/capabilityTypes/index.js +4 -0
- package/dist/browser/api/capabilityTypes/index.js.map +1 -0
- package/dist/browser/api/capabilityTypes/operations.d.ts +14 -0
- package/dist/browser/api/capabilityTypes/operations.js +60 -0
- package/dist/browser/api/capabilityTypes/operations.js.map +1 -0
- package/dist/browser/api/capabilityTypes/options.d.ts +10 -0
- package/dist/browser/api/capabilityTypes/options.js +4 -0
- package/dist/browser/api/capabilityTypes/options.js.map +1 -0
- package/dist/browser/api/chaosManagementContext.d.ts +17 -0
- package/dist/browser/api/chaosManagementContext.js +35 -0
- package/dist/browser/api/chaosManagementContext.js.map +1 -0
- package/dist/browser/api/experiments/index.d.ts +3 -0
- package/dist/browser/api/experiments/index.js +4 -0
- package/dist/browser/api/experiments/index.js.map +1 -0
- package/dist/browser/api/experiments/operations.d.ts +56 -0
- package/dist/browser/api/experiments/operations.js +319 -0
- package/dist/browser/api/experiments/operations.js.map +1 -0
- package/dist/browser/api/experiments/options.d.ts +53 -0
- package/dist/browser/api/experiments/options.js +4 -0
- package/dist/browser/api/experiments/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operationStatuses/index.d.ts +3 -0
- package/dist/browser/api/operationStatuses/index.js +4 -0
- package/dist/browser/api/operationStatuses/index.js.map +1 -0
- package/dist/browser/api/operationStatuses/operations.d.ts +9 -0
- package/dist/browser/api/operationStatuses/operations.js +32 -0
- package/dist/browser/api/operationStatuses/operations.js.map +1 -0
- package/dist/browser/api/operationStatuses/options.d.ts +5 -0
- package/dist/browser/api/operationStatuses/options.js +4 -0
- package/dist/browser/api/operationStatuses/options.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -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.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/targetTypes/index.d.ts +3 -0
- package/dist/browser/api/targetTypes/index.js +4 -0
- package/dist/browser/api/targetTypes/index.js.map +1 -0
- package/dist/browser/api/targetTypes/operations.d.ts +14 -0
- package/dist/browser/api/targetTypes/operations.js +58 -0
- package/dist/browser/api/targetTypes/operations.js.map +1 -0
- package/dist/browser/api/targetTypes/options.d.ts +10 -0
- package/dist/browser/api/targetTypes/options.js +4 -0
- package/dist/browser/api/targetTypes/options.js.map +1 -0
- package/dist/browser/api/targets/index.d.ts +3 -0
- package/dist/browser/api/targets/index.js +4 -0
- package/dist/browser/api/targets/index.js.map +1 -0
- package/dist/browser/api/targets/operations.d.ts +27 -0
- package/dist/browser/api/targets/operations.js +127 -0
- package/dist/browser/api/targets/operations.js.map +1 -0
- package/dist/browser/api/targets/options.d.ts +16 -0
- package/dist/browser/api/targets/options.js +4 -0
- package/dist/browser/api/targets/options.js.map +1 -0
- package/dist/browser/chaosManagementClient.d.ts +30 -25
- package/dist/browser/chaosManagementClient.js +26 -98
- package/dist/browser/chaosManagementClient.js.map +1 -1
- package/dist/browser/classic/capabilities/index.d.ts +22 -0
- package/dist/browser/classic/capabilities/index.js +15 -0
- package/dist/browser/classic/capabilities/index.js.map +1 -0
- package/dist/browser/classic/capabilityTypes/index.d.ts +13 -0
- package/dist/browser/classic/capabilityTypes/index.js +13 -0
- package/dist/browser/classic/capabilityTypes/index.js.map +1 -0
- package/dist/browser/classic/experiments/index.d.ts +37 -0
- package/dist/browser/classic/experiments/index.js +22 -0
- package/dist/browser/classic/experiments/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +8 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operationStatuses/index.d.ts +10 -0
- package/dist/browser/classic/operationStatuses/index.js +12 -0
- package/dist/browser/classic/operationStatuses/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/targetTypes/index.d.ts +13 -0
- package/dist/browser/classic/targetTypes/index.js +13 -0
- package/dist/browser/classic/targetTypes/index.js.map +1 -0
- package/dist/browser/classic/targets/index.d.ts +22 -0
- package/dist/browser/classic/targets/index.js +15 -0
- package/dist/browser/classic/targets/index.js.map +1 -0
- package/dist/browser/index.d.ts +13 -3
- package/dist/browser/index.js +4 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +1 -1117
- package/dist/browser/models/index.js +3 -71
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +772 -0
- package/dist/browser/models/models.js +923 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +100 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/capabilities/index.d.ts +3 -0
- package/dist/commonjs/api/capabilities/index.js +11 -0
- package/dist/commonjs/api/capabilities/index.js.map +1 -0
- package/dist/commonjs/api/capabilities/operations.d.ts +27 -0
- package/dist/commonjs/api/capabilities/operations.js +145 -0
- package/dist/commonjs/api/capabilities/operations.js.map +1 -0
- package/dist/commonjs/api/capabilities/options.d.ts +16 -0
- package/dist/commonjs/api/capabilities/options.js +5 -0
- package/dist/commonjs/api/capabilities/options.js.map +1 -0
- package/dist/commonjs/api/capabilityTypes/index.d.ts +3 -0
- package/dist/commonjs/api/capabilityTypes/index.js +9 -0
- package/dist/commonjs/api/capabilityTypes/index.js.map +1 -0
- package/dist/commonjs/api/capabilityTypes/operations.d.ts +14 -0
- package/dist/commonjs/api/capabilityTypes/operations.js +68 -0
- package/dist/commonjs/api/capabilityTypes/operations.js.map +1 -0
- package/dist/commonjs/api/capabilityTypes/options.d.ts +10 -0
- package/dist/commonjs/api/capabilityTypes/options.js +5 -0
- package/dist/commonjs/api/capabilityTypes/options.js.map +1 -0
- package/dist/commonjs/api/chaosManagementContext.d.ts +17 -0
- package/dist/commonjs/api/chaosManagementContext.js +38 -0
- package/dist/commonjs/api/chaosManagementContext.js.map +1 -0
- package/dist/commonjs/api/experiments/index.d.ts +3 -0
- package/dist/commonjs/api/experiments/index.js +18 -0
- package/dist/commonjs/api/experiments/index.js.map +1 -0
- package/dist/commonjs/api/experiments/operations.d.ts +56 -0
- package/dist/commonjs/api/experiments/operations.js +354 -0
- package/dist/commonjs/api/experiments/operations.js.map +1 -0
- package/dist/commonjs/api/experiments/options.d.ts +53 -0
- package/dist/commonjs/api/experiments/options.js +5 -0
- package/dist/commonjs/api/experiments/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operationStatuses/index.d.ts +3 -0
- package/dist/commonjs/api/operationStatuses/index.js +8 -0
- package/dist/commonjs/api/operationStatuses/index.js.map +1 -0
- package/dist/commonjs/api/operationStatuses/operations.d.ts +9 -0
- package/dist/commonjs/api/operationStatuses/operations.js +37 -0
- package/dist/commonjs/api/operationStatuses/operations.js.map +1 -0
- package/dist/commonjs/api/operationStatuses/options.d.ts +5 -0
- package/dist/commonjs/api/operationStatuses/options.js +5 -0
- package/dist/commonjs/api/operationStatuses/options.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -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.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/targetTypes/index.d.ts +3 -0
- package/dist/commonjs/api/targetTypes/index.js +9 -0
- package/dist/commonjs/api/targetTypes/index.js.map +1 -0
- package/dist/commonjs/api/targetTypes/operations.d.ts +14 -0
- package/dist/commonjs/api/targetTypes/operations.js +66 -0
- package/dist/commonjs/api/targetTypes/operations.js.map +1 -0
- package/dist/commonjs/api/targetTypes/options.d.ts +10 -0
- package/dist/commonjs/api/targetTypes/options.js +5 -0
- package/dist/commonjs/api/targetTypes/options.js.map +1 -0
- package/dist/commonjs/api/targets/index.d.ts +3 -0
- package/dist/commonjs/api/targets/index.js +11 -0
- package/dist/commonjs/api/targets/index.js.map +1 -0
- package/dist/commonjs/api/targets/operations.d.ts +27 -0
- package/dist/commonjs/api/targets/operations.js +141 -0
- package/dist/commonjs/api/targets/operations.js.map +1 -0
- package/dist/commonjs/api/targets/options.d.ts +16 -0
- package/dist/commonjs/api/targets/options.js +5 -0
- package/dist/commonjs/api/targets/options.js.map +1 -0
- package/dist/commonjs/chaosManagementClient.d.ts +30 -25
- package/dist/commonjs/chaosManagementClient.js +26 -99
- package/dist/commonjs/chaosManagementClient.js.map +1 -1
- package/dist/commonjs/classic/capabilities/index.d.ts +22 -0
- package/dist/commonjs/classic/capabilities/index.js +18 -0
- package/dist/commonjs/classic/capabilities/index.js.map +1 -0
- package/dist/commonjs/classic/capabilityTypes/index.d.ts +13 -0
- package/dist/commonjs/classic/capabilityTypes/index.js +16 -0
- package/dist/commonjs/classic/capabilityTypes/index.js.map +1 -0
- package/dist/commonjs/classic/experiments/index.d.ts +37 -0
- package/dist/commonjs/classic/experiments/index.js +25 -0
- package/dist/commonjs/classic/experiments/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +8 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operationStatuses/index.d.ts +10 -0
- package/dist/commonjs/classic/operationStatuses/index.js +15 -0
- package/dist/commonjs/classic/operationStatuses/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/targetTypes/index.d.ts +13 -0
- package/dist/commonjs/classic/targetTypes/index.js +16 -0
- package/dist/commonjs/classic/targetTypes/index.js.map +1 -0
- package/dist/commonjs/classic/targets/index.d.ts +22 -0
- package/dist/commonjs/classic/targets/index.js +18 -0
- package/dist/commonjs/classic/targets/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +13 -3
- package/dist/commonjs/index.js +16 -14
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -1117
- package/dist/commonjs/models/index.js +14 -72
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +772 -0
- package/dist/commonjs/models/models.js +1040 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +103 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/api/capabilities/index.d.ts +3 -0
- package/dist/esm/api/capabilities/index.js +4 -0
- package/dist/esm/api/capabilities/index.js.map +1 -0
- package/dist/esm/api/capabilities/operations.d.ts +27 -0
- package/dist/esm/api/capabilities/operations.js +131 -0
- package/dist/esm/api/capabilities/operations.js.map +1 -0
- package/dist/esm/api/capabilities/options.d.ts +16 -0
- package/dist/esm/api/capabilities/options.js +4 -0
- package/dist/esm/api/capabilities/options.js.map +1 -0
- package/dist/esm/api/capabilityTypes/index.d.ts +3 -0
- package/dist/esm/api/capabilityTypes/index.js +4 -0
- package/dist/esm/api/capabilityTypes/index.js.map +1 -0
- package/dist/esm/api/capabilityTypes/operations.d.ts +14 -0
- package/dist/esm/api/capabilityTypes/operations.js +60 -0
- package/dist/esm/api/capabilityTypes/operations.js.map +1 -0
- package/dist/esm/api/capabilityTypes/options.d.ts +10 -0
- package/dist/esm/api/capabilityTypes/options.js +4 -0
- package/dist/esm/api/capabilityTypes/options.js.map +1 -0
- package/dist/esm/api/chaosManagementContext.d.ts +17 -0
- package/dist/esm/api/chaosManagementContext.js +35 -0
- package/dist/esm/api/chaosManagementContext.js.map +1 -0
- package/dist/esm/api/experiments/index.d.ts +3 -0
- package/dist/esm/api/experiments/index.js +4 -0
- package/dist/esm/api/experiments/index.js.map +1 -0
- package/dist/esm/api/experiments/operations.d.ts +56 -0
- package/dist/esm/api/experiments/operations.js +319 -0
- package/dist/esm/api/experiments/operations.js.map +1 -0
- package/dist/esm/api/experiments/options.d.ts +53 -0
- package/dist/esm/api/experiments/options.js +4 -0
- package/dist/esm/api/experiments/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operationStatuses/index.d.ts +3 -0
- package/dist/esm/api/operationStatuses/index.js +4 -0
- package/dist/esm/api/operationStatuses/index.js.map +1 -0
- package/dist/esm/api/operationStatuses/operations.d.ts +9 -0
- package/dist/esm/api/operationStatuses/operations.js +32 -0
- package/dist/esm/api/operationStatuses/operations.js.map +1 -0
- package/dist/esm/api/operationStatuses/options.d.ts +5 -0
- package/dist/esm/api/operationStatuses/options.js +4 -0
- package/dist/esm/api/operationStatuses/options.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -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.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/targetTypes/index.d.ts +3 -0
- package/dist/esm/api/targetTypes/index.js +4 -0
- package/dist/esm/api/targetTypes/index.js.map +1 -0
- package/dist/esm/api/targetTypes/operations.d.ts +14 -0
- package/dist/esm/api/targetTypes/operations.js +58 -0
- package/dist/esm/api/targetTypes/operations.js.map +1 -0
- package/dist/esm/api/targetTypes/options.d.ts +10 -0
- package/dist/esm/api/targetTypes/options.js +4 -0
- package/dist/esm/api/targetTypes/options.js.map +1 -0
- package/dist/esm/api/targets/index.d.ts +3 -0
- package/dist/esm/api/targets/index.js +4 -0
- package/dist/esm/api/targets/index.js.map +1 -0
- package/dist/esm/api/targets/operations.d.ts +27 -0
- package/dist/esm/api/targets/operations.js +127 -0
- package/dist/esm/api/targets/operations.js.map +1 -0
- package/dist/esm/api/targets/options.d.ts +16 -0
- package/dist/esm/api/targets/options.js +4 -0
- package/dist/esm/api/targets/options.js.map +1 -0
- package/dist/esm/chaosManagementClient.d.ts +30 -25
- package/dist/esm/chaosManagementClient.js +26 -98
- package/dist/esm/chaosManagementClient.js.map +1 -1
- package/dist/esm/classic/capabilities/index.d.ts +22 -0
- package/dist/esm/classic/capabilities/index.js +15 -0
- package/dist/esm/classic/capabilities/index.js.map +1 -0
- package/dist/esm/classic/capabilityTypes/index.d.ts +13 -0
- package/dist/esm/classic/capabilityTypes/index.js +13 -0
- package/dist/esm/classic/capabilityTypes/index.js.map +1 -0
- package/dist/esm/classic/experiments/index.d.ts +37 -0
- package/dist/esm/classic/experiments/index.js +22 -0
- package/dist/esm/classic/experiments/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +8 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operationStatuses/index.d.ts +10 -0
- package/dist/esm/classic/operationStatuses/index.js +12 -0
- package/dist/esm/classic/operationStatuses/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/targetTypes/index.d.ts +13 -0
- package/dist/esm/classic/targetTypes/index.js +13 -0
- package/dist/esm/classic/targetTypes/index.js.map +1 -0
- package/dist/esm/classic/targets/index.d.ts +22 -0
- package/dist/esm/classic/targets/index.js +15 -0
- package/dist/esm/classic/targets/index.js.map +1 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +4 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -1117
- package/dist/esm/models/index.js +3 -71
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +772 -0
- package/dist/esm/models/models.js +923 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +100 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -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/capabilities/index.d.ts +3 -0
- package/dist/react-native/api/capabilities/index.js +4 -0
- package/dist/react-native/api/capabilities/index.js.map +1 -0
- package/dist/react-native/api/capabilities/operations.d.ts +27 -0
- package/dist/react-native/api/capabilities/operations.js +131 -0
- package/dist/react-native/api/capabilities/operations.js.map +1 -0
- package/dist/react-native/api/capabilities/options.d.ts +16 -0
- package/dist/react-native/api/capabilities/options.js +4 -0
- package/dist/react-native/api/capabilities/options.js.map +1 -0
- package/dist/react-native/api/capabilityTypes/index.d.ts +3 -0
- package/dist/react-native/api/capabilityTypes/index.js +4 -0
- package/dist/react-native/api/capabilityTypes/index.js.map +1 -0
- package/dist/react-native/api/capabilityTypes/operations.d.ts +14 -0
- package/dist/react-native/api/capabilityTypes/operations.js +60 -0
- package/dist/react-native/api/capabilityTypes/operations.js.map +1 -0
- package/dist/react-native/api/capabilityTypes/options.d.ts +10 -0
- package/dist/react-native/api/capabilityTypes/options.js +4 -0
- package/dist/react-native/api/capabilityTypes/options.js.map +1 -0
- package/dist/react-native/api/chaosManagementContext.d.ts +17 -0
- package/dist/react-native/api/chaosManagementContext.js +35 -0
- package/dist/react-native/api/chaosManagementContext.js.map +1 -0
- package/dist/react-native/api/experiments/index.d.ts +3 -0
- package/dist/react-native/api/experiments/index.js +4 -0
- package/dist/react-native/api/experiments/index.js.map +1 -0
- package/dist/react-native/api/experiments/operations.d.ts +56 -0
- package/dist/react-native/api/experiments/operations.js +319 -0
- package/dist/react-native/api/experiments/operations.js.map +1 -0
- package/dist/react-native/api/experiments/options.d.ts +53 -0
- package/dist/react-native/api/experiments/options.js +4 -0
- package/dist/react-native/api/experiments/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operationStatuses/index.d.ts +3 -0
- package/dist/react-native/api/operationStatuses/index.js +4 -0
- package/dist/react-native/api/operationStatuses/index.js.map +1 -0
- package/dist/react-native/api/operationStatuses/operations.d.ts +9 -0
- package/dist/react-native/api/operationStatuses/operations.js +32 -0
- package/dist/react-native/api/operationStatuses/operations.js.map +1 -0
- package/dist/react-native/api/operationStatuses/options.d.ts +5 -0
- package/dist/react-native/api/operationStatuses/options.js +4 -0
- package/dist/react-native/api/operationStatuses/options.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -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.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/targetTypes/index.d.ts +3 -0
- package/dist/react-native/api/targetTypes/index.js +4 -0
- package/dist/react-native/api/targetTypes/index.js.map +1 -0
- package/dist/react-native/api/targetTypes/operations.d.ts +14 -0
- package/dist/react-native/api/targetTypes/operations.js +58 -0
- package/dist/react-native/api/targetTypes/operations.js.map +1 -0
- package/dist/react-native/api/targetTypes/options.d.ts +10 -0
- package/dist/react-native/api/targetTypes/options.js +4 -0
- package/dist/react-native/api/targetTypes/options.js.map +1 -0
- package/dist/react-native/api/targets/index.d.ts +3 -0
- package/dist/react-native/api/targets/index.js +4 -0
- package/dist/react-native/api/targets/index.js.map +1 -0
- package/dist/react-native/api/targets/operations.d.ts +27 -0
- package/dist/react-native/api/targets/operations.js +127 -0
- package/dist/react-native/api/targets/operations.js.map +1 -0
- package/dist/react-native/api/targets/options.d.ts +16 -0
- package/dist/react-native/api/targets/options.js +4 -0
- package/dist/react-native/api/targets/options.js.map +1 -0
- package/dist/react-native/chaosManagementClient.d.ts +30 -25
- package/dist/react-native/chaosManagementClient.js +26 -98
- package/dist/react-native/chaosManagementClient.js.map +1 -1
- package/dist/react-native/classic/capabilities/index.d.ts +22 -0
- package/dist/react-native/classic/capabilities/index.js +15 -0
- package/dist/react-native/classic/capabilities/index.js.map +1 -0
- package/dist/react-native/classic/capabilityTypes/index.d.ts +13 -0
- package/dist/react-native/classic/capabilityTypes/index.js +13 -0
- package/dist/react-native/classic/capabilityTypes/index.js.map +1 -0
- package/dist/react-native/classic/experiments/index.d.ts +37 -0
- package/dist/react-native/classic/experiments/index.js +22 -0
- package/dist/react-native/classic/experiments/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +8 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operationStatuses/index.d.ts +10 -0
- package/dist/react-native/classic/operationStatuses/index.js +12 -0
- package/dist/react-native/classic/operationStatuses/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/targetTypes/index.d.ts +13 -0
- package/dist/react-native/classic/targetTypes/index.js +13 -0
- package/dist/react-native/classic/targetTypes/index.js.map +1 -0
- package/dist/react-native/classic/targets/index.d.ts +22 -0
- package/dist/react-native/classic/targets/index.js +15 -0
- package/dist/react-native/classic/targets/index.js.map +1 -0
- package/dist/react-native/index.d.ts +13 -3
- package/dist/react-native/index.js +4 -11
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1 -1117
- package/dist/react-native/models/index.js +3 -71
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +772 -0
- package/dist/react-native/models/models.js +923 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +100 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -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 +247 -71
- package/review/arm-chaos-api-capabilities.api.md +41 -0
- package/review/arm-chaos-api-capabilityTypes.api.md +27 -0
- package/review/arm-chaos-api-experiments.api.md +100 -0
- package/review/arm-chaos-api-operationStatuses.api.md +19 -0
- package/review/arm-chaos-api-operations.api.md +19 -0
- package/review/arm-chaos-api-targetTypes.api.md +27 -0
- package/review/arm-chaos-api-targets.api.md +41 -0
- package/review/arm-chaos-api.api.md +27 -0
- package/review/arm-chaos-models.api.md +446 -0
- package/review/arm-chaos.api.md +190 -313
- package/dist/browser/chaosManagementClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/lroImpl.d.ts +0 -11
- package/dist/browser/lroImpl.d.ts.map +0 -1
- package/dist/browser/lroImpl.js +0 -14
- package/dist/browser/lroImpl.js.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -62
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -1703
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -27
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -278
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/capabilities.d.ts +0 -81
- package/dist/browser/operations/capabilities.d.ts.map +0 -1
- package/dist/browser/operations/capabilities.js +0 -321
- package/dist/browser/operations/capabilities.js.map +0 -1
- package/dist/browser/operations/capabilityTypes.d.ts +0 -46
- package/dist/browser/operations/capabilityTypes.d.ts.map +0 -1
- package/dist/browser/operations/capabilityTypes.js +0 -182
- package/dist/browser/operations/capabilityTypes.js.map +0 -1
- package/dist/browser/operations/experiments.d.ts +0 -175
- package/dist/browser/operations/experiments.d.ts.map +0 -1
- package/dist/browser/operations/experiments.js +0 -878
- package/dist/browser/operations/experiments.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -8
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -15
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/operationStatuses.d.ts +0 -20
- package/dist/browser/operations/operationStatuses.d.ts.map +0 -1
- package/dist/browser/operations/operationStatuses.js +0 -53
- package/dist/browser/operations/operationStatuses.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -32
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -133
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/targetTypes.d.ts +0 -42
- package/dist/browser/operations/targetTypes.d.ts.map +0 -1
- package/dist/browser/operations/targetTypes.js +0 -175
- package/dist/browser/operations/targetTypes.js.map +0 -1
- package/dist/browser/operations/targets.d.ts +0 -75
- package/dist/browser/operations/targets.d.ts.map +0 -1
- package/dist/browser/operations/targets.js +0 -305
- package/dist/browser/operations/targets.js.map +0 -1
- package/dist/browser/operationsInterfaces/capabilities.d.ts +0 -50
- package/dist/browser/operationsInterfaces/capabilities.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/capabilities.js +0 -9
- package/dist/browser/operationsInterfaces/capabilities.js.map +0 -1
- package/dist/browser/operationsInterfaces/capabilityTypes.d.ts +0 -21
- package/dist/browser/operationsInterfaces/capabilityTypes.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/capabilityTypes.js +0 -9
- package/dist/browser/operationsInterfaces/capabilityTypes.js.map +0 -1
- package/dist/browser/operationsInterfaces/experiments.d.ts +0 -122
- package/dist/browser/operationsInterfaces/experiments.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/experiments.js +0 -9
- package/dist/browser/operationsInterfaces/experiments.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -8
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -15
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/operationStatuses.d.ts +0 -12
- package/dist/browser/operationsInterfaces/operationStatuses.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operationStatuses.js +0 -9
- package/dist/browser/operationsInterfaces/operationStatuses.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/targetTypes.d.ts +0 -19
- package/dist/browser/operationsInterfaces/targetTypes.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/targetTypes.js +0 -9
- package/dist/browser/operationsInterfaces/targetTypes.js.map +0 -1
- package/dist/browser/operationsInterfaces/targets.d.ts +0 -46
- package/dist/browser/operationsInterfaces/targets.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/targets.js +0 -9
- package/dist/browser/operationsInterfaces/targets.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -32
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/chaosManagementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.d.ts +0 -11
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js +0 -17
- package/dist/commonjs/lroImpl.js.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -62
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -1706
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -27
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -281
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/capabilities.d.ts +0 -81
- package/dist/commonjs/operations/capabilities.d.ts.map +0 -1
- package/dist/commonjs/operations/capabilities.js +0 -325
- package/dist/commonjs/operations/capabilities.js.map +0 -1
- package/dist/commonjs/operations/capabilityTypes.d.ts +0 -46
- package/dist/commonjs/operations/capabilityTypes.d.ts.map +0 -1
- package/dist/commonjs/operations/capabilityTypes.js +0 -186
- package/dist/commonjs/operations/capabilityTypes.js.map +0 -1
- package/dist/commonjs/operations/experiments.d.ts +0 -175
- package/dist/commonjs/operations/experiments.d.ts.map +0 -1
- package/dist/commonjs/operations/experiments.js +0 -882
- package/dist/commonjs/operations/experiments.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -8
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -18
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/operationStatuses.d.ts +0 -20
- package/dist/commonjs/operations/operationStatuses.d.ts.map +0 -1
- package/dist/commonjs/operations/operationStatuses.js +0 -58
- package/dist/commonjs/operations/operationStatuses.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -32
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -137
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operations/targetTypes.d.ts +0 -42
- package/dist/commonjs/operations/targetTypes.d.ts.map +0 -1
- package/dist/commonjs/operations/targetTypes.js +0 -179
- package/dist/commonjs/operations/targetTypes.js.map +0 -1
- package/dist/commonjs/operations/targets.d.ts +0 -75
- package/dist/commonjs/operations/targets.d.ts.map +0 -1
- package/dist/commonjs/operations/targets.js +0 -309
- package/dist/commonjs/operations/targets.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/capabilities.d.ts +0 -50
- package/dist/commonjs/operationsInterfaces/capabilities.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/capabilities.js +0 -10
- package/dist/commonjs/operationsInterfaces/capabilities.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/capabilityTypes.d.ts +0 -21
- package/dist/commonjs/operationsInterfaces/capabilityTypes.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/capabilityTypes.js +0 -10
- package/dist/commonjs/operationsInterfaces/capabilityTypes.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/experiments.d.ts +0 -122
- package/dist/commonjs/operationsInterfaces/experiments.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/experiments.js +0 -10
- package/dist/commonjs/operationsInterfaces/experiments.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -8
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -18
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operationStatuses.d.ts +0 -12
- package/dist/commonjs/operationsInterfaces/operationStatuses.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operationStatuses.js +0 -10
- package/dist/commonjs/operationsInterfaces/operationStatuses.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/targetTypes.d.ts +0 -19
- package/dist/commonjs/operationsInterfaces/targetTypes.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/targetTypes.js +0 -10
- package/dist/commonjs/operationsInterfaces/targetTypes.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/targets.d.ts +0 -46
- package/dist/commonjs/operationsInterfaces/targets.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/targets.js +0 -10
- package/dist/commonjs/operationsInterfaces/targets.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -36
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/chaosManagementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/lroImpl.d.ts +0 -11
- package/dist/esm/lroImpl.d.ts.map +0 -1
- package/dist/esm/lroImpl.js +0 -14
- package/dist/esm/lroImpl.js.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -62
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -1703
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -27
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -278
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/capabilities.d.ts +0 -81
- package/dist/esm/operations/capabilities.d.ts.map +0 -1
- package/dist/esm/operations/capabilities.js +0 -321
- package/dist/esm/operations/capabilities.js.map +0 -1
- package/dist/esm/operations/capabilityTypes.d.ts +0 -46
- package/dist/esm/operations/capabilityTypes.d.ts.map +0 -1
- package/dist/esm/operations/capabilityTypes.js +0 -182
- package/dist/esm/operations/capabilityTypes.js.map +0 -1
- package/dist/esm/operations/experiments.d.ts +0 -175
- package/dist/esm/operations/experiments.d.ts.map +0 -1
- package/dist/esm/operations/experiments.js +0 -878
- package/dist/esm/operations/experiments.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -8
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -15
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/operationStatuses.d.ts +0 -20
- package/dist/esm/operations/operationStatuses.d.ts.map +0 -1
- package/dist/esm/operations/operationStatuses.js +0 -53
- package/dist/esm/operations/operationStatuses.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -32
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -133
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operations/targetTypes.d.ts +0 -42
- package/dist/esm/operations/targetTypes.d.ts.map +0 -1
- package/dist/esm/operations/targetTypes.js +0 -175
- package/dist/esm/operations/targetTypes.js.map +0 -1
- package/dist/esm/operations/targets.d.ts +0 -75
- package/dist/esm/operations/targets.d.ts.map +0 -1
- package/dist/esm/operations/targets.js +0 -305
- package/dist/esm/operations/targets.js.map +0 -1
- package/dist/esm/operationsInterfaces/capabilities.d.ts +0 -50
- package/dist/esm/operationsInterfaces/capabilities.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/capabilities.js +0 -9
- package/dist/esm/operationsInterfaces/capabilities.js.map +0 -1
- package/dist/esm/operationsInterfaces/capabilityTypes.d.ts +0 -21
- package/dist/esm/operationsInterfaces/capabilityTypes.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/capabilityTypes.js +0 -9
- package/dist/esm/operationsInterfaces/capabilityTypes.js.map +0 -1
- package/dist/esm/operationsInterfaces/experiments.d.ts +0 -122
- package/dist/esm/operationsInterfaces/experiments.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/experiments.js +0 -9
- package/dist/esm/operationsInterfaces/experiments.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -8
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -15
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/operationStatuses.d.ts +0 -12
- package/dist/esm/operationsInterfaces/operationStatuses.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operationStatuses.js +0 -9
- package/dist/esm/operationsInterfaces/operationStatuses.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/targetTypes.d.ts +0 -19
- package/dist/esm/operationsInterfaces/targetTypes.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/targetTypes.js +0 -9
- package/dist/esm/operationsInterfaces/targetTypes.js.map +0 -1
- package/dist/esm/operationsInterfaces/targets.d.ts +0 -46
- package/dist/esm/operationsInterfaces/targets.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/targets.js +0 -9
- package/dist/esm/operationsInterfaces/targets.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -32
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/chaosManagementClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/lroImpl.d.ts +0 -11
- package/dist/react-native/lroImpl.d.ts.map +0 -1
- package/dist/react-native/lroImpl.js +0 -14
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -62
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -1703
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -27
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -278
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/capabilities.d.ts +0 -81
- package/dist/react-native/operations/capabilities.d.ts.map +0 -1
- package/dist/react-native/operations/capabilities.js +0 -321
- package/dist/react-native/operations/capabilities.js.map +0 -1
- package/dist/react-native/operations/capabilityTypes.d.ts +0 -46
- package/dist/react-native/operations/capabilityTypes.d.ts.map +0 -1
- package/dist/react-native/operations/capabilityTypes.js +0 -182
- package/dist/react-native/operations/capabilityTypes.js.map +0 -1
- package/dist/react-native/operations/experiments.d.ts +0 -175
- package/dist/react-native/operations/experiments.d.ts.map +0 -1
- package/dist/react-native/operations/experiments.js +0 -878
- package/dist/react-native/operations/experiments.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -8
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -15
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/operationStatuses.d.ts +0 -20
- package/dist/react-native/operations/operationStatuses.d.ts.map +0 -1
- package/dist/react-native/operations/operationStatuses.js +0 -53
- package/dist/react-native/operations/operationStatuses.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -32
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -133
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/targetTypes.d.ts +0 -42
- package/dist/react-native/operations/targetTypes.d.ts.map +0 -1
- package/dist/react-native/operations/targetTypes.js +0 -175
- package/dist/react-native/operations/targetTypes.js.map +0 -1
- package/dist/react-native/operations/targets.d.ts +0 -75
- package/dist/react-native/operations/targets.d.ts.map +0 -1
- package/dist/react-native/operations/targets.js +0 -305
- package/dist/react-native/operations/targets.js.map +0 -1
- package/dist/react-native/operationsInterfaces/capabilities.d.ts +0 -50
- package/dist/react-native/operationsInterfaces/capabilities.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/capabilities.js +0 -9
- package/dist/react-native/operationsInterfaces/capabilities.js.map +0 -1
- package/dist/react-native/operationsInterfaces/capabilityTypes.d.ts +0 -21
- package/dist/react-native/operationsInterfaces/capabilityTypes.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/capabilityTypes.js +0 -9
- package/dist/react-native/operationsInterfaces/capabilityTypes.js.map +0 -1
- package/dist/react-native/operationsInterfaces/experiments.d.ts +0 -122
- package/dist/react-native/operationsInterfaces/experiments.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/experiments.js +0 -9
- package/dist/react-native/operationsInterfaces/experiments.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -8
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -15
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operationStatuses.d.ts +0 -12
- package/dist/react-native/operationsInterfaces/operationStatuses.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operationStatuses.js +0 -9
- package/dist/react-native/operationsInterfaces/operationStatuses.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/targetTypes.d.ts +0 -19
- package/dist/react-native/operationsInterfaces/targetTypes.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/targetTypes.js +0 -9
- package/dist/react-native/operationsInterfaces/targetTypes.js.map +0 -1
- package/dist/react-native/operationsInterfaces/targets.d.ts +0 -46
- package/dist/react-native/operationsInterfaces/targets.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/targets.js +0 -9
- package/dist/react-native/operationsInterfaces/targets.js.map +0 -1
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -32
- package/dist/react-native/pagingHelper.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,oBAAoB,CAAC,IAAgB;IACnD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;YACzB,CAAC,CAAC,IAAI,CAAC,UAAU,C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AgB,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC1C,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;KACP,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,iCAAiC,CAAC,IAAS;IACzD,OAAO;QACL,KAAK,EAAE,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,MAAyB;IACnE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Model that represents a Experiment resource. */\nexport interface Experiment extends TrackedResource {\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n /** The properties of the experiment resource. */\n properties: ExperimentProperties;\n}\n\nexport function experimentSerializer(item: Experiment): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n properties: experimentPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function experimentDeserializer(item: any): Experiment {\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 identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n properties: experimentPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** Model that represents the Experiment properties model. */\nexport interface ExperimentProperties {\n /** Most recent provisioning state for the given experiment resource. */\n readonly provisioningState?: ProvisioningState;\n /** List of steps. */\n steps: ChaosExperimentStep[];\n /** List of selectors. */\n selectors: ChaosTargetSelectorUnion[];\n}\n\nexport function experimentPropertiesSerializer(item: ExperimentProperties): any {\n return {\n steps: chaosExperimentStepArraySerializer(item[\"steps\"]),\n selectors: chaosTargetSelectorUnionArraySerializer(item[\"selectors\"]),\n };\n}\n\nexport function experimentPropertiesDeserializer(item: any): ExperimentProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n steps: chaosExperimentStepArrayDeserializer(item[\"steps\"]),\n selectors: chaosTargetSelectorUnionArrayDeserializer(item[\"selectors\"]),\n };\n}\n\n/** Current provisioning state for a given Azure Chaos resource. */\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 /** Initial creation in progress. */\n Creating = \"Creating\",\n /** Update in progress. */\n Updating = \"Updating\",\n /** Deletion in progress. */\n Deleting = \"Deleting\",\n}\n\n/**\n * Current provisioning state for a given Azure Chaos resource. \\\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 * **Creating**: Initial creation in progress. \\\n * **Updating**: Update in progress. \\\n * **Deleting**: Deletion in progress.\n */\nexport type ProvisioningState = string;\n\nexport function chaosExperimentStepArraySerializer(result: Array<ChaosExperimentStep>): any[] {\n return result.map((item) => {\n return chaosExperimentStepSerializer(item);\n });\n}\n\nexport function chaosExperimentStepArrayDeserializer(result: Array<ChaosExperimentStep>): any[] {\n return result.map((item) => {\n return chaosExperimentStepDeserializer(item);\n });\n}\n\n/** Model that represents a step in the Experiment resource. */\nexport interface ChaosExperimentStep {\n /** String of the step name. */\n name: string;\n /** List of branches. */\n branches: ChaosExperimentBranch[];\n}\n\nexport function chaosExperimentStepSerializer(item: ChaosExperimentStep): any {\n return {\n name: item[\"name\"],\n branches: chaosExperimentBranchArraySerializer(item[\"branches\"]),\n };\n}\n\nexport function chaosExperimentStepDeserializer(item: any): ChaosExperimentStep {\n return {\n name: item[\"name\"],\n branches: chaosExperimentBranchArrayDeserializer(item[\"branches\"]),\n };\n}\n\nexport function chaosExperimentBranchArraySerializer(result: Array<ChaosExperimentBranch>): any[] {\n return result.map((item) => {\n return chaosExperimentBranchSerializer(item);\n });\n}\n\nexport function chaosExperimentBranchArrayDeserializer(\n result: Array<ChaosExperimentBranch>,\n): any[] {\n return result.map((item) => {\n return chaosExperimentBranchDeserializer(item);\n });\n}\n\n/** Model that represents a branch in the step. 9 total per experiment. */\nexport interface ChaosExperimentBranch {\n /** String of the branch name. */\n name: string;\n /** List of actions. */\n actions: ChaosExperimentActionUnion[];\n}\n\nexport function chaosExperimentBranchSerializer(item: ChaosExperimentBranch): any {\n return {\n name: item[\"name\"],\n actions: chaosExperimentActionUnionArraySerializer(item[\"actions\"]),\n };\n}\n\nexport function chaosExperimentBranchDeserializer(item: any): ChaosExperimentBranch {\n return {\n name: item[\"name\"],\n actions: chaosExperimentActionUnionArrayDeserializer(item[\"actions\"]),\n };\n}\n\nexport function chaosExperimentActionUnionArraySerializer(\n result: Array<ChaosExperimentActionUnion>,\n): any[] {\n return result.map((item) => {\n return chaosExperimentActionUnionSerializer(item);\n });\n}\n\nexport function chaosExperimentActionUnionArrayDeserializer(\n result: Array<ChaosExperimentActionUnion>,\n): any[] {\n return result.map((item) => {\n return chaosExperimentActionUnionDeserializer(item);\n });\n}\n\n/** Model that represents the base action model. 9 total per experiment. */\nexport interface ChaosExperimentAction {\n /** String that represents a Capability URN. */\n name: string;\n /** Chaos experiment action discriminator type */\n /** The discriminator possible values: continuous, delay, discrete */\n type: ExperimentActionType;\n}\n\nexport function chaosExperimentActionSerializer(item: ChaosExperimentAction): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\nexport function chaosExperimentActionDeserializer(item: any): ChaosExperimentAction {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n };\n}\n\n/** Alias for ChaosExperimentActionUnion */\nexport type ChaosExperimentActionUnion =\n | ContinuousAction\n | DelayAction\n | DiscreteAction\n | ChaosExperimentAction;\n\nexport function chaosExperimentActionUnionSerializer(item: ChaosExperimentActionUnion): any {\n switch (item.type) {\n case \"continuous\":\n return continuousActionSerializer(item as ContinuousAction);\n\n case \"delay\":\n return delayActionSerializer(item as DelayAction);\n\n case \"discrete\":\n return discreteActionSerializer(item as DiscreteAction);\n\n default:\n return chaosExperimentActionSerializer(item);\n }\n}\n\nexport function chaosExperimentActionUnionDeserializer(item: any): ChaosExperimentActionUnion {\n switch (item.type) {\n case \"continuous\":\n return continuousActionDeserializer(item as ContinuousAction);\n\n case \"delay\":\n return delayActionDeserializer(item as DelayAction);\n\n case \"discrete\":\n return discreteActionDeserializer(item as DiscreteAction);\n\n default:\n return chaosExperimentActionDeserializer(item);\n }\n}\n\n/** Enum union of Chaos experiment action types. */\nexport enum KnownExperimentActionType {\n Delay = \"delay\",\n Discrete = \"discrete\",\n Continuous = \"continuous\",\n}\n\n/**\n * Enum union of Chaos experiment action types. \\\n * {@link KnownExperimentActionType} can be used interchangeably with ExperimentActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **delay** \\\n * **discrete** \\\n * **continuous**\n */\nexport type ExperimentActionType = string;\n\n/** Model that represents a continuous action. */\nexport interface ContinuousAction extends ChaosExperimentAction {\n /** ISO8601 formatted string that represents a duration. */\n duration: string;\n /** List of key value pairs. */\n parameters: KeyValuePair[];\n /** String that represents a selector. */\n selectorId: string;\n /** Enum that discriminates between action models. */\n type: \"continuous\";\n}\n\nexport function continuousActionSerializer(item: ContinuousAction): any {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n duration: item[\"duration\"],\n parameters: keyValuePairArraySerializer(item[\"parameters\"]),\n selectorId: item[\"selectorId\"],\n };\n}\n\nexport function continuousActionDeserializer(item: any): ContinuousAction {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n duration: item[\"duration\"],\n parameters: keyValuePairArrayDeserializer(item[\"parameters\"]),\n selectorId: item[\"selectorId\"],\n };\n}\n\nexport function keyValuePairArraySerializer(result: Array<KeyValuePair>): any[] {\n return result.map((item) => {\n return keyValuePairSerializer(item);\n });\n}\n\nexport function keyValuePairArrayDeserializer(result: Array<KeyValuePair>): any[] {\n return result.map((item) => {\n return keyValuePairDeserializer(item);\n });\n}\n\n/** A map to describe the settings of an action. */\nexport interface KeyValuePair {\n /** The name of the setting for the action. */\n key: string;\n /** The value of the setting for the action. */\n value: string;\n}\n\nexport function keyValuePairSerializer(item: KeyValuePair): any {\n return { key: item[\"key\"], value: item[\"value\"] };\n}\n\nexport function keyValuePairDeserializer(item: any): KeyValuePair {\n return {\n key: item[\"key\"],\n value: item[\"value\"],\n };\n}\n\n/** Model that represents a delay action. */\nexport interface DelayAction extends ChaosExperimentAction {\n /** ISO8601 formatted string that represents a duration. */\n duration: string;\n /** Enum that discriminates between action models. */\n type: \"delay\";\n}\n\nexport function delayActionSerializer(item: DelayAction): any {\n return { name: item[\"name\"], type: item[\"type\"], duration: item[\"duration\"] };\n}\n\nexport function delayActionDeserializer(item: any): DelayAction {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n duration: item[\"duration\"],\n };\n}\n\n/** Model that represents a discrete action. */\nexport interface DiscreteAction extends ChaosExperimentAction {\n /** List of key value pairs. */\n parameters: KeyValuePair[];\n /** String that represents a selector. */\n selectorId: string;\n /** Enum that discriminates between action models. */\n type: \"discrete\";\n}\n\nexport function discreteActionSerializer(item: DiscreteAction): any {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n parameters: keyValuePairArraySerializer(item[\"parameters\"]),\n selectorId: item[\"selectorId\"],\n };\n}\n\nexport function discreteActionDeserializer(item: any): DiscreteAction {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n parameters: keyValuePairArrayDeserializer(item[\"parameters\"]),\n selectorId: item[\"selectorId\"],\n };\n}\n\nexport function chaosTargetSelectorUnionArraySerializer(\n result: Array<ChaosTargetSelectorUnion>,\n): any[] {\n return result.map((item) => {\n return chaosTargetSelectorUnionSerializer(item);\n });\n}\n\nexport function chaosTargetSelectorUnionArrayDeserializer(\n result: Array<ChaosTargetSelectorUnion>,\n): any[] {\n return result.map((item) => {\n return chaosTargetSelectorUnionDeserializer(item);\n });\n}\n\n/** Model that represents a selector in the Experiment resource. */\nexport interface ChaosTargetSelector {\n /** String of the selector ID. */\n id: string;\n /** Chaos target selector discriminator type */\n /** The discriminator possible values: List, Query */\n type: SelectorType;\n /** Model that represents available filter types that can be applied to a targets list. */\n filter?: ChaosTargetFilterUnion;\n}\n\nexport function chaosTargetSelectorSerializer(item: ChaosTargetSelector): any {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionSerializer(item[\"filter\"]),\n };\n}\n\nexport function chaosTargetSelectorDeserializer(item: any): ChaosTargetSelector {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionDeserializer(item[\"filter\"]),\n };\n}\n\n/** Alias for ChaosTargetSelectorUnion */\nexport type ChaosTargetSelectorUnion =\n | ChaosTargetListSelector\n | ChaosTargetQuerySelector\n | ChaosTargetSelector;\n\nexport function chaosTargetSelectorUnionSerializer(item: ChaosTargetSelectorUnion): any {\n switch (item.type) {\n case \"List\":\n return chaosTargetListSelectorSerializer(item as ChaosTargetListSelector);\n\n case \"Query\":\n return chaosTargetQuerySelectorSerializer(item as ChaosTargetQuerySelector);\n\n default:\n return chaosTargetSelectorSerializer(item);\n }\n}\n\nexport function chaosTargetSelectorUnionDeserializer(item: any): ChaosTargetSelectorUnion {\n switch (item.type) {\n case \"List\":\n return chaosTargetListSelectorDeserializer(item as ChaosTargetListSelector);\n\n case \"Query\":\n return chaosTargetQuerySelectorDeserializer(item as ChaosTargetQuerySelector);\n\n default:\n return chaosTargetSelectorDeserializer(item);\n }\n}\n\n/** Enum of the selector type. */\nexport enum KnownSelectorType {\n /** List selector type. */\n List = \"List\",\n /** Query selector type. */\n Query = \"Query\",\n}\n\n/**\n * Enum of the selector type. \\\n * {@link KnownSelectorType} can be used interchangeably with SelectorType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **List**: List selector type. \\\n * **Query**: Query selector type.\n */\nexport type SelectorType = string;\n\n/** Model that represents available filter types that can be applied to a targets list. */\nexport interface ChaosTargetFilter {\n /** Chaos target filter discriminator type */\n /** The discriminator possible values: Simple */\n type: FilterType;\n}\n\nexport function chaosTargetFilterSerializer(item: ChaosTargetFilter): any {\n return { type: item[\"type\"] };\n}\n\nexport function chaosTargetFilterDeserializer(item: any): ChaosTargetFilter {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for ChaosTargetFilterUnion */\nexport type ChaosTargetFilterUnion = ChaosTargetSimpleFilter | ChaosTargetFilter;\n\nexport function chaosTargetFilterUnionSerializer(item: ChaosTargetFilterUnion): any {\n switch (item.type) {\n case \"Simple\":\n return chaosTargetSimpleFilterSerializer(item as ChaosTargetSimpleFilter);\n\n default:\n return chaosTargetFilterSerializer(item);\n }\n}\n\nexport function chaosTargetFilterUnionDeserializer(item: any): ChaosTargetFilterUnion {\n switch (item.type) {\n case \"Simple\":\n return chaosTargetSimpleFilterDeserializer(item as ChaosTargetSimpleFilter);\n\n default:\n return chaosTargetFilterDeserializer(item);\n }\n}\n\n/** Enum that discriminates between filter types. Currently only `Simple` type is supported. */\nexport enum KnownFilterType {\n /** Simple filter type. */\n Simple = \"Simple\",\n}\n\n/**\n * Enum that discriminates between filter types. Currently only `Simple` type is supported. \\\n * {@link KnownFilterType} can be used interchangeably with FilterType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Simple**: Simple filter type.\n */\nexport type FilterType = string;\n\n/** Model that represents a simple target filter. */\nexport interface ChaosTargetSimpleFilter extends ChaosTargetFilter {\n /** Model that represents the Simple filter parameters. */\n parameters?: ChaosTargetSimpleFilterParameters;\n /** Enum that discriminates between filter types. Currently only `Simple` type is supported. */\n type: \"Simple\";\n}\n\nexport function chaosTargetSimpleFilterSerializer(item: ChaosTargetSimpleFilter): any {\n return {\n type: item[\"type\"],\n parameters: !item[\"parameters\"]\n ? item[\"parameters\"]\n : chaosTargetSimpleFilterParametersSerializer(item[\"parameters\"]),\n };\n}\n\nexport function chaosTargetSimpleFilterDeserializer(item: any): ChaosTargetSimpleFilter {\n return {\n type: item[\"type\"],\n parameters: !item[\"parameters\"]\n ? item[\"parameters\"]\n : chaosTargetSimpleFilterParametersDeserializer(item[\"parameters\"]),\n };\n}\n\n/** Model that represents the Simple filter parameters. */\nexport interface ChaosTargetSimpleFilterParameters {\n /** List of Azure availability zones to filter targets by. */\n zones?: string[];\n}\n\nexport function chaosTargetSimpleFilterParametersSerializer(\n item: ChaosTargetSimpleFilterParameters,\n): any {\n return {\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function chaosTargetSimpleFilterParametersDeserializer(\n item: any,\n): ChaosTargetSimpleFilterParameters {\n return {\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Model that represents a list selector. */\nexport interface ChaosTargetListSelector extends ChaosTargetSelector {\n /** List of Target references. */\n targets: TargetReference[];\n /** Enum of the selector type. */\n type: \"List\";\n}\n\nexport function chaosTargetListSelectorSerializer(item: ChaosTargetListSelector): any {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionSerializer(item[\"filter\"]),\n targets: targetReferenceArraySerializer(item[\"targets\"]),\n };\n}\n\nexport function chaosTargetListSelectorDeserializer(item: any): ChaosTargetListSelector {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionDeserializer(item[\"filter\"]),\n targets: targetReferenceArrayDeserializer(item[\"targets\"]),\n };\n}\n\nexport function targetReferenceArraySerializer(result: Array<TargetReference>): any[] {\n return result.map((item) => {\n return targetReferenceSerializer(item);\n });\n}\n\nexport function targetReferenceArrayDeserializer(result: Array<TargetReference>): any[] {\n return result.map((item) => {\n return targetReferenceDeserializer(item);\n });\n}\n\n/** Model that represents a reference to a Target in the selector. */\nexport interface TargetReference {\n /** Enum of the Target reference type. */\n type: TargetReferenceType;\n /** String of the resource ID of a Target resource. */\n id: string;\n}\n\nexport function targetReferenceSerializer(item: TargetReference): any {\n return { type: item[\"type\"], id: item[\"id\"] };\n}\n\nexport function targetReferenceDeserializer(item: any): TargetReference {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n };\n}\n\n/** Enum of the Target reference type. */\nexport enum KnownTargetReferenceType {\n /** Chaos target reference type. */\n ChaosTarget = \"ChaosTarget\",\n}\n\n/**\n * Enum of the Target reference type. \\\n * {@link KnownTargetReferenceType} can be used interchangeably with TargetReferenceType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ChaosTarget**: Chaos target reference type.\n */\nexport type TargetReferenceType = string;\n\n/** Model that represents a query selector. */\nexport interface ChaosTargetQuerySelector extends ChaosTargetSelector {\n /** Azure Resource Graph (ARG) Query Language query for target resources. */\n queryString: string;\n /** Subscription id list to scope resource query. */\n subscriptionIds: string[];\n /** Enum of the selector type. */\n type: \"Query\";\n}\n\nexport function chaosTargetQuerySelectorSerializer(item: ChaosTargetQuerySelector): any {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionSerializer(item[\"filter\"]),\n queryString: item[\"queryString\"],\n subscriptionIds: item[\"subscriptionIds\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function chaosTargetQuerySelectorDeserializer(item: any): ChaosTargetQuerySelector {\n return {\n id: item[\"id\"],\n type: item[\"type\"],\n filter: !item[\"filter\"] ? item[\"filter\"] : chaosTargetFilterUnionDeserializer(item[\"filter\"]),\n queryString: item[\"queryString\"],\n subscriptionIds: item[\"subscriptionIds\"].map((p: any) => {\n return p;\n }),\n };\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): 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/** 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/** Describes an experiment update. */\nexport interface ExperimentUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function experimentUpdateSerializer(item: ExperimentUpdate): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\n/** Model that represents a list of Experiment resources and a link for pagination. */\nexport interface _ExperimentListResult {\n /** The Experiment items on this page */\n value: Experiment[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _experimentListResultDeserializer(item: any): _ExperimentListResult {\n return {\n value: experimentArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function experimentArraySerializer(result: Array<Experiment>): any[] {\n return result.map((item) => {\n return experimentSerializer(item);\n });\n}\n\nexport function experimentArrayDeserializer(result: Array<Experiment>): any[] {\n return result.map((item) => {\n return experimentDeserializer(item);\n });\n}\n\n/** Model that represents the execution of a Experiment. */\nexport interface ExperimentExecution extends ProxyResource {\n /** The properties of experiment execution status. */\n properties?: ExperimentExecutionProperties;\n}\n\nexport function experimentExecutionDeserializer(item: any): ExperimentExecution {\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 : experimentExecutionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Model that represents the execution properties of an Experiment. */\nexport interface ExperimentExecutionProperties {\n /** The status of the execution. */\n readonly status?: string;\n /** String that represents the start date time. */\n readonly startedAt?: Date;\n /** String that represents the stop date time. */\n readonly stoppedAt?: Date;\n}\n\nexport function experimentExecutionPropertiesDeserializer(\n item: any,\n): ExperimentExecutionProperties {\n return {\n status: item[\"status\"],\n startedAt: !item[\"startedAt\"] ? item[\"startedAt\"] : new Date(item[\"startedAt\"]),\n stoppedAt: !item[\"stoppedAt\"] ? item[\"stoppedAt\"] : new Date(item[\"stoppedAt\"]),\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 proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\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/** Model that represents a list of Experiment executions and a link for pagination. */\nexport interface _ExperimentExecutionListResult {\n /** The ExperimentExecution items on this page */\n value: ExperimentExecution[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _experimentExecutionListResultDeserializer(\n item: any,\n): _ExperimentExecutionListResult {\n return {\n value: experimentExecutionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function experimentExecutionArrayDeserializer(result: Array<ExperimentExecution>): any[] {\n return result.map((item) => {\n return experimentExecutionDeserializer(item);\n });\n}\n\n/** Model that represents the execution details of an Experiment. */\nexport interface ExperimentExecutionDetails {\n /** String of the resource type. */\n readonly type?: string;\n /** String of the fully qualified resource ID. */\n readonly id?: string;\n /** String of the resource name. */\n readonly name?: string;\n /** The properties of the experiment execution details. */\n readonly properties?: ExperimentExecutionDetailsProperties;\n}\n\nexport function experimentExecutionDetailsDeserializer(item: any): ExperimentExecutionDetails {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : experimentExecutionDetailsPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Model that represents the extended properties of an experiment execution. */\nexport interface ExperimentExecutionDetailsProperties {\n /** The status of the execution. */\n readonly status?: string;\n /** String that represents the start date time. */\n readonly startedAt?: Date;\n /** String that represents the stop date time. */\n readonly stoppedAt?: Date;\n /** The reason why the execution failed. */\n readonly failureReason?: string;\n /** String that represents the last action date time. */\n readonly lastActionAt?: Date;\n /** The information of the experiment run. */\n readonly runInformation?: ExperimentExecutionDetailsPropertiesRunInformation;\n}\n\nexport function experimentExecutionDetailsPropertiesDeserializer(\n item: any,\n): ExperimentExecutionDetailsProperties {\n return {\n status: item[\"status\"],\n startedAt: !item[\"startedAt\"] ? item[\"startedAt\"] : new Date(item[\"startedAt\"]),\n stoppedAt: !item[\"stoppedAt\"] ? item[\"stoppedAt\"] : new Date(item[\"stoppedAt\"]),\n failureReason: item[\"failureReason\"],\n lastActionAt: !item[\"lastActionAt\"] ? item[\"lastActionAt\"] : new Date(item[\"lastActionAt\"]),\n runInformation: !item[\"runInformation\"]\n ? item[\"runInformation\"]\n : experimentExecutionDetailsPropertiesRunInformationDeserializer(item[\"runInformation\"]),\n };\n}\n\n/** The information of the experiment run. */\nexport interface ExperimentExecutionDetailsPropertiesRunInformation {\n /** The steps of the experiment run. */\n readonly steps?: StepStatus[];\n}\n\nexport function experimentExecutionDetailsPropertiesRunInformationDeserializer(\n item: any,\n): ExperimentExecutionDetailsPropertiesRunInformation {\n return {\n steps: !item[\"steps\"] ? item[\"steps\"] : stepStatusArrayDeserializer(item[\"steps\"]),\n };\n}\n\nexport function stepStatusArrayDeserializer(result: Array<StepStatus>): any[] {\n return result.map((item) => {\n return stepStatusDeserializer(item);\n });\n}\n\n/** Model that represents the a list of branches and branch statuses. */\nexport interface StepStatus {\n /** The name of the step. */\n readonly stepName?: string;\n /** The id of the step. */\n readonly stepId?: string;\n /** The value of the status of the step. */\n readonly status?: string;\n /** The array of branches. */\n readonly branches?: BranchStatus[];\n}\n\nexport function stepStatusDeserializer(item: any): StepStatus {\n return {\n stepName: item[\"stepName\"],\n stepId: item[\"stepId\"],\n status: item[\"status\"],\n branches: !item[\"branches\"]\n ? item[\"branches\"]\n : branchStatusArrayDeserializer(item[\"branches\"]),\n };\n}\n\nexport function branchStatusArrayDeserializer(result: Array<BranchStatus>): any[] {\n return result.map((item) => {\n return branchStatusDeserializer(item);\n });\n}\n\n/** Model that represents the a list of actions and action statuses. */\nexport interface BranchStatus {\n /** The name of the branch status. */\n readonly branchName?: string;\n /** The id of the branch status. */\n readonly branchId?: string;\n /** The status of the branch. */\n readonly status?: string;\n /** The array of actions. */\n readonly actions?: ActionStatus[];\n}\n\nexport function branchStatusDeserializer(item: any): BranchStatus {\n return {\n branchName: item[\"branchName\"],\n branchId: item[\"branchId\"],\n status: item[\"status\"],\n actions: !item[\"actions\"] ? item[\"actions\"] : actionStatusArrayDeserializer(item[\"actions\"]),\n };\n}\n\nexport function actionStatusArrayDeserializer(result: Array<ActionStatus>): any[] {\n return result.map((item) => {\n return actionStatusDeserializer(item);\n });\n}\n\n/** Model that represents the an action and its status. */\nexport interface ActionStatus {\n /** The name of the action status. */\n readonly actionName?: string;\n /** The id of the action status. */\n readonly actionId?: string;\n /** The status of the action. */\n readonly status?: string;\n /** String that represents the start time of the action. */\n readonly startTime?: Date;\n /** String that represents the end time of the action. */\n readonly endTime?: Date;\n /** The array of targets. */\n readonly targets?: ExperimentExecutionActionTargetDetailsProperties[];\n}\n\nexport function actionStatusDeserializer(item: any): ActionStatus {\n return {\n actionName: item[\"actionName\"],\n actionId: item[\"actionId\"],\n status: item[\"status\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n targets: !item[\"targets\"]\n ? item[\"targets\"]\n : experimentExecutionActionTargetDetailsPropertiesArrayDeserializer(item[\"targets\"]),\n };\n}\n\nexport function experimentExecutionActionTargetDetailsPropertiesArrayDeserializer(\n result: Array<ExperimentExecutionActionTargetDetailsProperties>,\n): any[] {\n return result.map((item) => {\n return experimentExecutionActionTargetDetailsPropertiesDeserializer(item);\n });\n}\n\n/** Model that represents the Experiment action target details properties model. */\nexport interface ExperimentExecutionActionTargetDetailsProperties {\n /** The status of the execution. */\n readonly status?: string;\n /** The target for the action. */\n readonly target?: string;\n /** String that represents the failed date time. */\n readonly targetFailedTime?: Date;\n /** String that represents the completed date time. */\n readonly targetCompletedTime?: Date;\n /** The error of the action. */\n readonly error?: ExperimentExecutionActionTargetDetailsError;\n}\n\nexport function experimentExecutionActionTargetDetailsPropertiesDeserializer(\n item: any,\n): ExperimentExecutionActionTargetDetailsProperties {\n return {\n status: item[\"status\"],\n target: item[\"target\"],\n targetFailedTime: !item[\"targetFailedTime\"]\n ? item[\"targetFailedTime\"]\n : new Date(item[\"targetFailedTime\"]),\n targetCompletedTime: !item[\"targetCompletedTime\"]\n ? item[\"targetCompletedTime\"]\n : new Date(item[\"targetCompletedTime\"]),\n error: !item[\"error\"]\n ? item[\"error\"]\n : experimentExecutionActionTargetDetailsErrorDeserializer(item[\"error\"]),\n };\n}\n\n/** Model that represents the Experiment action target details error model. */\nexport interface ExperimentExecutionActionTargetDetailsError {\n /** The error code. */\n readonly code?: string;\n /** The error message */\n readonly message?: string;\n}\n\nexport function experimentExecutionActionTargetDetailsErrorDeserializer(\n item: any,\n): ExperimentExecutionActionTargetDetailsError {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** Model that represents a Capability resource. */\nexport interface Capability extends ProxyResource {\n /** The properties of a capability resource. */\n properties?: CapabilityProperties;\n}\n\nexport function capabilitySerializer(item: Capability): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : capabilityPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function capabilityDeserializer(item: any): Capability {\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 : capabilityPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Model that represents the Capability properties model. */\nexport interface CapabilityProperties {\n /** String of the Publisher that this Capability extends. */\n readonly publisher?: string;\n /** String of the Target Type that this Capability extends. */\n readonly targetType?: string;\n /** Localized string of the description. */\n readonly description?: string;\n /** URL to retrieve JSON schema of the Capability parameters. */\n readonly parametersSchema?: string;\n /** String of the URN for this Capability Type. */\n readonly urn?: string;\n}\n\nexport function capabilityPropertiesSerializer(item: CapabilityProperties): any {\n return item;\n}\n\nexport function capabilityPropertiesDeserializer(item: any): CapabilityProperties {\n return {\n publisher: item[\"publisher\"],\n targetType: item[\"targetType\"],\n description: item[\"description\"],\n parametersSchema: item[\"parametersSchema\"],\n urn: item[\"urn\"],\n };\n}\n\n/** Model that represents a list of Capability resources and a link for pagination. */\nexport interface _CapabilityListResult {\n /** The Capability items on this page */\n value: Capability[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _capabilityListResultDeserializer(item: any): _CapabilityListResult {\n return {\n value: capabilityArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function capabilityArraySerializer(result: Array<Capability>): any[] {\n return result.map((item) => {\n return capabilitySerializer(item);\n });\n}\n\nexport function capabilityArrayDeserializer(result: Array<Capability>): any[] {\n return result.map((item) => {\n return capabilityDeserializer(item);\n });\n}\n\n/** Model that represents a Capability Type resource. */\nexport interface CapabilityType extends ProxyResource {\n /** The properties of the capability type resource. */\n properties?: CapabilityTypeProperties;\n}\n\nexport function capabilityTypeDeserializer(item: any): CapabilityType {\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 : capabilityTypePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Model that represents the Capability Type properties model. */\nexport interface CapabilityTypeProperties {\n /** String of the Publisher that this Capability Type extends. */\n readonly publisher?: string;\n /** String of the Target Type that this Capability Type extends. */\n readonly targetType?: string;\n /** Localized string of the display name. */\n readonly displayName?: string;\n /** Localized string of the description. */\n readonly description?: string;\n /** URL to retrieve JSON schema of the Capability Type parameters. */\n readonly parametersSchema?: string;\n /** String of the URN for this Capability Type. */\n readonly urn?: string;\n /** String of the kind of this Capability Type. */\n readonly kind?: string;\n /** Control plane actions necessary to execute capability type. */\n readonly azureRbacActions?: string[];\n /** Data plane actions necessary to execute capability type. */\n readonly azureRbacDataActions?: string[];\n /** Required Azure Role Definition Ids to execute capability type. */\n readonly requiredAzureRoleDefinitionIds?: string[];\n /** Runtime properties of this Capability Type. */\n readonly runtimeProperties?: CapabilityTypePropertiesRuntimeProperties;\n}\n\nexport function capabilityTypePropertiesDeserializer(item: any): CapabilityTypeProperties {\n return {\n publisher: item[\"publisher\"],\n targetType: item[\"targetType\"],\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n parametersSchema: item[\"parametersSchema\"],\n urn: item[\"urn\"],\n kind: item[\"kind\"],\n azureRbacActions: !item[\"azureRbacActions\"]\n ? item[\"azureRbacActions\"]\n : item[\"azureRbacActions\"].map((p: any) => {\n return p;\n }),\n azureRbacDataActions: !item[\"azureRbacDataActions\"]\n ? item[\"azureRbacDataActions\"]\n : item[\"azureRbacDataActions\"].map((p: any) => {\n return p;\n }),\n requiredAzureRoleDefinitionIds: !item[\"requiredAzureRoleDefinitionIds\"]\n ? item[\"requiredAzureRoleDefinitionIds\"]\n : item[\"requiredAzureRoleDefinitionIds\"].map((p: any) => {\n return p;\n }),\n runtimeProperties: !item[\"runtimeProperties\"]\n ? item[\"runtimeProperties\"]\n : capabilityTypePropertiesRuntimePropertiesDeserializer(item[\"runtimeProperties\"]),\n };\n}\n\n/** Runtime properties of this Capability Type. */\nexport interface CapabilityTypePropertiesRuntimeProperties {\n /** String of the kind of the resource's action type (continuous or discrete). */\n readonly kind?: string;\n}\n\nexport function capabilityTypePropertiesRuntimePropertiesDeserializer(\n item: any,\n): CapabilityTypePropertiesRuntimeProperties {\n return {\n kind: item[\"kind\"],\n };\n}\n\n/** Model that represents a list of Capability Type resources and a link for pagination. */\nexport interface _CapabilityTypeListResult {\n /** The CapabilityType items on this page */\n value: CapabilityType[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _capabilityTypeListResultDeserializer(item: any): _CapabilityTypeListResult {\n return {\n value: capabilityTypeArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function capabilityTypeArrayDeserializer(result: Array<CapabilityType>): any[] {\n return result.map((item) => {\n return capabilityTypeDeserializer(item);\n });\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\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/** The current status of an async operation. */\nexport interface OperationStatusResult {\n /** Fully qualified ID for the async operation. */\n id?: string;\n /** Name of the async operation. */\n name?: string;\n /** Operation status. */\n status: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** The start time of the operation. */\n startTime?: Date;\n /** The end time of the operation. */\n endTime?: Date;\n /** The operations list. */\n operations?: OperationStatusResult[];\n /** If present, details of the operation error. */\n error?: ErrorDetail;\n /** Fully qualified ID of the resource against which the original async operation was started. */\n readonly resourceId?: string;\n}\n\nexport function operationStatusResultDeserializer(item: any): OperationStatusResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n status: item[\"status\"],\n percentComplete: item[\"percentComplete\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n operations: !item[\"operations\"]\n ? item[\"operations\"]\n : operationStatusResultArrayDeserializer(item[\"operations\"]),\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function operationStatusResultArrayDeserializer(\n result: Array<OperationStatusResult>,\n): any[] {\n return result.map((item) => {\n return operationStatusResultDeserializer(item);\n });\n}\n\n/** Model that represents a Target resource. */\nexport interface Target extends ProxyResource {\n /** The properties of the target resource. */\n properties: Record<string, any>;\n /** Azure resource location. */\n location?: string;\n}\n\nexport function targetSerializer(item: Target): any {\n return { properties: item[\"properties\"], location: item[\"location\"] };\n}\n\nexport function targetDeserializer(item: any): Target {\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 location: item[\"location\"],\n };\n}\n\n/** Model that represents a list of Target resources and a link for pagination. */\nexport interface _TargetListResult {\n /** The Target items on this page */\n value: Target[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _targetListResultDeserializer(item: any): _TargetListResult {\n return {\n value: targetArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function targetArraySerializer(result: Array<Target>): any[] {\n return result.map((item) => {\n return targetSerializer(item);\n });\n}\n\nexport function targetArrayDeserializer(result: Array<Target>): any[] {\n return result.map((item) => {\n return targetDeserializer(item);\n });\n}\n\n/** Model that represents a Target Type resource. */\nexport interface TargetType extends ProxyResource {\n /** The properties of the target type resource. */\n properties: TargetTypeProperties;\n}\n\nexport function targetTypeDeserializer(item: any): TargetType {\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: targetTypePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Model that represents the base Target Type properties model. */\nexport interface TargetTypeProperties {\n /** Localized string of the display name. */\n readonly displayName?: string;\n /** Localized string of the description. */\n readonly description?: string;\n /** URL to retrieve JSON schema of the Target Type properties. */\n readonly propertiesSchema?: string;\n /** List of resource types this Target Type can extend. */\n readonly resourceTypes?: string[];\n}\n\nexport function targetTypePropertiesDeserializer(item: any): TargetTypeProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n propertiesSchema: item[\"propertiesSchema\"],\n resourceTypes: !item[\"resourceTypes\"]\n ? item[\"resourceTypes\"]\n : item[\"resourceTypes\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Model that represents a list of Target Type resources and a link for pagination. */\nexport interface _TargetTypeListResult {\n /** The TargetType items on this page */\n value: TargetType[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _targetTypeListResultDeserializer(item: any): _TargetTypeListResult {\n return {\n value: targetTypeArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function targetTypeArrayDeserializer(result: Array<TargetType>): any[] {\n return result.map((item) => {\n return targetTypeDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-01-01 API version. */\n V20250101 = \"2025-01-01\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChaosManagementClient } from "./chaosManagementClient.js";
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: ChaosManagementClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _startDeserialize, _cancelDeserialize, _$deleteDeserialize, _updateDeserialize, _createOrUpdateDeserialize, } from "./api/experiments/operations.js";
|
|
4
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
6
|
+
/**
|
|
7
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
8
|
+
* useful when you want to create pollers on a different host or a poller
|
|
9
|
+
* needs to be constructed after the original one is not in scope.
|
|
10
|
+
*/
|
|
11
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
14
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
15
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
16
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
17
|
+
}
|
|
18
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
19
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
20
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
21
|
+
if (!deserializeHelper) {
|
|
22
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
|
|
23
|
+
}
|
|
24
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
25
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
27
|
+
resourceLocationConfig,
|
|
28
|
+
restoreFrom: serializedState,
|
|
29
|
+
initialRequestUrl,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const deserializeMap = {
|
|
33
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/start": { deserializer: _startDeserialize, expectedStatuses: ["202", "200"] },
|
|
34
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/cancel": { deserializer: _cancelDeserialize, expectedStatuses: ["202", "200"] },
|
|
35
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}": {
|
|
36
|
+
deserializer: _$deleteDeserialize,
|
|
37
|
+
expectedStatuses: ["202", "204", "200"],
|
|
38
|
+
},
|
|
39
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202"] },
|
|
40
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}": {
|
|
41
|
+
deserializer: _createOrUpdateDeserialize,
|
|
42
|
+
expectedStatuses: ["200", "201"],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
function getDeserializationHelper(urlStr, method) {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
47
|
+
const path = new URL(urlStr).pathname;
|
|
48
|
+
const pathParts = path.split("/");
|
|
49
|
+
// Traverse list to match the longest candidate
|
|
50
|
+
// matchedLen: the length of candidate path
|
|
51
|
+
// matchedValue: the matched status code array
|
|
52
|
+
let matchedLen = -1, matchedValue;
|
|
53
|
+
// Iterate the responseMap to find a match
|
|
54
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
55
|
+
// Extracting the path from the map key which is in format
|
|
56
|
+
// GET /path/foo
|
|
57
|
+
if (!key.startsWith(method)) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
const candidatePath = getPathFromMapKey(key);
|
|
61
|
+
// Get each part of the url path
|
|
62
|
+
const candidateParts = candidatePath.split("/");
|
|
63
|
+
// track if we have found a match to return the values found.
|
|
64
|
+
let found = true;
|
|
65
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
66
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
67
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
68
|
+
// If the current part of the candidate is a "template" part
|
|
69
|
+
// Try to use the suffix of pattern to match the path
|
|
70
|
+
// {guid} ==> $
|
|
71
|
+
// {guid}:export ==> :export$
|
|
72
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
73
|
+
if (!isMatched) {
|
|
74
|
+
found = false;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
// If the candidate part is not a template and
|
|
80
|
+
// the parts don't match mark the candidate as not found
|
|
81
|
+
// to move on with the next candidate path.
|
|
82
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
83
|
+
found = false;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// We finished evaluating the current candidate parts
|
|
88
|
+
// Update the matched value if and only if we found the longer pattern
|
|
89
|
+
if (found && candidatePath.length > matchedLen) {
|
|
90
|
+
matchedLen = candidatePath.length;
|
|
91
|
+
matchedValue = value;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return matchedValue;
|
|
95
|
+
}
|
|
96
|
+
function getPathFromMapKey(mapKey) {
|
|
97
|
+
const pathStart = mapKey.indexOf("/");
|
|
98
|
+
return mapKey.slice(pathStart);
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,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H,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,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 { ChaosManagementClient } from \"./chaosManagementClient.js\";\nimport {\n _startDeserialize,\n _cancelDeserialize,\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/experiments/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: ChaosManagementClient,\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 \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/cancel\":\n { deserializer: _cancelDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}\":\n {\n deserializer: _createOrUpdateDeserialize,\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"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
70
|
+
*/
|
|
71
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
72
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
4
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
+
import { RestError } from "@azure/core-rest-pipeline";
|
|
6
|
+
/**
|
|
7
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
8
|
+
*/
|
|
9
|
+
export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
|
12
|
+
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
|
13
|
+
const pagedResult = {
|
|
14
|
+
getPage: async (pageLink) => {
|
|
15
|
+
const result = pageLink === undefined
|
|
16
|
+
? await getInitialResponse()
|
|
17
|
+
: await client.pathUnchecked(pageLink).get();
|
|
18
|
+
checkPagingRequest(result, expectedStatuses);
|
|
19
|
+
const results = await processResponseBody(result);
|
|
20
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
21
|
+
const values = getElements(results, itemName);
|
|
22
|
+
return {
|
|
23
|
+
page: values,
|
|
24
|
+
nextPageLink: nextLink,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
byPage: (settings) => {
|
|
28
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
29
|
+
return getPageAsyncIterator(pagedResult, {
|
|
30
|
+
pageLink: continuationToken,
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
return getPagedAsyncIterator(pagedResult);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
38
|
+
* method that returns pages of items at once.
|
|
39
|
+
*
|
|
40
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
41
|
+
* @returns a paged async iterator that iterates over results.
|
|
42
|
+
*/
|
|
43
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
44
|
+
var _a;
|
|
45
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
52
|
+
},
|
|
53
|
+
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
|
54
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
55
|
+
return getPageAsyncIterator(pagedResult, {
|
|
56
|
+
pageLink: continuationToken,
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function getItemAsyncIterator(pagedResult) {
|
|
62
|
+
return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
|
63
|
+
var _a, e_1, _b, _c;
|
|
64
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
65
|
+
try {
|
|
66
|
+
for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
|
|
67
|
+
_c = pages_1_1.value;
|
|
68
|
+
_d = false;
|
|
69
|
+
const page = _c;
|
|
70
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
74
|
+
finally {
|
|
75
|
+
try {
|
|
76
|
+
if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
|
|
77
|
+
}
|
|
78
|
+
finally { if (e_1) throw e_1.error; }
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function getPageAsyncIterator(pagedResult_1) {
|
|
83
|
+
return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
|
84
|
+
const { pageLink } = options;
|
|
85
|
+
let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
|
86
|
+
if (!response) {
|
|
87
|
+
return yield __await(void 0);
|
|
88
|
+
}
|
|
89
|
+
let result = response.page;
|
|
90
|
+
result.continuationToken = response.nextPageLink;
|
|
91
|
+
yield yield __await(result);
|
|
92
|
+
while (response.nextPageLink) {
|
|
93
|
+
response = yield __await(pagedResult.getPage(response.nextPageLink));
|
|
94
|
+
if (!response) {
|
|
95
|
+
return yield __await(void 0);
|
|
96
|
+
}
|
|
97
|
+
result = response.page;
|
|
98
|
+
result.continuationToken = response.nextPageLink;
|
|
99
|
+
yield yield __await(result);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Gets for the value of nextLink in the body
|
|
105
|
+
*/
|
|
106
|
+
function getNextLink(body, nextLinkName) {
|
|
107
|
+
if (!nextLinkName) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
const nextLink = body[nextLinkName];
|
|
111
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
112
|
+
throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
113
|
+
}
|
|
114
|
+
if (nextLink === null) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
return nextLink;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Gets the elements of the current request in the body.
|
|
121
|
+
*/
|
|
122
|
+
function getElements(body, itemName) {
|
|
123
|
+
const value = body[itemName];
|
|
124
|
+
if (!Array.isArray(value)) {
|
|
125
|
+
throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
126
|
+
}
|
|
127
|
+
return value !== null && value !== void 0 ? value : [];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Checks if a request failed
|
|
131
|
+
*/
|
|
132
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
133
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
134
|
+
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +1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AI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,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,eAAe,CACnB,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"]}
|