@azure/arm-subscriptions 5.1.2-alpha.20251027.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -11
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +4 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lroImpl.d.ts +7 -12
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -31
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +20 -189
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +2 -7
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +3 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +309 -568
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +3 -3
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +49 -55
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/alias.d.ts +5 -5
- package/dist/browser/operations/alias.d.ts.map +1 -1
- package/dist/browser/operations/alias.js +39 -40
- package/dist/browser/operations/alias.js.map +1 -1
- package/dist/browser/operations/billingAccount.d.ts +3 -3
- package/dist/browser/operations/billingAccount.d.ts.map +1 -1
- package/dist/browser/operations/billingAccount.js +7 -12
- package/dist/browser/operations/billingAccount.js.map +1 -1
- package/dist/browser/operations/index.d.ts +2 -3
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +6 -10
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/operations.d.ts +4 -4
- package/dist/browser/operations/operations.d.ts.map +1 -1
- package/dist/browser/operations/operations.js +14 -20
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/{esm/operations/subscriptionOperations.d.ts → browser/operations/subscription.d.ts} +9 -9
- package/dist/browser/operations/subscription.d.ts.map +1 -0
- package/dist/{esm/operations/subscriptionOperations.js → browser/operations/subscription.js} +49 -50
- package/dist/browser/operations/subscription.js.map +1 -0
- package/dist/browser/operations/subscriptionOperation.d.ts +20 -0
- package/dist/browser/operations/subscriptionOperation.d.ts.map +1 -0
- package/dist/browser/operations/subscriptionOperation.js +47 -0
- package/dist/browser/operations/subscriptionOperation.js.map +1 -0
- package/dist/browser/operations/subscriptionPolicy.d.ts +4 -4
- package/dist/browser/operations/subscriptionPolicy.d.ts.map +1 -1
- package/dist/browser/operations/subscriptionPolicy.js +24 -30
- package/dist/browser/operations/subscriptionPolicy.js.map +1 -1
- package/dist/browser/operationsInterfaces/alias.d.ts +3 -3
- package/dist/browser/operationsInterfaces/alias.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/alias.js +2 -7
- package/dist/browser/operationsInterfaces/alias.js.map +1 -1
- package/dist/browser/operationsInterfaces/billingAccount.d.ts +1 -1
- package/dist/browser/operationsInterfaces/billingAccount.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/billingAccount.js +2 -7
- package/dist/browser/operationsInterfaces/billingAccount.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +2 -3
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +6 -10
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js +2 -7
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/{commonjs/operationsInterfaces/subscriptionOperations.d.ts → browser/operationsInterfaces/subscription.d.ts} +6 -6
- package/dist/browser/operationsInterfaces/subscription.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/subscription.js +4 -0
- package/dist/browser/operationsInterfaces/subscription.js.map +1 -0
- package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts +12 -0
- package/dist/browser/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/subscriptionOperation.js +4 -0
- package/dist/browser/operationsInterfaces/subscriptionOperation.js.map +1 -0
- package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
- package/dist/browser/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/subscriptionPolicy.js +2 -7
- package/dist/browser/operationsInterfaces/subscriptionPolicy.js.map +1 -1
- package/dist/browser/pagingHelper.d.ts +4 -4
- package/dist/browser/pagingHelper.d.ts.map +1 -1
- package/dist/browser/pagingHelper.js +6 -11
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/subscriptionClient.d.ts +8 -6
- package/dist/browser/subscriptionClient.d.ts.map +1 -1
- package/dist/browser/subscriptionClient.js +46 -25
- package/dist/browser/subscriptionClient.js.map +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -7
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts +7 -12
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +19 -33
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +20 -189
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -7
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +3 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +310 -569
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +3 -3
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +49 -55
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/alias.d.ts +5 -5
- package/dist/commonjs/operations/alias.d.ts.map +1 -1
- package/dist/commonjs/operations/alias.js +37 -38
- package/dist/commonjs/operations/alias.js.map +1 -1
- package/dist/commonjs/operations/billingAccount.d.ts +3 -3
- package/dist/commonjs/operations/billingAccount.d.ts.map +1 -1
- package/dist/commonjs/operations/billingAccount.js +7 -12
- package/dist/commonjs/operations/billingAccount.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +2 -3
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +6 -10
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/operations.d.ts +4 -4
- package/dist/commonjs/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/operations/operations.js +14 -20
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/{browser/operations/subscriptionOperations.d.ts → commonjs/operations/subscription.d.ts} +9 -9
- package/dist/commonjs/operations/subscription.d.ts.map +1 -0
- package/dist/commonjs/operations/{subscriptionOperations.js → subscription.js} +49 -50
- package/dist/commonjs/operations/subscription.js.map +1 -0
- package/dist/commonjs/operations/subscriptionOperation.d.ts +20 -0
- package/dist/commonjs/operations/subscriptionOperation.d.ts.map +1 -0
- package/dist/commonjs/operations/subscriptionOperation.js +52 -0
- package/dist/commonjs/operations/subscriptionOperation.js.map +1 -0
- package/dist/commonjs/operations/subscriptionPolicy.d.ts +4 -4
- package/dist/commonjs/operations/subscriptionPolicy.d.ts.map +1 -1
- package/dist/commonjs/operations/subscriptionPolicy.js +24 -30
- package/dist/commonjs/operations/subscriptionPolicy.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/alias.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/alias.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/alias.js +2 -7
- package/dist/commonjs/operationsInterfaces/alias.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/billingAccount.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/billingAccount.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/billingAccount.js +2 -7
- package/dist/commonjs/operationsInterfaces/billingAccount.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -3
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +6 -10
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js +2 -7
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/{esm/operationsInterfaces/subscriptionOperations.d.ts → commonjs/operationsInterfaces/subscription.d.ts} +6 -6
- package/dist/commonjs/operationsInterfaces/subscription.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/subscription.js +5 -0
- package/dist/commonjs/operationsInterfaces/subscription.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.js +5 -0
- package/dist/commonjs/operationsInterfaces/subscriptionOperation.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.js +2 -7
- package/dist/commonjs/operationsInterfaces/subscriptionPolicy.js.map +1 -1
- package/dist/commonjs/pagingHelper.d.ts +4 -4
- package/dist/commonjs/pagingHelper.d.ts.map +1 -1
- package/dist/commonjs/pagingHelper.js +6 -11
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/subscriptionClient.d.ts +8 -6
- package/dist/commonjs/subscriptionClient.d.ts.map +1 -1
- package/dist/commonjs/subscriptionClient.js +45 -24
- package/dist/commonjs/subscriptionClient.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lroImpl.d.ts +7 -12
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +18 -31
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +20 -189
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -7
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +3 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +309 -568
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +3 -3
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +49 -55
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/alias.d.ts +5 -5
- package/dist/esm/operations/alias.d.ts.map +1 -1
- package/dist/esm/operations/alias.js +39 -40
- package/dist/esm/operations/alias.js.map +1 -1
- package/dist/esm/operations/billingAccount.d.ts +3 -3
- package/dist/esm/operations/billingAccount.d.ts.map +1 -1
- package/dist/esm/operations/billingAccount.js +7 -12
- package/dist/esm/operations/billingAccount.js.map +1 -1
- package/dist/esm/operations/index.d.ts +2 -3
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +6 -10
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/operations.d.ts +4 -4
- package/dist/esm/operations/operations.d.ts.map +1 -1
- package/dist/esm/operations/operations.js +14 -20
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/{commonjs/operations/subscriptionOperations.d.ts → esm/operations/subscription.d.ts} +9 -9
- package/dist/esm/operations/subscription.d.ts.map +1 -0
- package/dist/{react-native/operations/subscriptionOperations.js → esm/operations/subscription.js} +49 -50
- package/dist/esm/operations/subscription.js.map +1 -0
- package/dist/esm/operations/subscriptionOperation.d.ts +20 -0
- package/dist/esm/operations/subscriptionOperation.d.ts.map +1 -0
- package/dist/esm/operations/subscriptionOperation.js +47 -0
- package/dist/esm/operations/subscriptionOperation.js.map +1 -0
- package/dist/esm/operations/subscriptionPolicy.d.ts +4 -4
- package/dist/esm/operations/subscriptionPolicy.d.ts.map +1 -1
- package/dist/esm/operations/subscriptionPolicy.js +24 -30
- package/dist/esm/operations/subscriptionPolicy.js.map +1 -1
- package/dist/esm/operationsInterfaces/alias.d.ts +3 -3
- package/dist/esm/operationsInterfaces/alias.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/alias.js +2 -7
- package/dist/esm/operationsInterfaces/alias.js.map +1 -1
- package/dist/esm/operationsInterfaces/billingAccount.d.ts +1 -1
- package/dist/esm/operationsInterfaces/billingAccount.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/billingAccount.js +2 -7
- package/dist/esm/operationsInterfaces/billingAccount.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +2 -3
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +6 -10
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js +2 -7
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/{react-native/operationsInterfaces/subscriptionOperations.d.ts → esm/operationsInterfaces/subscription.d.ts} +6 -6
- package/dist/esm/operationsInterfaces/subscription.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/subscription.js +4 -0
- package/dist/esm/operationsInterfaces/subscription.js.map +1 -0
- package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts +12 -0
- package/dist/esm/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/subscriptionOperation.js +4 -0
- package/dist/esm/operationsInterfaces/subscriptionOperation.js.map +1 -0
- package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
- package/dist/esm/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/subscriptionPolicy.js +2 -7
- package/dist/esm/operationsInterfaces/subscriptionPolicy.js.map +1 -1
- package/dist/esm/pagingHelper.d.ts +4 -4
- package/dist/esm/pagingHelper.d.ts.map +1 -1
- package/dist/esm/pagingHelper.js +6 -11
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/subscriptionClient.d.ts +8 -6
- package/dist/esm/subscriptionClient.d.ts.map +1 -1
- package/dist/esm/subscriptionClient.js +46 -25
- package/dist/esm/subscriptionClient.js.map +1 -1
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +4 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts +7 -12
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +18 -31
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +20 -189
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +2 -7
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +3 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +309 -568
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +3 -3
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +49 -55
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/alias.d.ts +5 -5
- package/dist/react-native/operations/alias.d.ts.map +1 -1
- package/dist/react-native/operations/alias.js +39 -40
- package/dist/react-native/operations/alias.js.map +1 -1
- package/dist/react-native/operations/billingAccount.d.ts +3 -3
- package/dist/react-native/operations/billingAccount.d.ts.map +1 -1
- package/dist/react-native/operations/billingAccount.js +7 -12
- package/dist/react-native/operations/billingAccount.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +2 -3
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +6 -10
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/operations.d.ts +4 -4
- package/dist/react-native/operations/operations.d.ts.map +1 -1
- package/dist/react-native/operations/operations.js +14 -20
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/{subscriptionOperations.d.ts → subscription.d.ts} +9 -9
- package/dist/react-native/operations/subscription.d.ts.map +1 -0
- package/dist/{browser/operations/subscriptionOperations.js → react-native/operations/subscription.js} +49 -50
- package/dist/react-native/operations/subscription.js.map +1 -0
- package/dist/react-native/operations/subscriptionOperation.d.ts +20 -0
- package/dist/react-native/operations/subscriptionOperation.d.ts.map +1 -0
- package/dist/react-native/operations/subscriptionOperation.js +47 -0
- package/dist/react-native/operations/subscriptionOperation.js.map +1 -0
- package/dist/react-native/operations/subscriptionPolicy.d.ts +4 -4
- package/dist/react-native/operations/subscriptionPolicy.d.ts.map +1 -1
- package/dist/react-native/operations/subscriptionPolicy.js +24 -30
- package/dist/react-native/operations/subscriptionPolicy.js.map +1 -1
- package/dist/react-native/operationsInterfaces/alias.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/alias.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/alias.js +2 -7
- package/dist/react-native/operationsInterfaces/alias.js.map +1 -1
- package/dist/react-native/operationsInterfaces/billingAccount.d.ts +1 -1
- package/dist/react-native/operationsInterfaces/billingAccount.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/billingAccount.js +2 -7
- package/dist/react-native/operationsInterfaces/billingAccount.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -3
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +6 -10
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js +2 -7
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/{browser/operationsInterfaces/subscriptionOperations.d.ts → react-native/operationsInterfaces/subscription.d.ts} +6 -6
- package/dist/react-native/operationsInterfaces/subscription.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/subscription.js +4 -0
- package/dist/react-native/operationsInterfaces/subscription.js.map +1 -0
- package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/subscriptionOperation.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/subscriptionOperation.js +4 -0
- package/dist/react-native/operationsInterfaces/subscriptionOperation.js.map +1 -0
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.js +2 -7
- package/dist/react-native/operationsInterfaces/subscriptionPolicy.js.map +1 -1
- package/dist/react-native/pagingHelper.d.ts +4 -4
- package/dist/react-native/pagingHelper.d.ts.map +1 -1
- package/dist/react-native/pagingHelper.js +6 -11
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/subscriptionClient.d.ts +8 -6
- package/dist/react-native/subscriptionClient.d.ts.map +1 -1
- package/dist/react-native/subscriptionClient.js +46 -25
- package/dist/react-native/subscriptionClient.js.map +1 -1
- package/package.json +44 -44
- package/CHANGELOG.md +0 -97
- package/dist/browser/operations/subscriptionOperations.d.ts.map +0 -1
- package/dist/browser/operations/subscriptionOperations.js.map +0 -1
- package/dist/browser/operations/subscriptions.d.ts +0 -54
- package/dist/browser/operations/subscriptions.d.ts.map +0 -1
- package/dist/browser/operations/subscriptions.js +0 -187
- 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 -111
- package/dist/browser/operations/tenants.js.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptionOperations.js +0 -9
- package/dist/browser/operationsInterfaces/subscriptionOperations.js.map +0 -1
- package/dist/browser/operationsInterfaces/subscriptions.d.ts +0 -24
- 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/commonjs/operations/subscriptionOperations.d.ts.map +0 -1
- package/dist/commonjs/operations/subscriptionOperations.js.map +0 -1
- package/dist/commonjs/operations/subscriptions.d.ts +0 -54
- package/dist/commonjs/operations/subscriptions.d.ts.map +0 -1
- package/dist/commonjs/operations/subscriptions.js +0 -192
- package/dist/commonjs/operations/subscriptions.js.map +0 -1
- 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 -116
- package/dist/commonjs/operations/tenants.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptionOperations.js +0 -10
- package/dist/commonjs/operationsInterfaces/subscriptionOperations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptions.d.ts +0 -24
- package/dist/commonjs/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/subscriptions.js +0 -10
- package/dist/commonjs/operationsInterfaces/subscriptions.js.map +0 -1
- 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 +0 -10
- package/dist/commonjs/operationsInterfaces/tenants.js.map +0 -1
- package/dist/esm/operations/subscriptionOperations.d.ts.map +0 -1
- package/dist/esm/operations/subscriptionOperations.js.map +0 -1
- package/dist/esm/operations/subscriptions.d.ts +0 -54
- package/dist/esm/operations/subscriptions.d.ts.map +0 -1
- package/dist/esm/operations/subscriptions.js +0 -187
- package/dist/esm/operations/subscriptions.js.map +0 -1
- 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 -111
- package/dist/esm/operations/tenants.js.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptionOperations.js +0 -9
- package/dist/esm/operationsInterfaces/subscriptionOperations.js.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptions.d.ts +0 -24
- package/dist/esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/subscriptions.js +0 -9
- package/dist/esm/operationsInterfaces/subscriptions.js.map +0 -1
- 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 -9
- package/dist/esm/operationsInterfaces/tenants.js.map +0 -1
- package/dist/react-native/operations/subscriptionOperations.d.ts.map +0 -1
- package/dist/react-native/operations/subscriptionOperations.js.map +0 -1
- package/dist/react-native/operations/subscriptions.d.ts +0 -54
- package/dist/react-native/operations/subscriptions.d.ts.map +0 -1
- package/dist/react-native/operations/subscriptions.js +0 -187
- 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 -111
- package/dist/react-native/operations/tenants.js.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionOperations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptionOperations.js +0 -9
- package/dist/react-native/operationsInterfaces/subscriptionOperations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/subscriptions.d.ts +0 -24
- 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/review/arm-subscriptions-node.api.md +0 -571
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SubscriptionsImpl = void 0;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
-
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
-
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
-
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
-
/// <reference lib="esnext.asynciterable" />
|
|
17
|
-
/** Class containing Subscriptions operations. */
|
|
18
|
-
class SubscriptionsImpl {
|
|
19
|
-
client;
|
|
20
|
-
/**
|
|
21
|
-
* Initialize a new instance of the class Subscriptions class.
|
|
22
|
-
* @param client Reference to the service client
|
|
23
|
-
*/
|
|
24
|
-
constructor(client) {
|
|
25
|
-
this.client = client;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
29
|
-
* resource provider may support a subset of this list.
|
|
30
|
-
* @param subscriptionId The ID of the target subscription.
|
|
31
|
-
* @param options The options parameters.
|
|
32
|
-
*/
|
|
33
|
-
listLocations(subscriptionId, options) {
|
|
34
|
-
const iter = this.listLocationsPagingAll(subscriptionId, options);
|
|
35
|
-
return {
|
|
36
|
-
next() {
|
|
37
|
-
return iter.next();
|
|
38
|
-
},
|
|
39
|
-
[Symbol.asyncIterator]() {
|
|
40
|
-
return this;
|
|
41
|
-
},
|
|
42
|
-
byPage: (settings) => {
|
|
43
|
-
if (settings?.maxPageSize) {
|
|
44
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
|
-
}
|
|
46
|
-
return this.listLocationsPagingPage(subscriptionId, options, settings);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
async *listLocationsPagingPage(subscriptionId, options, _settings) {
|
|
51
|
-
let result;
|
|
52
|
-
result = await this._listLocations(subscriptionId, options);
|
|
53
|
-
yield result.value || [];
|
|
54
|
-
}
|
|
55
|
-
async *listLocationsPagingAll(subscriptionId, options) {
|
|
56
|
-
for await (const page of this.listLocationsPagingPage(subscriptionId, options)) {
|
|
57
|
-
yield* page;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Gets all subscriptions for a tenant.
|
|
62
|
-
* @param options The options parameters.
|
|
63
|
-
*/
|
|
64
|
-
list(options) {
|
|
65
|
-
const iter = this.listPagingAll(options);
|
|
66
|
-
return {
|
|
67
|
-
next() {
|
|
68
|
-
return iter.next();
|
|
69
|
-
},
|
|
70
|
-
[Symbol.asyncIterator]() {
|
|
71
|
-
return this;
|
|
72
|
-
},
|
|
73
|
-
byPage: (settings) => {
|
|
74
|
-
if (settings?.maxPageSize) {
|
|
75
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
76
|
-
}
|
|
77
|
-
return this.listPagingPage(options, settings);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
async *listPagingPage(options, settings) {
|
|
82
|
-
let result;
|
|
83
|
-
let continuationToken = settings?.continuationToken;
|
|
84
|
-
if (!continuationToken) {
|
|
85
|
-
result = await this._list(options);
|
|
86
|
-
let page = result.value || [];
|
|
87
|
-
continuationToken = result.nextLink;
|
|
88
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
89
|
-
yield page;
|
|
90
|
-
}
|
|
91
|
-
while (continuationToken) {
|
|
92
|
-
result = await this._listNext(continuationToken, options);
|
|
93
|
-
continuationToken = result.nextLink;
|
|
94
|
-
let page = result.value || [];
|
|
95
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
96
|
-
yield page;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
async *listPagingAll(options) {
|
|
100
|
-
for await (const page of this.listPagingPage(options)) {
|
|
101
|
-
yield* page;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
106
|
-
* resource provider may support a subset of this list.
|
|
107
|
-
* @param subscriptionId The ID of the target subscription.
|
|
108
|
-
* @param options The options parameters.
|
|
109
|
-
*/
|
|
110
|
-
_listLocations(subscriptionId, options) {
|
|
111
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, listLocationsOperationSpec);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Gets details about a specified subscription.
|
|
115
|
-
* @param subscriptionId The ID of the target subscription.
|
|
116
|
-
* @param options The options parameters.
|
|
117
|
-
*/
|
|
118
|
-
get(subscriptionId, options) {
|
|
119
|
-
return this.client.sendOperationRequest({ subscriptionId, options }, getOperationSpec);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Gets all subscriptions for a tenant.
|
|
123
|
-
* @param options The options parameters.
|
|
124
|
-
*/
|
|
125
|
-
_list(options) {
|
|
126
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* ListNext
|
|
130
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
131
|
-
* @param options The options parameters.
|
|
132
|
-
*/
|
|
133
|
-
_listNext(nextLink, options) {
|
|
134
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exports.SubscriptionsImpl = SubscriptionsImpl;
|
|
138
|
-
// Operation Specifications
|
|
139
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
140
|
-
const listLocationsOperationSpec = {
|
|
141
|
-
path: "/subscriptions/{subscriptionId}/locations",
|
|
142
|
-
httpMethod: "GET",
|
|
143
|
-
responses: {
|
|
144
|
-
200: {
|
|
145
|
-
bodyMapper: Mappers.LocationListResult
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
queryParameters: [Parameters.apiVersion],
|
|
149
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
150
|
-
headerParameters: [Parameters.accept],
|
|
151
|
-
serializer
|
|
152
|
-
};
|
|
153
|
-
const getOperationSpec = {
|
|
154
|
-
path: "/subscriptions/{subscriptionId}",
|
|
155
|
-
httpMethod: "GET",
|
|
156
|
-
responses: {
|
|
157
|
-
200: {
|
|
158
|
-
bodyMapper: Mappers.Subscription
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
queryParameters: [Parameters.apiVersion],
|
|
162
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
163
|
-
headerParameters: [Parameters.accept],
|
|
164
|
-
serializer
|
|
165
|
-
};
|
|
166
|
-
const listOperationSpec = {
|
|
167
|
-
path: "/subscriptions",
|
|
168
|
-
httpMethod: "GET",
|
|
169
|
-
responses: {
|
|
170
|
-
200: {
|
|
171
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
queryParameters: [Parameters.apiVersion],
|
|
175
|
-
urlParameters: [Parameters.$host],
|
|
176
|
-
headerParameters: [Parameters.accept],
|
|
177
|
-
serializer
|
|
178
|
-
};
|
|
179
|
-
const listNextOperationSpec = {
|
|
180
|
-
path: "{nextLink}",
|
|
181
|
-
httpMethod: "GET",
|
|
182
|
-
responses: {
|
|
183
|
-
200: {
|
|
184
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
queryParameters: [Parameters.apiVersion],
|
|
188
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
189
|
-
headerParameters: [Parameters.accept],
|
|
190
|
-
serializer
|
|
191
|
-
};
|
|
192
|
-
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,cAAsB,EACtB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAClE,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,i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AU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,sBAAsB;SAC3C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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 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 * 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 },\n queryParameters: [Parameters.apiVersion],\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 },\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 },\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.SubscriptionListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\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
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.TenantsImpl = void 0;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
-
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
-
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
-
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
-
/// <reference lib="esnext.asynciterable" />
|
|
17
|
-
/** Class containing Tenants operations. */
|
|
18
|
-
class TenantsImpl {
|
|
19
|
-
client;
|
|
20
|
-
/**
|
|
21
|
-
* Initialize a new instance of the class Tenants class.
|
|
22
|
-
* @param client Reference to the service client
|
|
23
|
-
*/
|
|
24
|
-
constructor(client) {
|
|
25
|
-
this.client = client;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Gets the tenants for your account.
|
|
29
|
-
* @param options The options parameters.
|
|
30
|
-
*/
|
|
31
|
-
list(options) {
|
|
32
|
-
const iter = this.listPagingAll(options);
|
|
33
|
-
return {
|
|
34
|
-
next() {
|
|
35
|
-
return iter.next();
|
|
36
|
-
},
|
|
37
|
-
[Symbol.asyncIterator]() {
|
|
38
|
-
return this;
|
|
39
|
-
},
|
|
40
|
-
byPage: (settings) => {
|
|
41
|
-
if (settings?.maxPageSize) {
|
|
42
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
-
}
|
|
44
|
-
return this.listPagingPage(options, settings);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
async *listPagingPage(options, settings) {
|
|
49
|
-
let result;
|
|
50
|
-
let continuationToken = settings?.continuationToken;
|
|
51
|
-
if (!continuationToken) {
|
|
52
|
-
result = await this._list(options);
|
|
53
|
-
let page = result.value || [];
|
|
54
|
-
continuationToken = result.nextLink;
|
|
55
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
-
yield page;
|
|
57
|
-
}
|
|
58
|
-
while (continuationToken) {
|
|
59
|
-
result = await this._listNext(continuationToken, options);
|
|
60
|
-
continuationToken = result.nextLink;
|
|
61
|
-
let page = result.value || [];
|
|
62
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
-
yield page;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
async *listPagingAll(options) {
|
|
67
|
-
for await (const page of this.listPagingPage(options)) {
|
|
68
|
-
yield* page;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Gets the tenants for your account.
|
|
73
|
-
* @param options The options parameters.
|
|
74
|
-
*/
|
|
75
|
-
_list(options) {
|
|
76
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* ListNext
|
|
80
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
81
|
-
* @param options The options parameters.
|
|
82
|
-
*/
|
|
83
|
-
_listNext(nextLink, options) {
|
|
84
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.TenantsImpl = TenantsImpl;
|
|
88
|
-
// Operation Specifications
|
|
89
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
90
|
-
const listOperationSpec = {
|
|
91
|
-
path: "/tenants",
|
|
92
|
-
httpMethod: "GET",
|
|
93
|
-
responses: {
|
|
94
|
-
200: {
|
|
95
|
-
bodyMapper: Mappers.TenantListResult
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
queryParameters: [Parameters.apiVersion],
|
|
99
|
-
urlParameters: [Parameters.$host],
|
|
100
|
-
headerParameters: [Parameters.accept],
|
|
101
|
-
serializer
|
|
102
|
-
};
|
|
103
|
-
const listNextOperationSpec = {
|
|
104
|
-
path: "{nextLink}",
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
responses: {
|
|
107
|
-
200: {
|
|
108
|
-
bodyMapper: Mappers.TenantListResult
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
queryParameters: [Parameters.apiVersion],
|
|
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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,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,CAC3B,OAAmC,EACnC,QAAuB;QAEvB,IAAI,MAA2B,CAA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B;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;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;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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 },\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 },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAC1B,gBAAgB,EAChB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,EACtB,yCAAyC,EACzC,mCAAmC,EACnC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,oBAAoB,CAAC;AAE5B,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,oBAAoB,CAClB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,mCAAmC,CAAC,EACvD,mCAAmC,CACpC,CACF,CAAC;IACF;;;;;OAKG;IACH,2BAA2B,CACzB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;OAIG;IACH,qBAAqB,CACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;CACvD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=subscriptionOperations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperations.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 { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\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/** Interface representing a SubscriptionOperations. */\nexport interface SubscriptionOperations {\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 /**\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 /**\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 /**\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 beginAcceptOwnership(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<SubscriptionAcceptOwnershipResponse>,\n SubscriptionAcceptOwnershipResponse\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 beginAcceptOwnershipAndWait(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams\n ): Promise<SubscriptionAcceptOwnershipResponse>;\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}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Location, SubscriptionsListLocationsOptionalParams, Subscription, SubscriptionsListOptionalParams, SubscriptionsGetOptionalParams, SubscriptionsGetResponse } 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
|
-
//# 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,EACzB,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;CACtC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# 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} 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"]}
|
|
@@ -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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAC1B,gBAAgB,EAChB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,EACtB,yCAAyC,EACzC,mCAAmC,EACnC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,oBAAoB,CAAC;AAE5B,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;OAKG;IACG,oBAAoB,CACxB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,mCAAmC,CAAC,EACvD,mCAAmC,CACpC,CACF;IAqDD;;;;;OAKG;IACG,2BAA2B,CAC/B,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAS/C;;;;OAIG;IACH,qBAAqB,CACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;CAMtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionOperations.js","sourceRoot":"","sources":["../../../src/operations/subscriptionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,O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B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { SubscriptionOperations } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\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 SubscriptionOperations operations. */\nexport class SubscriptionOperationsImpl implements SubscriptionOperations {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class SubscriptionOperations 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(\n { subscriptionId, options },\n cancelOperationSpec\n );\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(\n { subscriptionId, body, options },\n renameOperationSpec\n );\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(\n { subscriptionId, options },\n enableOperationSpec\n );\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 PollerLike<\n PollOperationState<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 sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | 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 = new LroImpl(\n sendOperation,\n { subscriptionId, body, options },\n acceptOwnershipOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: 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(\n subscriptionId,\n body,\n options\n );\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:\n \"/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.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst renameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/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.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst enableOperationSpec: coreClient.OperationSpec = {\n path:\n \"/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.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst acceptOwnershipOperationSpec: coreClient.OperationSpec = {\n path:\n \"/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.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst acceptOwnershipStatusOperationSpec: coreClient.OperationSpec = {\n path:\n \"/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.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Subscriptions } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
-
import { Location, SubscriptionsListLocationsOptionalParams, Subscription, SubscriptionsListOptionalParams, SubscriptionsGetOptionalParams, SubscriptionsGetResponse } from "../models/index.js";
|
|
5
|
-
/** Class containing Subscriptions operations. */
|
|
6
|
-
export declare class SubscriptionsImpl implements Subscriptions {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class Subscriptions class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: SubscriptionClient);
|
|
13
|
-
/**
|
|
14
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
15
|
-
* resource provider may support a subset of this list.
|
|
16
|
-
* @param subscriptionId The ID of the target subscription.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location>;
|
|
20
|
-
private listLocationsPagingPage;
|
|
21
|
-
private listLocationsPagingAll;
|
|
22
|
-
/**
|
|
23
|
-
* Gets all subscriptions for a tenant.
|
|
24
|
-
* @param options The options parameters.
|
|
25
|
-
*/
|
|
26
|
-
list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
|
|
27
|
-
private listPagingPage;
|
|
28
|
-
private listPagingAll;
|
|
29
|
-
/**
|
|
30
|
-
* This operation provides all the locations that are available for resource providers; however, each
|
|
31
|
-
* resource provider may support a subset of this list.
|
|
32
|
-
* @param subscriptionId The ID of the target subscription.
|
|
33
|
-
* @param options The options parameters.
|
|
34
|
-
*/
|
|
35
|
-
private _listLocations;
|
|
36
|
-
/**
|
|
37
|
-
* Gets details about a specified subscription.
|
|
38
|
-
* @param subscriptionId The ID of the target subscription.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets all subscriptions for a tenant.
|
|
44
|
-
* @param options The options parameters.
|
|
45
|
-
*/
|
|
46
|
-
private _list;
|
|
47
|
-
/**
|
|
48
|
-
* ListNext
|
|
49
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
50
|
-
* @param options The options parameters.
|
|
51
|
-
*/
|
|
52
|
-
private _listNext;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,wCAAwC,EAExC,YAAY,EAEZ,+BAA+B,EAE/B,8BAA8B,EAC9B,wBAAwB,EAEzB,MAAM,oBAAoB,CAAC;AAG5B,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;;OAKG;IACI,aAAa,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,QAAQ,CAAC;YAkBxB,uBAAuB;YAUvB,sBAAsB;IAYrC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,YAAY,CAAC;YAkB5B,cAAc;YAsBd,aAAa;IAQ5B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAUtB;;;;OAIG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|