@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
|
@@ -1,221 +1,327 @@
|
|
|
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
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { BillingAccounts } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
BillingAccount,
|
|
19
|
+
BillingAccountsListNextOptionalParams,
|
|
20
|
+
BillingAccountsListOptionalParams,
|
|
21
|
+
InvoiceSectionWithCreateSubPermission,
|
|
22
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,
|
|
23
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,
|
|
24
|
+
BillingAccountsListResponse,
|
|
25
|
+
BillingAccountsGetOptionalParams,
|
|
26
|
+
BillingAccountsGetResponse,
|
|
27
|
+
BillingAccountUpdateRequest,
|
|
28
|
+
BillingAccountsUpdateOptionalParams,
|
|
29
|
+
BillingAccountsUpdateResponse,
|
|
30
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse,
|
|
31
|
+
BillingAccountsListNextResponse,
|
|
32
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse
|
|
33
|
+
} from "../models";
|
|
17
34
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing BillingAccounts operations. */
|
|
37
|
+
export class BillingAccountsImpl implements BillingAccounts {
|
|
38
|
+
private readonly client: BillingManagementClient;
|
|
21
39
|
|
|
22
40
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
41
|
+
* Initialize a new instance of the class BillingAccounts class.
|
|
42
|
+
* @param client Reference to the service client
|
|
25
43
|
*/
|
|
26
|
-
constructor(client:
|
|
44
|
+
constructor(client: BillingManagementClient) {
|
|
27
45
|
this.client = client;
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
/**
|
|
31
49
|
* Lists the billing accounts that a user has access to.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.BillingAccountsListResponse>
|
|
50
|
+
* @param options The options parameters.
|
|
34
51
|
*/
|
|
35
|
-
list(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @param callback The callback
|
|
43
|
-
*/
|
|
44
|
-
list(options: Models.BillingAccountsListOptionalParams, callback: msRest.ServiceCallback<Models.BillingAccountListResult>): void;
|
|
45
|
-
list(options?: Models.BillingAccountsListOptionalParams | msRest.ServiceCallback<Models.BillingAccountListResult>, callback?: msRest.ServiceCallback<Models.BillingAccountListResult>): Promise<Models.BillingAccountsListResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
52
|
+
public list(
|
|
53
|
+
options?: BillingAccountsListOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<BillingAccount> {
|
|
55
|
+
const iter = this.listPagingAll(options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
49
59
|
},
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listPagingPage(options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listPagingPage(
|
|
70
|
+
options?: BillingAccountsListOptionalParams
|
|
71
|
+
): AsyncIterableIterator<BillingAccount[]> {
|
|
72
|
+
let result = await this._list(options);
|
|
73
|
+
yield result.value || [];
|
|
74
|
+
let continuationToken = result.nextLink;
|
|
75
|
+
while (continuationToken) {
|
|
76
|
+
result = await this._listNext(continuationToken, options);
|
|
77
|
+
continuationToken = result.nextLink;
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listPagingAll(
|
|
83
|
+
options?: BillingAccountsListOptionalParams
|
|
84
|
+
): AsyncIterableIterator<BillingAccount> {
|
|
85
|
+
for await (const page of this.listPagingPage(options)) {
|
|
86
|
+
yield* page;
|
|
87
|
+
}
|
|
52
88
|
}
|
|
53
89
|
|
|
54
90
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @param [options] The optional parameters
|
|
58
|
-
* @returns Promise<Models.BillingAccountsGetResponse>
|
|
59
|
-
*/
|
|
60
|
-
get(billingAccountName: string, options?: Models.BillingAccountsGetOptionalParams): Promise<Models.BillingAccountsGetResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
63
|
-
* @param callback The callback
|
|
64
|
-
*/
|
|
65
|
-
get(billingAccountName: string, callback: msRest.ServiceCallback<Models.BillingAccount>): void;
|
|
66
|
-
/**
|
|
91
|
+
* Lists the invoice sections for which the user has permission to create Azure subscriptions. The
|
|
92
|
+
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
|
|
67
93
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
68
|
-
* @param options The
|
|
69
|
-
* @param callback The callback
|
|
94
|
+
* @param options The options parameters.
|
|
70
95
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
public listInvoiceSectionsByCreateSubscriptionPermission(
|
|
97
|
+
billingAccountName: string,
|
|
98
|
+
options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams
|
|
99
|
+
): PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {
|
|
100
|
+
const iter = this.listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(
|
|
101
|
+
billingAccountName,
|
|
102
|
+
options
|
|
103
|
+
);
|
|
104
|
+
return {
|
|
105
|
+
next() {
|
|
106
|
+
return iter.next();
|
|
107
|
+
},
|
|
108
|
+
[Symbol.asyncIterator]() {
|
|
109
|
+
return this;
|
|
110
|
+
},
|
|
111
|
+
byPage: () => {
|
|
112
|
+
return this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(
|
|
113
|
+
billingAccountName,
|
|
114
|
+
options
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private async *listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(
|
|
121
|
+
billingAccountName: string,
|
|
122
|
+
options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams
|
|
123
|
+
): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission[]> {
|
|
124
|
+
let result = await this._listInvoiceSectionsByCreateSubscriptionPermission(
|
|
125
|
+
billingAccountName,
|
|
126
|
+
options
|
|
127
|
+
);
|
|
128
|
+
yield result.value || [];
|
|
129
|
+
let continuationToken = result.nextLink;
|
|
130
|
+
while (continuationToken) {
|
|
131
|
+
result = await this._listInvoiceSectionsByCreateSubscriptionPermissionNext(
|
|
75
132
|
billingAccountName,
|
|
133
|
+
continuationToken,
|
|
76
134
|
options
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
135
|
+
);
|
|
136
|
+
continuationToken = result.nextLink;
|
|
137
|
+
yield result.value || [];
|
|
138
|
+
}
|
|
80
139
|
}
|
|
81
140
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return this.beginUpdate(billingAccountName,parameters,options)
|
|
93
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.BillingAccountsUpdateResponse>;
|
|
141
|
+
private async *listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(
|
|
142
|
+
billingAccountName: string,
|
|
143
|
+
options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams
|
|
144
|
+
): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {
|
|
145
|
+
for await (const page of this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(
|
|
146
|
+
billingAccountName,
|
|
147
|
+
options
|
|
148
|
+
)) {
|
|
149
|
+
yield* page;
|
|
150
|
+
}
|
|
94
151
|
}
|
|
95
152
|
|
|
96
153
|
/**
|
|
97
|
-
* Lists the
|
|
98
|
-
*
|
|
99
|
-
* Agreement.
|
|
100
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
101
|
-
* @param [options] The optional parameters
|
|
102
|
-
* @returns
|
|
103
|
-
* Promise<Models.BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse>
|
|
104
|
-
*/
|
|
105
|
-
listInvoiceSectionsByCreateSubscriptionPermission(billingAccountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
108
|
-
* @param callback The callback
|
|
154
|
+
* Lists the billing accounts that a user has access to.
|
|
155
|
+
* @param options The options parameters.
|
|
109
156
|
*/
|
|
110
|
-
|
|
157
|
+
private _list(
|
|
158
|
+
options?: BillingAccountsListOptionalParams
|
|
159
|
+
): Promise<BillingAccountsListResponse> {
|
|
160
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
161
|
+
}
|
|
162
|
+
|
|
111
163
|
/**
|
|
164
|
+
* Gets a billing account by its ID.
|
|
112
165
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
113
|
-
* @param options The
|
|
114
|
-
* @param callback The callback
|
|
166
|
+
* @param options The options parameters.
|
|
115
167
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
168
|
+
get(
|
|
169
|
+
billingAccountName: string,
|
|
170
|
+
options?: BillingAccountsGetOptionalParams
|
|
171
|
+
): Promise<BillingAccountsGetResponse> {
|
|
118
172
|
return this.client.sendOperationRequest(
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec,
|
|
124
|
-
callback) as Promise<Models.BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse>;
|
|
173
|
+
{ billingAccountName, options },
|
|
174
|
+
getOperationSpec
|
|
175
|
+
);
|
|
125
176
|
}
|
|
126
177
|
|
|
127
178
|
/**
|
|
128
|
-
* Updates the properties of a billing account. Currently, displayName and address can be updated.
|
|
129
|
-
*
|
|
130
|
-
* Agreement.
|
|
179
|
+
* Updates the properties of a billing account. Currently, displayName and address can be updated. The
|
|
180
|
+
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
|
|
131
181
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
132
182
|
* @param parameters Request parameters that are provided to the update billing account operation.
|
|
133
|
-
* @param
|
|
134
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
183
|
+
* @param options The options parameters.
|
|
135
184
|
*/
|
|
136
|
-
beginUpdate(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
185
|
+
async beginUpdate(
|
|
186
|
+
billingAccountName: string,
|
|
187
|
+
parameters: BillingAccountUpdateRequest,
|
|
188
|
+
options?: BillingAccountsUpdateOptionalParams
|
|
189
|
+
): Promise<
|
|
190
|
+
PollerLike<
|
|
191
|
+
PollOperationState<BillingAccountsUpdateResponse>,
|
|
192
|
+
BillingAccountsUpdateResponse
|
|
193
|
+
>
|
|
194
|
+
> {
|
|
195
|
+
const directSendOperation = async (
|
|
196
|
+
args: coreClient.OperationArguments,
|
|
197
|
+
spec: coreClient.OperationSpec
|
|
198
|
+
): Promise<BillingAccountsUpdateResponse> => {
|
|
199
|
+
return this.client.sendOperationRequest(args, spec);
|
|
200
|
+
};
|
|
201
|
+
const sendOperation = async (
|
|
202
|
+
args: coreClient.OperationArguments,
|
|
203
|
+
spec: coreClient.OperationSpec
|
|
204
|
+
) => {
|
|
205
|
+
let currentRawResponse:
|
|
206
|
+
| coreClient.FullOperationResponse
|
|
207
|
+
| undefined = undefined;
|
|
208
|
+
const providedCallback = args.options?.onResponse;
|
|
209
|
+
const callback: coreClient.RawResponseCallback = (
|
|
210
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
211
|
+
flatResponse: unknown
|
|
212
|
+
) => {
|
|
213
|
+
currentRawResponse = rawResponse;
|
|
214
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
215
|
+
};
|
|
216
|
+
const updatedArgs = {
|
|
217
|
+
...args,
|
|
218
|
+
options: {
|
|
219
|
+
...args.options,
|
|
220
|
+
onResponse: callback
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
224
|
+
return {
|
|
225
|
+
flatResponse,
|
|
226
|
+
rawResponse: {
|
|
227
|
+
statusCode: currentRawResponse!.status,
|
|
228
|
+
body: currentRawResponse!.parsedBody,
|
|
229
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
const lro = new LroImpl(
|
|
235
|
+
sendOperation,
|
|
236
|
+
{ billingAccountName, parameters, options },
|
|
237
|
+
updateOperationSpec
|
|
238
|
+
);
|
|
239
|
+
return new LroEngine(lro, {
|
|
240
|
+
resumeFrom: options?.resumeFrom,
|
|
241
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
242
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
243
|
+
});
|
|
145
244
|
}
|
|
146
245
|
|
|
147
246
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* @param
|
|
151
|
-
* @
|
|
152
|
-
|
|
153
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BillingAccountsListNextResponse>;
|
|
154
|
-
/**
|
|
155
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
156
|
-
* @param callback The callback
|
|
157
|
-
*/
|
|
158
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.BillingAccountListResult>): void;
|
|
159
|
-
/**
|
|
160
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
161
|
-
* @param options The optional parameters
|
|
162
|
-
* @param callback The callback
|
|
247
|
+
* Updates the properties of a billing account. Currently, displayName and address can be updated. The
|
|
248
|
+
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
|
|
249
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
250
|
+
* @param parameters Request parameters that are provided to the update billing account operation.
|
|
251
|
+
* @param options The options parameters.
|
|
163
252
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
253
|
+
async beginUpdateAndWait(
|
|
254
|
+
billingAccountName: string,
|
|
255
|
+
parameters: BillingAccountUpdateRequest,
|
|
256
|
+
options?: BillingAccountsUpdateOptionalParams
|
|
257
|
+
): Promise<BillingAccountsUpdateResponse> {
|
|
258
|
+
const poller = await this.beginUpdate(
|
|
259
|
+
billingAccountName,
|
|
260
|
+
parameters,
|
|
261
|
+
options
|
|
262
|
+
);
|
|
263
|
+
return poller.pollUntilDone();
|
|
173
264
|
}
|
|
174
265
|
|
|
175
266
|
/**
|
|
176
267
|
* Lists the invoice sections for which the user has permission to create Azure subscriptions. The
|
|
177
|
-
* operation is supported only for billing accounts with agreement type Microsoft Customer
|
|
178
|
-
*
|
|
179
|
-
* @param
|
|
180
|
-
* @param [options] The optional parameters
|
|
181
|
-
* @returns
|
|
182
|
-
* Promise<Models.BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse>
|
|
268
|
+
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
|
|
269
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
270
|
+
* @param options The options parameters.
|
|
183
271
|
*/
|
|
184
|
-
|
|
272
|
+
private _listInvoiceSectionsByCreateSubscriptionPermission(
|
|
273
|
+
billingAccountName: string,
|
|
274
|
+
options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams
|
|
275
|
+
): Promise<
|
|
276
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse
|
|
277
|
+
> {
|
|
278
|
+
return this.client.sendOperationRequest(
|
|
279
|
+
{ billingAccountName, options },
|
|
280
|
+
listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
|
|
185
284
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @param
|
|
285
|
+
* ListNext
|
|
286
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
287
|
+
* @param options The options parameters.
|
|
188
288
|
*/
|
|
189
|
-
|
|
289
|
+
private _listNext(
|
|
290
|
+
nextLink: string,
|
|
291
|
+
options?: BillingAccountsListNextOptionalParams
|
|
292
|
+
): Promise<BillingAccountsListNextResponse> {
|
|
293
|
+
return this.client.sendOperationRequest(
|
|
294
|
+
{ nextLink, options },
|
|
295
|
+
listNextOperationSpec
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
190
299
|
/**
|
|
191
|
-
*
|
|
192
|
-
* @param
|
|
193
|
-
* @param
|
|
300
|
+
* ListInvoiceSectionsByCreateSubscriptionPermissionNext
|
|
301
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
302
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
303
|
+
* ListInvoiceSectionsByCreateSubscriptionPermission method.
|
|
304
|
+
* @param options The options parameters.
|
|
194
305
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
306
|
+
private _listInvoiceSectionsByCreateSubscriptionPermissionNext(
|
|
307
|
+
billingAccountName: string,
|
|
308
|
+
nextLink: string,
|
|
309
|
+
options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams
|
|
310
|
+
): Promise<
|
|
311
|
+
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse
|
|
312
|
+
> {
|
|
197
313
|
return this.client.sendOperationRequest(
|
|
198
|
-
{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec,
|
|
203
|
-
callback) as Promise<Models.BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse>;
|
|
314
|
+
{ billingAccountName, nextLink, options },
|
|
315
|
+
listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec
|
|
316
|
+
);
|
|
204
317
|
}
|
|
205
318
|
}
|
|
206
|
-
|
|
207
319
|
// Operation Specifications
|
|
208
|
-
const serializer =
|
|
209
|
-
|
|
320
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
321
|
+
|
|
322
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
323
|
+
path: "/providers/Microsoft.Billing/billingAccounts",
|
|
210
324
|
httpMethod: "GET",
|
|
211
|
-
path: "providers/Microsoft.Billing/billingAccounts",
|
|
212
|
-
queryParameters: [
|
|
213
|
-
Parameters.apiVersion0,
|
|
214
|
-
Parameters.expand
|
|
215
|
-
],
|
|
216
|
-
headerParameters: [
|
|
217
|
-
Parameters.acceptLanguage
|
|
218
|
-
],
|
|
219
325
|
responses: {
|
|
220
326
|
200: {
|
|
221
327
|
bodyMapper: Mappers.BillingAccountListResult
|
|
@@ -224,22 +330,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
224
330
|
bodyMapper: Mappers.ErrorResponse
|
|
225
331
|
}
|
|
226
332
|
},
|
|
333
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
334
|
+
urlParameters: [Parameters.$host],
|
|
335
|
+
headerParameters: [Parameters.accept],
|
|
227
336
|
serializer
|
|
228
337
|
};
|
|
229
|
-
|
|
230
|
-
|
|
338
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
339
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
|
|
231
340
|
httpMethod: "GET",
|
|
232
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
|
|
233
|
-
urlParameters: [
|
|
234
|
-
Parameters.billingAccountName
|
|
235
|
-
],
|
|
236
|
-
queryParameters: [
|
|
237
|
-
Parameters.apiVersion0,
|
|
238
|
-
Parameters.expand
|
|
239
|
-
],
|
|
240
|
-
headerParameters: [
|
|
241
|
-
Parameters.acceptLanguage
|
|
242
|
-
],
|
|
243
341
|
responses: {
|
|
244
342
|
200: {
|
|
245
343
|
bodyMapper: Mappers.BillingAccount
|
|
@@ -248,73 +346,58 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
248
346
|
bodyMapper: Mappers.ErrorResponse
|
|
249
347
|
}
|
|
250
348
|
},
|
|
349
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
350
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
351
|
+
headerParameters: [Parameters.accept],
|
|
251
352
|
serializer
|
|
252
353
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
httpMethod: "
|
|
256
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission",
|
|
257
|
-
urlParameters: [
|
|
258
|
-
Parameters.billingAccountName
|
|
259
|
-
],
|
|
260
|
-
queryParameters: [
|
|
261
|
-
Parameters.apiVersion0
|
|
262
|
-
],
|
|
263
|
-
headerParameters: [
|
|
264
|
-
Parameters.acceptLanguage
|
|
265
|
-
],
|
|
354
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
355
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
|
|
356
|
+
httpMethod: "PATCH",
|
|
266
357
|
responses: {
|
|
267
358
|
200: {
|
|
268
|
-
bodyMapper: Mappers.
|
|
359
|
+
bodyMapper: Mappers.BillingAccount
|
|
360
|
+
},
|
|
361
|
+
201: {
|
|
362
|
+
bodyMapper: Mappers.BillingAccount
|
|
363
|
+
},
|
|
364
|
+
202: {
|
|
365
|
+
bodyMapper: Mappers.BillingAccount
|
|
366
|
+
},
|
|
367
|
+
204: {
|
|
368
|
+
bodyMapper: Mappers.BillingAccount
|
|
269
369
|
},
|
|
270
370
|
default: {
|
|
271
371
|
bodyMapper: Mappers.ErrorResponse
|
|
272
372
|
}
|
|
273
373
|
},
|
|
374
|
+
requestBody: Parameters.parameters,
|
|
375
|
+
queryParameters: [Parameters.apiVersion],
|
|
376
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
377
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
378
|
+
mediaType: "json",
|
|
274
379
|
serializer
|
|
275
380
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
urlParameters: [
|
|
281
|
-
Parameters.billingAccountName
|
|
282
|
-
],
|
|
283
|
-
queryParameters: [
|
|
284
|
-
Parameters.apiVersion0
|
|
285
|
-
],
|
|
286
|
-
headerParameters: [
|
|
287
|
-
Parameters.acceptLanguage
|
|
288
|
-
],
|
|
289
|
-
requestBody: {
|
|
290
|
-
parameterPath: "parameters",
|
|
291
|
-
mapper: {
|
|
292
|
-
...Mappers.BillingAccountUpdateRequest,
|
|
293
|
-
required: true
|
|
294
|
-
}
|
|
295
|
-
},
|
|
381
|
+
const listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec: coreClient.OperationSpec = {
|
|
382
|
+
path:
|
|
383
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission",
|
|
384
|
+
httpMethod: "POST",
|
|
296
385
|
responses: {
|
|
297
386
|
200: {
|
|
298
|
-
bodyMapper: Mappers.
|
|
387
|
+
bodyMapper: Mappers.InvoiceSectionListWithCreateSubPermissionResult
|
|
299
388
|
},
|
|
300
|
-
202: {},
|
|
301
389
|
default: {
|
|
302
390
|
bodyMapper: Mappers.ErrorResponse
|
|
303
391
|
}
|
|
304
392
|
},
|
|
393
|
+
queryParameters: [Parameters.apiVersion],
|
|
394
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
395
|
+
headerParameters: [Parameters.accept],
|
|
305
396
|
serializer
|
|
306
397
|
};
|
|
307
|
-
|
|
308
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
309
|
-
httpMethod: "GET",
|
|
310
|
-
baseUrl: "https://management.azure.com",
|
|
398
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
311
399
|
path: "{nextLink}",
|
|
312
|
-
|
|
313
|
-
Parameters.nextPageLink
|
|
314
|
-
],
|
|
315
|
-
headerParameters: [
|
|
316
|
-
Parameters.acceptLanguage
|
|
317
|
-
],
|
|
400
|
+
httpMethod: "GET",
|
|
318
401
|
responses: {
|
|
319
402
|
200: {
|
|
320
403
|
bodyMapper: Mappers.BillingAccountListResult
|
|
@@ -323,19 +406,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
323
406
|
bodyMapper: Mappers.ErrorResponse
|
|
324
407
|
}
|
|
325
408
|
},
|
|
409
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
410
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
411
|
+
headerParameters: [Parameters.accept],
|
|
326
412
|
serializer
|
|
327
413
|
};
|
|
328
|
-
|
|
329
|
-
const listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: msRest.OperationSpec = {
|
|
330
|
-
httpMethod: "POST",
|
|
331
|
-
baseUrl: "https://management.azure.com",
|
|
414
|
+
const listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: coreClient.OperationSpec = {
|
|
332
415
|
path: "{nextLink}",
|
|
333
|
-
|
|
334
|
-
Parameters.nextPageLink
|
|
335
|
-
],
|
|
336
|
-
headerParameters: [
|
|
337
|
-
Parameters.acceptLanguage
|
|
338
|
-
],
|
|
416
|
+
httpMethod: "GET",
|
|
339
417
|
responses: {
|
|
340
418
|
200: {
|
|
341
419
|
bodyMapper: Mappers.InvoiceSectionListWithCreateSubPermissionResult
|
|
@@ -344,5 +422,12 @@ const listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: msRest
|
|
|
344
422
|
bodyMapper: Mappers.ErrorResponse
|
|
345
423
|
}
|
|
346
424
|
},
|
|
425
|
+
queryParameters: [Parameters.apiVersion],
|
|
426
|
+
urlParameters: [
|
|
427
|
+
Parameters.$host,
|
|
428
|
+
Parameters.billingAccountName,
|
|
429
|
+
Parameters.nextLink
|
|
430
|
+
],
|
|
431
|
+
headerParameters: [Parameters.accept],
|
|
347
432
|
serializer
|
|
348
433
|
};
|