@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,285 @@
|
|
|
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 { Instructions } 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
|
+
Instruction,
|
|
17
|
+
InstructionsListByBillingProfileNextOptionalParams,
|
|
18
|
+
InstructionsListByBillingProfileOptionalParams,
|
|
19
|
+
InstructionsListByBillingProfileResponse,
|
|
20
|
+
InstructionsGetOptionalParams,
|
|
21
|
+
InstructionsGetResponse,
|
|
22
|
+
InstructionsPutOptionalParams,
|
|
23
|
+
InstructionsPutResponse,
|
|
24
|
+
InstructionsListByBillingProfileNextResponse
|
|
25
|
+
} from "../models";
|
|
26
|
+
|
|
27
|
+
/// <reference lib="esnext.asynciterable" />
|
|
28
|
+
/** Class containing Instructions operations. */
|
|
29
|
+
export class InstructionsImpl implements Instructions {
|
|
30
|
+
private readonly client: BillingManagementClient;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Initialize a new instance of the class Instructions class.
|
|
34
|
+
* @param client Reference to the service client
|
|
35
|
+
*/
|
|
36
|
+
constructor(client: BillingManagementClient) {
|
|
37
|
+
this.client = client;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Lists the instructions by billing profile id.
|
|
42
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
43
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
public listByBillingProfile(
|
|
47
|
+
billingAccountName: string,
|
|
48
|
+
billingProfileName: string,
|
|
49
|
+
options?: InstructionsListByBillingProfileOptionalParams
|
|
50
|
+
): PagedAsyncIterableIterator<Instruction> {
|
|
51
|
+
const iter = this.listByBillingProfilePagingAll(
|
|
52
|
+
billingAccountName,
|
|
53
|
+
billingProfileName,
|
|
54
|
+
options
|
|
55
|
+
);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listByBillingProfilePagingPage(
|
|
65
|
+
billingAccountName,
|
|
66
|
+
billingProfileName,
|
|
67
|
+
options
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private async *listByBillingProfilePagingPage(
|
|
74
|
+
billingAccountName: string,
|
|
75
|
+
billingProfileName: string,
|
|
76
|
+
options?: InstructionsListByBillingProfileOptionalParams
|
|
77
|
+
): AsyncIterableIterator<Instruction[]> {
|
|
78
|
+
let result = await this._listByBillingProfile(
|
|
79
|
+
billingAccountName,
|
|
80
|
+
billingProfileName,
|
|
81
|
+
options
|
|
82
|
+
);
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
let continuationToken = result.nextLink;
|
|
85
|
+
while (continuationToken) {
|
|
86
|
+
result = await this._listByBillingProfileNext(
|
|
87
|
+
billingAccountName,
|
|
88
|
+
billingProfileName,
|
|
89
|
+
continuationToken,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
yield result.value || [];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
private async *listByBillingProfilePagingAll(
|
|
98
|
+
billingAccountName: string,
|
|
99
|
+
billingProfileName: string,
|
|
100
|
+
options?: InstructionsListByBillingProfileOptionalParams
|
|
101
|
+
): AsyncIterableIterator<Instruction> {
|
|
102
|
+
for await (const page of this.listByBillingProfilePagingPage(
|
|
103
|
+
billingAccountName,
|
|
104
|
+
billingProfileName,
|
|
105
|
+
options
|
|
106
|
+
)) {
|
|
107
|
+
yield* page;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Lists the instructions by billing profile id.
|
|
113
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
114
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
private _listByBillingProfile(
|
|
118
|
+
billingAccountName: string,
|
|
119
|
+
billingProfileName: string,
|
|
120
|
+
options?: InstructionsListByBillingProfileOptionalParams
|
|
121
|
+
): Promise<InstructionsListByBillingProfileResponse> {
|
|
122
|
+
return this.client.sendOperationRequest(
|
|
123
|
+
{ billingAccountName, billingProfileName, options },
|
|
124
|
+
listByBillingProfileOperationSpec
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Get the instruction by name. These are custom billing instructions and are only applicable for
|
|
130
|
+
* certain customers.
|
|
131
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
132
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
133
|
+
* @param instructionName Instruction Name.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
get(
|
|
137
|
+
billingAccountName: string,
|
|
138
|
+
billingProfileName: string,
|
|
139
|
+
instructionName: string,
|
|
140
|
+
options?: InstructionsGetOptionalParams
|
|
141
|
+
): Promise<InstructionsGetResponse> {
|
|
142
|
+
return this.client.sendOperationRequest(
|
|
143
|
+
{ billingAccountName, billingProfileName, instructionName, options },
|
|
144
|
+
getOperationSpec
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Creates or updates an instruction. These are custom billing instructions and are only applicable for
|
|
150
|
+
* certain customers.
|
|
151
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
152
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
153
|
+
* @param instructionName Instruction Name.
|
|
154
|
+
* @param parameters The new instruction.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
put(
|
|
158
|
+
billingAccountName: string,
|
|
159
|
+
billingProfileName: string,
|
|
160
|
+
instructionName: string,
|
|
161
|
+
parameters: Instruction,
|
|
162
|
+
options?: InstructionsPutOptionalParams
|
|
163
|
+
): Promise<InstructionsPutResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{
|
|
166
|
+
billingAccountName,
|
|
167
|
+
billingProfileName,
|
|
168
|
+
instructionName,
|
|
169
|
+
parameters,
|
|
170
|
+
options
|
|
171
|
+
},
|
|
172
|
+
putOperationSpec
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* ListByBillingProfileNext
|
|
178
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
179
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
180
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listByBillingProfileNext(
|
|
184
|
+
billingAccountName: string,
|
|
185
|
+
billingProfileName: string,
|
|
186
|
+
nextLink: string,
|
|
187
|
+
options?: InstructionsListByBillingProfileNextOptionalParams
|
|
188
|
+
): Promise<InstructionsListByBillingProfileNextResponse> {
|
|
189
|
+
return this.client.sendOperationRequest(
|
|
190
|
+
{ billingAccountName, billingProfileName, nextLink, options },
|
|
191
|
+
listByBillingProfileNextOperationSpec
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// Operation Specifications
|
|
196
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
197
|
+
|
|
198
|
+
const listByBillingProfileOperationSpec: coreClient.OperationSpec = {
|
|
199
|
+
path:
|
|
200
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.InstructionListResult
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
211
|
+
urlParameters: [
|
|
212
|
+
Parameters.$host,
|
|
213
|
+
Parameters.billingAccountName,
|
|
214
|
+
Parameters.billingProfileName
|
|
215
|
+
],
|
|
216
|
+
headerParameters: [Parameters.accept],
|
|
217
|
+
serializer
|
|
218
|
+
};
|
|
219
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
220
|
+
path:
|
|
221
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/{instructionName}",
|
|
222
|
+
httpMethod: "GET",
|
|
223
|
+
responses: {
|
|
224
|
+
200: {
|
|
225
|
+
bodyMapper: Mappers.Instruction
|
|
226
|
+
},
|
|
227
|
+
default: {
|
|
228
|
+
bodyMapper: Mappers.ErrorResponse
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
queryParameters: [Parameters.apiVersion],
|
|
232
|
+
urlParameters: [
|
|
233
|
+
Parameters.$host,
|
|
234
|
+
Parameters.billingAccountName,
|
|
235
|
+
Parameters.billingProfileName,
|
|
236
|
+
Parameters.instructionName
|
|
237
|
+
],
|
|
238
|
+
headerParameters: [Parameters.accept],
|
|
239
|
+
serializer
|
|
240
|
+
};
|
|
241
|
+
const putOperationSpec: coreClient.OperationSpec = {
|
|
242
|
+
path:
|
|
243
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/{instructionName}",
|
|
244
|
+
httpMethod: "PUT",
|
|
245
|
+
responses: {
|
|
246
|
+
200: {
|
|
247
|
+
bodyMapper: Mappers.Instruction
|
|
248
|
+
},
|
|
249
|
+
default: {
|
|
250
|
+
bodyMapper: Mappers.ErrorResponse
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
requestBody: Parameters.parameters1,
|
|
254
|
+
queryParameters: [Parameters.apiVersion],
|
|
255
|
+
urlParameters: [
|
|
256
|
+
Parameters.$host,
|
|
257
|
+
Parameters.billingAccountName,
|
|
258
|
+
Parameters.billingProfileName,
|
|
259
|
+
Parameters.instructionName
|
|
260
|
+
],
|
|
261
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
262
|
+
mediaType: "json",
|
|
263
|
+
serializer
|
|
264
|
+
};
|
|
265
|
+
const listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {
|
|
266
|
+
path: "{nextLink}",
|
|
267
|
+
httpMethod: "GET",
|
|
268
|
+
responses: {
|
|
269
|
+
200: {
|
|
270
|
+
bodyMapper: Mappers.InstructionListResult
|
|
271
|
+
},
|
|
272
|
+
default: {
|
|
273
|
+
bodyMapper: Mappers.ErrorResponse
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
queryParameters: [Parameters.apiVersion],
|
|
277
|
+
urlParameters: [
|
|
278
|
+
Parameters.$host,
|
|
279
|
+
Parameters.billingAccountName,
|
|
280
|
+
Parameters.nextLink,
|
|
281
|
+
Parameters.billingProfileName
|
|
282
|
+
],
|
|
283
|
+
headerParameters: [Parameters.accept],
|
|
284
|
+
serializer
|
|
285
|
+
};
|
|
@@ -0,0 +1,373 @@
|
|
|
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 { InvoiceSections } 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
InvoiceSection,
|
|
19
|
+
InvoiceSectionsListByBillingProfileNextOptionalParams,
|
|
20
|
+
InvoiceSectionsListByBillingProfileOptionalParams,
|
|
21
|
+
InvoiceSectionsListByBillingProfileResponse,
|
|
22
|
+
InvoiceSectionsGetOptionalParams,
|
|
23
|
+
InvoiceSectionsGetResponse,
|
|
24
|
+
InvoiceSectionsCreateOrUpdateOptionalParams,
|
|
25
|
+
InvoiceSectionsCreateOrUpdateResponse,
|
|
26
|
+
InvoiceSectionsListByBillingProfileNextResponse
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing InvoiceSections operations. */
|
|
31
|
+
export class InvoiceSectionsImpl implements InvoiceSections {
|
|
32
|
+
private readonly client: BillingManagementClient;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class InvoiceSections class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: BillingManagementClient) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Lists the invoice sections that a user has access to. The operation is supported only for billing
|
|
44
|
+
* accounts with agreement type Microsoft Customer 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?: InvoiceSectionsListByBillingProfileOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<InvoiceSection> {
|
|
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?: InvoiceSectionsListByBillingProfileOptionalParams
|
|
80
|
+
): AsyncIterableIterator<InvoiceSection[]> {
|
|
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?: InvoiceSectionsListByBillingProfileOptionalParams
|
|
104
|
+
): AsyncIterableIterator<InvoiceSection> {
|
|
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 invoice sections that a user has access to. The operation is supported only for billing
|
|
116
|
+
* accounts with agreement type Microsoft Customer Agreement.
|
|
117
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
118
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
private _listByBillingProfile(
|
|
122
|
+
billingAccountName: string,
|
|
123
|
+
billingProfileName: string,
|
|
124
|
+
options?: InvoiceSectionsListByBillingProfileOptionalParams
|
|
125
|
+
): Promise<InvoiceSectionsListByBillingProfileResponse> {
|
|
126
|
+
return this.client.sendOperationRequest(
|
|
127
|
+
{ billingAccountName, billingProfileName, options },
|
|
128
|
+
listByBillingProfileOperationSpec
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Gets an invoice section by its ID. The operation is supported only for billing accounts with
|
|
134
|
+
* agreement type Microsoft Customer Agreement.
|
|
135
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
136
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
137
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
get(
|
|
141
|
+
billingAccountName: string,
|
|
142
|
+
billingProfileName: string,
|
|
143
|
+
invoiceSectionName: string,
|
|
144
|
+
options?: InvoiceSectionsGetOptionalParams
|
|
145
|
+
): Promise<InvoiceSectionsGetResponse> {
|
|
146
|
+
return this.client.sendOperationRequest(
|
|
147
|
+
{ billingAccountName, billingProfileName, invoiceSectionName, options },
|
|
148
|
+
getOperationSpec
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Creates or updates an invoice section. The operation is supported only for billing accounts with
|
|
154
|
+
* agreement type Microsoft Customer Agreement.
|
|
155
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
156
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
157
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
158
|
+
* @param parameters The new or updated invoice section.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
async beginCreateOrUpdate(
|
|
162
|
+
billingAccountName: string,
|
|
163
|
+
billingProfileName: string,
|
|
164
|
+
invoiceSectionName: string,
|
|
165
|
+
parameters: InvoiceSection,
|
|
166
|
+
options?: InvoiceSectionsCreateOrUpdateOptionalParams
|
|
167
|
+
): Promise<
|
|
168
|
+
PollerLike<
|
|
169
|
+
PollOperationState<InvoiceSectionsCreateOrUpdateResponse>,
|
|
170
|
+
InvoiceSectionsCreateOrUpdateResponse
|
|
171
|
+
>
|
|
172
|
+
> {
|
|
173
|
+
const directSendOperation = async (
|
|
174
|
+
args: coreClient.OperationArguments,
|
|
175
|
+
spec: coreClient.OperationSpec
|
|
176
|
+
): Promise<InvoiceSectionsCreateOrUpdateResponse> => {
|
|
177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
178
|
+
};
|
|
179
|
+
const sendOperation = async (
|
|
180
|
+
args: coreClient.OperationArguments,
|
|
181
|
+
spec: coreClient.OperationSpec
|
|
182
|
+
) => {
|
|
183
|
+
let currentRawResponse:
|
|
184
|
+
| coreClient.FullOperationResponse
|
|
185
|
+
| undefined = undefined;
|
|
186
|
+
const providedCallback = args.options?.onResponse;
|
|
187
|
+
const callback: coreClient.RawResponseCallback = (
|
|
188
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
189
|
+
flatResponse: unknown
|
|
190
|
+
) => {
|
|
191
|
+
currentRawResponse = rawResponse;
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
202
|
+
return {
|
|
203
|
+
flatResponse,
|
|
204
|
+
rawResponse: {
|
|
205
|
+
statusCode: currentRawResponse!.status,
|
|
206
|
+
body: currentRawResponse!.parsedBody,
|
|
207
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const lro = new LroImpl(
|
|
213
|
+
sendOperation,
|
|
214
|
+
{
|
|
215
|
+
billingAccountName,
|
|
216
|
+
billingProfileName,
|
|
217
|
+
invoiceSectionName,
|
|
218
|
+
parameters,
|
|
219
|
+
options
|
|
220
|
+
},
|
|
221
|
+
createOrUpdateOperationSpec
|
|
222
|
+
);
|
|
223
|
+
return new LroEngine(lro, {
|
|
224
|
+
resumeFrom: options?.resumeFrom,
|
|
225
|
+
intervalInMs: options?.updateIntervalInMs
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Creates or updates an invoice section. The operation is supported only for billing accounts with
|
|
231
|
+
* agreement type Microsoft Customer Agreement.
|
|
232
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
233
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
234
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
235
|
+
* @param parameters The new or updated invoice section.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
async beginCreateOrUpdateAndWait(
|
|
239
|
+
billingAccountName: string,
|
|
240
|
+
billingProfileName: string,
|
|
241
|
+
invoiceSectionName: string,
|
|
242
|
+
parameters: InvoiceSection,
|
|
243
|
+
options?: InvoiceSectionsCreateOrUpdateOptionalParams
|
|
244
|
+
): Promise<InvoiceSectionsCreateOrUpdateResponse> {
|
|
245
|
+
const poller = await this.beginCreateOrUpdate(
|
|
246
|
+
billingAccountName,
|
|
247
|
+
billingProfileName,
|
|
248
|
+
invoiceSectionName,
|
|
249
|
+
parameters,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
return poller.pollUntilDone();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* ListByBillingProfileNext
|
|
257
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
258
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
259
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
private _listByBillingProfileNext(
|
|
263
|
+
billingAccountName: string,
|
|
264
|
+
billingProfileName: string,
|
|
265
|
+
nextLink: string,
|
|
266
|
+
options?: InvoiceSectionsListByBillingProfileNextOptionalParams
|
|
267
|
+
): Promise<InvoiceSectionsListByBillingProfileNextResponse> {
|
|
268
|
+
return this.client.sendOperationRequest(
|
|
269
|
+
{ billingAccountName, billingProfileName, nextLink, options },
|
|
270
|
+
listByBillingProfileNextOperationSpec
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// Operation Specifications
|
|
275
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
276
|
+
|
|
277
|
+
const listByBillingProfileOperationSpec: coreClient.OperationSpec = {
|
|
278
|
+
path:
|
|
279
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections",
|
|
280
|
+
httpMethod: "GET",
|
|
281
|
+
responses: {
|
|
282
|
+
200: {
|
|
283
|
+
bodyMapper: Mappers.InvoiceSectionListResult
|
|
284
|
+
},
|
|
285
|
+
default: {
|
|
286
|
+
bodyMapper: Mappers.ErrorResponse
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
queryParameters: [Parameters.apiVersion],
|
|
290
|
+
urlParameters: [
|
|
291
|
+
Parameters.$host,
|
|
292
|
+
Parameters.billingAccountName,
|
|
293
|
+
Parameters.billingProfileName
|
|
294
|
+
],
|
|
295
|
+
headerParameters: [Parameters.accept],
|
|
296
|
+
serializer
|
|
297
|
+
};
|
|
298
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
299
|
+
path:
|
|
300
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
|
|
301
|
+
httpMethod: "GET",
|
|
302
|
+
responses: {
|
|
303
|
+
200: {
|
|
304
|
+
bodyMapper: Mappers.InvoiceSection
|
|
305
|
+
},
|
|
306
|
+
default: {
|
|
307
|
+
bodyMapper: Mappers.ErrorResponse
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
|
+
urlParameters: [
|
|
312
|
+
Parameters.$host,
|
|
313
|
+
Parameters.billingAccountName,
|
|
314
|
+
Parameters.billingProfileName,
|
|
315
|
+
Parameters.invoiceSectionName
|
|
316
|
+
],
|
|
317
|
+
headerParameters: [Parameters.accept],
|
|
318
|
+
serializer
|
|
319
|
+
};
|
|
320
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
321
|
+
path:
|
|
322
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
|
|
323
|
+
httpMethod: "PUT",
|
|
324
|
+
responses: {
|
|
325
|
+
200: {
|
|
326
|
+
bodyMapper: Mappers.InvoiceSection
|
|
327
|
+
},
|
|
328
|
+
201: {
|
|
329
|
+
bodyMapper: Mappers.InvoiceSection
|
|
330
|
+
},
|
|
331
|
+
202: {
|
|
332
|
+
bodyMapper: Mappers.InvoiceSection
|
|
333
|
+
},
|
|
334
|
+
204: {
|
|
335
|
+
bodyMapper: Mappers.InvoiceSection
|
|
336
|
+
},
|
|
337
|
+
default: {
|
|
338
|
+
bodyMapper: Mappers.ErrorResponse
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
requestBody: Parameters.parameters3,
|
|
342
|
+
queryParameters: [Parameters.apiVersion],
|
|
343
|
+
urlParameters: [
|
|
344
|
+
Parameters.$host,
|
|
345
|
+
Parameters.billingAccountName,
|
|
346
|
+
Parameters.billingProfileName,
|
|
347
|
+
Parameters.invoiceSectionName
|
|
348
|
+
],
|
|
349
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
350
|
+
mediaType: "json",
|
|
351
|
+
serializer
|
|
352
|
+
};
|
|
353
|
+
const listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {
|
|
354
|
+
path: "{nextLink}",
|
|
355
|
+
httpMethod: "GET",
|
|
356
|
+
responses: {
|
|
357
|
+
200: {
|
|
358
|
+
bodyMapper: Mappers.InvoiceSectionListResult
|
|
359
|
+
},
|
|
360
|
+
default: {
|
|
361
|
+
bodyMapper: Mappers.ErrorResponse
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
queryParameters: [Parameters.apiVersion],
|
|
365
|
+
urlParameters: [
|
|
366
|
+
Parameters.$host,
|
|
367
|
+
Parameters.billingAccountName,
|
|
368
|
+
Parameters.nextLink,
|
|
369
|
+
Parameters.billingProfileName
|
|
370
|
+
],
|
|
371
|
+
headerParameters: [Parameters.accept],
|
|
372
|
+
serializer
|
|
373
|
+
};
|