@azure/arm-billing 3.1.1 → 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 +69 -81
- 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/{esm → dist-esm/src}/models/mappers.js +2114 -1808
- 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/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- 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 +65 -32
- package/review/arm-billing.api.md +2361 -0
- package/rollup.config.js +181 -30
- package/src/billingManagementClient.ts +144 -73
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2567 -3859
- package/src/models/mappers.ts +2120 -1803
- package/src/models/parameters.ts +257 -103
- package/src/operations/address.ts +38 -56
- package/src/operations/agreements.ts +133 -118
- package/src/operations/availableBalances.ts +41 -56
- package/src/operations/billingAccounts.ts +314 -229
- package/src/operations/billingPeriods.ts +131 -122
- package/src/operations/billingPermissions.ts +468 -275
- package/src/operations/billingProfiles.ts +236 -165
- package/src/operations/billingPropertyOperations.ts +55 -94
- package/src/operations/billingRoleAssignments.ts +506 -453
- package/src/operations/billingRoleDefinitions.ts +436 -334
- package/src/operations/billingSubscriptions.ts +669 -487
- package/src/operations/customers.ts +263 -187
- package/src/operations/enrollmentAccounts.ts +104 -108
- package/src/operations/index.ts +4 -5
- package/src/operations/instructions.ts +182 -167
- package/src/operations/invoiceSections.ts +265 -167
- package/src/operations/invoices.ts +903 -544
- package/src/operations/operations.ts +87 -73
- package/src/operations/policies.ts +112 -188
- package/src/operations/products.ts +599 -501
- package/src/operations/reservations.ts +344 -0
- package/src/operations/transactions.ts +133 -81
- 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 +3 -3
- package/types/arm-billing.d.ts +4451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-billing.js +0 -8674
- 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 -43
- package/esm/billingManagementClient.d.ts.map +0 -1
- package/esm/billingManagementClient.js +0 -57
- package/esm/billingManagementClient.js.map +0 -1
- package/esm/billingManagementClientContext.d.ts +0 -21
- package/esm/billingManagementClientContext.d.ts.map +0 -1
- package/esm/billingManagementClientContext.js +0 -60
- package/esm/billingManagementClientContext.js.map +0 -1
- package/esm/models/addressMappers.d.ts +0 -2
- package/esm/models/addressMappers.d.ts.map +0 -1
- package/esm/models/addressMappers.js +0 -9
- package/esm/models/addressMappers.js.map +0 -1
- package/esm/models/agreementsMappers.d.ts +0 -2
- package/esm/models/agreementsMappers.d.ts.map +0 -1
- package/esm/models/agreementsMappers.js +0 -9
- package/esm/models/agreementsMappers.js.map +0 -1
- package/esm/models/availableBalancesMappers.d.ts +0 -2
- package/esm/models/availableBalancesMappers.d.ts.map +0 -1
- package/esm/models/availableBalancesMappers.js +0 -9
- package/esm/models/availableBalancesMappers.js.map +0 -1
- package/esm/models/billingAccountsMappers.d.ts +0 -2
- package/esm/models/billingAccountsMappers.d.ts.map +0 -1
- package/esm/models/billingAccountsMappers.js +0 -9
- package/esm/models/billingAccountsMappers.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 -9
- package/esm/models/billingPeriodsMappers.js.map +0 -1
- package/esm/models/billingPermissionsMappers.d.ts +0 -2
- package/esm/models/billingPermissionsMappers.d.ts.map +0 -1
- package/esm/models/billingPermissionsMappers.js +0 -9
- package/esm/models/billingPermissionsMappers.js.map +0 -1
- package/esm/models/billingProfilesMappers.d.ts +0 -2
- package/esm/models/billingProfilesMappers.d.ts.map +0 -1
- package/esm/models/billingProfilesMappers.js +0 -9
- package/esm/models/billingProfilesMappers.js.map +0 -1
- package/esm/models/billingPropertyOperationsMappers.d.ts +0 -2
- package/esm/models/billingPropertyOperationsMappers.d.ts.map +0 -1
- package/esm/models/billingPropertyOperationsMappers.js +0 -9
- package/esm/models/billingPropertyOperationsMappers.js.map +0 -1
- package/esm/models/billingRoleAssignmentsMappers.d.ts +0 -2
- package/esm/models/billingRoleAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/billingRoleAssignmentsMappers.js +0 -9
- package/esm/models/billingRoleAssignmentsMappers.js.map +0 -1
- package/esm/models/billingRoleDefinitionsMappers.d.ts +0 -2
- package/esm/models/billingRoleDefinitionsMappers.d.ts.map +0 -1
- package/esm/models/billingRoleDefinitionsMappers.js +0 -9
- package/esm/models/billingRoleDefinitionsMappers.js.map +0 -1
- package/esm/models/billingSubscriptionsMappers.d.ts +0 -2
- package/esm/models/billingSubscriptionsMappers.d.ts.map +0 -1
- package/esm/models/billingSubscriptionsMappers.js +0 -9
- package/esm/models/billingSubscriptionsMappers.js.map +0 -1
- package/esm/models/customersMappers.d.ts +0 -2
- package/esm/models/customersMappers.d.ts.map +0 -1
- package/esm/models/customersMappers.js +0 -9
- package/esm/models/customersMappers.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 -9
- package/esm/models/enrollmentAccountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -4587
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/instructionsMappers.d.ts +0 -2
- package/esm/models/instructionsMappers.d.ts.map +0 -1
- package/esm/models/instructionsMappers.js +0 -9
- package/esm/models/instructionsMappers.js.map +0 -1
- package/esm/models/invoiceSectionsMappers.d.ts +0 -2
- package/esm/models/invoiceSectionsMappers.d.ts.map +0 -1
- package/esm/models/invoiceSectionsMappers.js +0 -9
- package/esm/models/invoiceSectionsMappers.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 -9
- package/esm/models/invoicesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -82
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -27
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -279
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policiesMappers.d.ts +0 -2
- package/esm/models/policiesMappers.d.ts.map +0 -1
- package/esm/models/policiesMappers.js +0 -9
- package/esm/models/policiesMappers.js.map +0 -1
- package/esm/models/productsMappers.d.ts +0 -2
- package/esm/models/productsMappers.d.ts.map +0 -1
- package/esm/models/productsMappers.js +0 -9
- package/esm/models/productsMappers.js.map +0 -1
- package/esm/models/transactionsMappers.d.ts +0 -2
- package/esm/models/transactionsMappers.d.ts.map +0 -1
- package/esm/models/transactionsMappers.js +0 -9
- package/esm/models/transactionsMappers.js.map +0 -1
- package/esm/operations/address.d.ts +0 -32
- package/esm/operations/address.d.ts.map +0 -1
- package/esm/operations/address.js +0 -57
- package/esm/operations/address.js.map +0 -1
- package/esm/operations/agreements.d.ts +0 -70
- package/esm/operations/agreements.d.ts.map +0 -1
- package/esm/operations/agreements.js +0 -113
- package/esm/operations/agreements.js.map +0 -1
- package/esm/operations/availableBalances.d.ts +0 -36
- package/esm/operations/availableBalances.d.ts.map +0 -1
- package/esm/operations/availableBalances.js +0 -57
- package/esm/operations/availableBalances.js.map +0 -1
- package/esm/operations/billingAccounts.d.ts +0 -127
- package/esm/operations/billingAccounts.d.ts.map +0 -1
- package/esm/operations/billingAccounts.js +0 -218
- package/esm/operations/billingAccounts.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/billingPermissions.d.ts +0 -169
- package/esm/operations/billingPermissions.d.ts.map +0 -1
- package/esm/operations/billingPermissions.js +0 -251
- package/esm/operations/billingPermissions.js.map +0 -1
- package/esm/operations/billingProfiles.d.ts +0 -94
- package/esm/operations/billingProfiles.d.ts.map +0 -1
- package/esm/operations/billingProfiles.js +0 -176
- package/esm/operations/billingProfiles.js.map +0 -1
- package/esm/operations/billingPropertyOperations.d.ts +0 -46
- package/esm/operations/billingPropertyOperations.d.ts.map +0 -1
- package/esm/operations/billingPropertyOperations.js +0 -91
- package/esm/operations/billingPropertyOperations.js.map +0 -1
- package/esm/operations/billingRoleAssignments.d.ts +0 -292
- package/esm/operations/billingRoleAssignments.d.ts.map +0 -1
- package/esm/operations/billingRoleAssignments.js +0 -387
- package/esm/operations/billingRoleAssignments.js.map +0 -1
- package/esm/operations/billingRoleDefinitions.d.ts +0 -211
- package/esm/operations/billingRoleDefinitions.d.ts.map +0 -1
- package/esm/operations/billingRoleDefinitions.js +0 -291
- package/esm/operations/billingRoleDefinitions.js.map +0 -1
- package/esm/operations/billingSubscriptions.d.ts +0 -267
- package/esm/operations/billingSubscriptions.d.ts.map +0 -1
- package/esm/operations/billingSubscriptions.js +0 -414
- package/esm/operations/billingSubscriptions.js.map +0 -1
- package/esm/operations/customers.d.ts +0 -114
- package/esm/operations/customers.d.ts.map +0 -1
- package/esm/operations/customers.js +0 -172
- package/esm/operations/customers.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.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/instructions.d.ts +0 -105
- package/esm/operations/instructions.d.ts.map +0 -1
- package/esm/operations/instructions.js +0 -153
- package/esm/operations/instructions.js.map +0 -1
- package/esm/operations/invoiceSections.d.ts +0 -102
- package/esm/operations/invoiceSections.d.ts.map +0 -1
- package/esm/operations/invoiceSections.js +0 -182
- package/esm/operations/invoiceSections.js.map +0 -1
- package/esm/operations/invoices.d.ts +0 -291
- package/esm/operations/invoices.d.ts.map +0 -1
- package/esm/operations/invoices.js +0 -539
- 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/esm/operations/policies.d.ts +0 -104
- package/esm/operations/policies.d.ts.map +0 -1
- package/esm/operations/policies.js +0 -162
- package/esm/operations/policies.js.map +0 -1
- package/esm/operations/products.d.ts +0 -279
- package/esm/operations/products.d.ts.map +0 -1
- package/esm/operations/products.js +0 -403
- package/esm/operations/products.js.map +0 -1
- package/esm/operations/transactions.d.ts +0 -54
- package/esm/operations/transactions.d.ts.map +0 -1
- package/esm/operations/transactions.js +0 -83
- package/esm/operations/transactions.js.map +0 -1
- package/src/billingManagementClientContext.ts +0 -66
- package/src/models/addressMappers.ts +0 -15
- package/src/models/agreementsMappers.ts +0 -50
- package/src/models/availableBalancesMappers.ts +0 -49
- package/src/models/billingAccountsMappers.ts +0 -53
- package/src/models/billingPeriodsMappers.ts +0 -50
- package/src/models/billingPermissionsMappers.ts +0 -15
- package/src/models/billingProfilesMappers.ts +0 -51
- package/src/models/billingPropertyOperationsMappers.ts +0 -49
- package/src/models/billingRoleAssignmentsMappers.ts +0 -50
- package/src/models/billingRoleDefinitionsMappers.ts +0 -50
- package/src/models/billingSubscriptionsMappers.ts +0 -54
- package/src/models/customersMappers.ts +0 -50
- package/src/models/enrollmentAccountsMappers.ts +0 -50
- package/src/models/instructionsMappers.ts +0 -50
- package/src/models/invoiceSectionsMappers.ts +0 -51
- package/src/models/invoicesMappers.ts +0 -55
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/policiesMappers.ts +0 -49
- package/src/models/productsMappers.ts +0 -54
- package/src/models/transactionsMappers.ts +0 -50
|
@@ -0,0 +1,344 @@
|
|
|
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 { Reservations } 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
|
+
Reservation,
|
|
17
|
+
ReservationsListByBillingAccountNextOptionalParams,
|
|
18
|
+
ReservationsListByBillingAccountOptionalParams,
|
|
19
|
+
ReservationsListByBillingProfileNextOptionalParams,
|
|
20
|
+
ReservationsListByBillingProfileOptionalParams,
|
|
21
|
+
ReservationsListByBillingAccountResponse,
|
|
22
|
+
ReservationsListByBillingProfileResponse,
|
|
23
|
+
ReservationsListByBillingAccountNextResponse,
|
|
24
|
+
ReservationsListByBillingProfileNextResponse
|
|
25
|
+
} from "../models";
|
|
26
|
+
|
|
27
|
+
/// <reference lib="esnext.asynciterable" />
|
|
28
|
+
/** Class containing Reservations operations. */
|
|
29
|
+
export class ReservationsImpl implements Reservations {
|
|
30
|
+
private readonly client: BillingManagementClient;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Initialize a new instance of the class Reservations class.
|
|
34
|
+
* @param client Reference to the service client
|
|
35
|
+
*/
|
|
36
|
+
constructor(client: BillingManagementClient) {
|
|
37
|
+
this.client = client;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Lists the reservations for a billing account and the roll up counts of reservations group by
|
|
42
|
+
* provisioning states.
|
|
43
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
public listByBillingAccount(
|
|
47
|
+
billingAccountName: string,
|
|
48
|
+
options?: ReservationsListByBillingAccountOptionalParams
|
|
49
|
+
): PagedAsyncIterableIterator<Reservation> {
|
|
50
|
+
const iter = this.listByBillingAccountPagingAll(
|
|
51
|
+
billingAccountName,
|
|
52
|
+
options
|
|
53
|
+
);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listByBillingAccountPagingPage(billingAccountName, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async *listByBillingAccountPagingPage(
|
|
68
|
+
billingAccountName: string,
|
|
69
|
+
options?: ReservationsListByBillingAccountOptionalParams
|
|
70
|
+
): AsyncIterableIterator<Reservation[]> {
|
|
71
|
+
let result = await this._listByBillingAccount(billingAccountName, options);
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
let continuationToken = result.nextLink;
|
|
74
|
+
while (continuationToken) {
|
|
75
|
+
result = await this._listByBillingAccountNext(
|
|
76
|
+
billingAccountName,
|
|
77
|
+
continuationToken,
|
|
78
|
+
options
|
|
79
|
+
);
|
|
80
|
+
continuationToken = result.nextLink;
|
|
81
|
+
yield result.value || [];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listByBillingAccountPagingAll(
|
|
86
|
+
billingAccountName: string,
|
|
87
|
+
options?: ReservationsListByBillingAccountOptionalParams
|
|
88
|
+
): AsyncIterableIterator<Reservation> {
|
|
89
|
+
for await (const page of this.listByBillingAccountPagingPage(
|
|
90
|
+
billingAccountName,
|
|
91
|
+
options
|
|
92
|
+
)) {
|
|
93
|
+
yield* page;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Lists the reservations for a billing profile and the roll up counts of reservations group by
|
|
99
|
+
* provisioning state.
|
|
100
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
101
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
public listByBillingProfile(
|
|
105
|
+
billingAccountName: string,
|
|
106
|
+
billingProfileName: string,
|
|
107
|
+
options?: ReservationsListByBillingProfileOptionalParams
|
|
108
|
+
): PagedAsyncIterableIterator<Reservation> {
|
|
109
|
+
const iter = this.listByBillingProfilePagingAll(
|
|
110
|
+
billingAccountName,
|
|
111
|
+
billingProfileName,
|
|
112
|
+
options
|
|
113
|
+
);
|
|
114
|
+
return {
|
|
115
|
+
next() {
|
|
116
|
+
return iter.next();
|
|
117
|
+
},
|
|
118
|
+
[Symbol.asyncIterator]() {
|
|
119
|
+
return this;
|
|
120
|
+
},
|
|
121
|
+
byPage: () => {
|
|
122
|
+
return this.listByBillingProfilePagingPage(
|
|
123
|
+
billingAccountName,
|
|
124
|
+
billingProfileName,
|
|
125
|
+
options
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private async *listByBillingProfilePagingPage(
|
|
132
|
+
billingAccountName: string,
|
|
133
|
+
billingProfileName: string,
|
|
134
|
+
options?: ReservationsListByBillingProfileOptionalParams
|
|
135
|
+
): AsyncIterableIterator<Reservation[]> {
|
|
136
|
+
let result = await this._listByBillingProfile(
|
|
137
|
+
billingAccountName,
|
|
138
|
+
billingProfileName,
|
|
139
|
+
options
|
|
140
|
+
);
|
|
141
|
+
yield result.value || [];
|
|
142
|
+
let continuationToken = result.nextLink;
|
|
143
|
+
while (continuationToken) {
|
|
144
|
+
result = await this._listByBillingProfileNext(
|
|
145
|
+
billingAccountName,
|
|
146
|
+
billingProfileName,
|
|
147
|
+
continuationToken,
|
|
148
|
+
options
|
|
149
|
+
);
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
yield result.value || [];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private async *listByBillingProfilePagingAll(
|
|
156
|
+
billingAccountName: string,
|
|
157
|
+
billingProfileName: string,
|
|
158
|
+
options?: ReservationsListByBillingProfileOptionalParams
|
|
159
|
+
): AsyncIterableIterator<Reservation> {
|
|
160
|
+
for await (const page of this.listByBillingProfilePagingPage(
|
|
161
|
+
billingAccountName,
|
|
162
|
+
billingProfileName,
|
|
163
|
+
options
|
|
164
|
+
)) {
|
|
165
|
+
yield* page;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Lists the reservations for a billing account and the roll up counts of reservations group by
|
|
171
|
+
* provisioning states.
|
|
172
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
private _listByBillingAccount(
|
|
176
|
+
billingAccountName: string,
|
|
177
|
+
options?: ReservationsListByBillingAccountOptionalParams
|
|
178
|
+
): Promise<ReservationsListByBillingAccountResponse> {
|
|
179
|
+
return this.client.sendOperationRequest(
|
|
180
|
+
{ billingAccountName, options },
|
|
181
|
+
listByBillingAccountOperationSpec
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Lists the reservations for a billing profile and the roll up counts of reservations group by
|
|
187
|
+
* provisioning state.
|
|
188
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
189
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
190
|
+
* @param options The options parameters.
|
|
191
|
+
*/
|
|
192
|
+
private _listByBillingProfile(
|
|
193
|
+
billingAccountName: string,
|
|
194
|
+
billingProfileName: string,
|
|
195
|
+
options?: ReservationsListByBillingProfileOptionalParams
|
|
196
|
+
): Promise<ReservationsListByBillingProfileResponse> {
|
|
197
|
+
return this.client.sendOperationRequest(
|
|
198
|
+
{ billingAccountName, billingProfileName, options },
|
|
199
|
+
listByBillingProfileOperationSpec
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* ListByBillingAccountNext
|
|
205
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
206
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
private _listByBillingAccountNext(
|
|
210
|
+
billingAccountName: string,
|
|
211
|
+
nextLink: string,
|
|
212
|
+
options?: ReservationsListByBillingAccountNextOptionalParams
|
|
213
|
+
): Promise<ReservationsListByBillingAccountNextResponse> {
|
|
214
|
+
return this.client.sendOperationRequest(
|
|
215
|
+
{ billingAccountName, nextLink, options },
|
|
216
|
+
listByBillingAccountNextOperationSpec
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* ListByBillingProfileNext
|
|
222
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
223
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
224
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
|
|
225
|
+
* @param options The options parameters.
|
|
226
|
+
*/
|
|
227
|
+
private _listByBillingProfileNext(
|
|
228
|
+
billingAccountName: string,
|
|
229
|
+
billingProfileName: string,
|
|
230
|
+
nextLink: string,
|
|
231
|
+
options?: ReservationsListByBillingProfileNextOptionalParams
|
|
232
|
+
): Promise<ReservationsListByBillingProfileNextResponse> {
|
|
233
|
+
return this.client.sendOperationRequest(
|
|
234
|
+
{ billingAccountName, billingProfileName, nextLink, options },
|
|
235
|
+
listByBillingProfileNextOperationSpec
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// Operation Specifications
|
|
240
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
241
|
+
|
|
242
|
+
const listByBillingAccountOperationSpec: coreClient.OperationSpec = {
|
|
243
|
+
path:
|
|
244
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/reservations",
|
|
245
|
+
httpMethod: "GET",
|
|
246
|
+
responses: {
|
|
247
|
+
200: {
|
|
248
|
+
bodyMapper: Mappers.ReservationsListResult
|
|
249
|
+
},
|
|
250
|
+
default: {
|
|
251
|
+
bodyMapper: Mappers.ErrorResponse
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
queryParameters: [
|
|
255
|
+
Parameters.apiVersion,
|
|
256
|
+
Parameters.filter,
|
|
257
|
+
Parameters.orderby,
|
|
258
|
+
Parameters.refreshSummary,
|
|
259
|
+
Parameters.selectedState
|
|
260
|
+
],
|
|
261
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
262
|
+
headerParameters: [Parameters.accept],
|
|
263
|
+
serializer
|
|
264
|
+
};
|
|
265
|
+
const listByBillingProfileOperationSpec: coreClient.OperationSpec = {
|
|
266
|
+
path:
|
|
267
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/reservations",
|
|
268
|
+
httpMethod: "GET",
|
|
269
|
+
responses: {
|
|
270
|
+
200: {
|
|
271
|
+
bodyMapper: Mappers.ReservationsListResult
|
|
272
|
+
},
|
|
273
|
+
default: {
|
|
274
|
+
bodyMapper: Mappers.ErrorResponse
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
queryParameters: [
|
|
278
|
+
Parameters.apiVersion,
|
|
279
|
+
Parameters.filter,
|
|
280
|
+
Parameters.orderby,
|
|
281
|
+
Parameters.refreshSummary,
|
|
282
|
+
Parameters.selectedState
|
|
283
|
+
],
|
|
284
|
+
urlParameters: [
|
|
285
|
+
Parameters.$host,
|
|
286
|
+
Parameters.billingAccountName,
|
|
287
|
+
Parameters.billingProfileName
|
|
288
|
+
],
|
|
289
|
+
headerParameters: [Parameters.accept],
|
|
290
|
+
serializer
|
|
291
|
+
};
|
|
292
|
+
const listByBillingAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
293
|
+
path: "{nextLink}",
|
|
294
|
+
httpMethod: "GET",
|
|
295
|
+
responses: {
|
|
296
|
+
200: {
|
|
297
|
+
bodyMapper: Mappers.ReservationsListResult
|
|
298
|
+
},
|
|
299
|
+
default: {
|
|
300
|
+
bodyMapper: Mappers.ErrorResponse
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
queryParameters: [
|
|
304
|
+
Parameters.apiVersion,
|
|
305
|
+
Parameters.filter,
|
|
306
|
+
Parameters.orderby,
|
|
307
|
+
Parameters.refreshSummary,
|
|
308
|
+
Parameters.selectedState
|
|
309
|
+
],
|
|
310
|
+
urlParameters: [
|
|
311
|
+
Parameters.$host,
|
|
312
|
+
Parameters.billingAccountName,
|
|
313
|
+
Parameters.nextLink
|
|
314
|
+
],
|
|
315
|
+
headerParameters: [Parameters.accept],
|
|
316
|
+
serializer
|
|
317
|
+
};
|
|
318
|
+
const listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {
|
|
319
|
+
path: "{nextLink}",
|
|
320
|
+
httpMethod: "GET",
|
|
321
|
+
responses: {
|
|
322
|
+
200: {
|
|
323
|
+
bodyMapper: Mappers.ReservationsListResult
|
|
324
|
+
},
|
|
325
|
+
default: {
|
|
326
|
+
bodyMapper: Mappers.ErrorResponse
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
queryParameters: [
|
|
330
|
+
Parameters.apiVersion,
|
|
331
|
+
Parameters.filter,
|
|
332
|
+
Parameters.orderby,
|
|
333
|
+
Parameters.refreshSummary,
|
|
334
|
+
Parameters.selectedState
|
|
335
|
+
],
|
|
336
|
+
urlParameters: [
|
|
337
|
+
Parameters.$host,
|
|
338
|
+
Parameters.billingAccountName,
|
|
339
|
+
Parameters.nextLink,
|
|
340
|
+
Parameters.billingProfileName
|
|
341
|
+
],
|
|
342
|
+
headerParameters: [Parameters.accept],
|
|
343
|
+
serializer
|
|
344
|
+
};
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Transactions } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Transaction,
|
|
17
|
+
TransactionsListByInvoiceNextOptionalParams,
|
|
18
|
+
TransactionsListByInvoiceOptionalParams,
|
|
19
|
+
TransactionsListByInvoiceResponse,
|
|
20
|
+
TransactionsListByInvoiceNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Transactions operations. */
|
|
25
|
+
export class TransactionsImpl implements Transactions {
|
|
26
|
+
private readonly client: BillingManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Transactions class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: BillingManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
@@ -31,79 +38,117 @@ export class Transactions {
|
|
|
31
38
|
* charges.
|
|
32
39
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
33
40
|
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.TransactionsListByInvoiceResponse>
|
|
41
|
+
* @param options The options parameters.
|
|
36
42
|
*/
|
|
37
|
-
listByInvoice(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
public listByInvoice(
|
|
44
|
+
billingAccountName: string,
|
|
45
|
+
invoiceName: string,
|
|
46
|
+
options?: TransactionsListByInvoiceOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<Transaction> {
|
|
48
|
+
const iter = this.listByInvoicePagingAll(
|
|
49
|
+
billingAccountName,
|
|
50
|
+
invoiceName,
|
|
51
|
+
options
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: () => {
|
|
61
|
+
return this.listByInvoicePagingPage(
|
|
62
|
+
billingAccountName,
|
|
63
|
+
invoiceName,
|
|
64
|
+
options
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listByInvoicePagingPage(
|
|
71
|
+
billingAccountName: string,
|
|
72
|
+
invoiceName: string,
|
|
73
|
+
options?: TransactionsListByInvoiceOptionalParams
|
|
74
|
+
): AsyncIterableIterator<Transaction[]> {
|
|
75
|
+
let result = await this._listByInvoice(
|
|
76
|
+
billingAccountName,
|
|
77
|
+
invoiceName,
|
|
78
|
+
options
|
|
79
|
+
);
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
let continuationToken = result.nextLink;
|
|
82
|
+
while (continuationToken) {
|
|
83
|
+
result = await this._listByInvoiceNext(
|
|
54
84
|
billingAccountName,
|
|
55
85
|
invoiceName,
|
|
86
|
+
continuationToken,
|
|
56
87
|
options
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
88
|
+
);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private async *listByInvoicePagingAll(
|
|
95
|
+
billingAccountName: string,
|
|
96
|
+
invoiceName: string,
|
|
97
|
+
options?: TransactionsListByInvoiceOptionalParams
|
|
98
|
+
): AsyncIterableIterator<Transaction> {
|
|
99
|
+
for await (const page of this.listByInvoicePagingPage(
|
|
100
|
+
billingAccountName,
|
|
101
|
+
invoiceName,
|
|
102
|
+
options
|
|
103
|
+
)) {
|
|
104
|
+
yield* page;
|
|
105
|
+
}
|
|
60
106
|
}
|
|
61
107
|
|
|
62
108
|
/**
|
|
63
109
|
* Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage
|
|
64
110
|
* charges.
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @
|
|
68
|
-
*/
|
|
69
|
-
listByInvoiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.TransactionsListByInvoiceNextResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
72
|
-
* @param callback The callback
|
|
111
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
112
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
113
|
+
* @param options The options parameters.
|
|
73
114
|
*/
|
|
74
|
-
|
|
115
|
+
private _listByInvoice(
|
|
116
|
+
billingAccountName: string,
|
|
117
|
+
invoiceName: string,
|
|
118
|
+
options?: TransactionsListByInvoiceOptionalParams
|
|
119
|
+
): Promise<TransactionsListByInvoiceResponse> {
|
|
120
|
+
return this.client.sendOperationRequest(
|
|
121
|
+
{ billingAccountName, invoiceName, options },
|
|
122
|
+
listByInvoiceOperationSpec
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
75
126
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @param
|
|
78
|
-
* @param
|
|
127
|
+
* ListByInvoiceNext
|
|
128
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
129
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
130
|
+
* @param nextLink The nextLink from the previous successful call to the ListByInvoice method.
|
|
131
|
+
* @param options The options parameters.
|
|
79
132
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
133
|
+
private _listByInvoiceNext(
|
|
134
|
+
billingAccountName: string,
|
|
135
|
+
invoiceName: string,
|
|
136
|
+
nextLink: string,
|
|
137
|
+
options?: TransactionsListByInvoiceNextOptionalParams
|
|
138
|
+
): Promise<TransactionsListByInvoiceNextResponse> {
|
|
82
139
|
return this.client.sendOperationRequest(
|
|
83
|
-
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
listByInvoiceNextOperationSpec,
|
|
88
|
-
callback) as Promise<Models.TransactionsListByInvoiceNextResponse>;
|
|
140
|
+
{ billingAccountName, invoiceName, nextLink, options },
|
|
141
|
+
listByInvoiceNextOperationSpec
|
|
142
|
+
);
|
|
89
143
|
}
|
|
90
144
|
}
|
|
91
|
-
|
|
92
145
|
// Operation Specifications
|
|
93
|
-
const serializer =
|
|
94
|
-
|
|
146
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
147
|
+
|
|
148
|
+
const listByInvoiceOperationSpec: coreClient.OperationSpec = {
|
|
149
|
+
path:
|
|
150
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions",
|
|
95
151
|
httpMethod: "GET",
|
|
96
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions",
|
|
97
|
-
urlParameters: [
|
|
98
|
-
Parameters.billingAccountName,
|
|
99
|
-
Parameters.invoiceName
|
|
100
|
-
],
|
|
101
|
-
queryParameters: [
|
|
102
|
-
Parameters.apiVersion0
|
|
103
|
-
],
|
|
104
|
-
headerParameters: [
|
|
105
|
-
Parameters.acceptLanguage
|
|
106
|
-
],
|
|
107
152
|
responses: {
|
|
108
153
|
200: {
|
|
109
154
|
bodyMapper: Mappers.TransactionListResult
|
|
@@ -112,19 +157,18 @@ const listByInvoiceOperationSpec: msRest.OperationSpec = {
|
|
|
112
157
|
bodyMapper: Mappers.ErrorResponse
|
|
113
158
|
}
|
|
114
159
|
},
|
|
160
|
+
queryParameters: [Parameters.apiVersion],
|
|
161
|
+
urlParameters: [
|
|
162
|
+
Parameters.$host,
|
|
163
|
+
Parameters.billingAccountName,
|
|
164
|
+
Parameters.invoiceName
|
|
165
|
+
],
|
|
166
|
+
headerParameters: [Parameters.accept],
|
|
115
167
|
serializer
|
|
116
168
|
};
|
|
117
|
-
|
|
118
|
-
const listByInvoiceNextOperationSpec: msRest.OperationSpec = {
|
|
119
|
-
httpMethod: "GET",
|
|
120
|
-
baseUrl: "https://management.azure.com",
|
|
169
|
+
const listByInvoiceNextOperationSpec: coreClient.OperationSpec = {
|
|
121
170
|
path: "{nextLink}",
|
|
122
|
-
|
|
123
|
-
Parameters.nextPageLink
|
|
124
|
-
],
|
|
125
|
-
headerParameters: [
|
|
126
|
-
Parameters.acceptLanguage
|
|
127
|
-
],
|
|
171
|
+
httpMethod: "GET",
|
|
128
172
|
responses: {
|
|
129
173
|
200: {
|
|
130
174
|
bodyMapper: Mappers.TransactionListResult
|
|
@@ -133,5 +177,13 @@ const listByInvoiceNextOperationSpec: msRest.OperationSpec = {
|
|
|
133
177
|
bodyMapper: Mappers.ErrorResponse
|
|
134
178
|
}
|
|
135
179
|
},
|
|
180
|
+
queryParameters: [Parameters.apiVersion],
|
|
181
|
+
urlParameters: [
|
|
182
|
+
Parameters.$host,
|
|
183
|
+
Parameters.billingAccountName,
|
|
184
|
+
Parameters.nextLink,
|
|
185
|
+
Parameters.invoiceName
|
|
186
|
+
],
|
|
187
|
+
headerParameters: [Parameters.accept],
|
|
136
188
|
serializer
|
|
137
189
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 {
|
|
10
|
+
AddressDetails,
|
|
11
|
+
AddressValidateOptionalParams,
|
|
12
|
+
AddressValidateResponse
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/** Interface representing a Address. */
|
|
16
|
+
export interface Address {
|
|
17
|
+
/**
|
|
18
|
+
* Validates an address. Use the operation to validate an address before using it as soldTo or a billTo
|
|
19
|
+
* address.
|
|
20
|
+
* @param address Address details.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
validate(
|
|
24
|
+
address: AddressDetails,
|
|
25
|
+
options?: AddressValidateOptionalParams
|
|
26
|
+
): Promise<AddressValidateResponse>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 {
|
|
11
|
+
Agreement,
|
|
12
|
+
AgreementsListByBillingAccountOptionalParams,
|
|
13
|
+
AgreementsGetOptionalParams,
|
|
14
|
+
AgreementsGetResponse
|
|
15
|
+
} from "../models";
|
|
16
|
+
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Interface representing a Agreements. */
|
|
19
|
+
export interface Agreements {
|
|
20
|
+
/**
|
|
21
|
+
* Lists the agreements for a billing account.
|
|
22
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listByBillingAccount(
|
|
26
|
+
billingAccountName: string,
|
|
27
|
+
options?: AgreementsListByBillingAccountOptionalParams
|
|
28
|
+
): PagedAsyncIterableIterator<Agreement>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets an agreement by ID.
|
|
31
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
32
|
+
* @param agreementName The ID that uniquely identifies an agreement.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
get(
|
|
36
|
+
billingAccountName: string,
|
|
37
|
+
agreementName: string,
|
|
38
|
+
options?: AgreementsGetOptionalParams
|
|
39
|
+
): Promise<AgreementsGetResponse>;
|
|
40
|
+
}
|