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