@azure/arm-resources-subscriptions 2.1.2-alpha.20260310.1 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +12 -17
- package/dist/browser/api/index.d.ts +5 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.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 +31 -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/operations.d.ts +9 -0
- package/dist/browser/api/operations.js +35 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +8 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/subscriptionContext.d.ts +18 -0
- package/dist/browser/api/subscriptionContext.js +25 -0
- package/dist/browser/api/subscriptionContext.js.map +1 -0
- package/dist/browser/api/subscriptions/index.d.ts +3 -0
- package/dist/browser/api/subscriptions/index.js +4 -0
- package/dist/browser/api/subscriptions/index.js.map +1 -0
- package/dist/browser/api/subscriptions/operations.d.ts +22 -0
- package/dist/browser/api/subscriptions/operations.js +111 -0
- package/dist/browser/api/subscriptions/operations.js.map +1 -0
- package/dist/browser/api/subscriptions/options.d.ts +16 -0
- package/dist/browser/api/subscriptions/options.js +4 -0
- package/dist/browser/api/subscriptions/options.js.map +1 -0
- package/dist/browser/api/tenants/index.d.ts +3 -0
- package/dist/browser/api/tenants/index.js +4 -0
- package/dist/browser/api/tenants/index.js.map +1 -0
- package/dist/browser/api/tenants/operations.d.ts +10 -0
- package/dist/browser/api/tenants/operations.js +31 -0
- package/dist/browser/api/tenants/operations.js.map +1 -0
- package/dist/browser/api/tenants/options.d.ts +5 -0
- package/dist/browser/api/tenants/options.js +4 -0
- package/dist/browser/api/tenants/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +4 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/subscriptions/index.d.ts +17 -0
- package/dist/browser/classic/subscriptions/index.js +17 -0
- package/dist/browser/classic/subscriptions/index.js.map +1 -0
- package/dist/browser/classic/tenants/index.d.ts +11 -0
- package/dist/browser/classic/tenants/index.js +14 -0
- package/dist/browser/classic/tenants/index.js.map +1 -0
- package/dist/browser/index.d.ts +13 -3
- package/dist/browser/index.js +6 -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 +2 -642
- package/dist/browser/models/index.js +3 -49
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +378 -0
- package/dist/browser/models/models.js +306 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/subscriptionClient.d.ts +22 -24
- package/dist/browser/subscriptionClient.js +31 -127
- package/dist/browser/subscriptionClient.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +5 -0
- package/dist/commonjs/{operationsInterfaces → api}/index.js +15 -9
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/{operations → api/operations}/index.js +10 -7
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +68 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/{operationsInterfaces/operations.js → api/operations/options.js} +3 -2
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/operations.d.ts +9 -0
- package/dist/commonjs/api/operations.js +64 -0
- package/dist/commonjs/api/operations.js.map +7 -0
- package/dist/commonjs/api/options.d.ts +8 -0
- package/dist/commonjs/{operationsInterfaces/subscriptions.js → api/options.js} +3 -2
- package/dist/commonjs/api/options.js.map +7 -0
- package/dist/commonjs/api/subscriptionContext.d.ts +18 -0
- package/dist/commonjs/api/subscriptionContext.js +47 -0
- package/dist/commonjs/api/subscriptionContext.js.map +7 -0
- package/dist/commonjs/api/subscriptions/index.d.ts +3 -0
- package/dist/commonjs/api/subscriptions/index.js +34 -0
- package/dist/commonjs/api/subscriptions/index.js.map +7 -0
- package/dist/commonjs/api/subscriptions/operations.d.ts +22 -0
- package/dist/commonjs/api/subscriptions/operations.js +181 -0
- package/dist/commonjs/api/subscriptions/operations.js.map +7 -0
- package/dist/commonjs/api/subscriptions/options.d.ts +16 -0
- package/dist/commonjs/api/subscriptions/options.js +16 -0
- package/dist/commonjs/api/subscriptions/options.js.map +7 -0
- package/dist/commonjs/api/tenants/index.d.ts +3 -0
- package/dist/commonjs/api/tenants/index.js +28 -0
- package/dist/commonjs/api/tenants/index.js.map +7 -0
- package/dist/commonjs/api/tenants/operations.d.ts +10 -0
- package/dist/commonjs/api/tenants/operations.js +68 -0
- package/dist/commonjs/api/tenants/operations.js.map +7 -0
- package/dist/commonjs/api/tenants/options.d.ts +5 -0
- package/dist/commonjs/api/tenants/options.js +16 -0
- package/dist/commonjs/api/tenants/options.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +4 -0
- package/dist/commonjs/{operationsInterfaces/tenants.js → classic/index.js} +3 -2
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/{pagingHelper.js → classic/operations/index.js} +15 -20
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/classic/subscriptions/index.d.ts +17 -0
- package/dist/commonjs/classic/subscriptions/index.js +41 -0
- package/dist/commonjs/classic/subscriptions/index.js.map +7 -0
- package/dist/commonjs/classic/tenants/index.d.ts +11 -0
- package/dist/commonjs/classic/tenants/index.js +38 -0
- package/dist/commonjs/classic/tenants/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +13 -3
- package/dist/commonjs/index.js +22 -8
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -642
- package/dist/commonjs/models/index.js +10 -32
- package/dist/commonjs/models/index.js.map +4 -4
- package/dist/commonjs/models/models.d.ts +378 -0
- package/dist/commonjs/models/models.js +374 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/subscriptionClient.d.ts +22 -24
- package/dist/commonjs/subscriptionClient.js +28 -130
- package/dist/commonjs/subscriptionClient.js.map +4 -4
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/index.d.ts +5 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.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 +31 -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/operations.d.ts +9 -0
- package/dist/esm/api/operations.js +35 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +8 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/subscriptionContext.d.ts +18 -0
- package/dist/esm/api/subscriptionContext.js +25 -0
- package/dist/esm/api/subscriptionContext.js.map +1 -0
- package/dist/esm/api/subscriptions/index.d.ts +3 -0
- package/dist/esm/api/subscriptions/index.js +4 -0
- package/dist/esm/api/subscriptions/index.js.map +1 -0
- package/dist/esm/api/subscriptions/operations.d.ts +22 -0
- package/dist/esm/api/subscriptions/operations.js +111 -0
- package/dist/esm/api/subscriptions/operations.js.map +1 -0
- package/dist/esm/api/subscriptions/options.d.ts +16 -0
- package/dist/esm/api/subscriptions/options.js +4 -0
- package/dist/esm/api/subscriptions/options.js.map +1 -0
- package/dist/esm/api/tenants/index.d.ts +3 -0
- package/dist/esm/api/tenants/index.js +4 -0
- package/dist/esm/api/tenants/index.js.map +1 -0
- package/dist/esm/api/tenants/operations.d.ts +10 -0
- package/dist/esm/api/tenants/operations.js +31 -0
- package/dist/esm/api/tenants/operations.js.map +1 -0
- package/dist/esm/api/tenants/options.d.ts +5 -0
- package/dist/esm/api/tenants/options.js +4 -0
- package/dist/esm/api/tenants/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +4 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/subscriptions/index.d.ts +17 -0
- package/dist/esm/classic/subscriptions/index.js +17 -0
- package/dist/esm/classic/subscriptions/index.js.map +1 -0
- package/dist/esm/classic/tenants/index.d.ts +11 -0
- package/dist/esm/classic/tenants/index.js +14 -0
- package/dist/esm/classic/tenants/index.js.map +1 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -7
- 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 +2 -642
- package/dist/esm/models/index.js +4 -33
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +378 -0
- package/dist/esm/models/models.js +306 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/subscriptionClient.d.ts +22 -24
- package/dist/esm/subscriptionClient.js +34 -125
- package/dist/esm/subscriptionClient.js.map +1 -7
- package/package.json +156 -77
- package/CHANGELOG.md +0 -75
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -30
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -1009
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -11
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -91
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -4
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -11
- package/dist/browser/operations/index.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 -116
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/subscriptions.d.ts +0 -61
- package/dist/browser/operations/subscriptions.d.ts.map +0 -1
- package/dist/browser/operations/subscriptions.js +0 -225
- package/dist/browser/operations/subscriptions.js.map +0 -1
- package/dist/browser/operations/tenants.d.ts +0 -32
- package/dist/browser/operations/tenants.d.ts.map +0 -1
- package/dist/browser/operations/tenants.js +0 -116
- package/dist/browser/operations/tenants.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -4
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -11
- package/dist/browser/operationsInterfaces/index.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/subscriptions.d.ts +0 -31
- package/dist/browser/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptions.js +0 -9
- package/dist/browser/operationsInterfaces/subscriptions.js.map +0 -1
- package/dist/browser/operationsInterfaces/tenants.d.ts +0 -11
- package/dist/browser/operationsInterfaces/tenants.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/tenants.js +0 -9
- package/dist/browser/operationsInterfaces/tenants.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 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/browser/subscriptionClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -30
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -1081
- package/dist/commonjs/models/mappers.js.map +0 -7
- package/dist/commonjs/models/parameters.d.ts +0 -11
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -125
- package/dist/commonjs/models/parameters.js.map +0 -7
- package/dist/commonjs/operations/index.d.ts +0 -4
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js.map +0 -7
- 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 -148
- package/dist/commonjs/operations/operations.js.map +0 -7
- package/dist/commonjs/operations/subscriptions.d.ts +0 -61
- package/dist/commonjs/operations/subscriptions.d.ts.map +0 -1
- package/dist/commonjs/operations/subscriptions.js +0 -269
- package/dist/commonjs/operations/subscriptions.js.map +0 -7
- package/dist/commonjs/operations/tenants.d.ts +0 -32
- package/dist/commonjs/operations/tenants.d.ts.map +0 -1
- package/dist/commonjs/operations/tenants.js +0 -148
- package/dist/commonjs/operations/tenants.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -4
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -7
- 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.map +0 -7
- package/dist/commonjs/operationsInterfaces/subscriptions.d.ts +0 -31
- package/dist/commonjs/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptions.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/tenants.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/tenants.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/tenants.js.map +0 -7
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js.map +0 -7
- package/dist/commonjs/subscriptionClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -30
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -1031
- package/dist/esm/models/mappers.js.map +0 -7
- package/dist/esm/models/parameters.d.ts +0 -11
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -97
- package/dist/esm/models/parameters.js.map +0 -7
- package/dist/esm/operations/index.d.ts +0 -4
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -3
- package/dist/esm/operations/index.js.map +0 -7
- 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 -115
- package/dist/esm/operations/operations.js.map +0 -7
- package/dist/esm/operations/subscriptions.d.ts +0 -61
- package/dist/esm/operations/subscriptions.d.ts.map +0 -1
- package/dist/esm/operations/subscriptions.js +0 -236
- package/dist/esm/operations/subscriptions.js.map +0 -7
- package/dist/esm/operations/tenants.d.ts +0 -32
- package/dist/esm/operations/tenants.d.ts.map +0 -1
- package/dist/esm/operations/tenants.js +0 -115
- package/dist/esm/operations/tenants.js.map +0 -7
- package/dist/esm/operationsInterfaces/index.d.ts +0 -4
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -3
- package/dist/esm/operationsInterfaces/index.js.map +0 -7
- 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 -0
- package/dist/esm/operationsInterfaces/operations.js.map +0 -7
- package/dist/esm/operationsInterfaces/subscriptions.d.ts +0 -31
- package/dist/esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptions.js +0 -0
- package/dist/esm/operationsInterfaces/subscriptions.js.map +0 -7
- package/dist/esm/operationsInterfaces/tenants.d.ts +0 -11
- package/dist/esm/operationsInterfaces/tenants.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/tenants.js +0 -0
- package/dist/esm/operationsInterfaces/tenants.js.map +0 -7
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -19
- package/dist/esm/pagingHelper.js.map +0 -7
- package/dist/esm/subscriptionClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -643
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -50
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -30
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -1009
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -11
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -91
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -4
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -11
- package/dist/react-native/operations/index.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 -116
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/subscriptions.d.ts +0 -61
- package/dist/react-native/operations/subscriptions.d.ts.map +0 -1
- package/dist/react-native/operations/subscriptions.js +0 -225
- package/dist/react-native/operations/subscriptions.js.map +0 -1
- package/dist/react-native/operations/tenants.d.ts +0 -32
- package/dist/react-native/operations/tenants.d.ts.map +0 -1
- package/dist/react-native/operations/tenants.js +0 -116
- package/dist/react-native/operations/tenants.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -4
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -11
- package/dist/react-native/operationsInterfaces/index.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/subscriptions.d.ts +0 -31
- package/dist/react-native/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptions.js +0 -9
- package/dist/react-native/operationsInterfaces/subscriptions.js.map +0 -1
- package/dist/react-native/operationsInterfaces/tenants.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/tenants.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/tenants.js +0 -9
- package/dist/react-native/operationsInterfaces/tenants.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- 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 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/dist/react-native/subscriptionClient.d.ts +0 -26
- package/dist/react-native/subscriptionClient.d.ts.map +0 -1
- package/dist/react-native/subscriptionClient.js +0 -133
- package/dist/react-native/subscriptionClient.js.map +0 -1
- package/review/arm-resources-subscriptions-node.api.md +0 -401
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers.js";
|
|
11
|
-
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Class containing Subscriptions operations. */
|
|
14
|
-
export class SubscriptionsImpl {
|
|
15
|
-
client;
|
|
16
|
-
/**
|
|
17
|
-
* Initialize a new instance of the class Subscriptions class.
|
|
18
|
-
* @param client Reference to the service client
|
|
19
|
-
*/
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
25
|
-
* resource provider may support a subset of this list.
|
|
26
|
-
* @param subscriptionId The ID of the target subscription.
|
|
27
|
-
* @param options The options parameters.
|
|
28
|
-
*/
|
|
29
|
-
listLocations(subscriptionId, options) {
|
|
30
|
-
const iter = this.listLocationsPagingAll(subscriptionId, options);
|
|
31
|
-
return {
|
|
32
|
-
next() {
|
|
33
|
-
return iter.next();
|
|
34
|
-
},
|
|
35
|
-
[Symbol.asyncIterator]() {
|
|
36
|
-
return this;
|
|
37
|
-
},
|
|
38
|
-
byPage: (settings) => {
|
|
39
|
-
if (settings?.maxPageSize) {
|
|
40
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
-
}
|
|
42
|
-
return this.listLocationsPagingPage(subscriptionId, options, settings);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
async *listLocationsPagingPage(subscriptionId, options, _settings) {
|
|
47
|
-
let result;
|
|
48
|
-
result = await this._listLocations(subscriptionId, options);
|
|
49
|
-
yield result.value || [];
|
|
50
|
-
}
|
|
51
|
-
async *listLocationsPagingAll(subscriptionId, options) {
|
|
52
|
-
for await (const page of this.listLocationsPagingPage(subscriptionId, options)) {
|
|
53
|
-
yield* page;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets all subscriptions for a tenant.
|
|
58
|
-
* @param options The options parameters.
|
|
59
|
-
*/
|
|
60
|
-
list(options) {
|
|
61
|
-
const iter = this.listPagingAll(options);
|
|
62
|
-
return {
|
|
63
|
-
next() {
|
|
64
|
-
return iter.next();
|
|
65
|
-
},
|
|
66
|
-
[Symbol.asyncIterator]() {
|
|
67
|
-
return this;
|
|
68
|
-
},
|
|
69
|
-
byPage: (settings) => {
|
|
70
|
-
if (settings?.maxPageSize) {
|
|
71
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
-
}
|
|
73
|
-
return this.listPagingPage(options, settings);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
async *listPagingPage(options, settings) {
|
|
78
|
-
let result;
|
|
79
|
-
let continuationToken = settings?.continuationToken;
|
|
80
|
-
if (!continuationToken) {
|
|
81
|
-
result = await this._list(options);
|
|
82
|
-
let page = result.value || [];
|
|
83
|
-
continuationToken = result.nextLink;
|
|
84
|
-
setContinuationToken(page, continuationToken);
|
|
85
|
-
yield page;
|
|
86
|
-
}
|
|
87
|
-
while (continuationToken) {
|
|
88
|
-
result = await this._listNext(continuationToken, options);
|
|
89
|
-
continuationToken = result.nextLink;
|
|
90
|
-
let page = result.value || [];
|
|
91
|
-
setContinuationToken(page, continuationToken);
|
|
92
|
-
yield page;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
async *listPagingAll(options) {
|
|
96
|
-
for await (const page of this.listPagingPage(options)) {
|
|
97
|
-
yield* page;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
102
|
-
* resource provider may support a subset of this list.
|
|
103
|
-
* @param subscriptionId The ID of the target subscription.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
_listLocations(subscriptionId, options) {
|
|
107
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, listLocationsOperationSpec);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Gets details about a specified subscription.
|
|
111
|
-
* @param subscriptionId The ID of the target subscription.
|
|
112
|
-
* @param options The options parameters.
|
|
113
|
-
*/
|
|
114
|
-
get(subscriptionId, options) {
|
|
115
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, getOperationSpec);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Gets all subscriptions for a tenant.
|
|
119
|
-
* @param options The options parameters.
|
|
120
|
-
*/
|
|
121
|
-
_list(options) {
|
|
122
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Compares a subscriptions logical zone mapping
|
|
126
|
-
* @param subscriptionId The ID of the target subscription.
|
|
127
|
-
* @param parameters Parameters for checking zone peers.
|
|
128
|
-
* @param options The options parameters.
|
|
129
|
-
*/
|
|
130
|
-
checkZonePeers(subscriptionId, parameters, options) {
|
|
131
|
-
return this.client.sendOperationRequest({ subscriptionId, parameters, options }, checkZonePeersOperationSpec);
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* ListNext
|
|
135
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
136
|
-
* @param options The options parameters.
|
|
137
|
-
*/
|
|
138
|
-
_listNext(nextLink, options) {
|
|
139
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
// Operation Specifications
|
|
143
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
144
|
-
const listLocationsOperationSpec = {
|
|
145
|
-
path: "/subscriptions/{subscriptionId}/locations",
|
|
146
|
-
httpMethod: "GET",
|
|
147
|
-
responses: {
|
|
148
|
-
200: {
|
|
149
|
-
bodyMapper: Mappers.LocationListResult
|
|
150
|
-
},
|
|
151
|
-
default: {
|
|
152
|
-
bodyMapper: Mappers.CloudError
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
queryParameters: [Parameters.apiVersion, Parameters.includeExtendedLocations],
|
|
156
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
157
|
-
headerParameters: [Parameters.accept],
|
|
158
|
-
serializer
|
|
159
|
-
};
|
|
160
|
-
const getOperationSpec = {
|
|
161
|
-
path: "/subscriptions/{subscriptionId}",
|
|
162
|
-
httpMethod: "GET",
|
|
163
|
-
responses: {
|
|
164
|
-
200: {
|
|
165
|
-
bodyMapper: Mappers.Subscription
|
|
166
|
-
},
|
|
167
|
-
default: {
|
|
168
|
-
bodyMapper: Mappers.CloudError
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
queryParameters: [Parameters.apiVersion],
|
|
172
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
173
|
-
headerParameters: [Parameters.accept],
|
|
174
|
-
serializer
|
|
175
|
-
};
|
|
176
|
-
const listOperationSpec = {
|
|
177
|
-
path: "/subscriptions",
|
|
178
|
-
httpMethod: "GET",
|
|
179
|
-
responses: {
|
|
180
|
-
200: {
|
|
181
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
182
|
-
},
|
|
183
|
-
default: {
|
|
184
|
-
bodyMapper: Mappers.CloudError
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
queryParameters: [Parameters.apiVersion],
|
|
188
|
-
urlParameters: [Parameters.$host],
|
|
189
|
-
headerParameters: [Parameters.accept],
|
|
190
|
-
serializer
|
|
191
|
-
};
|
|
192
|
-
const checkZonePeersOperationSpec = {
|
|
193
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/",
|
|
194
|
-
httpMethod: "POST",
|
|
195
|
-
responses: {
|
|
196
|
-
200: {
|
|
197
|
-
bodyMapper: Mappers.CheckZonePeersResult
|
|
198
|
-
},
|
|
199
|
-
default: {
|
|
200
|
-
bodyMapper: Mappers.ErrorResponseAutoGenerated
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
requestBody: Parameters.parameters,
|
|
204
|
-
queryParameters: [Parameters.apiVersion],
|
|
205
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
206
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
207
|
-
mediaType: "json",
|
|
208
|
-
serializer
|
|
209
|
-
};
|
|
210
|
-
const listNextOperationSpec = {
|
|
211
|
-
path: "{nextLink}",
|
|
212
|
-
httpMethod: "GET",
|
|
213
|
-
responses: {
|
|
214
|
-
200: {
|
|
215
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
216
|
-
},
|
|
217
|
-
default: {
|
|
218
|
-
bodyMapper: Mappers.CloudError
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
222
|
-
headerParameters: [Parameters.accept],
|
|
223
|
-
serializer
|
|
224
|
-
};
|
|
225
|
-
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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C,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EACF,+EAA+E;IACjF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Subscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SubscriptionClient } from \"../subscriptionClient.js\";\nimport {\n Location,\n SubscriptionsListLocationsOptionalParams,\n SubscriptionsListLocationsResponse,\n Subscription,\n SubscriptionsListNextOptionalParams,\n SubscriptionsListOptionalParams,\n SubscriptionsListResponse,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n CheckZonePeersRequest,\n SubscriptionsCheckZonePeersOptionalParams,\n SubscriptionsCheckZonePeersResponse,\n SubscriptionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n public listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): PagedAsyncIterableIterator<Location> {\n const iter = this.listLocationsPagingAll(subscriptionId, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listLocationsPagingPage(subscriptionId, options, settings);\n }\n };\n }\n\n private async *listLocationsPagingPage(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Location[]> {\n let result: SubscriptionsListLocationsResponse;\n result = await this._listLocations(subscriptionId, options);\n yield result.value || [];\n }\n\n private async *listLocationsPagingAll(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): AsyncIterableIterator<Location> {\n for await (const page of this.listLocationsPagingPage(\n subscriptionId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n public list(\n options?: SubscriptionsListOptionalParams\n ): PagedAsyncIterableIterator<Subscription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: SubscriptionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Subscription[]> {\n let result: SubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: SubscriptionsListOptionalParams\n ): AsyncIterableIterator<Subscription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n private _listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): Promise<SubscriptionsListLocationsResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n listLocationsOperationSpec\n );\n }\n\n /**\n * Gets details about a specified subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n private _list(\n options?: SubscriptionsListOptionalParams\n ): Promise<SubscriptionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Compares a subscriptions logical zone mapping\n * @param subscriptionId The ID of the target subscription.\n * @param parameters Parameters for checking zone peers.\n * @param options The options parameters.\n */\n checkZonePeers(\n subscriptionId: string,\n parameters: CheckZonePeersRequest,\n options?: SubscriptionsCheckZonePeersOptionalParams\n ): Promise<SubscriptionsCheckZonePeersResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, parameters, options },\n checkZonePeersOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: SubscriptionsListNextOptionalParams\n ): Promise<SubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listLocationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/locations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeExtendedLocations],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst checkZonePeersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckZonePeersResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Tenants } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
-
import { TenantIdDescription, TenantsListOptionalParams } from "../models/index.js";
|
|
5
|
-
/** Class containing Tenants operations. */
|
|
6
|
-
export declare class TenantsImpl implements Tenants {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class Tenants class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: SubscriptionClient);
|
|
13
|
-
/**
|
|
14
|
-
* Gets the tenants for your account.
|
|
15
|
-
* @param options The options parameters.
|
|
16
|
-
*/
|
|
17
|
-
list(options?: TenantsListOptionalParams): PagedAsyncIterableIterator<TenantIdDescription>;
|
|
18
|
-
private listPagingPage;
|
|
19
|
-
private listPagingAll;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the tenants for your account.
|
|
22
|
-
* @param options The options parameters.
|
|
23
|
-
*/
|
|
24
|
-
private _list;
|
|
25
|
-
/**
|
|
26
|
-
* ListNext
|
|
27
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
-
* @param options The options parameters.
|
|
29
|
-
*/
|
|
30
|
-
private _listNext;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=tenants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/operations/tenants.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,mBAAmB,EAEnB,yBAAyB,EAG1B,MAAM,oBAAoB,CAAC;AAG5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,mBAAmB,CAAC;YAkBnC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers.js";
|
|
11
|
-
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Class containing Tenants operations. */
|
|
14
|
-
export class TenantsImpl {
|
|
15
|
-
client;
|
|
16
|
-
/**
|
|
17
|
-
* Initialize a new instance of the class Tenants class.
|
|
18
|
-
* @param client Reference to the service client
|
|
19
|
-
*/
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Gets the tenants for your account.
|
|
25
|
-
* @param options The options parameters.
|
|
26
|
-
*/
|
|
27
|
-
list(options) {
|
|
28
|
-
const iter = this.listPagingAll(options);
|
|
29
|
-
return {
|
|
30
|
-
next() {
|
|
31
|
-
return iter.next();
|
|
32
|
-
},
|
|
33
|
-
[Symbol.asyncIterator]() {
|
|
34
|
-
return this;
|
|
35
|
-
},
|
|
36
|
-
byPage: (settings) => {
|
|
37
|
-
if (settings?.maxPageSize) {
|
|
38
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
-
}
|
|
40
|
-
return this.listPagingPage(options, settings);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
async *listPagingPage(options, settings) {
|
|
45
|
-
let result;
|
|
46
|
-
let continuationToken = settings?.continuationToken;
|
|
47
|
-
if (!continuationToken) {
|
|
48
|
-
result = await this._list(options);
|
|
49
|
-
let page = result.value || [];
|
|
50
|
-
continuationToken = result.nextLink;
|
|
51
|
-
setContinuationToken(page, continuationToken);
|
|
52
|
-
yield page;
|
|
53
|
-
}
|
|
54
|
-
while (continuationToken) {
|
|
55
|
-
result = await this._listNext(continuationToken, options);
|
|
56
|
-
continuationToken = result.nextLink;
|
|
57
|
-
let page = result.value || [];
|
|
58
|
-
setContinuationToken(page, continuationToken);
|
|
59
|
-
yield page;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
async *listPagingAll(options) {
|
|
63
|
-
for await (const page of this.listPagingPage(options)) {
|
|
64
|
-
yield* page;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Gets the tenants for your account.
|
|
69
|
-
* @param options The options parameters.
|
|
70
|
-
*/
|
|
71
|
-
_list(options) {
|
|
72
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* ListNext
|
|
76
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
77
|
-
* @param options The options parameters.
|
|
78
|
-
*/
|
|
79
|
-
_listNext(nextLink, options) {
|
|
80
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// Operation Specifications
|
|
84
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
85
|
-
const listOperationSpec = {
|
|
86
|
-
path: "/tenants",
|
|
87
|
-
httpMethod: "GET",
|
|
88
|
-
responses: {
|
|
89
|
-
200: {
|
|
90
|
-
bodyMapper: Mappers.TenantListResult
|
|
91
|
-
},
|
|
92
|
-
default: {
|
|
93
|
-
bodyMapper: Mappers.CloudError
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
queryParameters: [Parameters.apiVersion],
|
|
97
|
-
urlParameters: [Parameters.$host],
|
|
98
|
-
headerParameters: [Parameters.accept],
|
|
99
|
-
serializer
|
|
100
|
-
};
|
|
101
|
-
const listNextOperationSpec = {
|
|
102
|
-
path: "{nextLink}",
|
|
103
|
-
httpMethod: "GET",
|
|
104
|
-
responses: {
|
|
105
|
-
200: {
|
|
106
|
-
bodyMapper: Mappers.TenantListResult
|
|
107
|
-
},
|
|
108
|
-
default: {
|
|
109
|
-
bodyMapper: Mappers.CloudError
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
113
|
-
headerParameters: [Parameters.accept],
|
|
114
|
-
serializer
|
|
115
|
-
};
|
|
116
|
-
//# sourceMappingURL=tenants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/operations/tenants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3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AC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,UAAU;IAChB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Tenants } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SubscriptionClient } from \"../subscriptionClient.js\";\nimport {\n TenantIdDescription,\n TenantsListNextOptionalParams,\n TenantsListOptionalParams,\n TenantsListResponse,\n TenantsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tenants operations. */\nexport class TenantsImpl implements Tenants {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Tenants class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n public list(\n options?: TenantsListOptionalParams\n ): PagedAsyncIterableIterator<TenantIdDescription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: TenantsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TenantIdDescription[]> {\n let result: TenantsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: TenantsListOptionalParams\n ): AsyncIterableIterator<TenantIdDescription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n private _list(\n options?: TenantsListOptionalParams\n ): Promise<TenantsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: TenantsListNextOptionalParams\n ): Promise<TenantsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/tenants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
export * from "./operations.js";
|
|
9
|
-
export * from "./subscriptions.js";
|
|
10
|
-
export * from "./tenants.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./subscriptions.js\";\nexport * from \"./tenants.js\";\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
3
|
-
/** Interface representing a Operations. */
|
|
4
|
-
export interface Operations {
|
|
5
|
-
/**
|
|
6
|
-
* Lists all of the available Microsoft.Resources REST API operations.
|
|
7
|
-
* @param options The options parameters.
|
|
8
|
-
*/
|
|
9
|
-
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available Microsoft.Resources REST API operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Location, SubscriptionsListLocationsOptionalParams, Subscription, SubscriptionsListOptionalParams, SubscriptionsGetOptionalParams, SubscriptionsGetResponse, CheckZonePeersRequest, SubscriptionsCheckZonePeersOptionalParams, SubscriptionsCheckZonePeersResponse } from "../models/index.js";
|
|
3
|
-
/** Interface representing a Subscriptions. */
|
|
4
|
-
export interface Subscriptions {
|
|
5
|
-
/**
|
|
6
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
7
|
-
* resource provider may support a subset of this list.
|
|
8
|
-
* @param subscriptionId The ID of the target subscription.
|
|
9
|
-
* @param options The options parameters.
|
|
10
|
-
*/
|
|
11
|
-
listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location>;
|
|
12
|
-
/**
|
|
13
|
-
* Gets all subscriptions for a tenant.
|
|
14
|
-
* @param options The options parameters.
|
|
15
|
-
*/
|
|
16
|
-
list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
|
|
17
|
-
/**
|
|
18
|
-
* Gets details about a specified subscription.
|
|
19
|
-
* @param subscriptionId The ID of the target subscription.
|
|
20
|
-
* @param options The options parameters.
|
|
21
|
-
*/
|
|
22
|
-
get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Compares a subscriptions logical zone mapping
|
|
25
|
-
* @param subscriptionId The ID of the target subscription.
|
|
26
|
-
* @param parameters Parameters for checking zone peers.
|
|
27
|
-
* @param options The options parameters.
|
|
28
|
-
*/
|
|
29
|
-
checkZonePeers(subscriptionId: string, parameters: CheckZonePeersRequest, options?: SubscriptionsCheckZonePeersOptionalParams): Promise<SubscriptionsCheckZonePeersResponse>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,QAAQ,EACR,wCAAwC,EACxC,YAAY,EACZ,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,EACrB,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,aAAa,CACX,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;OAIG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,cAAc,CACZ,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;CACjD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n Location,\n SubscriptionsListLocationsOptionalParams,\n Subscription,\n SubscriptionsListOptionalParams,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n CheckZonePeersRequest,\n SubscriptionsCheckZonePeersOptionalParams,\n SubscriptionsCheckZonePeersResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Subscriptions. */\nexport interface Subscriptions {\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): PagedAsyncIterableIterator<Location>;\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n list(\n options?: SubscriptionsListOptionalParams\n ): PagedAsyncIterableIterator<Subscription>;\n /**\n * Gets details about a specified subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse>;\n /**\n * Compares a subscriptions logical zone mapping\n * @param subscriptionId The ID of the target subscription.\n * @param parameters Parameters for checking zone peers.\n * @param options The options parameters.\n */\n checkZonePeers(\n subscriptionId: string,\n parameters: CheckZonePeersRequest,\n options?: SubscriptionsCheckZonePeersOptionalParams\n ): Promise<SubscriptionsCheckZonePeersResponse>;\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { TenantIdDescription, TenantsListOptionalParams } from "../models/index.js";
|
|
3
|
-
/** Interface representing a Tenants. */
|
|
4
|
-
export interface Tenants {
|
|
5
|
-
/**
|
|
6
|
-
* Gets the tenants for your account.
|
|
7
|
-
* @param options The options parameters.
|
|
8
|
-
*/
|
|
9
|
-
list(options?: TenantsListOptionalParams): PagedAsyncIterableIterator<TenantIdDescription>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=tenants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/tenants.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGpF,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;CACpD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=tenants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/tenants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { TenantIdDescription, TenantsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Tenants. */\nexport interface Tenants {\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n list(\n options?: TenantsListOptionalParams\n ): PagedAsyncIterableIterator<TenantIdDescription>;\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface PageInfo {
|
|
2
|
-
continuationToken?: string;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
-
* returns a continuation token that can be used to begin paging from
|
|
7
|
-
* that point later.
|
|
8
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
-
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
-
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
const pageMap = new WeakMap();
|
|
9
|
-
/**
|
|
10
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
-
* returns a continuation token that can be used to begin paging from
|
|
12
|
-
* that point later.
|
|
13
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
-
*/
|
|
16
|
-
export function getContinuationToken(page) {
|
|
17
|
-
if (typeof page !== "object" || page === null) {
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
return pageMap.get(page)?.continuationToken;
|
|
21
|
-
}
|
|
22
|
-
export function setContinuationToken(page, continuationToken) {
|
|
23
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const pageInfo = pageMap.get(page) ?? {};
|
|
27
|
-
pageInfo.continuationToken = continuationToken;
|
|
28
|
-
pageMap.set(page, pageInfo);
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|