@azure/arm-billing 2.2.0 → 4.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/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +75 -73
- package/dist/index.js +10450 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/billingManagementClient.d.ts +37 -0
- package/dist-esm/src/billingManagementClient.d.ts.map +1 -0
- package/dist-esm/src/billingManagementClient.js +70 -0
- package/dist-esm/src/billingManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +3244 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +272 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +86 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3514 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +45 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +374 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/address.d.ts +20 -0
- package/dist-esm/src/operations/address.d.ts.map +1 -0
- package/dist-esm/src/operations/address.js +50 -0
- package/dist-esm/src/operations/address.js.map +1 -0
- package/dist-esm/src/operations/agreements.d.ts +42 -0
- package/dist-esm/src/operations/agreements.d.ts.map +1 -0
- package/dist-esm/src/operations/agreements.js +156 -0
- package/dist-esm/src/operations/agreements.js.map +1 -0
- package/dist-esm/src/operations/availableBalances.d.ts +22 -0
- package/dist-esm/src/operations/availableBalances.d.ts.map +1 -0
- package/dist-esm/src/operations/availableBalances.js +54 -0
- package/dist-esm/src/operations/availableBalances.js.map +1 -0
- package/dist-esm/src/operations/billingAccounts.d.ts +79 -0
- package/dist-esm/src/operations/billingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/billingAccounts.js +330 -0
- package/dist-esm/src/operations/billingAccounts.js.map +1 -0
- package/dist-esm/src/operations/billingPeriods.d.ts +44 -0
- package/dist-esm/src/operations/billingPeriods.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPeriods.js +168 -0
- package/dist-esm/src/operations/billingPeriods.js.map +1 -0
- package/dist-esm/src/operations/billingPermissions.d.ts +110 -0
- package/dist-esm/src/operations/billingPermissions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPermissions.js +468 -0
- package/dist-esm/src/operations/billingPermissions.js.map +1 -0
- package/dist-esm/src/operations/billingProfiles.d.ts +64 -0
- package/dist-esm/src/operations/billingProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/billingProfiles.js +245 -0
- package/dist-esm/src/operations/billingProfiles.js.map +1 -0
- package/dist-esm/src/operations/billingPropertyOperations.d.ts +26 -0
- package/dist-esm/src/operations/billingPropertyOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPropertyOperations.js +74 -0
- package/dist-esm/src/operations/billingPropertyOperations.js.map +1 -0
- package/dist-esm/src/operations/billingRoleAssignments.d.ts +146 -0
- package/dist-esm/src/operations/billingRoleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/billingRoleAssignments.js +578 -0
- package/dist-esm/src/operations/billingRoleAssignments.js.map +1 -0
- package/dist-esm/src/operations/billingRoleDefinitions.d.ts +119 -0
- package/dist-esm/src/operations/billingRoleDefinitions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingRoleDefinitions.js +471 -0
- package/dist-esm/src/operations/billingRoleDefinitions.js.map +1 -0
- package/dist-esm/src/operations/billingSubscriptions.d.ts +160 -0
- package/dist-esm/src/operations/billingSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingSubscriptions.js +655 -0
- package/dist-esm/src/operations/billingSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/customers.d.ts +71 -0
- package/dist-esm/src/operations/customers.d.ts.map +1 -0
- package/dist-esm/src/operations/customers.js +287 -0
- package/dist-esm/src/operations/customers.js.map +1 -0
- package/dist-esm/src/operations/enrollmentAccounts.d.ts +38 -0
- package/dist-esm/src/operations/enrollmentAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/enrollmentAccounts.js +144 -0
- package/dist-esm/src/operations/enrollmentAccounts.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +22 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +29 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/instructions.d.ts +57 -0
- package/dist-esm/src/operations/instructions.d.ts.map +1 -0
- package/dist-esm/src/operations/instructions.js +208 -0
- package/dist-esm/src/operations/instructions.js.map +1 -0
- package/dist-esm/src/operations/invoiceSections.d.ts +70 -0
- package/dist-esm/src/operations/invoiceSections.d.ts.map +1 -0
- package/dist-esm/src/operations/invoiceSections.js +264 -0
- package/dist-esm/src/operations/invoiceSections.js.map +1 -0
- package/dist-esm/src/operations/invoices.d.ts +202 -0
- package/dist-esm/src/operations/invoices.d.ts.map +1 -0
- package/dist-esm/src/operations/invoices.js +817 -0
- package/dist-esm/src/operations/invoices.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policies.d.ts +47 -0
- package/dist-esm/src/operations/policies.d.ts.map +1 -0
- package/dist-esm/src/operations/policies.js +149 -0
- package/dist-esm/src/operations/policies.js.map +1 -0
- package/dist-esm/src/operations/products.d.ts +160 -0
- package/dist-esm/src/operations/products.d.ts.map +1 -0
- package/dist-esm/src/operations/products.js +615 -0
- package/dist-esm/src/operations/products.js.map +1 -0
- package/dist-esm/src/operations/reservations.d.ts +63 -0
- package/dist-esm/src/operations/reservations.d.ts.map +1 -0
- package/dist-esm/src/operations/reservations.js +265 -0
- package/dist-esm/src/operations/reservations.js.map +1 -0
- package/dist-esm/src/operations/transactions.d.ts +40 -0
- package/dist-esm/src/operations/transactions.d.ts.map +1 -0
- package/dist-esm/src/operations/transactions.js +137 -0
- package/dist-esm/src/operations/transactions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/address.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/address.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/address.js +9 -0
- package/dist-esm/src/operationsInterfaces/address.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/agreements.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/agreements.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/agreements.js +9 -0
- package/dist-esm/src/operationsInterfaces/agreements.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.js +9 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts +34 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts +84 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts +80 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customers.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/customers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/customers.js +9 -0
- package/dist-esm/src/operationsInterfaces/customers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +29 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/instructions.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/instructions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/instructions.js +9 -0
- package/dist-esm/src/operationsInterfaces/instructions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.js +9 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoices.d.ts +124 -0
- package/dist-esm/src/operationsInterfaces/invoices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoices.js +9 -0
- package/dist-esm/src/operationsInterfaces/invoices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.js +9 -0
- package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.js +9 -0
- package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/reservations.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/reservations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/reservations.js +9 -0
- package/dist-esm/src/operationsInterfaces/reservations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/transactions.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/transactions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/transactions.js +9 -0
- package/dist-esm/src/operationsInterfaces/transactions.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -34
- package/review/arm-billing.api.md +2361 -0
- package/rollup.config.js +184 -27
- package/src/billingManagementClient.ts +157 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3657 -0
- package/src/models/mappers.ts +3839 -0
- package/src/models/parameters.ts +435 -0
- package/src/operations/address.ts +68 -0
- package/src/operations/agreements.ts +203 -0
- package/src/operations/availableBalances.ts +73 -0
- package/src/operations/billingAccounts.ts +433 -0
- package/src/operations/billingPeriods.ts +196 -0
- package/src/operations/billingPermissions.ts +643 -0
- package/src/operations/billingProfiles.ts +334 -0
- package/src/operations/billingPropertyOperations.ts +100 -0
- package/src/operations/billingRoleAssignments.ts +782 -0
- package/src/operations/billingRoleDefinitions.ts +639 -0
- package/src/operations/billingSubscriptions.ts +902 -0
- package/src/operations/customers.ts +377 -0
- package/src/operations/enrollmentAccounts.ts +170 -0
- package/src/operations/index.ts +29 -0
- package/src/operations/instructions.ts +285 -0
- package/src/operations/invoiceSections.ts +373 -0
- package/src/operations/invoices.ts +1176 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/policies.ts +205 -0
- package/src/operations/products.ts +838 -0
- package/src/operations/reservations.ts +344 -0
- package/src/operations/transactions.ts +189 -0
- package/src/operationsInterfaces/address.ts +27 -0
- package/src/operationsInterfaces/agreements.ts +40 -0
- package/src/operationsInterfaces/availableBalances.ts +29 -0
- package/src/operationsInterfaces/billingAccounts.ts +81 -0
- package/src/operationsInterfaces/billingPeriods.ts +40 -0
- package/src/operationsInterfaces/billingPermissions.ts +65 -0
- package/src/operationsInterfaces/billingProfiles.ts +78 -0
- package/src/operationsInterfaces/billingPropertyOperations.ts +37 -0
- package/src/operationsInterfaces/billingRoleAssignments.ts +152 -0
- package/src/operationsInterfaces/billingRoleDefinitions.ts +104 -0
- package/src/operationsInterfaces/billingSubscriptions.ts +144 -0
- package/src/operationsInterfaces/customers.ts +55 -0
- package/src/operationsInterfaces/enrollmentAccounts.ts +36 -0
- package/src/operationsInterfaces/index.ts +29 -0
- package/src/operationsInterfaces/instructions.ts +63 -0
- package/src/operationsInterfaces/invoiceSections.ts +86 -0
- package/src/operationsInterfaces/invoices.ts +233 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/policies.ts +76 -0
- package/src/operationsInterfaces/products.ts +137 -0
- package/src/operationsInterfaces/reservations.ts +41 -0
- package/src/operationsInterfaces/transactions.ts +30 -0
- package/tsconfig.json +4 -4
- package/types/arm-billing.d.ts +4451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-billing.js +0 -1188
- package/dist/arm-billing.js.map +0 -1
- package/dist/arm-billing.min.js +0 -1
- package/dist/arm-billing.min.js.map +0 -1
- package/esm/billingManagementClient.d.ts +0 -21
- package/esm/billingManagementClient.d.ts.map +0 -1
- package/esm/billingManagementClient.js +0 -36
- package/esm/billingManagementClient.js.map +0 -1
- package/esm/billingManagementClientContext.d.ts +0 -16
- package/esm/billingManagementClientContext.d.ts.map +0 -1
- package/esm/billingManagementClientContext.js +0 -56
- package/esm/billingManagementClientContext.js.map +0 -1
- package/esm/models/billingPeriodsMappers.d.ts +0 -2
- package/esm/models/billingPeriodsMappers.d.ts.map +0 -1
- package/esm/models/billingPeriodsMappers.js +0 -11
- package/esm/models/billingPeriodsMappers.js.map +0 -1
- package/esm/models/enrollmentAccountsMappers.d.ts +0 -2
- package/esm/models/enrollmentAccountsMappers.d.ts.map +0 -1
- package/esm/models/enrollmentAccountsMappers.js +0 -11
- package/esm/models/enrollmentAccountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -573
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/invoicesMappers.d.ts +0 -2
- package/esm/models/invoicesMappers.d.ts.map +0 -1
- package/esm/models/invoicesMappers.js +0 -11
- package/esm/models/invoicesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -17
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -364
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -13
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -133
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/billingPeriods.d.ts +0 -70
- package/esm/operations/billingPeriods.d.ts.map +0 -1
- package/esm/operations/billingPeriods.js +0 -112
- package/esm/operations/billingPeriods.js.map +0 -1
- package/esm/operations/enrollmentAccounts.d.ts +0 -64
- package/esm/operations/enrollmentAccounts.d.ts.map +0 -1
- package/esm/operations/enrollmentAccounts.js +0 -105
- package/esm/operations/enrollmentAccounts.js.map +0 -1
- package/esm/operations/index.d.ts +0 -5
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -14
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/invoices.d.ts +0 -93
- package/esm/operations/invoices.d.ts.map +0 -1
- package/esm/operations/invoices.js +0 -140
- package/esm/operations/invoices.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/lib/billingManagementClient.ts +0 -48
- package/lib/billingManagementClientContext.ts +0 -62
- package/lib/models/billingPeriodsMappers.ts +0 -22
- package/lib/models/enrollmentAccountsMappers.ts +0 -22
- package/lib/models/index.ts +0 -613
- package/lib/models/invoicesMappers.ts +0 -22
- package/lib/models/mappers.ts +0 -392
- package/lib/models/operationsMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -135
- package/lib/operations/billingPeriods.ts +0 -187
- package/lib/operations/enrollmentAccounts.ts +0 -174
- package/lib/operations/index.ts +0 -14
- package/lib/operations/invoices.ts +0 -243
- package/lib/operations/operations.ts +0 -123
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Customers } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Customer,
|
|
17
|
+
CustomersListByBillingProfileNextOptionalParams,
|
|
18
|
+
CustomersListByBillingProfileOptionalParams,
|
|
19
|
+
CustomersListByBillingAccountNextOptionalParams,
|
|
20
|
+
CustomersListByBillingAccountOptionalParams,
|
|
21
|
+
CustomersListByBillingProfileResponse,
|
|
22
|
+
CustomersListByBillingAccountResponse,
|
|
23
|
+
CustomersGetOptionalParams,
|
|
24
|
+
CustomersGetResponse,
|
|
25
|
+
CustomersListByBillingProfileNextResponse,
|
|
26
|
+
CustomersListByBillingAccountNextResponse
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing Customers operations. */
|
|
31
|
+
export class CustomersImpl implements Customers {
|
|
32
|
+
private readonly client: BillingManagementClient;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class Customers class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: BillingManagementClient) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Lists the customers that are billed to a billing profile. The operation is supported only for
|
|
44
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
45
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
46
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
public listByBillingProfile(
|
|
50
|
+
billingAccountName: string,
|
|
51
|
+
billingProfileName: string,
|
|
52
|
+
options?: CustomersListByBillingProfileOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<Customer> {
|
|
54
|
+
const iter = this.listByBillingProfilePagingAll(
|
|
55
|
+
billingAccountName,
|
|
56
|
+
billingProfileName,
|
|
57
|
+
options
|
|
58
|
+
);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: () => {
|
|
67
|
+
return this.listByBillingProfilePagingPage(
|
|
68
|
+
billingAccountName,
|
|
69
|
+
billingProfileName,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listByBillingProfilePagingPage(
|
|
77
|
+
billingAccountName: string,
|
|
78
|
+
billingProfileName: string,
|
|
79
|
+
options?: CustomersListByBillingProfileOptionalParams
|
|
80
|
+
): AsyncIterableIterator<Customer[]> {
|
|
81
|
+
let result = await this._listByBillingProfile(
|
|
82
|
+
billingAccountName,
|
|
83
|
+
billingProfileName,
|
|
84
|
+
options
|
|
85
|
+
);
|
|
86
|
+
yield result.value || [];
|
|
87
|
+
let continuationToken = result.nextLink;
|
|
88
|
+
while (continuationToken) {
|
|
89
|
+
result = await this._listByBillingProfileNext(
|
|
90
|
+
billingAccountName,
|
|
91
|
+
billingProfileName,
|
|
92
|
+
continuationToken,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
yield result.value || [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
private async *listByBillingProfilePagingAll(
|
|
101
|
+
billingAccountName: string,
|
|
102
|
+
billingProfileName: string,
|
|
103
|
+
options?: CustomersListByBillingProfileOptionalParams
|
|
104
|
+
): AsyncIterableIterator<Customer> {
|
|
105
|
+
for await (const page of this.listByBillingProfilePagingPage(
|
|
106
|
+
billingAccountName,
|
|
107
|
+
billingProfileName,
|
|
108
|
+
options
|
|
109
|
+
)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Lists the customers that are billed to a billing account. The operation is supported only for
|
|
116
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
117
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
public listByBillingAccount(
|
|
121
|
+
billingAccountName: string,
|
|
122
|
+
options?: CustomersListByBillingAccountOptionalParams
|
|
123
|
+
): PagedAsyncIterableIterator<Customer> {
|
|
124
|
+
const iter = this.listByBillingAccountPagingAll(
|
|
125
|
+
billingAccountName,
|
|
126
|
+
options
|
|
127
|
+
);
|
|
128
|
+
return {
|
|
129
|
+
next() {
|
|
130
|
+
return iter.next();
|
|
131
|
+
},
|
|
132
|
+
[Symbol.asyncIterator]() {
|
|
133
|
+
return this;
|
|
134
|
+
},
|
|
135
|
+
byPage: () => {
|
|
136
|
+
return this.listByBillingAccountPagingPage(billingAccountName, options);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private async *listByBillingAccountPagingPage(
|
|
142
|
+
billingAccountName: string,
|
|
143
|
+
options?: CustomersListByBillingAccountOptionalParams
|
|
144
|
+
): AsyncIterableIterator<Customer[]> {
|
|
145
|
+
let result = await this._listByBillingAccount(billingAccountName, options);
|
|
146
|
+
yield result.value || [];
|
|
147
|
+
let continuationToken = result.nextLink;
|
|
148
|
+
while (continuationToken) {
|
|
149
|
+
result = await this._listByBillingAccountNext(
|
|
150
|
+
billingAccountName,
|
|
151
|
+
continuationToken,
|
|
152
|
+
options
|
|
153
|
+
);
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
yield result.value || [];
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
private async *listByBillingAccountPagingAll(
|
|
160
|
+
billingAccountName: string,
|
|
161
|
+
options?: CustomersListByBillingAccountOptionalParams
|
|
162
|
+
): AsyncIterableIterator<Customer> {
|
|
163
|
+
for await (const page of this.listByBillingAccountPagingPage(
|
|
164
|
+
billingAccountName,
|
|
165
|
+
options
|
|
166
|
+
)) {
|
|
167
|
+
yield* page;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Lists the customers that are billed to a billing profile. The operation is supported only for
|
|
173
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
174
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
175
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
private _listByBillingProfile(
|
|
179
|
+
billingAccountName: string,
|
|
180
|
+
billingProfileName: string,
|
|
181
|
+
options?: CustomersListByBillingProfileOptionalParams
|
|
182
|
+
): Promise<CustomersListByBillingProfileResponse> {
|
|
183
|
+
return this.client.sendOperationRequest(
|
|
184
|
+
{ billingAccountName, billingProfileName, options },
|
|
185
|
+
listByBillingProfileOperationSpec
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Lists the customers that are billed to a billing account. The operation is supported only for
|
|
191
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
192
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
private _listByBillingAccount(
|
|
196
|
+
billingAccountName: string,
|
|
197
|
+
options?: CustomersListByBillingAccountOptionalParams
|
|
198
|
+
): Promise<CustomersListByBillingAccountResponse> {
|
|
199
|
+
return this.client.sendOperationRequest(
|
|
200
|
+
{ billingAccountName, options },
|
|
201
|
+
listByBillingAccountOperationSpec
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets a customer by its ID. The operation is supported only for billing accounts with agreement type
|
|
207
|
+
* Microsoft Partner Agreement.
|
|
208
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
209
|
+
* @param customerName The ID that uniquely identifies a customer.
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
get(
|
|
213
|
+
billingAccountName: string,
|
|
214
|
+
customerName: string,
|
|
215
|
+
options?: CustomersGetOptionalParams
|
|
216
|
+
): Promise<CustomersGetResponse> {
|
|
217
|
+
return this.client.sendOperationRequest(
|
|
218
|
+
{ billingAccountName, customerName, options },
|
|
219
|
+
getOperationSpec
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* ListByBillingProfileNext
|
|
225
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
226
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
227
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
|
|
228
|
+
* @param options The options parameters.
|
|
229
|
+
*/
|
|
230
|
+
private _listByBillingProfileNext(
|
|
231
|
+
billingAccountName: string,
|
|
232
|
+
billingProfileName: string,
|
|
233
|
+
nextLink: string,
|
|
234
|
+
options?: CustomersListByBillingProfileNextOptionalParams
|
|
235
|
+
): Promise<CustomersListByBillingProfileNextResponse> {
|
|
236
|
+
return this.client.sendOperationRequest(
|
|
237
|
+
{ billingAccountName, billingProfileName, nextLink, options },
|
|
238
|
+
listByBillingProfileNextOperationSpec
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* ListByBillingAccountNext
|
|
244
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
245
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
|
|
246
|
+
* @param options The options parameters.
|
|
247
|
+
*/
|
|
248
|
+
private _listByBillingAccountNext(
|
|
249
|
+
billingAccountName: string,
|
|
250
|
+
nextLink: string,
|
|
251
|
+
options?: CustomersListByBillingAccountNextOptionalParams
|
|
252
|
+
): Promise<CustomersListByBillingAccountNextResponse> {
|
|
253
|
+
return this.client.sendOperationRequest(
|
|
254
|
+
{ billingAccountName, nextLink, options },
|
|
255
|
+
listByBillingAccountNextOperationSpec
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
// Operation Specifications
|
|
260
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
261
|
+
|
|
262
|
+
const listByBillingProfileOperationSpec: coreClient.OperationSpec = {
|
|
263
|
+
path:
|
|
264
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers",
|
|
265
|
+
httpMethod: "GET",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {
|
|
268
|
+
bodyMapper: Mappers.CustomerListResult
|
|
269
|
+
},
|
|
270
|
+
default: {
|
|
271
|
+
bodyMapper: Mappers.ErrorResponse
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
queryParameters: [
|
|
275
|
+
Parameters.apiVersion,
|
|
276
|
+
Parameters.search,
|
|
277
|
+
Parameters.filter
|
|
278
|
+
],
|
|
279
|
+
urlParameters: [
|
|
280
|
+
Parameters.$host,
|
|
281
|
+
Parameters.billingAccountName,
|
|
282
|
+
Parameters.billingProfileName
|
|
283
|
+
],
|
|
284
|
+
headerParameters: [Parameters.accept],
|
|
285
|
+
serializer
|
|
286
|
+
};
|
|
287
|
+
const listByBillingAccountOperationSpec: coreClient.OperationSpec = {
|
|
288
|
+
path:
|
|
289
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers",
|
|
290
|
+
httpMethod: "GET",
|
|
291
|
+
responses: {
|
|
292
|
+
200: {
|
|
293
|
+
bodyMapper: Mappers.CustomerListResult
|
|
294
|
+
},
|
|
295
|
+
default: {
|
|
296
|
+
bodyMapper: Mappers.ErrorResponse
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
queryParameters: [
|
|
300
|
+
Parameters.apiVersion,
|
|
301
|
+
Parameters.search,
|
|
302
|
+
Parameters.filter
|
|
303
|
+
],
|
|
304
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
305
|
+
headerParameters: [Parameters.accept],
|
|
306
|
+
serializer
|
|
307
|
+
};
|
|
308
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
309
|
+
path:
|
|
310
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
|
|
311
|
+
httpMethod: "GET",
|
|
312
|
+
responses: {
|
|
313
|
+
200: {
|
|
314
|
+
bodyMapper: Mappers.Customer
|
|
315
|
+
},
|
|
316
|
+
default: {
|
|
317
|
+
bodyMapper: Mappers.ErrorResponse
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
321
|
+
urlParameters: [
|
|
322
|
+
Parameters.$host,
|
|
323
|
+
Parameters.billingAccountName,
|
|
324
|
+
Parameters.customerName
|
|
325
|
+
],
|
|
326
|
+
headerParameters: [Parameters.accept],
|
|
327
|
+
serializer
|
|
328
|
+
};
|
|
329
|
+
const listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {
|
|
330
|
+
path: "{nextLink}",
|
|
331
|
+
httpMethod: "GET",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.CustomerListResult
|
|
335
|
+
},
|
|
336
|
+
default: {
|
|
337
|
+
bodyMapper: Mappers.ErrorResponse
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
queryParameters: [
|
|
341
|
+
Parameters.apiVersion,
|
|
342
|
+
Parameters.search,
|
|
343
|
+
Parameters.filter
|
|
344
|
+
],
|
|
345
|
+
urlParameters: [
|
|
346
|
+
Parameters.$host,
|
|
347
|
+
Parameters.billingAccountName,
|
|
348
|
+
Parameters.nextLink,
|
|
349
|
+
Parameters.billingProfileName
|
|
350
|
+
],
|
|
351
|
+
headerParameters: [Parameters.accept],
|
|
352
|
+
serializer
|
|
353
|
+
};
|
|
354
|
+
const listByBillingAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
355
|
+
path: "{nextLink}",
|
|
356
|
+
httpMethod: "GET",
|
|
357
|
+
responses: {
|
|
358
|
+
200: {
|
|
359
|
+
bodyMapper: Mappers.CustomerListResult
|
|
360
|
+
},
|
|
361
|
+
default: {
|
|
362
|
+
bodyMapper: Mappers.ErrorResponse
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
queryParameters: [
|
|
366
|
+
Parameters.apiVersion,
|
|
367
|
+
Parameters.search,
|
|
368
|
+
Parameters.filter
|
|
369
|
+
],
|
|
370
|
+
urlParameters: [
|
|
371
|
+
Parameters.$host,
|
|
372
|
+
Parameters.billingAccountName,
|
|
373
|
+
Parameters.nextLink
|
|
374
|
+
],
|
|
375
|
+
headerParameters: [Parameters.accept],
|
|
376
|
+
serializer
|
|
377
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { EnrollmentAccounts } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
EnrollmentAccountSummary,
|
|
17
|
+
EnrollmentAccountsListNextOptionalParams,
|
|
18
|
+
EnrollmentAccountsListOptionalParams,
|
|
19
|
+
EnrollmentAccountsListResponse,
|
|
20
|
+
EnrollmentAccountsGetOptionalParams,
|
|
21
|
+
EnrollmentAccountsGetResponse,
|
|
22
|
+
EnrollmentAccountsListNextResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing EnrollmentAccounts operations. */
|
|
27
|
+
export class EnrollmentAccountsImpl implements EnrollmentAccounts {
|
|
28
|
+
private readonly client: BillingManagementClient;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class EnrollmentAccounts class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: BillingManagementClient) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Lists the enrollment accounts the caller has access to.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
public list(
|
|
43
|
+
options?: EnrollmentAccountsListOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<EnrollmentAccountSummary> {
|
|
45
|
+
const iter = this.listPagingAll(options);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
52
|
+
},
|
|
53
|
+
byPage: () => {
|
|
54
|
+
return this.listPagingPage(options);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async *listPagingPage(
|
|
60
|
+
options?: EnrollmentAccountsListOptionalParams
|
|
61
|
+
): AsyncIterableIterator<EnrollmentAccountSummary[]> {
|
|
62
|
+
let result = await this._list(options);
|
|
63
|
+
yield result.value || [];
|
|
64
|
+
let continuationToken = result.nextLink;
|
|
65
|
+
while (continuationToken) {
|
|
66
|
+
result = await this._listNext(continuationToken, options);
|
|
67
|
+
continuationToken = result.nextLink;
|
|
68
|
+
yield result.value || [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listPagingAll(
|
|
73
|
+
options?: EnrollmentAccountsListOptionalParams
|
|
74
|
+
): AsyncIterableIterator<EnrollmentAccountSummary> {
|
|
75
|
+
for await (const page of this.listPagingPage(options)) {
|
|
76
|
+
yield* page;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Lists the enrollment accounts the caller has access to.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
private _list(
|
|
85
|
+
options?: EnrollmentAccountsListOptionalParams
|
|
86
|
+
): Promise<EnrollmentAccountsListResponse> {
|
|
87
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Gets a enrollment account by name.
|
|
92
|
+
* @param name Enrollment Account name.
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
get(
|
|
96
|
+
name: string,
|
|
97
|
+
options?: EnrollmentAccountsGetOptionalParams
|
|
98
|
+
): Promise<EnrollmentAccountsGetResponse> {
|
|
99
|
+
return this.client.sendOperationRequest(
|
|
100
|
+
{ name, options },
|
|
101
|
+
getOperationSpec
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* ListNext
|
|
107
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
108
|
+
* @param options The options parameters.
|
|
109
|
+
*/
|
|
110
|
+
private _listNext(
|
|
111
|
+
nextLink: string,
|
|
112
|
+
options?: EnrollmentAccountsListNextOptionalParams
|
|
113
|
+
): Promise<EnrollmentAccountsListNextResponse> {
|
|
114
|
+
return this.client.sendOperationRequest(
|
|
115
|
+
{ nextLink, options },
|
|
116
|
+
listNextOperationSpec
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Operation Specifications
|
|
121
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
122
|
+
|
|
123
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
124
|
+
path: "/providers/Microsoft.Billing/enrollmentAccounts",
|
|
125
|
+
httpMethod: "GET",
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
bodyMapper: Mappers.EnrollmentAccountListResult
|
|
129
|
+
},
|
|
130
|
+
default: {
|
|
131
|
+
bodyMapper: Mappers.ErrorResponse
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
queryParameters: [Parameters.apiVersion1],
|
|
135
|
+
urlParameters: [Parameters.$host],
|
|
136
|
+
headerParameters: [Parameters.accept],
|
|
137
|
+
serializer
|
|
138
|
+
};
|
|
139
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
140
|
+
path: "/providers/Microsoft.Billing/enrollmentAccounts/{name}",
|
|
141
|
+
httpMethod: "GET",
|
|
142
|
+
responses: {
|
|
143
|
+
200: {
|
|
144
|
+
bodyMapper: Mappers.EnrollmentAccountSummary
|
|
145
|
+
},
|
|
146
|
+
default: {
|
|
147
|
+
bodyMapper: Mappers.ErrorResponse
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
queryParameters: [Parameters.apiVersion1],
|
|
151
|
+
urlParameters: [Parameters.$host, Parameters.name],
|
|
152
|
+
headerParameters: [Parameters.accept],
|
|
153
|
+
serializer
|
|
154
|
+
};
|
|
155
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
156
|
+
path: "{nextLink}",
|
|
157
|
+
httpMethod: "GET",
|
|
158
|
+
responses: {
|
|
159
|
+
200: {
|
|
160
|
+
bodyMapper: Mappers.EnrollmentAccountListResult
|
|
161
|
+
},
|
|
162
|
+
default: {
|
|
163
|
+
bodyMapper: Mappers.ErrorResponse
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
queryParameters: [Parameters.apiVersion1],
|
|
167
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
168
|
+
headerParameters: [Parameters.accept],
|
|
169
|
+
serializer
|
|
170
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./billingAccounts";
|
|
10
|
+
export * from "./address";
|
|
11
|
+
export * from "./availableBalances";
|
|
12
|
+
export * from "./instructions";
|
|
13
|
+
export * from "./billingProfiles";
|
|
14
|
+
export * from "./customers";
|
|
15
|
+
export * from "./invoiceSections";
|
|
16
|
+
export * from "./billingPermissions";
|
|
17
|
+
export * from "./billingSubscriptions";
|
|
18
|
+
export * from "./products";
|
|
19
|
+
export * from "./invoices";
|
|
20
|
+
export * from "./transactions";
|
|
21
|
+
export * from "./policies";
|
|
22
|
+
export * from "./billingPropertyOperations";
|
|
23
|
+
export * from "./operations";
|
|
24
|
+
export * from "./billingRoleDefinitions";
|
|
25
|
+
export * from "./billingRoleAssignments";
|
|
26
|
+
export * from "./agreements";
|
|
27
|
+
export * from "./reservations";
|
|
28
|
+
export * from "./enrollmentAccounts";
|
|
29
|
+
export * from "./billingPeriods";
|