@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operations/alias.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAYxC,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,IAAqB,EACrB,OAAmC;QAInC,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACA,EAAE;YAChC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,KAAK,EACzB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;YACF,IAA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C;IACjC,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 { Alias } 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 PutAliasRequest,\n AliasCreateOptionalParams,\n AliasCreateResponse,\n AliasGetOptionalParams,\n AliasGetResponse,\n AliasDeleteOptionalParams,\n AliasListOptionalParams,\n AliasListResponse\n} from \"../models/index.js\";\n\n/** Class containing Alias operations. */\nexport class AliasImpl implements Alias {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Alias class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n async beginCreate(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<AliasCreateResponse>, AliasCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AliasCreateResponse> => {\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 { aliasName, body, options },\n createOperationSpec\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 * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams\n ): Promise<AliasCreateResponse> {\n const poller = await this.beginCreate(aliasName, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n get(\n aliasName: string,\n options?: AliasGetOptionalParams\n ): Promise<AliasGetResponse> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete Alias.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n delete(\n aliasName: string,\n options?: AliasDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * List Alias Subscription.\n * @param options The options parameters.\n */\n list(options?: AliasListOptionalParams): Promise<AliasListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasResponse\n },\n 201: {\n bodyMapper: Mappers.SubscriptionAliasResponse\n },\n 202: {\n bodyMapper: Mappers.SubscriptionAliasResponse\n },\n 204: {\n bodyMapper: Mappers.SubscriptionAliasResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operations/alias.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAY9C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,IAAqB,EACrB,OAAmC;QAEnC,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACA,EAAE;YAChC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B,EAAE;YACF,IAAI,kBAAkB,GAAiD,SAAS,CAAC;YACjF,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,MAAM,WAAW,GAAG;gBAClB,GAAG,IAAI;gB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AU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;IACvD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uDAAuD;IAC7D,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;IACvD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,2CAA2C;IACjD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { Alias } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n PutAliasRequest,\n AliasCreateOptionalParams,\n AliasCreateResponse,\n AliasGetOptionalParams,\n AliasGetResponse,\n AliasDeleteOptionalParams,\n AliasListOptionalParams,\n AliasListResponse,\n} from \"../models/index.js\";\n\n/** Class containing Alias operations. */\nexport class AliasImpl implements Alias {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Alias class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n async beginCreate(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AliasCreateResponse>, AliasCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AliasCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { aliasName, body, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<AliasCreateResponse, OperationState<AliasCreateResponse>>(\n lro,\n {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n },\n );\n await poller.poll();\n return poller;\n }\n\n /**\n * Create Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param body The parameters required to create a new subscription.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n aliasName: string,\n body: PutAliasRequest,\n options?: AliasCreateOptionalParams,\n ): Promise<AliasCreateResponse> {\n const poller = await this.beginCreate(aliasName, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Alias Subscription.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n get(aliasName: string, options?: AliasGetOptionalParams): Promise<AliasGetResponse> {\n return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);\n }\n\n /**\n * Delete Alias.\n * @param aliasName AliasName is the name for the subscription creation request. Note that this is not\n * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for\n * subscription creation.\n * @param options The options parameters.\n */\n delete(aliasName: string, options?: AliasDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);\n }\n\n /**\n * List Alias Subscription.\n * @param options The options parameters.\n */\n list(options?: AliasListOptionalParams): Promise<AliasListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasResponse,\n },\n 201: {\n bodyMapper: Mappers.SubscriptionAliasResponse,\n },\n 202: {\n bodyMapper: Mappers.SubscriptionAliasResponse,\n },\n 204: {\n bodyMapper: Mappers.SubscriptionAliasResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases/{aliasName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/aliases\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionAliasListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BillingAccount } from "../operationsInterfaces/index.js";
|
|
2
|
-
import { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
-
import { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models/index.js";
|
|
1
|
+
import type { BillingAccount } from "../operationsInterfaces/index.js";
|
|
2
|
+
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
+
import type { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing BillingAccount operations. */
|
|
5
5
|
export declare class BillingAccountImpl implements BillingAccount {
|
|
6
6
|
private readonly client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;OAIG;IACH,SAAS,CACP,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAG5C"}
|
|
@@ -1,10 +1,5 @@
|
|
|
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
|
import * as coreClient from "@azure/core-client";
|
|
9
4
|
import * as Mappers from "../models/mappers.js";
|
|
10
5
|
import * as Parameters from "../models/parameters.js";
|
|
@@ -34,15 +29,15 @@ const getPolicyOperationSpec = {
|
|
|
34
29
|
httpMethod: "GET",
|
|
35
30
|
responses: {
|
|
36
31
|
200: {
|
|
37
|
-
bodyMapper: Mappers.BillingAccountPoliciesResponse
|
|
32
|
+
bodyMapper: Mappers.BillingAccountPoliciesResponse,
|
|
38
33
|
},
|
|
39
34
|
default: {
|
|
40
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
41
|
-
}
|
|
35
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
36
|
+
},
|
|
42
37
|
},
|
|
43
|
-
queryParameters: [Parameters.
|
|
38
|
+
queryParameters: [Parameters.apiVersion],
|
|
44
39
|
urlParameters: [Parameters.$host, Parameters.billingAccountId],
|
|
45
40
|
headerParameters: [Parameters.accept],
|
|
46
|
-
serializer
|
|
41
|
+
serializer,
|
|
47
42
|
};
|
|
48
43
|
//# sourceMappingURL=billingAccount.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,SAAS,CACP,gBAAwB,EACxB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,sBAAsB,CAAC,CAAC;IACjG,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EAAE,mHAAmH;IACzH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAC9D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { BillingAccount } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n BillingAccountGetPolicyOptionalParams,\n BillingAccountGetPolicyResponse,\n} from \"../models/index.js\";\n\n/** Class containing BillingAccount operations. */\nexport class BillingAccountImpl implements BillingAccount {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class BillingAccount class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Get Billing Account Policy.\n * @param billingAccountId Billing Account Id.\n * @param options The options parameters.\n */\n getPolicy(\n billingAccountId: string,\n options?: BillingAccountGetPolicyOptionalParams,\n ): Promise<BillingAccountGetPolicyResponse> {\n return this.client.sendOperationRequest({ billingAccountId, options }, getPolicyOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPoliciesResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./subscriptionOperations.js";
|
|
1
|
+
export * from "./subscription.js";
|
|
2
|
+
export * from "./subscriptionOperation.js";
|
|
4
3
|
export * from "./operations.js";
|
|
5
4
|
export * from "./alias.js";
|
|
6
5
|
export * from "./subscriptionPolicy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export * from "./subscriptions.js";
|
|
9
|
-
export * from "./tenants.js";
|
|
10
|
-
export * from "./subscriptionOperations.js";
|
|
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.
|
|
5
|
+
export * from "./subscription.js";
|
|
6
|
+
export * from "./subscriptionOperation.js";
|
|
11
7
|
export * from "./operations.js";
|
|
12
8
|
export * from "./alias.js";
|
|
13
9
|
export * from "./subscriptionPolicy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,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 * from \"./subscription.js\";\nexport * from \"./subscriptionOperation.js\";\nexport * from \"./operations.js\";\nexport * from \"./alias.js\";\nexport * from \"./subscriptionPolicy.js\";\nexport * from \"./billingAccount.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
-
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
4
|
+
import type { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Operations operations. */
|
|
6
6
|
export declare class OperationsImpl implements Operations {
|
|
7
7
|
private readonly client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,SAAS,CAAC;YAkB3E,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAMlB"}
|
|
@@ -1,10 +1,5 @@
|
|
|
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
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -38,7 +33,7 @@ export class OperationsImpl {
|
|
|
38
33
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
34
|
}
|
|
40
35
|
return this.listPagingPage(options, settings);
|
|
41
|
-
}
|
|
36
|
+
},
|
|
42
37
|
};
|
|
43
38
|
}
|
|
44
39
|
async *listPagingPage(options, settings) {
|
|
@@ -46,7 +41,7 @@ export class OperationsImpl {
|
|
|
46
41
|
let continuationToken = settings?.continuationToken;
|
|
47
42
|
if (!continuationToken) {
|
|
48
43
|
result = await this._list(options);
|
|
49
|
-
|
|
44
|
+
const page = result.value || [];
|
|
50
45
|
continuationToken = result.nextLink;
|
|
51
46
|
setContinuationToken(page, continuationToken);
|
|
52
47
|
yield page;
|
|
@@ -54,7 +49,7 @@ export class OperationsImpl {
|
|
|
54
49
|
while (continuationToken) {
|
|
55
50
|
result = await this._listNext(continuationToken, options);
|
|
56
51
|
continuationToken = result.nextLink;
|
|
57
|
-
|
|
52
|
+
const page = result.value || [];
|
|
58
53
|
setContinuationToken(page, continuationToken);
|
|
59
54
|
yield page;
|
|
60
55
|
}
|
|
@@ -87,31 +82,30 @@ const listOperationSpec = {
|
|
|
87
82
|
httpMethod: "GET",
|
|
88
83
|
responses: {
|
|
89
84
|
200: {
|
|
90
|
-
bodyMapper: Mappers.OperationListResult
|
|
85
|
+
bodyMapper: Mappers.OperationListResult,
|
|
91
86
|
},
|
|
92
87
|
default: {
|
|
93
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
94
|
-
}
|
|
88
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
89
|
+
},
|
|
95
90
|
},
|
|
96
|
-
queryParameters: [Parameters.
|
|
91
|
+
queryParameters: [Parameters.apiVersion],
|
|
97
92
|
urlParameters: [Parameters.$host],
|
|
98
93
|
headerParameters: [Parameters.accept],
|
|
99
|
-
serializer
|
|
94
|
+
serializer,
|
|
100
95
|
};
|
|
101
96
|
const listNextOperationSpec = {
|
|
102
97
|
path: "{nextLink}",
|
|
103
98
|
httpMethod: "GET",
|
|
104
99
|
responses: {
|
|
105
100
|
200: {
|
|
106
|
-
bodyMapper: Mappers.OperationListResult
|
|
101
|
+
bodyMapper: Mappers.OperationListResult,
|
|
107
102
|
},
|
|
108
103
|
default: {
|
|
109
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
110
|
-
}
|
|
104
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
105
|
+
},
|
|
111
106
|
},
|
|
112
|
-
queryParameters: [Parameters.apiVersion1],
|
|
113
107
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
114
108
|
headerParameters: [Parameters.accept],
|
|
115
|
-
serializer
|
|
109
|
+
serializer,
|
|
116
110
|
};
|
|
117
111
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAsC;QAChD,MAAM,IAAI,GAA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,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Subscription API operations.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
package/dist/{esm/operations/subscriptionOperations.d.ts → browser/operations/subscription.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
-
import {
|
|
4
|
-
import { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models/index.js";
|
|
5
|
-
/** Class containing
|
|
6
|
-
export declare class
|
|
1
|
+
import type { Subscription } from "../operationsInterfaces/index.js";
|
|
2
|
+
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
+
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
+
import type { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing Subscription operations. */
|
|
6
|
+
export declare class SubscriptionImpl implements Subscription {
|
|
7
7
|
private readonly client;
|
|
8
8
|
/**
|
|
9
|
-
* Initialize a new instance of the class
|
|
9
|
+
* Initialize a new instance of the class Subscription class.
|
|
10
10
|
* @param client Reference to the service client
|
|
11
11
|
*/
|
|
12
12
|
constructor(client: SubscriptionClient);
|
|
@@ -35,7 +35,7 @@ export declare class SubscriptionOperationsImpl implements SubscriptionOperation
|
|
|
35
35
|
* @param body The parameters required to accept subscription ownership.
|
|
36
36
|
* @param options The options parameters.
|
|
37
37
|
*/
|
|
38
|
-
beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<
|
|
38
|
+
beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SimplePollerLike<OperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
|
|
39
39
|
/**
|
|
40
40
|
* Accept subscription ownership.
|
|
41
41
|
* @param subscriptionId Subscription Id.
|
|
@@ -50,4 +50,4 @@ export declare class SubscriptionOperationsImpl implements SubscriptionOperation
|
|
|
50
50
|
*/
|
|
51
51
|
acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
|
|
52
52
|
}
|
|
53
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/operations/subscription.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,KAAK,EACV,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,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,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;IAItC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;;OAKG;IACG,oBAAoB,CACxB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,mCAAmC,CAAC,EACnD,mCAAmC,CACpC,CACF;IAsDD;;;;;OAKG;IACG,2BAA2B,CAC/B,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAK/C;;;;OAIG;IACH,qBAAqB,CACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;CAMtD"}
|
package/dist/{esm/operations/subscriptionOperations.js → browser/operations/subscription.js}
RENAMED
|
@@ -1,20 +1,15 @@
|
|
|
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
|
import * as coreClient from "@azure/core-client";
|
|
9
4
|
import * as Mappers from "../models/mappers.js";
|
|
10
5
|
import * as Parameters from "../models/parameters.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
/** Class containing
|
|
14
|
-
export class
|
|
6
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
7
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
8
|
+
/** Class containing Subscription operations. */
|
|
9
|
+
export class SubscriptionImpl {
|
|
15
10
|
client;
|
|
16
11
|
/**
|
|
17
|
-
* Initialize a new instance of the class
|
|
12
|
+
* Initialize a new instance of the class Subscription class.
|
|
18
13
|
* @param client Reference to the service client
|
|
19
14
|
*/
|
|
20
15
|
constructor(client) {
|
|
@@ -55,7 +50,7 @@ export class SubscriptionOperationsImpl {
|
|
|
55
50
|
const directSendOperation = async (args, spec) => {
|
|
56
51
|
return this.client.sendOperationRequest(args, spec);
|
|
57
52
|
};
|
|
58
|
-
const
|
|
53
|
+
const sendOperationFn = async (args, spec) => {
|
|
59
54
|
let currentRawResponse = undefined;
|
|
60
55
|
const providedCallback = args.options?.onResponse;
|
|
61
56
|
const callback = (rawResponse, flatResponse) => {
|
|
@@ -66,8 +61,8 @@ export class SubscriptionOperationsImpl {
|
|
|
66
61
|
...args,
|
|
67
62
|
options: {
|
|
68
63
|
...args.options,
|
|
69
|
-
onResponse: callback
|
|
70
|
-
}
|
|
64
|
+
onResponse: callback,
|
|
65
|
+
},
|
|
71
66
|
};
|
|
72
67
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
73
68
|
return {
|
|
@@ -75,14 +70,18 @@ export class SubscriptionOperationsImpl {
|
|
|
75
70
|
rawResponse: {
|
|
76
71
|
statusCode: currentRawResponse.status,
|
|
77
72
|
body: currentRawResponse.parsedBody,
|
|
78
|
-
headers: currentRawResponse.headers.toJSON()
|
|
79
|
-
}
|
|
73
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
74
|
+
},
|
|
80
75
|
};
|
|
81
76
|
};
|
|
82
|
-
const lro =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
const lro = createLroSpec({
|
|
78
|
+
sendOperationFn,
|
|
79
|
+
args: { subscriptionId, body, options },
|
|
80
|
+
spec: acceptOwnershipOperationSpec,
|
|
81
|
+
});
|
|
82
|
+
const poller = await createHttpPoller(lro, {
|
|
83
|
+
restoreFrom: options?.resumeFrom,
|
|
84
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
86
85
|
});
|
|
87
86
|
await poller.poll();
|
|
88
87
|
return poller;
|
|
@@ -113,92 +112,92 @@ const cancelOperationSpec = {
|
|
|
113
112
|
httpMethod: "POST",
|
|
114
113
|
responses: {
|
|
115
114
|
200: {
|
|
116
|
-
bodyMapper: Mappers.CanceledSubscriptionId
|
|
115
|
+
bodyMapper: Mappers.CanceledSubscriptionId,
|
|
117
116
|
},
|
|
118
117
|
default: {
|
|
119
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
120
|
-
}
|
|
118
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
119
|
+
},
|
|
121
120
|
},
|
|
122
|
-
queryParameters: [Parameters.
|
|
121
|
+
queryParameters: [Parameters.apiVersion],
|
|
123
122
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
124
123
|
headerParameters: [Parameters.accept],
|
|
125
|
-
serializer
|
|
124
|
+
serializer,
|
|
126
125
|
};
|
|
127
126
|
const renameOperationSpec = {
|
|
128
127
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename",
|
|
129
128
|
httpMethod: "POST",
|
|
130
129
|
responses: {
|
|
131
130
|
200: {
|
|
132
|
-
bodyMapper: Mappers.RenamedSubscriptionId
|
|
131
|
+
bodyMapper: Mappers.RenamedSubscriptionId,
|
|
133
132
|
},
|
|
134
133
|
default: {
|
|
135
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
136
|
-
}
|
|
134
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
135
|
+
},
|
|
137
136
|
},
|
|
138
137
|
requestBody: Parameters.body,
|
|
139
|
-
queryParameters: [Parameters.
|
|
138
|
+
queryParameters: [Parameters.apiVersion],
|
|
140
139
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
141
140
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
142
141
|
mediaType: "json",
|
|
143
|
-
serializer
|
|
142
|
+
serializer,
|
|
144
143
|
};
|
|
145
144
|
const enableOperationSpec = {
|
|
146
145
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable",
|
|
147
146
|
httpMethod: "POST",
|
|
148
147
|
responses: {
|
|
149
148
|
200: {
|
|
150
|
-
bodyMapper: Mappers.EnabledSubscriptionId
|
|
149
|
+
bodyMapper: Mappers.EnabledSubscriptionId,
|
|
151
150
|
},
|
|
152
151
|
default: {
|
|
153
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
154
|
-
}
|
|
152
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
153
|
+
},
|
|
155
154
|
},
|
|
156
|
-
queryParameters: [Parameters.
|
|
155
|
+
queryParameters: [Parameters.apiVersion],
|
|
157
156
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
158
157
|
headerParameters: [Parameters.accept],
|
|
159
|
-
serializer
|
|
158
|
+
serializer,
|
|
160
159
|
};
|
|
161
160
|
const acceptOwnershipOperationSpec = {
|
|
162
161
|
path: "/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership",
|
|
163
162
|
httpMethod: "POST",
|
|
164
163
|
responses: {
|
|
165
164
|
200: {
|
|
166
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders
|
|
165
|
+
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
167
166
|
},
|
|
168
167
|
201: {
|
|
169
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders
|
|
168
|
+
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
170
169
|
},
|
|
171
170
|
202: {
|
|
172
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders
|
|
171
|
+
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
173
172
|
},
|
|
174
173
|
204: {
|
|
175
|
-
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders
|
|
174
|
+
headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,
|
|
176
175
|
},
|
|
177
176
|
default: {
|
|
178
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
179
|
-
}
|
|
177
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
178
|
+
},
|
|
180
179
|
},
|
|
181
180
|
requestBody: Parameters.body1,
|
|
182
|
-
queryParameters: [Parameters.
|
|
181
|
+
queryParameters: [Parameters.apiVersion],
|
|
183
182
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
184
183
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
185
184
|
mediaType: "json",
|
|
186
|
-
serializer
|
|
185
|
+
serializer,
|
|
187
186
|
};
|
|
188
187
|
const acceptOwnershipStatusOperationSpec = {
|
|
189
188
|
path: "/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus",
|
|
190
189
|
httpMethod: "GET",
|
|
191
190
|
responses: {
|
|
192
191
|
200: {
|
|
193
|
-
bodyMapper: Mappers.AcceptOwnershipStatusResponse
|
|
192
|
+
bodyMapper: Mappers.AcceptOwnershipStatusResponse,
|
|
194
193
|
},
|
|
195
194
|
default: {
|
|
196
|
-
bodyMapper: Mappers.ErrorResponseBody
|
|
197
|
-
}
|
|
195
|
+
bodyMapper: Mappers.ErrorResponseBody,
|
|
196
|
+
},
|
|
198
197
|
},
|
|
199
|
-
queryParameters: [Parameters.
|
|
198
|
+
queryParameters: [Parameters.apiVersion],
|
|
200
199
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
201
200
|
headerParameters: [Parameters.accept],
|
|
202
|
-
serializer
|
|
201
|
+
serializer,
|
|
203
202
|
};
|
|
204
|
-
//# sourceMappingURL=
|
|
203
|
+
//# sourceMappingURL=subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/operations/subscription.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAA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AAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { Subscription } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { SubscriptionClient } from \"../subscriptionClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n SubscriptionCancelOptionalParams,\n SubscriptionCancelResponse,\n SubscriptionName,\n SubscriptionRenameOptionalParams,\n SubscriptionRenameResponse,\n SubscriptionEnableOptionalParams,\n SubscriptionEnableResponse,\n AcceptOwnershipRequest,\n SubscriptionAcceptOwnershipOptionalParams,\n SubscriptionAcceptOwnershipResponse,\n SubscriptionAcceptOwnershipStatusOptionalParams,\n SubscriptionAcceptOwnershipStatusResponse,\n} from \"../models/index.js\";\n\n/** Class containing Subscription operations. */\nexport class SubscriptionImpl implements Subscription {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Subscription class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * The operation to cancel a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n cancel(\n subscriptionId: string,\n options?: SubscriptionCancelOptionalParams,\n ): Promise<SubscriptionCancelResponse> {\n return this.client.sendOperationRequest({ subscriptionId, options }, cancelOperationSpec);\n }\n\n /**\n * The operation to rename a subscription\n * @param subscriptionId Subscription Id.\n * @param body Subscription Name\n * @param options The options parameters.\n */\n rename(\n subscriptionId: string,\n body: SubscriptionName,\n options?: SubscriptionRenameOptionalParams,\n ): Promise<SubscriptionRenameResponse> {\n return this.client.sendOperationRequest({ subscriptionId, body, options }, renameOperationSpec);\n }\n\n /**\n * The operation to enable a subscription\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n enable(\n subscriptionId: string,\n options?: SubscriptionEnableOptionalParams,\n ): Promise<SubscriptionEnableResponse> {\n return this.client.sendOperationRequest({ subscriptionId, options }, enableOperationSpec);\n }\n\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n async beginAcceptOwnership(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionAcceptOwnershipResponse>,\n SubscriptionAcceptOwnershipResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionAcceptOwnershipResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { subscriptionId, body, options },\n spec: acceptOwnershipOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionAcceptOwnershipResponse,\n OperationState<SubscriptionAcceptOwnershipResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Accept subscription ownership.\n * @param subscriptionId Subscription Id.\n * @param body The parameters required to accept subscription ownership.\n * @param options The options parameters.\n */\n async beginAcceptOwnershipAndWait(\n subscriptionId: string,\n body: AcceptOwnershipRequest,\n options?: SubscriptionAcceptOwnershipOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipResponse> {\n const poller = await this.beginAcceptOwnership(subscriptionId, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Accept subscription ownership status.\n * @param subscriptionId Subscription Id.\n * @param options The options parameters.\n */\n acceptOwnershipStatus(\n subscriptionId: string,\n options?: SubscriptionAcceptOwnershipStatusOptionalParams,\n ): Promise<SubscriptionAcceptOwnershipStatusResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n acceptOwnershipStatusOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CanceledSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst renameOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RenamedSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst enableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnabledSubscriptionId,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst acceptOwnershipOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 201: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 202: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n 204: {\n headersMapper: Mappers.SubscriptionAcceptOwnershipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst acceptOwnershipStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcceptOwnershipStatusResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SubscriptionOperation } from "../operationsInterfaces/index.js";
|
|
2
|
+
import type { SubscriptionClient } from "../subscriptionClient.js";
|
|
3
|
+
import type { SubscriptionOperationGetOptionalParams, SubscriptionOperationGetResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing SubscriptionOperation operations. */
|
|
5
|
+
export declare class SubscriptionOperationImpl implements SubscriptionOperation {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class SubscriptionOperation class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: SubscriptionClient);
|
|
12
|
+
/**
|
|
13
|
+
* Get the status of the pending Microsoft.Subscription API operations.
|
|
14
|
+
* @param operationId The operation ID, which can be found from the Location field in the generate
|
|
15
|
+
* recommendation response header.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
get(operationId: string, options?: SubscriptionOperationGetOptionalParams): Promise<SubscriptionOperationGetResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=subscriptionOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionOperation.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EACV,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,yDAAyD;AACzD,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;;OAKG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;CAG7C"}
|