@azure/arm-subscriptions 6.0.0 → 7.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/README.md +10 -10
- package/dist/browser/api/alias/index.d.ts +3 -0
- package/dist/browser/api/alias/index.js +4 -0
- package/dist/browser/api/alias/index.js.map +1 -0
- package/dist/browser/api/alias/operations.d.ts +23 -0
- package/dist/browser/api/alias/operations.js +118 -0
- package/dist/browser/api/alias/operations.js.map +1 -0
- package/dist/browser/api/alias/options.d.ts +16 -0
- package/dist/{esm/operationsInterfaces/alias.js → browser/api/alias/options.js} +1 -1
- package/dist/browser/api/alias/options.js.map +1 -0
- package/dist/browser/api/billingAccount/index.d.ts +3 -0
- package/dist/browser/api/billingAccount/index.js +4 -0
- package/dist/browser/api/billingAccount/index.js.map +1 -0
- package/dist/browser/api/billingAccount/operations.d.ts +9 -0
- package/dist/browser/api/billingAccount/operations.js +32 -0
- package/dist/browser/api/billingAccount/operations.js.map +1 -0
- package/dist/browser/api/billingAccount/options.d.ts +5 -0
- package/dist/{esm/operationsInterfaces/operations.js → browser/api/billingAccount/options.js} +1 -1
- package/dist/browser/api/billingAccount/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/{operationsInterfaces/subscription.js → api/operations/index.js} +2 -2
- 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 +35 -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/subscription/index.d.ts +3 -0
- package/dist/browser/api/subscription/index.js +4 -0
- package/dist/browser/api/subscription/index.js.map +1 -0
- package/dist/browser/api/subscription/operations.d.ts +26 -0
- package/dist/browser/api/subscription/operations.js +145 -0
- package/dist/browser/api/subscription/operations.js.map +1 -0
- package/dist/browser/api/subscription/options.d.ts +19 -0
- package/dist/browser/api/subscription/options.js +4 -0
- package/dist/browser/api/subscription/options.js.map +1 -0
- package/dist/browser/api/subscriptionContext.d.ts +18 -0
- package/dist/browser/api/subscriptionContext.js +23 -0
- package/dist/browser/api/subscriptionContext.js.map +1 -0
- package/dist/browser/api/subscriptionOperation/index.d.ts +3 -0
- package/dist/browser/{operationsInterfaces/operations.js → api/subscriptionOperation/index.js} +2 -2
- package/dist/browser/api/subscriptionOperation/index.js.map +1 -0
- package/dist/browser/api/subscriptionOperation/operations.d.ts +9 -0
- package/dist/browser/api/subscriptionOperation/operations.js +32 -0
- package/dist/browser/api/subscriptionOperation/operations.js.map +1 -0
- package/dist/browser/api/subscriptionOperation/options.d.ts +5 -0
- package/dist/browser/api/subscriptionOperation/options.js +4 -0
- package/dist/browser/api/subscriptionOperation/options.js.map +1 -0
- package/dist/browser/api/subscriptionPolicy/index.d.ts +3 -0
- package/dist/browser/api/subscriptionPolicy/index.js +4 -0
- package/dist/browser/api/subscriptionPolicy/index.js.map +1 -0
- package/dist/browser/api/subscriptionPolicy/operations.d.ts +18 -0
- package/dist/browser/api/subscriptionPolicy/operations.js +87 -0
- package/dist/browser/api/subscriptionPolicy/operations.js.map +1 -0
- package/dist/browser/api/subscriptionPolicy/options.d.ts +11 -0
- package/dist/browser/api/subscriptionPolicy/options.js +4 -0
- package/dist/browser/api/subscriptionPolicy/options.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 +30 -0
- package/dist/browser/api/subscriptions/operations.js +162 -0
- package/dist/browser/api/subscriptions/operations.js.map +1 -0
- package/dist/browser/api/subscriptions/options.d.ts +20 -0
- package/dist/browser/api/subscriptions/options.js +4 -0
- package/dist/browser/api/subscriptions/options.js.map +1 -0
- package/dist/browser/classic/alias/index.d.ts +23 -0
- package/dist/browser/classic/alias/index.js +26 -0
- package/dist/browser/classic/alias/index.js.map +1 -0
- package/dist/browser/classic/billingAccount/index.d.ts +10 -0
- package/dist/browser/classic/billingAccount/index.js +14 -0
- package/dist/browser/classic/billingAccount/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +8 -0
- package/dist/{react-native/operationsInterfaces/alias.js → browser/classic/index.js} +1 -1
- 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/subscription/index.d.ts +24 -0
- package/dist/browser/classic/subscription/index.js +27 -0
- package/dist/browser/classic/subscription/index.js.map +1 -0
- package/dist/browser/classic/subscriptionOperation/index.d.ts +10 -0
- package/dist/browser/classic/subscriptionOperation/index.js +14 -0
- package/dist/browser/classic/subscriptionOperation/index.js.map +1 -0
- package/dist/browser/classic/subscriptionPolicy/index.d.ts +15 -0
- package/dist/browser/classic/subscriptionPolicy/index.js +16 -0
- package/dist/browser/classic/subscriptionPolicy/index.js.map +1 -0
- package/dist/browser/classic/subscriptions/index.d.ts +21 -0
- package/dist/browser/classic/subscriptions/index.js +19 -0
- package/dist/browser/classic/subscriptions/index.js.map +1 -0
- package/dist/browser/index.d.ts +19 -3
- package/dist/browser/index.js +4 -6
- 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 -568
- package/dist/browser/models/index.js +1 -50
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +517 -0
- package/dist/browser/models/models.js +428 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +102 -0
- package/dist/browser/restorePollerHelpers.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/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/browser/static-helpers/simplePollerHelpers.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 +30 -21
- package/dist/browser/subscriptionClient.js +40 -96
- package/dist/browser/subscriptionClient.js.map +1 -1
- package/dist/commonjs/api/alias/index.d.ts +3 -0
- package/dist/commonjs/api/alias/index.js +34 -0
- package/dist/commonjs/api/alias/index.js.map +7 -0
- package/dist/commonjs/api/alias/operations.d.ts +23 -0
- package/dist/commonjs/api/alias/operations.js +182 -0
- package/dist/commonjs/api/alias/operations.js.map +7 -0
- package/dist/commonjs/api/alias/options.d.ts +16 -0
- package/dist/commonjs/api/alias/options.js +16 -0
- package/dist/commonjs/api/alias/options.js.map +7 -0
- package/dist/commonjs/api/billingAccount/index.d.ts +3 -0
- package/dist/commonjs/api/billingAccount/index.js +28 -0
- package/dist/commonjs/api/billingAccount/index.js.map +7 -0
- package/dist/commonjs/api/billingAccount/operations.d.ts +9 -0
- package/dist/commonjs/api/billingAccount/operations.js +63 -0
- package/dist/commonjs/api/billingAccount/operations.js.map +7 -0
- package/dist/commonjs/api/billingAccount/options.d.ts +5 -0
- package/dist/commonjs/api/billingAccount/options.js +16 -0
- package/dist/commonjs/api/billingAccount/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- 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 +72 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/subscription/index.d.ts +3 -0
- package/dist/commonjs/api/subscription/index.js +36 -0
- package/dist/commonjs/api/subscription/index.js.map +7 -0
- package/dist/commonjs/api/subscription/operations.d.ts +26 -0
- package/dist/commonjs/api/subscription/operations.js +212 -0
- package/dist/commonjs/api/subscription/operations.js.map +7 -0
- package/dist/commonjs/api/subscription/options.d.ts +19 -0
- package/dist/commonjs/api/subscription/options.js +16 -0
- package/dist/commonjs/api/subscription/options.js.map +7 -0
- package/dist/commonjs/api/subscriptionContext.d.ts +18 -0
- package/dist/commonjs/api/subscriptionContext.js +45 -0
- package/dist/commonjs/api/subscriptionContext.js.map +7 -0
- package/dist/commonjs/api/subscriptionOperation/index.d.ts +3 -0
- package/dist/commonjs/api/subscriptionOperation/index.js +28 -0
- package/dist/commonjs/api/subscriptionOperation/index.js.map +7 -0
- package/dist/commonjs/api/subscriptionOperation/operations.d.ts +9 -0
- package/dist/commonjs/api/subscriptionOperation/operations.js +63 -0
- package/dist/commonjs/api/subscriptionOperation/operations.js.map +7 -0
- package/dist/commonjs/api/subscriptionOperation/options.d.ts +5 -0
- package/dist/commonjs/api/subscriptionOperation/options.js +16 -0
- package/dist/commonjs/api/subscriptionOperation/options.js.map +7 -0
- package/dist/commonjs/api/subscriptionPolicy/index.d.ts +3 -0
- package/dist/commonjs/api/subscriptionPolicy/index.js +32 -0
- package/dist/commonjs/api/subscriptionPolicy/index.js.map +7 -0
- package/dist/commonjs/api/subscriptionPolicy/operations.d.ts +18 -0
- package/dist/commonjs/api/subscriptionPolicy/operations.js +142 -0
- package/dist/commonjs/api/subscriptionPolicy/operations.js.map +7 -0
- package/dist/commonjs/api/subscriptionPolicy/options.d.ts +11 -0
- package/dist/commonjs/api/subscriptionPolicy/options.js +16 -0
- package/dist/commonjs/api/subscriptionPolicy/options.js.map +7 -0
- package/dist/commonjs/api/subscriptions/index.d.ts +3 -0
- package/dist/commonjs/api/subscriptions/index.js +38 -0
- package/dist/commonjs/api/subscriptions/index.js.map +7 -0
- package/dist/commonjs/api/subscriptions/operations.d.ts +30 -0
- package/dist/commonjs/api/subscriptions/operations.js +244 -0
- package/dist/commonjs/api/subscriptions/operations.js.map +7 -0
- package/dist/commonjs/api/subscriptions/options.d.ts +20 -0
- package/dist/commonjs/api/subscriptions/options.js +16 -0
- package/dist/commonjs/api/subscriptions/options.js.map +7 -0
- package/dist/commonjs/classic/alias/index.d.ts +23 -0
- package/dist/commonjs/classic/alias/index.js +50 -0
- package/dist/commonjs/classic/alias/index.js.map +7 -0
- package/dist/commonjs/classic/billingAccount/index.d.ts +10 -0
- package/dist/commonjs/classic/billingAccount/index.js +38 -0
- package/dist/commonjs/classic/billingAccount/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +8 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/classic/subscription/index.d.ts +24 -0
- package/dist/commonjs/classic/subscription/index.js +51 -0
- package/dist/commonjs/classic/subscription/index.js.map +7 -0
- package/dist/commonjs/classic/subscriptionOperation/index.d.ts +10 -0
- package/dist/commonjs/classic/subscriptionOperation/index.js +38 -0
- package/dist/commonjs/classic/subscriptionOperation/index.js.map +7 -0
- package/dist/commonjs/classic/subscriptionPolicy/index.d.ts +15 -0
- package/dist/commonjs/classic/subscriptionPolicy/index.js +40 -0
- package/dist/commonjs/classic/subscriptionPolicy/index.js.map +7 -0
- package/dist/commonjs/classic/subscriptions/index.d.ts +21 -0
- package/dist/commonjs/classic/subscriptions/index.js +43 -0
- package/dist/commonjs/classic/subscriptions/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +19 -3
- package/dist/commonjs/index.js +53 -16
- package/dist/commonjs/index.js.map +7 -1
- 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 -568
- package/dist/commonjs/models/index.js +44 -56
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +517 -0
- package/dist/commonjs/models/models.js +476 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +115 -0
- package/dist/commonjs/restorePollerHelpers.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/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.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 +30 -21
- package/dist/commonjs/subscriptionClient.js +69 -108
- package/dist/commonjs/subscriptionClient.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/alias/index.d.ts +3 -0
- package/dist/esm/api/alias/index.js +4 -0
- package/dist/esm/api/alias/index.js.map +1 -0
- package/dist/esm/api/alias/operations.d.ts +23 -0
- package/dist/esm/api/alias/operations.js +118 -0
- package/dist/esm/api/alias/operations.js.map +1 -0
- package/dist/esm/api/alias/options.d.ts +16 -0
- package/dist/esm/api/alias/options.js +4 -0
- package/dist/esm/api/alias/options.js.map +1 -0
- package/dist/esm/api/billingAccount/index.d.ts +3 -0
- package/dist/esm/api/billingAccount/index.js +4 -0
- package/dist/esm/api/billingAccount/index.js.map +1 -0
- package/dist/esm/api/billingAccount/operations.d.ts +9 -0
- package/dist/esm/api/billingAccount/operations.js +32 -0
- package/dist/esm/api/billingAccount/operations.js.map +1 -0
- package/dist/esm/api/billingAccount/options.d.ts +5 -0
- package/dist/esm/api/billingAccount/options.js +4 -0
- package/dist/esm/api/billingAccount/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -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 +35 -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/subscription/index.d.ts +3 -0
- package/dist/esm/api/subscription/index.js +4 -0
- package/dist/esm/api/subscription/index.js.map +1 -0
- package/dist/esm/api/subscription/operations.d.ts +26 -0
- package/dist/esm/api/subscription/operations.js +145 -0
- package/dist/esm/api/subscription/operations.js.map +1 -0
- package/dist/esm/api/subscription/options.d.ts +19 -0
- package/dist/esm/api/subscription/options.js +4 -0
- package/dist/esm/api/subscription/options.js.map +1 -0
- package/dist/esm/api/subscriptionContext.d.ts +18 -0
- package/dist/esm/api/subscriptionContext.js +23 -0
- package/dist/esm/api/subscriptionContext.js.map +1 -0
- package/dist/esm/api/subscriptionOperation/index.d.ts +3 -0
- package/dist/{browser/operationsInterfaces/billingAccount.js → esm/api/subscriptionOperation/index.js} +2 -2
- package/dist/esm/api/subscriptionOperation/index.js.map +1 -0
- package/dist/esm/api/subscriptionOperation/operations.d.ts +9 -0
- package/dist/esm/api/subscriptionOperation/operations.js +32 -0
- package/dist/esm/api/subscriptionOperation/operations.js.map +1 -0
- package/dist/esm/api/subscriptionOperation/options.d.ts +5 -0
- package/dist/esm/api/subscriptionOperation/options.js +4 -0
- package/dist/esm/api/subscriptionOperation/options.js.map +1 -0
- package/dist/esm/api/subscriptionPolicy/index.d.ts +3 -0
- package/dist/esm/api/subscriptionPolicy/index.js +4 -0
- package/dist/esm/api/subscriptionPolicy/index.js.map +1 -0
- package/dist/esm/api/subscriptionPolicy/operations.d.ts +18 -0
- package/dist/esm/api/subscriptionPolicy/operations.js +87 -0
- package/dist/esm/api/subscriptionPolicy/operations.js.map +1 -0
- package/dist/esm/api/subscriptionPolicy/options.d.ts +11 -0
- package/dist/esm/api/subscriptionPolicy/options.js +4 -0
- package/dist/esm/api/subscriptionPolicy/options.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 +30 -0
- package/dist/esm/api/subscriptions/operations.js +162 -0
- package/dist/esm/api/subscriptions/operations.js.map +1 -0
- package/dist/esm/api/subscriptions/options.d.ts +20 -0
- package/dist/esm/api/subscriptions/options.js +4 -0
- package/dist/esm/api/subscriptions/options.js.map +1 -0
- package/dist/esm/classic/alias/index.d.ts +23 -0
- package/dist/esm/classic/alias/index.js +26 -0
- package/dist/esm/classic/alias/index.js.map +1 -0
- package/dist/esm/classic/billingAccount/index.d.ts +10 -0
- package/dist/esm/classic/billingAccount/index.js +14 -0
- package/dist/esm/classic/billingAccount/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +8 -0
- package/dist/{browser/operationsInterfaces/alias.js → esm/classic/index.js} +1 -1
- 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/subscription/index.d.ts +24 -0
- package/dist/esm/classic/subscription/index.js +27 -0
- package/dist/esm/classic/subscription/index.js.map +1 -0
- package/dist/esm/classic/subscriptionOperation/index.d.ts +10 -0
- package/dist/esm/classic/subscriptionOperation/index.js +14 -0
- package/dist/esm/classic/subscriptionOperation/index.js.map +1 -0
- package/dist/esm/classic/subscriptionPolicy/index.d.ts +15 -0
- package/dist/esm/classic/subscriptionPolicy/index.js +16 -0
- package/dist/esm/classic/subscriptionPolicy/index.js.map +1 -0
- package/dist/esm/classic/subscriptions/index.d.ts +21 -0
- package/dist/esm/classic/subscriptions/index.js +19 -0
- package/dist/esm/classic/subscriptions/index.js.map +1 -0
- package/dist/esm/index.d.ts +19 -3
- package/dist/esm/index.js +4 -6
- 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 +2 -568
- package/dist/esm/models/index.js +1 -50
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +517 -0
- package/dist/esm/models/models.js +428 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +102 -0
- package/dist/esm/restorePollerHelpers.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/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/esm/static-helpers/simplePollerHelpers.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 +30 -21
- package/dist/esm/subscriptionClient.js +40 -96
- package/dist/esm/subscriptionClient.js.map +1 -1
- package/package.json +205 -96
- 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 -20
- 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 -31
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -867
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -15
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -115
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/alias.d.ts +0 -53
- package/dist/browser/operations/alias.d.ts.map +0 -1
- package/dist/browser/operations/alias.js +0 -182
- package/dist/browser/operations/alias.js.map +0 -1
- package/dist/browser/operations/billingAccount.d.ts +0 -19
- package/dist/browser/operations/billingAccount.d.ts.map +0 -1
- package/dist/browser/operations/billingAccount.js +0 -43
- package/dist/browser/operations/billingAccount.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -7
- 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 -111
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/subscription.d.ts +0 -53
- package/dist/browser/operations/subscription.d.ts.map +0 -1
- package/dist/browser/operations/subscription.js +0 -203
- package/dist/browser/operations/subscription.js.map +0 -1
- package/dist/browser/operations/subscriptionOperation.d.ts +0 -20
- package/dist/browser/operations/subscriptionOperation.d.ts.map +0 -1
- package/dist/browser/operations/subscriptionOperation.js +0 -47
- package/dist/browser/operations/subscriptionOperation.js.map +0 -1
- package/dist/browser/operations/subscriptionPolicy.d.ts +0 -43
- package/dist/browser/operations/subscriptionPolicy.d.ts.map +0 -1
- package/dist/browser/operations/subscriptionPolicy.js +0 -160
- package/dist/browser/operations/subscriptionPolicy.js.map +0 -1
- package/dist/browser/operationsInterfaces/alias.d.ts +0 -45
- package/dist/browser/operationsInterfaces/alias.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/alias.js.map +0 -1
- package/dist/browser/operationsInterfaces/billingAccount.d.ts +0 -11
- package/dist/browser/operationsInterfaces/billingAccount.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/billingAccount.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -7
- 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.map +0 -1
- package/dist/browser/operationsInterfaces/subscription.d.ts +0 -45
- package/dist/browser/operationsInterfaces/subscription.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/subscription.js.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts +0 -12
- package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionOperation.js +0 -4
- package/dist/browser/operationsInterfaces/subscriptionOperation.js.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts +0 -22
- package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionPolicy.js +0 -4
- package/dist/browser/operationsInterfaces/subscriptionPolicy.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 -25
- 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/lroImpl.d.ts +0 -11
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js +0 -23
- 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 -31
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -870
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -15
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -118
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/alias.d.ts +0 -53
- package/dist/commonjs/operations/alias.d.ts.map +0 -1
- package/dist/commonjs/operations/alias.js +0 -187
- package/dist/commonjs/operations/alias.js.map +0 -1
- package/dist/commonjs/operations/billingAccount.d.ts +0 -19
- package/dist/commonjs/operations/billingAccount.d.ts.map +0 -1
- package/dist/commonjs/operations/billingAccount.js +0 -48
- package/dist/commonjs/operations/billingAccount.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -7
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -14
- package/dist/commonjs/operations/index.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 -116
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operations/subscription.d.ts +0 -53
- package/dist/commonjs/operations/subscription.d.ts.map +0 -1
- package/dist/commonjs/operations/subscription.js +0 -208
- package/dist/commonjs/operations/subscription.js.map +0 -1
- package/dist/commonjs/operations/subscriptionOperation.d.ts +0 -20
- package/dist/commonjs/operations/subscriptionOperation.d.ts.map +0 -1
- package/dist/commonjs/operations/subscriptionOperation.js +0 -52
- package/dist/commonjs/operations/subscriptionOperation.js.map +0 -1
- package/dist/commonjs/operations/subscriptionPolicy.d.ts +0 -43
- package/dist/commonjs/operations/subscriptionPolicy.d.ts.map +0 -1
- package/dist/commonjs/operations/subscriptionPolicy.js +0 -165
- package/dist/commonjs/operations/subscriptionPolicy.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/alias.d.ts +0 -45
- package/dist/commonjs/operationsInterfaces/alias.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/alias.js +0 -5
- package/dist/commonjs/operationsInterfaces/alias.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/billingAccount.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/billingAccount.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/billingAccount.js +0 -5
- package/dist/commonjs/operationsInterfaces/billingAccount.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -7
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -14
- package/dist/commonjs/operationsInterfaces/index.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 -5
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscription.d.ts +0 -45
- package/dist/commonjs/operationsInterfaces/subscription.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscription.js +0 -5
- package/dist/commonjs/operationsInterfaces/subscription.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts +0 -12
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.js +0 -5
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts +0 -22
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.js +0 -5
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.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 -29
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/commonjs/subscriptionClient.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 -20
- 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 -31
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -867
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -15
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -115
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/alias.d.ts +0 -53
- package/dist/esm/operations/alias.d.ts.map +0 -1
- package/dist/esm/operations/alias.js +0 -182
- package/dist/esm/operations/alias.js.map +0 -1
- package/dist/esm/operations/billingAccount.d.ts +0 -19
- package/dist/esm/operations/billingAccount.d.ts.map +0 -1
- package/dist/esm/operations/billingAccount.js +0 -43
- package/dist/esm/operations/billingAccount.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -7
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -11
- package/dist/esm/operations/index.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 -111
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operations/subscription.d.ts +0 -53
- package/dist/esm/operations/subscription.d.ts.map +0 -1
- package/dist/esm/operations/subscription.js +0 -203
- package/dist/esm/operations/subscription.js.map +0 -1
- package/dist/esm/operations/subscriptionOperation.d.ts +0 -20
- package/dist/esm/operations/subscriptionOperation.d.ts.map +0 -1
- package/dist/esm/operations/subscriptionOperation.js +0 -47
- package/dist/esm/operations/subscriptionOperation.js.map +0 -1
- package/dist/esm/operations/subscriptionPolicy.d.ts +0 -43
- package/dist/esm/operations/subscriptionPolicy.d.ts.map +0 -1
- package/dist/esm/operations/subscriptionPolicy.js +0 -160
- package/dist/esm/operations/subscriptionPolicy.js.map +0 -1
- package/dist/esm/operationsInterfaces/alias.d.ts +0 -45
- package/dist/esm/operationsInterfaces/alias.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/alias.js.map +0 -1
- package/dist/esm/operationsInterfaces/billingAccount.d.ts +0 -11
- package/dist/esm/operationsInterfaces/billingAccount.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/billingAccount.js +0 -4
- package/dist/esm/operationsInterfaces/billingAccount.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -7
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -11
- package/dist/esm/operationsInterfaces/index.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.map +0 -1
- package/dist/esm/operationsInterfaces/subscription.d.ts +0 -45
- package/dist/esm/operationsInterfaces/subscription.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscription.js +0 -4
- package/dist/esm/operationsInterfaces/subscription.js.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts +0 -12
- package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionOperation.js +0 -4
- package/dist/esm/operationsInterfaces/subscriptionOperation.js.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts +0 -22
- package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionPolicy.js +0 -4
- package/dist/esm/operationsInterfaces/subscriptionPolicy.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 -25
- package/dist/esm/pagingHelper.js.map +0 -1
- 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 -10
- package/dist/react-native/index.js.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 -20
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -569
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -53
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -31
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -867
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -15
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -115
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/alias.d.ts +0 -53
- package/dist/react-native/operations/alias.d.ts.map +0 -1
- package/dist/react-native/operations/alias.js +0 -182
- package/dist/react-native/operations/alias.js.map +0 -1
- package/dist/react-native/operations/billingAccount.d.ts +0 -19
- package/dist/react-native/operations/billingAccount.d.ts.map +0 -1
- package/dist/react-native/operations/billingAccount.js +0 -43
- package/dist/react-native/operations/billingAccount.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -7
- 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 -111
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/subscription.d.ts +0 -53
- package/dist/react-native/operations/subscription.d.ts.map +0 -1
- package/dist/react-native/operations/subscription.js +0 -203
- package/dist/react-native/operations/subscription.js.map +0 -1
- package/dist/react-native/operations/subscriptionOperation.d.ts +0 -20
- package/dist/react-native/operations/subscriptionOperation.d.ts.map +0 -1
- package/dist/react-native/operations/subscriptionOperation.js +0 -47
- package/dist/react-native/operations/subscriptionOperation.js.map +0 -1
- package/dist/react-native/operations/subscriptionPolicy.d.ts +0 -43
- package/dist/react-native/operations/subscriptionPolicy.d.ts.map +0 -1
- package/dist/react-native/operations/subscriptionPolicy.js +0 -160
- package/dist/react-native/operations/subscriptionPolicy.js.map +0 -1
- package/dist/react-native/operationsInterfaces/alias.d.ts +0 -45
- package/dist/react-native/operationsInterfaces/alias.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/alias.js.map +0 -1
- package/dist/react-native/operationsInterfaces/billingAccount.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/billingAccount.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/billingAccount.js +0 -4
- package/dist/react-native/operationsInterfaces/billingAccount.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -7
- 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 -4
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/subscription.d.ts +0 -45
- package/dist/react-native/operationsInterfaces/subscription.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/subscription.js +0 -4
- package/dist/react-native/operationsInterfaces/subscription.js.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts +0 -12
- package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionOperation.js +0 -4
- package/dist/react-native/operationsInterfaces/subscriptionOperation.js.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts +0 -22
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.js +0 -4
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.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 -25
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/dist/react-native/subscriptionClient.d.ts +0 -23
- package/dist/react-native/subscriptionClient.d.ts.map +0 -1
- package/dist/react-native/subscriptionClient.js +0 -104
- package/dist/react-native/subscriptionClient.js.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import type { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
-
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
-
import type { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
|
-
/** Class containing Operations operations. */
|
|
6
|
-
export declare class OperationsImpl implements Operations {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class Operations class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: SubscriptionClient);
|
|
13
|
-
/**
|
|
14
|
-
* Lists all of the available Microsoft.Subscription API operations.
|
|
15
|
-
* @param options The options parameters.
|
|
16
|
-
*/
|
|
17
|
-
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
-
private listPagingPage;
|
|
19
|
-
private listPagingAll;
|
|
20
|
-
/**
|
|
21
|
-
* Lists all of the available Microsoft.Subscription API operations.
|
|
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=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,SAAS,CAAC;YAkB3E,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAMlB"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { setContinuationToken } from "../pagingHelper.js";
|
|
4
|
-
import * as coreClient from "@azure/core-client";
|
|
5
|
-
import * as Mappers from "../models/mappers.js";
|
|
6
|
-
import * as Parameters from "../models/parameters.js";
|
|
7
|
-
/// <reference lib="esnext.asynciterable" />
|
|
8
|
-
/** Class containing Operations operations. */
|
|
9
|
-
export class OperationsImpl {
|
|
10
|
-
client;
|
|
11
|
-
/**
|
|
12
|
-
* Initialize a new instance of the class Operations class.
|
|
13
|
-
* @param client Reference to the service client
|
|
14
|
-
*/
|
|
15
|
-
constructor(client) {
|
|
16
|
-
this.client = client;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Lists all of the available Microsoft.Subscription API operations.
|
|
20
|
-
* @param options The options parameters.
|
|
21
|
-
*/
|
|
22
|
-
list(options) {
|
|
23
|
-
const iter = this.listPagingAll(options);
|
|
24
|
-
return {
|
|
25
|
-
next() {
|
|
26
|
-
return iter.next();
|
|
27
|
-
},
|
|
28
|
-
[Symbol.asyncIterator]() {
|
|
29
|
-
return this;
|
|
30
|
-
},
|
|
31
|
-
byPage: (settings) => {
|
|
32
|
-
if (settings?.maxPageSize) {
|
|
33
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
34
|
-
}
|
|
35
|
-
return this.listPagingPage(options, settings);
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
async *listPagingPage(options, settings) {
|
|
40
|
-
let result;
|
|
41
|
-
let continuationToken = settings?.continuationToken;
|
|
42
|
-
if (!continuationToken) {
|
|
43
|
-
result = await this._list(options);
|
|
44
|
-
const page = result.value || [];
|
|
45
|
-
continuationToken = result.nextLink;
|
|
46
|
-
setContinuationToken(page, continuationToken);
|
|
47
|
-
yield page;
|
|
48
|
-
}
|
|
49
|
-
while (continuationToken) {
|
|
50
|
-
result = await this._listNext(continuationToken, options);
|
|
51
|
-
continuationToken = result.nextLink;
|
|
52
|
-
const page = result.value || [];
|
|
53
|
-
setContinuationToken(page, continuationToken);
|
|
54
|
-
yield page;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async *listPagingAll(options) {
|
|
58
|
-
for await (const page of this.listPagingPage(options)) {
|
|
59
|
-
yield* page;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Lists all of the available Microsoft.Subscription API operations.
|
|
64
|
-
* @param options The options parameters.
|
|
65
|
-
*/
|
|
66
|
-
_list(options) {
|
|
67
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* ListNext
|
|
71
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
72
|
-
* @param options The options parameters.
|
|
73
|
-
*/
|
|
74
|
-
_listNext(nextLink, options) {
|
|
75
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
// Operation Specifications
|
|
79
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
80
|
-
const listOperationSpec = {
|
|
81
|
-
path: "/providers/Microsoft.Subscription/operations",
|
|
82
|
-
httpMethod: "GET",
|
|
83
|
-
responses: {
|
|
84
|
-
200: {
|
|
85
|
-
bodyMapper: Mappers.OperationListResult,
|
|
86
|
-
},
|
|
87
|
-
default: {
|
|
88
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
queryParameters: [Parameters.apiVersion],
|
|
92
|
-
urlParameters: [Parameters.$host],
|
|
93
|
-
headerParameters: [Parameters.accept],
|
|
94
|
-
serializer,
|
|
95
|
-
};
|
|
96
|
-
const listNextOperationSpec = {
|
|
97
|
-
path: "{nextLink}",
|
|
98
|
-
httpMethod: "GET",
|
|
99
|
-
responses: {
|
|
100
|
-
200: {
|
|
101
|
-
bodyMapper: Mappers.OperationListResult,
|
|
102
|
-
},
|
|
103
|
-
default: {
|
|
104
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
108
|
-
headerParameters: [Parameters.accept],
|
|
109
|
-
serializer,
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAA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C,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;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":["// 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\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Operations } 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 type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation> {\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?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n const 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 const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\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?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\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.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Subscription } from "../operationsInterfaces/index.js";
|
|
2
|
-
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
-
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
-
import type { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models/index.js";
|
|
5
|
-
/** Class containing Subscription operations. */
|
|
6
|
-
export declare class SubscriptionImpl implements Subscription {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class Subscription class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: SubscriptionClient);
|
|
13
|
-
/**
|
|
14
|
-
* The operation to cancel a subscription
|
|
15
|
-
* @param subscriptionId Subscription Id.
|
|
16
|
-
* @param options The options parameters.
|
|
17
|
-
*/
|
|
18
|
-
cancel(subscriptionId: string, options?: SubscriptionCancelOptionalParams): Promise<SubscriptionCancelResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* The operation to rename a subscription
|
|
21
|
-
* @param subscriptionId Subscription Id.
|
|
22
|
-
* @param body Subscription Name
|
|
23
|
-
* @param options The options parameters.
|
|
24
|
-
*/
|
|
25
|
-
rename(subscriptionId: string, body: SubscriptionName, options?: SubscriptionRenameOptionalParams): Promise<SubscriptionRenameResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* The operation to enable a subscription
|
|
28
|
-
* @param subscriptionId Subscription Id.
|
|
29
|
-
* @param options The options parameters.
|
|
30
|
-
*/
|
|
31
|
-
enable(subscriptionId: string, options?: SubscriptionEnableOptionalParams): Promise<SubscriptionEnableResponse>;
|
|
32
|
-
/**
|
|
33
|
-
* Accept subscription ownership.
|
|
34
|
-
* @param subscriptionId Subscription Id.
|
|
35
|
-
* @param body The parameters required to accept subscription ownership.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SimplePollerLike<OperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
|
|
39
|
-
/**
|
|
40
|
-
* Accept subscription ownership.
|
|
41
|
-
* @param subscriptionId Subscription Id.
|
|
42
|
-
* @param body The parameters required to accept subscription ownership.
|
|
43
|
-
* @param options The options parameters.
|
|
44
|
-
*/
|
|
45
|
-
beginAcceptOwnershipAndWait(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SubscriptionAcceptOwnershipResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* Accept subscription ownership status.
|
|
48
|
-
* @param subscriptionId Subscription Id.
|
|
49
|
-
* @param options The options parameters.
|
|
50
|
-
*/
|
|
51
|
-
acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/operations/subscription.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,O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xD,OAAO,CAAC,yCAAyC,CAAC;CAMtD"}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import * as coreClient from "@azure/core-client";
|
|
4
|
-
import * as Mappers from "../models/mappers.js";
|
|
5
|
-
import * as Parameters from "../models/parameters.js";
|
|
6
|
-
import { createHttpPoller } from "@azure/core-lro";
|
|
7
|
-
import { createLroSpec } from "../lroImpl.js";
|
|
8
|
-
/** Class containing Subscription operations. */
|
|
9
|
-
export class SubscriptionImpl {
|
|
10
|
-
client;
|
|
11
|
-
/**
|
|
12
|
-
* Initialize a new instance of the class Subscription class.
|
|
13
|
-
* @param client Reference to the service client
|
|
14
|
-
*/
|
|
15
|
-
constructor(client) {
|
|
16
|
-
this.client = client;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The operation to cancel a subscription
|
|
20
|
-
* @param subscriptionId Subscription Id.
|
|
21
|
-
* @param options The options parameters.
|
|
22
|
-
*/
|
|
23
|
-
cancel(subscriptionId, options) {
|
|
24
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, cancelOperationSpec);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The operation to rename a subscription
|
|
28
|
-
* @param subscriptionId Subscription Id.
|
|
29
|
-
* @param body Subscription Name
|
|
30
|
-
* @param options The options parameters.
|
|
31
|
-
*/
|
|
32
|
-
rename(subscriptionId, body, options) {
|
|
33
|
-
return this.client.sendOperationRequest({ subscriptionId, body, options }, renameOperationSpec);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The operation to enable a subscription
|
|
37
|
-
* @param subscriptionId Subscription Id.
|
|
38
|
-
* @param options The options parameters.
|
|
39
|
-
*/
|
|
40
|
-
enable(subscriptionId, options) {
|
|
41
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, enableOperationSpec);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Accept subscription ownership.
|
|
45
|
-
* @param subscriptionId Subscription Id.
|
|
46
|
-
* @param body The parameters required to accept subscription ownership.
|
|
47
|
-
* @param options The options parameters.
|
|
48
|
-
*/
|
|
49
|
-
async beginAcceptOwnership(subscriptionId, body, options) {
|
|
50
|
-
const directSendOperation = async (args, spec) => {
|
|
51
|
-
return this.client.sendOperationRequest(args, spec);
|
|
52
|
-
};
|
|
53
|
-
const sendOperationFn = async (args, spec) => {
|
|
54
|
-
let currentRawResponse = undefined;
|
|
55
|
-
const providedCallback = args.options?.onResponse;
|
|
56
|
-
const callback = (rawResponse, flatResponse) => {
|
|
57
|
-
currentRawResponse = rawResponse;
|
|
58
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
59
|
-
};
|
|
60
|
-
const updatedArgs = {
|
|
61
|
-
...args,
|
|
62
|
-
options: {
|
|
63
|
-
...args.options,
|
|
64
|
-
onResponse: callback,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
68
|
-
return {
|
|
69
|
-
flatResponse,
|
|
70
|
-
rawResponse: {
|
|
71
|
-
statusCode: currentRawResponse.status,
|
|
72
|
-
body: currentRawResponse.parsedBody,
|
|
73
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
const lro = createLroSpec({
|
|
78
|
-
sendOperationFn,
|
|
79
|
-
args: { subscriptionId, body, options },
|
|
80
|
-
spec: acceptOwnershipOperationSpec,
|
|
81
|
-
});
|
|
82
|
-
const poller = await createHttpPoller(lro, {
|
|
83
|
-
restoreFrom: options?.resumeFrom,
|
|
84
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
85
|
-
});
|
|
86
|
-
await poller.poll();
|
|
87
|
-
return poller;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Accept subscription ownership.
|
|
91
|
-
* @param subscriptionId Subscription Id.
|
|
92
|
-
* @param body The parameters required to accept subscription ownership.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
async beginAcceptOwnershipAndWait(subscriptionId, body, options) {
|
|
96
|
-
const poller = await this.beginAcceptOwnership(subscriptionId, body, options);
|
|
97
|
-
return poller.pollUntilDone();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Accept subscription ownership status.
|
|
101
|
-
* @param subscriptionId Subscription Id.
|
|
102
|
-
* @param options The options parameters.
|
|
103
|
-
*/
|
|
104
|
-
acceptOwnershipStatus(subscriptionId, options) {
|
|
105
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, acceptOwnershipStatusOperationSpec);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// Operation Specifications
|
|
109
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
110
|
-
const cancelOperationSpec = {
|
|
111
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel",
|
|
112
|
-
httpMethod: "POST",
|
|
113
|
-
responses: {
|
|
114
|
-
200: {
|
|
115
|
-
bodyMapper: Mappers.CanceledSubscriptionId,
|
|
116
|
-
},
|
|
117
|
-
default: {
|
|
118
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
queryParameters: [Parameters.apiVersion],
|
|
122
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
123
|
-
headerParameters: [Parameters.accept],
|
|
124
|
-
serializer,
|
|
125
|
-
};
|
|
126
|
-
const renameOperationSpec = {
|
|
127
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename",
|
|
128
|
-
httpMethod: "POST",
|
|
129
|
-
responses: {
|
|
130
|
-
200: {
|
|
131
|
-
bodyMapper: Mappers.RenamedSubscriptionId,
|
|
132
|
-
},
|
|
133
|
-
default: {
|
|
134
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
requestBody: Parameters.body,
|
|
138
|
-
queryParameters: [Parameters.apiVersion],
|
|
139
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
140
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
141
|
-
mediaType: "json",
|
|
142
|
-
serializer,
|
|
143
|
-
};
|
|
144
|
-
const enableOperationSpec = {
|
|
145
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable",
|
|
146
|
-
httpMethod: "POST",
|
|
147
|
-
responses: {
|
|
148
|
-
200: {
|
|
149
|
-
bodyMapper: Mappers.EnabledSubscriptionId,
|
|
150
|
-
},
|
|
151
|
-
default: {
|
|
152
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
queryParameters: [Parameters.apiVersion],
|
|
156
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
157
|
-
headerParameters: [Parameters.accept],
|
|
158
|
-
serializer,
|
|
159
|
-
};
|
|
160
|
-
const acceptOwnershipOperationSpec = {
|
|
161
|
-
path: "/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership",
|
|
162
|
-
httpMethod: "POST",
|
|
163
|
-
responses: {
|
|
164
|
-
200: {
|
|
165
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
166
|
-
},
|
|
167
|
-
201: {
|
|
168
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
169
|
-
},
|
|
170
|
-
202: {
|
|
171
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
172
|
-
},
|
|
173
|
-
204: {
|
|
174
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
175
|
-
},
|
|
176
|
-
default: {
|
|
177
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
requestBody: Parameters.body1,
|
|
181
|
-
queryParameters: [Parameters.apiVersion],
|
|
182
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
183
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
184
|
-
mediaType: "json",
|
|
185
|
-
serializer,
|
|
186
|
-
};
|
|
187
|
-
const acceptOwnershipStatusOperationSpec = {
|
|
188
|
-
path: "/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus",
|
|
189
|
-
httpMethod: "GET",
|
|
190
|
-
responses: {
|
|
191
|
-
200: {
|
|
192
|
-
bodyMapper: Mappers.AcceptOwnershipStatusResponse,
|
|
193
|
-
},
|
|
194
|
-
default: {
|
|
195
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
queryParameters: [Parameters.apiVersion],
|
|
199
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
200
|
-
headerParameters: [Parameters.accept],
|
|
201
|
-
serializer,
|
|
202
|
-
};
|
|
203
|
-
//# sourceMappingURL=subscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/operations/subscription.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgB9C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,cAAsB,EACtB,OAA0C;QA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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,kFAAkF;IACxF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,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,kCAAkC,GAA6B;IACnE,IAAI,EAAE,wFAAwF;IAC9F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,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,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport type { Subscription } 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 type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n SubscriptionCancelOptionalParams,\n SubscriptionCancelResponse,\n SubscriptionName,\n SubscriptionRenameOptionalParams,\n SubscriptionRenameResponse,\n SubscriptionEnableOptionalParams,\n SubscriptionEnableResponse,\n AcceptOwnershipRequest,\n SubscriptionAcceptOwnershipOptionalParams,\n SubscriptionAcceptOwnershipResponse,\n SubscriptionAcceptOwnershipStatusOptionalParams,\n SubscriptionAcceptOwnershipStatusResponse,\n} from \"../models/index.js\";\n\n/** Class containing Subscription operations. */\nexport class SubscriptionImpl implements Subscription {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Subscription class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * The operation to cancel a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n cancel(\n subscriptionId: string,\n options?: SubscriptionCancelOptionalParams,\n ): Promise<SubscriptionCancelResponse> {\n return this.client.sendOperationRequest({ subscriptionId, options }, cancelOperationSpec);\n }\n\n /**\n * The operation to rename a subscription\n * @param subscriptionId Subscription Id.\n * @param body Subscription Name\n * @param options The options parameters.\n */\n rename(\n subscriptionId: string,\n body: SubscriptionName,\n options?: SubscriptionRenameOptionalParams,\n ): Promise<SubscriptionRenameResponse> {\n return this.client.sendOperationRequest({ subscriptionId, body, options }, renameOperationSpec);\n }\n\n /**\n * The operation to enable a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n enable(\n subscriptionId: string,\n options?: SubscriptionEnableOptionalParams,\n ): Promise<SubscriptionEnableResponse> {\n return this.client.sendOperationRequest({ subscriptionId, options }, enableOperationSpec);\n }\n\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n async beginAcceptOwnership(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionAcceptOwnershipResponse>,\n SubscriptionAcceptOwnershipResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionAcceptOwnershipResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { subscriptionId, body, options },\n spec: acceptOwnershipOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionAcceptOwnershipResponse,\n OperationState<SubscriptionAcceptOwnershipResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n async beginAcceptOwnershipAndWait(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipResponse> {\n const poller = await this.beginAcceptOwnership(subscriptionId, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Accept subscription ownership status.\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n acceptOwnershipStatus(\n subscriptionId: string,\n options?: SubscriptionAcceptOwnershipStatusOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipStatusResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n acceptOwnershipStatusOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CanceledSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst renameOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RenamedSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst enableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnabledSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst acceptOwnershipOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 201: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 202: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 204: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst acceptOwnershipStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcceptOwnershipStatusResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionOperation } from "../operationsInterfaces/index.js";
|
|
2
|
-
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
-
import type { SubscriptionOperationGetOptionalParams, SubscriptionOperationGetResponse } from "../models/index.js";
|
|
4
|
-
/** Class containing SubscriptionOperation operations. */
|
|
5
|
-
export declare class SubscriptionOperationImpl implements SubscriptionOperation {
|
|
6
|
-
private readonly client;
|
|
7
|
-
/**
|
|
8
|
-
* Initialize a new instance of the class SubscriptionOperation class.
|
|
9
|
-
* @param client Reference to the service client
|
|
10
|
-
*/
|
|
11
|
-
constructor(client: SubscriptionClient);
|
|
12
|
-
/**
|
|
13
|
-
* Get the status of the pending Microsoft.Subscription API operations.
|
|
14
|
-
* @param operationId The operation ID, which can be found from the Location field in the generate
|
|
15
|
-
* recommendation response header.
|
|
16
|
-
* @param options The options parameters.
|
|
17
|
-
*/
|
|
18
|
-
get(operationId: string, options?: SubscriptionOperationGetOptionalParams): Promise<SubscriptionOperationGetResponse>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=subscriptionOperation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperation.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,yDAAyD;AACzD,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;;OAKG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;CAG7C"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import * as coreClient from "@azure/core-client";
|
|
4
|
-
import * as Mappers from "../models/mappers.js";
|
|
5
|
-
import * as Parameters from "../models/parameters.js";
|
|
6
|
-
/** Class containing SubscriptionOperation operations. */
|
|
7
|
-
export class SubscriptionOperationImpl {
|
|
8
|
-
client;
|
|
9
|
-
/**
|
|
10
|
-
* Initialize a new instance of the class SubscriptionOperation class.
|
|
11
|
-
* @param client Reference to the service client
|
|
12
|
-
*/
|
|
13
|
-
constructor(client) {
|
|
14
|
-
this.client = client;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the status of the pending Microsoft.Subscription API operations.
|
|
18
|
-
* @param operationId The operation ID, which can be found from the Location field in the generate
|
|
19
|
-
* recommendation response header.
|
|
20
|
-
* @param options The options parameters.
|
|
21
|
-
*/
|
|
22
|
-
get(operationId, options) {
|
|
23
|
-
return this.client.sendOperationRequest({ operationId, options }, getOperationSpec);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
// Operation Specifications
|
|
27
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
28
|
-
const getOperationSpec = {
|
|
29
|
-
path: "/providers/Microsoft.Subscription/subscriptionOperations/{operationId}",
|
|
30
|
-
httpMethod: "GET",
|
|
31
|
-
responses: {
|
|
32
|
-
200: {
|
|
33
|
-
bodyMapper: Mappers.SubscriptionCreationResult,
|
|
34
|
-
},
|
|
35
|
-
202: {
|
|
36
|
-
headersMapper: Mappers.SubscriptionOperationGetHeaders,
|
|
37
|
-
},
|
|
38
|
-
default: {
|
|
39
|
-
bodyMapper: Mappers.ErrorResponseBody,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
queryParameters: [Parameters.apiVersion],
|
|
43
|
-
urlParameters: [Parameters.$host, Parameters.operationId],
|
|
44
|
-
headerParameters: [Parameters.accept],
|
|
45
|
-
serializer,
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=subscriptionOperation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperation.js","sourceRoot":"","sources":["../../../src/operations/subscriptionOperation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACtF,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,wEAAwE;IAC9E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,+BAA+B;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport type { SubscriptionOperation } 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 type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n SubscriptionOperationGetOptionalParams,\n SubscriptionOperationGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing SubscriptionOperation operations. */\nexport class SubscriptionOperationImpl implements SubscriptionOperation {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class SubscriptionOperation class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Get the status of the pending Microsoft.Subscription API operations.\n * @param operationId The operation ID, which can be found from the Location field in the generate\n * recommendation response header.\n * @param options The options parameters.\n */\n get(\n operationId: string,\n options?: SubscriptionOperationGetOptionalParams,\n ): Promise<SubscriptionOperationGetResponse> {\n return this.client.sendOperationRequest({ operationId, options }, getOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptionOperations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionCreationResult,\n },\n 202: {\n headersMapper: Mappers.SubscriptionOperationGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import type { SubscriptionPolicy } from "../operationsInterfaces/index.js";
|
|
3
|
-
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
-
import type { GetTenantPolicyResponse, SubscriptionPolicyListPolicyForTenantOptionalParams, PutTenantPolicyRequestProperties, SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams, SubscriptionPolicyAddUpdatePolicyForTenantResponse, SubscriptionPolicyGetPolicyForTenantOptionalParams, SubscriptionPolicyGetPolicyForTenantResponse } from "../models/index.js";
|
|
5
|
-
/** Class containing SubscriptionPolicy operations. */
|
|
6
|
-
export declare class SubscriptionPolicyImpl implements SubscriptionPolicy {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class SubscriptionPolicy class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: SubscriptionClient);
|
|
13
|
-
/**
|
|
14
|
-
* Get the subscription tenant policy for the user's tenant.
|
|
15
|
-
* @param options The options parameters.
|
|
16
|
-
*/
|
|
17
|
-
listPolicyForTenant(options?: SubscriptionPolicyListPolicyForTenantOptionalParams): PagedAsyncIterableIterator<GetTenantPolicyResponse>;
|
|
18
|
-
private listPolicyForTenantPagingPage;
|
|
19
|
-
private listPolicyForTenantPagingAll;
|
|
20
|
-
/**
|
|
21
|
-
* Create or Update Subscription tenant policy for user's tenant.
|
|
22
|
-
* @param body Put tenant policy request properties.
|
|
23
|
-
* @param options The options parameters.
|
|
24
|
-
*/
|
|
25
|
-
addUpdatePolicyForTenant(body: PutTenantPolicyRequestProperties, options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Get the subscription tenant policy for the user's tenant.
|
|
28
|
-
* @param options The options parameters.
|
|
29
|
-
*/
|
|
30
|
-
getPolicyForTenant(options?: SubscriptionPolicyGetPolicyForTenantOptionalParams): Promise<SubscriptionPolicyGetPolicyForTenantResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Get the subscription tenant policy for the user's tenant.
|
|
33
|
-
* @param options The options parameters.
|
|
34
|
-
*/
|
|
35
|
-
private _listPolicyForTenant;
|
|
36
|
-
/**
|
|
37
|
-
* ListPolicyForTenantNext
|
|
38
|
-
* @param nextLink The nextLink from the previous successful call to the ListPolicyForTenant method.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
private _listPolicyForTenantNext;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=subscriptionPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionPolicy.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionPolicy.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,uBAAuB,EAEvB,mDAAmD,EAEnD,gCAAgC,EAChC,wDAAwD,EACxD,kDAAkD,EAClD,kDAAkD,EAClD,4CAA4C,EAE7C,MAAM,oBAAoB,CAAC;AAG5B,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,mBAAmB,CACxB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,uBAAuB,CAAC;YAkBvC,6BAA6B;YAsB7B,4BAA4B;IAQ3C;;;;OAIG;IACH,wBAAwB,CACtB,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC;IAO9D;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC;IAIxD;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;CASjC"}
|