@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
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
const pageMap = new WeakMap();
|
|
9
4
|
/**
|
|
10
|
-
* Given
|
|
11
|
-
* continuation token that can be used to begin paging from
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
7
|
* that point later.
|
|
13
|
-
* @param page
|
|
14
|
-
* @returns The continuation token that can be passed into byPage().
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
10
|
*/
|
|
16
11
|
export function getContinuationToken(page) {
|
|
17
12
|
if (typeof page !== "object" || page === null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["// 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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
|
-
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import {
|
|
4
|
-
import { SubscriptionClientOptionalParams } from "./models/index.js";
|
|
2
|
+
import type * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import type { Subscription, SubscriptionOperation, Operations, Alias, SubscriptionPolicy, BillingAccount } from "./operationsInterfaces/index.js";
|
|
4
|
+
import type { SubscriptionClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class SubscriptionClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
7
8
|
/**
|
|
8
9
|
* Initializes a new instance of the SubscriptionClient class.
|
|
9
10
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10
11
|
* @param options The parameter options
|
|
11
12
|
*/
|
|
12
13
|
constructor(credentials: coreAuth.TokenCredential, options?: SubscriptionClientOptionalParams);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
15
|
+
private addCustomApiVersionPolicy;
|
|
16
|
+
subscription: Subscription;
|
|
17
|
+
subscriptionOperation: SubscriptionOperation;
|
|
16
18
|
operations: Operations;
|
|
17
19
|
alias: Alias;
|
|
18
20
|
subscriptionPolicy: SubscriptionPolicy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClient.d.ts","sourceRoot":"","sources":["../../src/subscriptionClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscriptionClient.d.ts","sourceRoot":"","sources":["../../src/subscriptionClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AASlD,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACrB,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAE1E,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,WAAW,EAAE,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,EAAE,gCAAgC;IAwE7F,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,YAAY,EAAE,YAAY,CAAC;IAC3B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;CAChC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4
|
+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
5
|
import * as coreClient from "@azure/core-client";
|
|
9
6
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
-
import {
|
|
7
|
+
import { SubscriptionImpl, SubscriptionOperationImpl, OperationsImpl, AliasImpl, SubscriptionPolicyImpl, BillingAccountImpl, } from "./operations/index.js";
|
|
11
8
|
export class SubscriptionClient extends coreClient.ServiceClient {
|
|
12
9
|
$host;
|
|
10
|
+
apiVersion;
|
|
13
11
|
/**
|
|
14
12
|
* Initializes a new instance of the SubscriptionClient class.
|
|
15
13
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -25,9 +23,9 @@ export class SubscriptionClient extends coreClient.ServiceClient {
|
|
|
25
23
|
}
|
|
26
24
|
const defaults = {
|
|
27
25
|
requestContentType: "application/json; charset=utf-8",
|
|
28
|
-
credential: credentials
|
|
26
|
+
credential: credentials,
|
|
29
27
|
};
|
|
30
|
-
const packageDetails = `azsdk-js-arm-subscriptions/
|
|
28
|
+
const packageDetails = `azsdk-js-arm-subscriptions/6.0.0`;
|
|
31
29
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
32
30
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
33
31
|
: `${packageDetails}`;
|
|
@@ -35,46 +33,69 @@ export class SubscriptionClient extends coreClient.ServiceClient {
|
|
|
35
33
|
...defaults,
|
|
36
34
|
...options,
|
|
37
35
|
userAgentOptions: {
|
|
38
|
-
userAgentPrefix
|
|
36
|
+
userAgentPrefix,
|
|
39
37
|
},
|
|
40
|
-
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
38
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
41
39
|
};
|
|
42
40
|
super(optionsWithDefaults);
|
|
43
41
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
42
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
43
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
44
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
45
|
}
|
|
49
46
|
if (!options ||
|
|
50
47
|
!options.pipeline ||
|
|
51
48
|
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
49
|
!bearerTokenAuthenticationPolicyFound) {
|
|
53
50
|
this.pipeline.removePolicy({
|
|
54
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
51
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
55
52
|
});
|
|
56
53
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
54
|
credential: credentials,
|
|
58
|
-
scopes: optionsWithDefaults.credentialScopes ??
|
|
59
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
55
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
60
56
|
challengeCallbacks: {
|
|
61
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
62
|
-
}
|
|
57
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
58
|
+
},
|
|
63
59
|
}));
|
|
64
60
|
}
|
|
65
61
|
// Assigning values to Constant parameters
|
|
66
62
|
this.$host = options.$host || "https://management.azure.com";
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
63
|
+
this.apiVersion = options.apiVersion || "2021-10-01";
|
|
64
|
+
this.subscription = new SubscriptionImpl(this);
|
|
65
|
+
this.subscriptionOperation = new SubscriptionOperationImpl(this);
|
|
70
66
|
this.operations = new OperationsImpl(this);
|
|
71
67
|
this.alias = new AliasImpl(this);
|
|
72
68
|
this.subscriptionPolicy = new SubscriptionPolicyImpl(this);
|
|
73
69
|
this.billingAccount = new BillingAccountImpl(this);
|
|
70
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
71
|
+
}
|
|
72
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
73
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
74
|
+
if (!apiVersion) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const apiVersionPolicy = {
|
|
78
|
+
name: "CustomApiVersionPolicy",
|
|
79
|
+
async sendRequest(request, next) {
|
|
80
|
+
const param = request.url.split("?");
|
|
81
|
+
if (param.length > 1) {
|
|
82
|
+
const newParams = param[1].split("&").map((item) => {
|
|
83
|
+
if (item.indexOf("api-version") > -1) {
|
|
84
|
+
return "api-version=" + apiVersion;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
return item;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
91
|
+
}
|
|
92
|
+
return next(request);
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
74
96
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
subscriptionOperations;
|
|
97
|
+
subscription;
|
|
98
|
+
subscriptionOperation;
|
|
78
99
|
operations;
|
|
79
100
|
alias;
|
|
80
101
|
subscriptionPolicy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClient.js","sourceRoot":"","sources":["../../src/subscriptionClient.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"subscriptionClient.js","sourceRoot":"","sources":["../../src/subscriptionClient.ts"],"names":[],"mappings":"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","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n SubscriptionImpl,\n SubscriptionOperationImpl,\n OperationsImpl,\n AliasImpl,\n SubscriptionPolicyImpl,\n BillingAccountImpl,\n} from \"./operations/index.js\";\nimport type {\n Subscription,\n SubscriptionOperation,\n Operations,\n Alias,\n SubscriptionPolicy,\n BillingAccount,\n} from \"./operationsInterfaces/index.js\";\nimport type { SubscriptionClientOptionalParams } from \"./models/index.js\";\n\nexport class SubscriptionClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SubscriptionClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(credentials: coreAuth.TokenCredential, options?: SubscriptionClientOptionalParams) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SubscriptionClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-subscriptions/6.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-10-01\";\n this.subscription = new SubscriptionImpl(this);\n this.subscriptionOperation = new SubscriptionOperationImpl(this);\n this.operations = new OperationsImpl(this);\n this.alias = new AliasImpl(this);\n this.subscriptionPolicy = new SubscriptionPolicyImpl(this);\n this.billingAccount = new BillingAccountImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n subscription: Subscription;\n subscriptionOperation: SubscriptionOperation;\n operations: Operations;\n alias: Alias;\n subscriptionPolicy: SubscriptionPolicy;\n billingAccount: BillingAccount;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4
|
+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
5
|
/// <reference lib="esnext.asynciterable" />
|
|
9
6
|
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
7
|
export * from "./models/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { SubscriptionClient } from \"./subscriptionClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
1
|
+
import type { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.requestMethod = requestMethod;
|
|
20
|
-
}
|
|
21
|
-
async sendInitialRequest() {
|
|
22
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
23
|
-
}
|
|
24
|
-
async sendPollRequest(path) {
|
|
25
|
-
const { requestBody, ...restSpec } = this.spec;
|
|
26
|
-
return this.sendOperationFn(this.args, {
|
|
27
|
-
...restSpec,
|
|
28
|
-
path,
|
|
29
|
-
httpMethod: "GET"
|
|
30
|
-
});
|
|
31
|
-
}
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function createLroSpec(inputs) {
|
|
4
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
5
|
+
return {
|
|
6
|
+
requestMethod: spec.httpMethod,
|
|
7
|
+
requestPath: spec.path,
|
|
8
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
9
|
+
sendPollRequest: (path, options) => {
|
|
10
|
+
const { requestBody, ...restSpec } = spec;
|
|
11
|
+
return sendOperationFn(args, {
|
|
12
|
+
...restSpec,
|
|
13
|
+
httpMethod: "GET",
|
|
14
|
+
path,
|
|
15
|
+
abortSignal: options?.abortSignal,
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
};
|
|
32
19
|
}
|
|
33
20
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -1,158 +1,4 @@
|
|
|
1
|
-
import * as coreClient from "@azure/core-client";
|
|
2
|
-
/** Location list operation response. */
|
|
3
|
-
export interface LocationListResult {
|
|
4
|
-
/** An array of locations. */
|
|
5
|
-
value?: Location[];
|
|
6
|
-
}
|
|
7
|
-
/** Location information. */
|
|
8
|
-
export interface Location {
|
|
9
|
-
/**
|
|
10
|
-
* The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
|
|
11
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
12
|
-
*/
|
|
13
|
-
readonly id?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The subscription ID.
|
|
16
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
17
|
-
*/
|
|
18
|
-
readonly subscriptionId?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The location name.
|
|
21
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
22
|
-
*/
|
|
23
|
-
readonly name?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The display name of the location.
|
|
26
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
27
|
-
*/
|
|
28
|
-
readonly displayName?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The latitude of the location.
|
|
31
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
32
|
-
*/
|
|
33
|
-
readonly latitude?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The longitude of the location.
|
|
36
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
37
|
-
*/
|
|
38
|
-
readonly longitude?: string;
|
|
39
|
-
}
|
|
40
|
-
/** Subscription information. */
|
|
41
|
-
export interface Subscription {
|
|
42
|
-
/**
|
|
43
|
-
* The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
|
|
44
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
45
|
-
*/
|
|
46
|
-
readonly id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The subscription ID.
|
|
49
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
50
|
-
*/
|
|
51
|
-
readonly subscriptionId?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The subscription display name.
|
|
54
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
55
|
-
*/
|
|
56
|
-
readonly displayName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
|
|
59
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
60
|
-
*/
|
|
61
|
-
readonly state?: SubscriptionState;
|
|
62
|
-
/**
|
|
63
|
-
* The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
|
|
64
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
65
|
-
*/
|
|
66
|
-
readonly tenantId?: string;
|
|
67
|
-
/** Tags for the subscription */
|
|
68
|
-
tags?: {
|
|
69
|
-
[propertyName: string]: string;
|
|
70
|
-
};
|
|
71
|
-
/** The subscription policies. */
|
|
72
|
-
subscriptionPolicies?: SubscriptionPolicies;
|
|
73
|
-
/** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */
|
|
74
|
-
authorizationSource?: string;
|
|
75
|
-
}
|
|
76
|
-
/** Subscription policies. */
|
|
77
|
-
export interface SubscriptionPolicies {
|
|
78
|
-
/**
|
|
79
|
-
* The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
|
|
80
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
81
|
-
*/
|
|
82
|
-
readonly locationPlacementId?: string;
|
|
83
|
-
/**
|
|
84
|
-
* The subscription quota ID.
|
|
85
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
86
|
-
*/
|
|
87
|
-
readonly quotaId?: string;
|
|
88
|
-
/**
|
|
89
|
-
* The subscription spending limit.
|
|
90
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
91
|
-
*/
|
|
92
|
-
readonly spendingLimit?: SpendingLimit;
|
|
93
|
-
}
|
|
94
|
-
/** Subscription list operation response. */
|
|
95
|
-
export interface SubscriptionListResult {
|
|
96
|
-
/** An array of subscriptions. */
|
|
97
|
-
value?: Subscription[];
|
|
98
|
-
/** The URL to get the next set of results. */
|
|
99
|
-
nextLink?: string;
|
|
100
|
-
}
|
|
101
|
-
/** Tenant Ids information. */
|
|
102
|
-
export interface TenantListResult {
|
|
103
|
-
/** An array of tenants. */
|
|
104
|
-
value?: TenantIdDescription[];
|
|
105
|
-
/** The URL to use for getting the next set of results. */
|
|
106
|
-
nextLink: string;
|
|
107
|
-
}
|
|
108
|
-
/** Tenant Id information. */
|
|
109
|
-
export interface TenantIdDescription {
|
|
110
|
-
/**
|
|
111
|
-
* The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
|
|
112
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
113
|
-
*/
|
|
114
|
-
readonly id?: string;
|
|
115
|
-
/**
|
|
116
|
-
* The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
|
|
117
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
118
|
-
*/
|
|
119
|
-
readonly tenantId?: string;
|
|
120
|
-
/**
|
|
121
|
-
* The category of the tenant. Possible values are TenantCategoryHome,TenantCategoryProjectedBy,TenantCategoryManagedBy
|
|
122
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
123
|
-
*/
|
|
124
|
-
readonly tenantCategory?: string;
|
|
125
|
-
/**
|
|
126
|
-
* The country/region name of the address for the tenant.
|
|
127
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
128
|
-
*/
|
|
129
|
-
readonly country?: string;
|
|
130
|
-
/**
|
|
131
|
-
* The Country/region abbreviation for the tenant.
|
|
132
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
133
|
-
*/
|
|
134
|
-
readonly countryCode?: string;
|
|
135
|
-
/**
|
|
136
|
-
* The display name of the tenant.
|
|
137
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
138
|
-
*/
|
|
139
|
-
readonly displayName?: string;
|
|
140
|
-
/**
|
|
141
|
-
* The list of domains for the tenant.
|
|
142
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
143
|
-
*/
|
|
144
|
-
readonly domains?: string;
|
|
145
|
-
/**
|
|
146
|
-
* The default domain for the tenant.
|
|
147
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
148
|
-
*/
|
|
149
|
-
readonly defaultDomain?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The tenant type. Only available for Home tenant category.
|
|
152
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
153
|
-
*/
|
|
154
|
-
readonly tenantType?: string;
|
|
155
|
-
}
|
|
1
|
+
import type * as coreClient from "@azure/core-client";
|
|
156
2
|
/** The ID of the canceled subscription */
|
|
157
3
|
export interface CanceledSubscriptionId {
|
|
158
4
|
/**
|
|
@@ -198,6 +44,11 @@ export interface EnabledSubscriptionId {
|
|
|
198
44
|
*/
|
|
199
45
|
readonly subscriptionId?: string;
|
|
200
46
|
}
|
|
47
|
+
/** The created subscription object. */
|
|
48
|
+
export interface SubscriptionCreationResult {
|
|
49
|
+
/** The link to the new subscription. Use this link to check the status of subscription creation operation. */
|
|
50
|
+
subscriptionLink?: string;
|
|
51
|
+
}
|
|
201
52
|
/** Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results. */
|
|
202
53
|
export interface OperationListResult {
|
|
203
54
|
/** List of operations. */
|
|
@@ -513,6 +364,13 @@ export interface SubscriptionAcceptOwnershipHeaders {
|
|
|
513
364
|
/** The amount of delay to use while the status of the operation is checked. The value is expressed in seconds. */
|
|
514
365
|
retryAfter?: number;
|
|
515
366
|
}
|
|
367
|
+
/** Defines headers for SubscriptionOperation_get operation. */
|
|
368
|
+
export interface SubscriptionOperationGetHeaders {
|
|
369
|
+
/** The URL where the status of the asynchronous operation can be checked. */
|
|
370
|
+
location?: string;
|
|
371
|
+
/** The amount of delay to use while the status of the operation is checked. The value is expressed in seconds. */
|
|
372
|
+
retryAfter?: number;
|
|
373
|
+
}
|
|
516
374
|
/** Known values of {@link Workload} that the service accepts. */
|
|
517
375
|
export declare enum KnownWorkload {
|
|
518
376
|
/** Production */
|
|
@@ -608,40 +466,6 @@ export declare enum KnownProvisioning {
|
|
|
608
466
|
* **Succeeded**
|
|
609
467
|
*/
|
|
610
468
|
export type Provisioning = string;
|
|
611
|
-
/** Defines values for SubscriptionState. */
|
|
612
|
-
export type SubscriptionState = "Enabled" | "Warned" | "PastDue" | "Disabled" | "Deleted";
|
|
613
|
-
/** Defines values for SpendingLimit. */
|
|
614
|
-
export type SpendingLimit = "On" | "Off" | "CurrentPeriodOff";
|
|
615
|
-
/** Optional parameters. */
|
|
616
|
-
export interface SubscriptionsListLocationsOptionalParams extends coreClient.OperationOptions {
|
|
617
|
-
}
|
|
618
|
-
/** Contains response data for the listLocations operation. */
|
|
619
|
-
export type SubscriptionsListLocationsResponse = LocationListResult;
|
|
620
|
-
/** Optional parameters. */
|
|
621
|
-
export interface SubscriptionsGetOptionalParams extends coreClient.OperationOptions {
|
|
622
|
-
}
|
|
623
|
-
/** Contains response data for the get operation. */
|
|
624
|
-
export type SubscriptionsGetResponse = Subscription;
|
|
625
|
-
/** Optional parameters. */
|
|
626
|
-
export interface SubscriptionsListOptionalParams extends coreClient.OperationOptions {
|
|
627
|
-
}
|
|
628
|
-
/** Contains response data for the list operation. */
|
|
629
|
-
export type SubscriptionsListResponse = SubscriptionListResult;
|
|
630
|
-
/** Optional parameters. */
|
|
631
|
-
export interface SubscriptionsListNextOptionalParams extends coreClient.OperationOptions {
|
|
632
|
-
}
|
|
633
|
-
/** Contains response data for the listNext operation. */
|
|
634
|
-
export type SubscriptionsListNextResponse = SubscriptionListResult;
|
|
635
|
-
/** Optional parameters. */
|
|
636
|
-
export interface TenantsListOptionalParams extends coreClient.OperationOptions {
|
|
637
|
-
}
|
|
638
|
-
/** Contains response data for the list operation. */
|
|
639
|
-
export type TenantsListResponse = TenantListResult;
|
|
640
|
-
/** Optional parameters. */
|
|
641
|
-
export interface TenantsListNextOptionalParams extends coreClient.OperationOptions {
|
|
642
|
-
}
|
|
643
|
-
/** Contains response data for the listNext operation. */
|
|
644
|
-
export type TenantsListNextResponse = TenantListResult;
|
|
645
469
|
/** Optional parameters. */
|
|
646
470
|
export interface SubscriptionCancelOptionalParams extends coreClient.OperationOptions {
|
|
647
471
|
}
|
|
@@ -672,6 +496,11 @@ export interface SubscriptionAcceptOwnershipStatusOptionalParams extends coreCli
|
|
|
672
496
|
/** Contains response data for the acceptOwnershipStatus operation. */
|
|
673
497
|
export type SubscriptionAcceptOwnershipStatusResponse = AcceptOwnershipStatusResponse;
|
|
674
498
|
/** Optional parameters. */
|
|
499
|
+
export interface SubscriptionOperationGetOptionalParams extends coreClient.OperationOptions {
|
|
500
|
+
}
|
|
501
|
+
/** Contains response data for the get operation. */
|
|
502
|
+
export type SubscriptionOperationGetResponse = SubscriptionCreationResult;
|
|
503
|
+
/** Optional parameters. */
|
|
675
504
|
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
676
505
|
}
|
|
677
506
|
/** Contains response data for the list operation. */
|
|
@@ -732,6 +561,8 @@ export type BillingAccountGetPolicyResponse = BillingAccountPoliciesResponse;
|
|
|
732
561
|
export interface SubscriptionClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
733
562
|
/** server parameter */
|
|
734
563
|
$host?: string;
|
|
564
|
+
/** Api Version */
|
|
565
|
+
apiVersion?: string;
|
|
735
566
|
/** Overrides client endpoint. */
|
|
736
567
|
endpoint?: string;
|
|
737
568
|
}
|