@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
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/billingPeriodsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { BillingManagementClientContext } from "../billingManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a BillingPeriods. */
|
|
18
|
-
export class BillingPeriods {
|
|
19
|
-
private readonly client: BillingManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a BillingPeriods.
|
|
23
|
-
* @param {BillingManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: BillingManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists the available billing periods for a subscription in reverse chronological order. This is
|
|
31
|
-
* only supported for Azure Web-Direct subscriptions. Other subscription types which were not
|
|
32
|
-
* purchased directly through the Azure web portal are not supported through this preview API.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.BillingPeriodsListResponse>
|
|
35
|
-
*/
|
|
36
|
-
list(options?: Models.BillingPeriodsListOptionalParams): Promise<Models.BillingPeriodsListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param callback The callback
|
|
39
|
-
*/
|
|
40
|
-
list(callback: msRest.ServiceCallback<Models.BillingPeriodsListResult>): void;
|
|
41
|
-
/**
|
|
42
|
-
* @param options The optional parameters
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
list(options: Models.BillingPeriodsListOptionalParams, callback: msRest.ServiceCallback<Models.BillingPeriodsListResult>): void;
|
|
46
|
-
list(options?: Models.BillingPeriodsListOptionalParams | msRest.ServiceCallback<Models.BillingPeriodsListResult>, callback?: msRest.ServiceCallback<Models.BillingPeriodsListResult>): Promise<Models.BillingPeriodsListResponse> {
|
|
47
|
-
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
options
|
|
50
|
-
},
|
|
51
|
-
listOperationSpec,
|
|
52
|
-
callback) as Promise<Models.BillingPeriodsListResponse>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other
|
|
57
|
-
* subscription types which were not purchased directly through the Azure web portal are not
|
|
58
|
-
* supported through this preview API.
|
|
59
|
-
* @param billingPeriodName The name of a BillingPeriod resource.
|
|
60
|
-
* @param [options] The optional parameters
|
|
61
|
-
* @returns Promise<Models.BillingPeriodsGetResponse>
|
|
62
|
-
*/
|
|
63
|
-
get(billingPeriodName: string, options?: msRest.RequestOptionsBase): Promise<Models.BillingPeriodsGetResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* @param billingPeriodName The name of a BillingPeriod resource.
|
|
66
|
-
* @param callback The callback
|
|
67
|
-
*/
|
|
68
|
-
get(billingPeriodName: string, callback: msRest.ServiceCallback<Models.BillingPeriod>): void;
|
|
69
|
-
/**
|
|
70
|
-
* @param billingPeriodName The name of a BillingPeriod resource.
|
|
71
|
-
* @param options The optional parameters
|
|
72
|
-
* @param callback The callback
|
|
73
|
-
*/
|
|
74
|
-
get(billingPeriodName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BillingPeriod>): void;
|
|
75
|
-
get(billingPeriodName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BillingPeriod>, callback?: msRest.ServiceCallback<Models.BillingPeriod>): Promise<Models.BillingPeriodsGetResponse> {
|
|
76
|
-
return this.client.sendOperationRequest(
|
|
77
|
-
{
|
|
78
|
-
billingPeriodName,
|
|
79
|
-
options
|
|
80
|
-
},
|
|
81
|
-
getOperationSpec,
|
|
82
|
-
callback) as Promise<Models.BillingPeriodsGetResponse>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Lists the available billing periods for a subscription in reverse chronological order. This is
|
|
87
|
-
* only supported for Azure Web-Direct subscriptions. Other subscription types which were not
|
|
88
|
-
* purchased directly through the Azure web portal are not supported through this preview API.
|
|
89
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
90
|
-
* @param [options] The optional parameters
|
|
91
|
-
* @returns Promise<Models.BillingPeriodsListNextResponse>
|
|
92
|
-
*/
|
|
93
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BillingPeriodsListNextResponse>;
|
|
94
|
-
/**
|
|
95
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
96
|
-
* @param callback The callback
|
|
97
|
-
*/
|
|
98
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.BillingPeriodsListResult>): void;
|
|
99
|
-
/**
|
|
100
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
101
|
-
* @param options The optional parameters
|
|
102
|
-
* @param callback The callback
|
|
103
|
-
*/
|
|
104
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BillingPeriodsListResult>): void;
|
|
105
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BillingPeriodsListResult>, callback?: msRest.ServiceCallback<Models.BillingPeriodsListResult>): Promise<Models.BillingPeriodsListNextResponse> {
|
|
106
|
-
return this.client.sendOperationRequest(
|
|
107
|
-
{
|
|
108
|
-
nextPageLink,
|
|
109
|
-
options
|
|
110
|
-
},
|
|
111
|
-
listNextOperationSpec,
|
|
112
|
-
callback) as Promise<Models.BillingPeriodsListNextResponse>;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
118
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
119
|
-
httpMethod: "GET",
|
|
120
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods",
|
|
121
|
-
urlParameters: [
|
|
122
|
-
Parameters.subscriptionId
|
|
123
|
-
],
|
|
124
|
-
queryParameters: [
|
|
125
|
-
Parameters.apiVersion,
|
|
126
|
-
Parameters.filter,
|
|
127
|
-
Parameters.skiptoken,
|
|
128
|
-
Parameters.top
|
|
129
|
-
],
|
|
130
|
-
headerParameters: [
|
|
131
|
-
Parameters.acceptLanguage
|
|
132
|
-
],
|
|
133
|
-
responses: {
|
|
134
|
-
200: {
|
|
135
|
-
bodyMapper: Mappers.BillingPeriodsListResult
|
|
136
|
-
},
|
|
137
|
-
default: {
|
|
138
|
-
bodyMapper: Mappers.ErrorResponse
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
serializer
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
145
|
-
httpMethod: "GET",
|
|
146
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}",
|
|
147
|
-
urlParameters: [
|
|
148
|
-
Parameters.subscriptionId,
|
|
149
|
-
Parameters.billingPeriodName
|
|
150
|
-
],
|
|
151
|
-
queryParameters: [
|
|
152
|
-
Parameters.apiVersion
|
|
153
|
-
],
|
|
154
|
-
headerParameters: [
|
|
155
|
-
Parameters.acceptLanguage
|
|
156
|
-
],
|
|
157
|
-
responses: {
|
|
158
|
-
200: {
|
|
159
|
-
bodyMapper: Mappers.BillingPeriod
|
|
160
|
-
},
|
|
161
|
-
default: {
|
|
162
|
-
bodyMapper: Mappers.ErrorResponse
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
serializer
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
169
|
-
httpMethod: "GET",
|
|
170
|
-
baseUrl: "https://management.azure.com",
|
|
171
|
-
path: "{nextLink}",
|
|
172
|
-
urlParameters: [
|
|
173
|
-
Parameters.nextPageLink
|
|
174
|
-
],
|
|
175
|
-
headerParameters: [
|
|
176
|
-
Parameters.acceptLanguage
|
|
177
|
-
],
|
|
178
|
-
responses: {
|
|
179
|
-
200: {
|
|
180
|
-
bodyMapper: Mappers.BillingPeriodsListResult
|
|
181
|
-
},
|
|
182
|
-
default: {
|
|
183
|
-
bodyMapper: Mappers.ErrorResponse
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
serializer
|
|
187
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/enrollmentAccountsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { BillingManagementClientContext } from "../billingManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a EnrollmentAccounts. */
|
|
18
|
-
export class EnrollmentAccounts {
|
|
19
|
-
private readonly client: BillingManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a EnrollmentAccounts.
|
|
23
|
-
* @param {BillingManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: BillingManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists the enrollment accounts the caller has access to.
|
|
31
|
-
* @param [options] The optional parameters
|
|
32
|
-
* @returns Promise<Models.EnrollmentAccountsListResponse>
|
|
33
|
-
*/
|
|
34
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.EnrollmentAccountsListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EnrollmentAccountListResult>, callback?: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): Promise<Models.EnrollmentAccountsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.EnrollmentAccountsListResponse>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Gets a enrollment account by name.
|
|
55
|
-
* @param name Enrollment Account name.
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.EnrollmentAccountsGetResponse>
|
|
58
|
-
*/
|
|
59
|
-
get(name: string, options?: msRest.RequestOptionsBase): Promise<Models.EnrollmentAccountsGetResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param name Enrollment Account name.
|
|
62
|
-
* @param callback The callback
|
|
63
|
-
*/
|
|
64
|
-
get(name: string, callback: msRest.ServiceCallback<Models.EnrollmentAccount>): void;
|
|
65
|
-
/**
|
|
66
|
-
* @param name Enrollment Account name.
|
|
67
|
-
* @param options The optional parameters
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
get(name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EnrollmentAccount>): void;
|
|
71
|
-
get(name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EnrollmentAccount>, callback?: msRest.ServiceCallback<Models.EnrollmentAccount>): Promise<Models.EnrollmentAccountsGetResponse> {
|
|
72
|
-
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
name,
|
|
75
|
-
options
|
|
76
|
-
},
|
|
77
|
-
getOperationSpec,
|
|
78
|
-
callback) as Promise<Models.EnrollmentAccountsGetResponse>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Lists the enrollment accounts the caller has access to.
|
|
83
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
84
|
-
* @param [options] The optional parameters
|
|
85
|
-
* @returns Promise<Models.EnrollmentAccountsListNextResponse>
|
|
86
|
-
*/
|
|
87
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.EnrollmentAccountsListNextResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
90
|
-
* @param callback The callback
|
|
91
|
-
*/
|
|
92
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): void;
|
|
93
|
-
/**
|
|
94
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
95
|
-
* @param options The optional parameters
|
|
96
|
-
* @param callback The callback
|
|
97
|
-
*/
|
|
98
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): void;
|
|
99
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EnrollmentAccountListResult>, callback?: msRest.ServiceCallback<Models.EnrollmentAccountListResult>): Promise<Models.EnrollmentAccountsListNextResponse> {
|
|
100
|
-
return this.client.sendOperationRequest(
|
|
101
|
-
{
|
|
102
|
-
nextPageLink,
|
|
103
|
-
options
|
|
104
|
-
},
|
|
105
|
-
listNextOperationSpec,
|
|
106
|
-
callback) as Promise<Models.EnrollmentAccountsListNextResponse>;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Operation Specifications
|
|
111
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
112
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
113
|
-
httpMethod: "GET",
|
|
114
|
-
path: "providers/Microsoft.Billing/enrollmentAccounts",
|
|
115
|
-
queryParameters: [
|
|
116
|
-
Parameters.apiVersion
|
|
117
|
-
],
|
|
118
|
-
headerParameters: [
|
|
119
|
-
Parameters.acceptLanguage
|
|
120
|
-
],
|
|
121
|
-
responses: {
|
|
122
|
-
200: {
|
|
123
|
-
bodyMapper: Mappers.EnrollmentAccountListResult
|
|
124
|
-
},
|
|
125
|
-
default: {
|
|
126
|
-
bodyMapper: Mappers.ErrorResponse
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
serializer
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
133
|
-
httpMethod: "GET",
|
|
134
|
-
path: "providers/Microsoft.Billing/enrollmentAccounts/{name}",
|
|
135
|
-
urlParameters: [
|
|
136
|
-
Parameters.name
|
|
137
|
-
],
|
|
138
|
-
queryParameters: [
|
|
139
|
-
Parameters.apiVersion
|
|
140
|
-
],
|
|
141
|
-
headerParameters: [
|
|
142
|
-
Parameters.acceptLanguage
|
|
143
|
-
],
|
|
144
|
-
responses: {
|
|
145
|
-
200: {
|
|
146
|
-
bodyMapper: Mappers.EnrollmentAccount
|
|
147
|
-
},
|
|
148
|
-
default: {
|
|
149
|
-
bodyMapper: Mappers.ErrorResponse
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
serializer
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
156
|
-
httpMethod: "GET",
|
|
157
|
-
baseUrl: "https://management.azure.com",
|
|
158
|
-
path: "{nextLink}",
|
|
159
|
-
urlParameters: [
|
|
160
|
-
Parameters.nextPageLink
|
|
161
|
-
],
|
|
162
|
-
headerParameters: [
|
|
163
|
-
Parameters.acceptLanguage
|
|
164
|
-
],
|
|
165
|
-
responses: {
|
|
166
|
-
200: {
|
|
167
|
-
bodyMapper: Mappers.EnrollmentAccountListResult
|
|
168
|
-
},
|
|
169
|
-
default: {
|
|
170
|
-
bodyMapper: Mappers.ErrorResponse
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
serializer
|
|
174
|
-
};
|
package/lib/operations/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from "./enrollmentAccounts";
|
|
12
|
-
export * from "./billingPeriods";
|
|
13
|
-
export * from "./invoices";
|
|
14
|
-
export * from "./operations";
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/invoicesMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { BillingManagementClientContext } from "../billingManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Invoices. */
|
|
18
|
-
export class Invoices {
|
|
19
|
-
private readonly client: BillingManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Invoices.
|
|
23
|
-
* @param {BillingManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: BillingManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists the available invoices for a subscription in reverse chronological order beginning with
|
|
31
|
-
* the most recent invoice. In preview, invoices are available via this API only for invoice
|
|
32
|
-
* periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct
|
|
33
|
-
* subscriptions. Other subscription types which were not purchased directly through the Azure web
|
|
34
|
-
* portal are not supported through this preview API.
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.InvoicesListResponse>
|
|
37
|
-
*/
|
|
38
|
-
list(options?: Models.InvoicesListOptionalParams): Promise<Models.InvoicesListResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
list(callback: msRest.ServiceCallback<Models.InvoicesListResult>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param options The optional parameters
|
|
45
|
-
* @param callback The callback
|
|
46
|
-
*/
|
|
47
|
-
list(options: Models.InvoicesListOptionalParams, callback: msRest.ServiceCallback<Models.InvoicesListResult>): void;
|
|
48
|
-
list(options?: Models.InvoicesListOptionalParams | msRest.ServiceCallback<Models.InvoicesListResult>, callback?: msRest.ServiceCallback<Models.InvoicesListResult>): Promise<Models.InvoicesListResponse> {
|
|
49
|
-
return this.client.sendOperationRequest(
|
|
50
|
-
{
|
|
51
|
-
options
|
|
52
|
-
},
|
|
53
|
-
listOperationSpec,
|
|
54
|
-
callback) as Promise<Models.InvoicesListResponse>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Gets a named invoice resource. When getting a single invoice, the downloadUrl property is
|
|
59
|
-
* expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other
|
|
60
|
-
* subscription types which were not purchased directly through the Azure web portal are not
|
|
61
|
-
* supported through this preview API.
|
|
62
|
-
* @param invoiceName The name of an invoice resource.
|
|
63
|
-
* @param [options] The optional parameters
|
|
64
|
-
* @returns Promise<Models.InvoicesGetResponse>
|
|
65
|
-
*/
|
|
66
|
-
get(invoiceName: string, options?: msRest.RequestOptionsBase): Promise<Models.InvoicesGetResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* @param invoiceName The name of an invoice resource.
|
|
69
|
-
* @param callback The callback
|
|
70
|
-
*/
|
|
71
|
-
get(invoiceName: string, callback: msRest.ServiceCallback<Models.Invoice>): void;
|
|
72
|
-
/**
|
|
73
|
-
* @param invoiceName The name of an invoice resource.
|
|
74
|
-
* @param options The optional parameters
|
|
75
|
-
* @param callback The callback
|
|
76
|
-
*/
|
|
77
|
-
get(invoiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Invoice>): void;
|
|
78
|
-
get(invoiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Invoice>, callback?: msRest.ServiceCallback<Models.Invoice>): Promise<Models.InvoicesGetResponse> {
|
|
79
|
-
return this.client.sendOperationRequest(
|
|
80
|
-
{
|
|
81
|
-
invoiceName,
|
|
82
|
-
options
|
|
83
|
-
},
|
|
84
|
-
getOperationSpec,
|
|
85
|
-
callback) as Promise<Models.InvoicesGetResponse>;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Gets the most recent invoice. When getting a single invoice, the downloadUrl property is
|
|
90
|
-
* expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other
|
|
91
|
-
* subscription types which were not purchased directly through the Azure web portal are not
|
|
92
|
-
* supported through this preview API.
|
|
93
|
-
* @param [options] The optional parameters
|
|
94
|
-
* @returns Promise<Models.InvoicesGetLatestResponse>
|
|
95
|
-
*/
|
|
96
|
-
getLatest(options?: msRest.RequestOptionsBase): Promise<Models.InvoicesGetLatestResponse>;
|
|
97
|
-
/**
|
|
98
|
-
* @param callback The callback
|
|
99
|
-
*/
|
|
100
|
-
getLatest(callback: msRest.ServiceCallback<Models.Invoice>): void;
|
|
101
|
-
/**
|
|
102
|
-
* @param options The optional parameters
|
|
103
|
-
* @param callback The callback
|
|
104
|
-
*/
|
|
105
|
-
getLatest(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Invoice>): void;
|
|
106
|
-
getLatest(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Invoice>, callback?: msRest.ServiceCallback<Models.Invoice>): Promise<Models.InvoicesGetLatestResponse> {
|
|
107
|
-
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
options
|
|
110
|
-
},
|
|
111
|
-
getLatestOperationSpec,
|
|
112
|
-
callback) as Promise<Models.InvoicesGetLatestResponse>;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Lists the available invoices for a subscription in reverse chronological order beginning with
|
|
117
|
-
* the most recent invoice. In preview, invoices are available via this API only for invoice
|
|
118
|
-
* periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct
|
|
119
|
-
* subscriptions. Other subscription types which were not purchased directly through the Azure web
|
|
120
|
-
* portal are not supported through this preview API.
|
|
121
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
122
|
-
* @param [options] The optional parameters
|
|
123
|
-
* @returns Promise<Models.InvoicesListNextResponse>
|
|
124
|
-
*/
|
|
125
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.InvoicesListNextResponse>;
|
|
126
|
-
/**
|
|
127
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
128
|
-
* @param callback The callback
|
|
129
|
-
*/
|
|
130
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.InvoicesListResult>): void;
|
|
131
|
-
/**
|
|
132
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
133
|
-
* @param options The optional parameters
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.InvoicesListResult>): void;
|
|
137
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.InvoicesListResult>, callback?: msRest.ServiceCallback<Models.InvoicesListResult>): Promise<Models.InvoicesListNextResponse> {
|
|
138
|
-
return this.client.sendOperationRequest(
|
|
139
|
-
{
|
|
140
|
-
nextPageLink,
|
|
141
|
-
options
|
|
142
|
-
},
|
|
143
|
-
listNextOperationSpec,
|
|
144
|
-
callback) as Promise<Models.InvoicesListNextResponse>;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Operation Specifications
|
|
149
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
150
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
151
|
-
httpMethod: "GET",
|
|
152
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices",
|
|
153
|
-
urlParameters: [
|
|
154
|
-
Parameters.subscriptionId
|
|
155
|
-
],
|
|
156
|
-
queryParameters: [
|
|
157
|
-
Parameters.apiVersion,
|
|
158
|
-
Parameters.expand,
|
|
159
|
-
Parameters.filter,
|
|
160
|
-
Parameters.skiptoken,
|
|
161
|
-
Parameters.top
|
|
162
|
-
],
|
|
163
|
-
headerParameters: [
|
|
164
|
-
Parameters.acceptLanguage
|
|
165
|
-
],
|
|
166
|
-
responses: {
|
|
167
|
-
200: {
|
|
168
|
-
bodyMapper: Mappers.InvoicesListResult
|
|
169
|
-
},
|
|
170
|
-
default: {
|
|
171
|
-
bodyMapper: Mappers.ErrorResponse
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
serializer
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
178
|
-
httpMethod: "GET",
|
|
179
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices/{invoiceName}",
|
|
180
|
-
urlParameters: [
|
|
181
|
-
Parameters.subscriptionId,
|
|
182
|
-
Parameters.invoiceName
|
|
183
|
-
],
|
|
184
|
-
queryParameters: [
|
|
185
|
-
Parameters.apiVersion
|
|
186
|
-
],
|
|
187
|
-
headerParameters: [
|
|
188
|
-
Parameters.acceptLanguage
|
|
189
|
-
],
|
|
190
|
-
responses: {
|
|
191
|
-
200: {
|
|
192
|
-
bodyMapper: Mappers.Invoice
|
|
193
|
-
},
|
|
194
|
-
default: {
|
|
195
|
-
bodyMapper: Mappers.ErrorResponse
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
serializer
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
const getLatestOperationSpec: msRest.OperationSpec = {
|
|
202
|
-
httpMethod: "GET",
|
|
203
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices/latest",
|
|
204
|
-
urlParameters: [
|
|
205
|
-
Parameters.subscriptionId
|
|
206
|
-
],
|
|
207
|
-
queryParameters: [
|
|
208
|
-
Parameters.apiVersion
|
|
209
|
-
],
|
|
210
|
-
headerParameters: [
|
|
211
|
-
Parameters.acceptLanguage
|
|
212
|
-
],
|
|
213
|
-
responses: {
|
|
214
|
-
200: {
|
|
215
|
-
bodyMapper: Mappers.Invoice
|
|
216
|
-
},
|
|
217
|
-
default: {
|
|
218
|
-
bodyMapper: Mappers.ErrorResponse
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
serializer
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
225
|
-
httpMethod: "GET",
|
|
226
|
-
baseUrl: "https://management.azure.com",
|
|
227
|
-
path: "{nextLink}",
|
|
228
|
-
urlParameters: [
|
|
229
|
-
Parameters.nextPageLink
|
|
230
|
-
],
|
|
231
|
-
headerParameters: [
|
|
232
|
-
Parameters.acceptLanguage
|
|
233
|
-
],
|
|
234
|
-
responses: {
|
|
235
|
-
200: {
|
|
236
|
-
bodyMapper: Mappers.InvoicesListResult
|
|
237
|
-
},
|
|
238
|
-
default: {
|
|
239
|
-
bodyMapper: Mappers.ErrorResponse
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
serializer
|
|
243
|
-
};
|