@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,95 +1,111 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: BillingManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: BillingManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* Lists the available billing REST API operations.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
33
39
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
48
50
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
/**
|
|
54
79
|
* Lists the available billing REST API operations.
|
|
55
|
-
* @param
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
62
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
63
81
|
*/
|
|
64
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
65
88
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
69
92
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
72
97
|
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
79
101
|
}
|
|
80
102
|
}
|
|
81
|
-
|
|
82
103
|
// Operation Specifications
|
|
83
|
-
const serializer =
|
|
84
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.Billing/operations",
|
|
85
108
|
httpMethod: "GET",
|
|
86
|
-
path: "providers/Microsoft.Billing/operations",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion0
|
|
89
|
-
],
|
|
90
|
-
headerParameters: [
|
|
91
|
-
Parameters.acceptLanguage
|
|
92
|
-
],
|
|
93
109
|
responses: {
|
|
94
110
|
200: {
|
|
95
111
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -98,19 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
98
114
|
bodyMapper: Mappers.ErrorResponse
|
|
99
115
|
}
|
|
100
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
101
120
|
serializer
|
|
102
121
|
};
|
|
103
|
-
|
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
107
123
|
path: "{nextLink}",
|
|
108
|
-
|
|
109
|
-
Parameters.nextPageLink
|
|
110
|
-
],
|
|
111
|
-
headerParameters: [
|
|
112
|
-
Parameters.acceptLanguage
|
|
113
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
114
125
|
responses: {
|
|
115
126
|
200: {
|
|
116
127
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -119,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
119
130
|
bodyMapper: Mappers.ErrorResponse
|
|
120
131
|
}
|
|
121
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
122
136
|
serializer
|
|
123
137
|
};
|
|
@@ -1,99 +1,77 @@
|
|
|
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 * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { Policies } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { BillingManagementClient } from "../billingManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
PoliciesGetByBillingProfileOptionalParams,
|
|
16
|
+
PoliciesGetByBillingProfileResponse,
|
|
17
|
+
Policy,
|
|
18
|
+
PoliciesUpdateOptionalParams,
|
|
19
|
+
PoliciesUpdateResponse,
|
|
20
|
+
PoliciesGetByCustomerOptionalParams,
|
|
21
|
+
PoliciesGetByCustomerResponse,
|
|
22
|
+
CustomerPolicy,
|
|
23
|
+
PoliciesUpdateCustomerOptionalParams,
|
|
24
|
+
PoliciesUpdateCustomerResponse
|
|
25
|
+
} from "../models";
|
|
16
26
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class Policies {
|
|
19
|
-
private readonly client:
|
|
27
|
+
/** Class containing Policies operations. */
|
|
28
|
+
export class PoliciesImpl implements Policies {
|
|
29
|
+
private readonly client: BillingManagementClient;
|
|
20
30
|
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
32
|
+
* Initialize a new instance of the class Policies class.
|
|
33
|
+
* @param client Reference to the service client
|
|
24
34
|
*/
|
|
25
|
-
constructor(client:
|
|
35
|
+
constructor(client: BillingManagementClient) {
|
|
26
36
|
this.client = client;
|
|
27
37
|
}
|
|
28
38
|
|
|
29
39
|
/**
|
|
30
|
-
* Lists the policies for a billing profile. This operation is supported only for billing accounts
|
|
31
|
-
*
|
|
32
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
33
|
-
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
34
|
-
* @param [options] The optional parameters
|
|
35
|
-
* @returns Promise<Models.PoliciesGetByBillingProfileResponse>
|
|
36
|
-
*/
|
|
37
|
-
getByBillingProfile(billingAccountName: string, billingProfileName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoliciesGetByBillingProfileResponse>;
|
|
38
|
-
/**
|
|
40
|
+
* Lists the policies for a billing profile. This operation is supported only for billing accounts with
|
|
41
|
+
* agreement type Microsoft Customer Agreement.
|
|
39
42
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
40
43
|
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
41
|
-
* @param
|
|
44
|
+
* @param options The options parameters.
|
|
42
45
|
*/
|
|
43
|
-
getByBillingProfile(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* @param callback The callback
|
|
49
|
-
*/
|
|
50
|
-
getByBillingProfile(billingAccountName: string, billingProfileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Policy>): void;
|
|
51
|
-
getByBillingProfile(billingAccountName: string, billingProfileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Policy>, callback?: msRest.ServiceCallback<Models.Policy>): Promise<Models.PoliciesGetByBillingProfileResponse> {
|
|
46
|
+
getByBillingProfile(
|
|
47
|
+
billingAccountName: string,
|
|
48
|
+
billingProfileName: string,
|
|
49
|
+
options?: PoliciesGetByBillingProfileOptionalParams
|
|
50
|
+
): Promise<PoliciesGetByBillingProfileResponse> {
|
|
52
51
|
return this.client.sendOperationRequest(
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
options
|
|
57
|
-
},
|
|
58
|
-
getByBillingProfileOperationSpec,
|
|
59
|
-
callback) as Promise<Models.PoliciesGetByBillingProfileResponse>;
|
|
52
|
+
{ billingAccountName, billingProfileName, options },
|
|
53
|
+
getByBillingProfileOperationSpec
|
|
54
|
+
);
|
|
60
55
|
}
|
|
61
56
|
|
|
62
57
|
/**
|
|
63
|
-
* Updates the policies for a billing profile. This operation is supported only for billing
|
|
64
|
-
*
|
|
65
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
66
|
-
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
67
|
-
* @param parameters Request parameters that are provided to the update policies operation.
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.PoliciesUpdateResponse>
|
|
70
|
-
*/
|
|
71
|
-
update(billingAccountName: string, billingProfileName: string, parameters: Models.Policy, options?: msRest.RequestOptionsBase): Promise<Models.PoliciesUpdateResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
74
|
-
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
75
|
-
* @param parameters Request parameters that are provided to the update policies operation.
|
|
76
|
-
* @param callback The callback
|
|
77
|
-
*/
|
|
78
|
-
update(billingAccountName: string, billingProfileName: string, parameters: Models.Policy, callback: msRest.ServiceCallback<Models.Policy>): void;
|
|
79
|
-
/**
|
|
58
|
+
* Updates the policies for a billing profile. This operation is supported only for billing accounts
|
|
59
|
+
* with agreement type Microsoft Customer Agreement.
|
|
80
60
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
81
61
|
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
82
62
|
* @param parameters Request parameters that are provided to the update policies operation.
|
|
83
|
-
* @param options The
|
|
84
|
-
* @param callback The callback
|
|
63
|
+
* @param options The options parameters.
|
|
85
64
|
*/
|
|
86
|
-
update(
|
|
87
|
-
|
|
65
|
+
update(
|
|
66
|
+
billingAccountName: string,
|
|
67
|
+
billingProfileName: string,
|
|
68
|
+
parameters: Policy,
|
|
69
|
+
options?: PoliciesUpdateOptionalParams
|
|
70
|
+
): Promise<PoliciesUpdateResponse> {
|
|
88
71
|
return this.client.sendOperationRequest(
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
parameters,
|
|
93
|
-
options
|
|
94
|
-
},
|
|
95
|
-
updateOperationSpec,
|
|
96
|
-
callback) as Promise<Models.PoliciesUpdateResponse>;
|
|
72
|
+
{ billingAccountName, billingProfileName, parameters, options },
|
|
73
|
+
updateOperationSpec
|
|
74
|
+
);
|
|
97
75
|
}
|
|
98
76
|
|
|
99
77
|
/**
|
|
@@ -101,32 +79,17 @@ export class Policies {
|
|
|
101
79
|
* agreement type Microsoft Partner Agreement.
|
|
102
80
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
103
81
|
* @param customerName The ID that uniquely identifies a customer.
|
|
104
|
-
* @param
|
|
105
|
-
* @returns Promise<Models.PoliciesGetByCustomerResponse>
|
|
106
|
-
*/
|
|
107
|
-
getByCustomer(billingAccountName: string, customerName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoliciesGetByCustomerResponse>;
|
|
108
|
-
/**
|
|
109
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
110
|
-
* @param customerName The ID that uniquely identifies a customer.
|
|
111
|
-
* @param callback The callback
|
|
82
|
+
* @param options The options parameters.
|
|
112
83
|
*/
|
|
113
|
-
getByCustomer(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
* @param callback The callback
|
|
119
|
-
*/
|
|
120
|
-
getByCustomer(billingAccountName: string, customerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CustomerPolicy>): void;
|
|
121
|
-
getByCustomer(billingAccountName: string, customerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CustomerPolicy>, callback?: msRest.ServiceCallback<Models.CustomerPolicy>): Promise<Models.PoliciesGetByCustomerResponse> {
|
|
84
|
+
getByCustomer(
|
|
85
|
+
billingAccountName: string,
|
|
86
|
+
customerName: string,
|
|
87
|
+
options?: PoliciesGetByCustomerOptionalParams
|
|
88
|
+
): Promise<PoliciesGetByCustomerResponse> {
|
|
122
89
|
return this.client.sendOperationRequest(
|
|
123
|
-
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
options
|
|
127
|
-
},
|
|
128
|
-
getByCustomerOperationSpec,
|
|
129
|
-
callback) as Promise<Models.PoliciesGetByCustomerResponse>;
|
|
90
|
+
{ billingAccountName, customerName, options },
|
|
91
|
+
getByCustomerOperationSpec
|
|
92
|
+
);
|
|
130
93
|
}
|
|
131
94
|
|
|
132
95
|
/**
|
|
@@ -134,50 +97,28 @@ export class Policies {
|
|
|
134
97
|
* agreement type Microsoft Partner Agreement.
|
|
135
98
|
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
136
99
|
* @param customerName The ID that uniquely identifies a customer.
|
|
137
|
-
* @param
|
|
138
|
-
* @
|
|
139
|
-
*/
|
|
140
|
-
updateCustomer(billingAccountName: string, customerName: string, options?: Models.PoliciesUpdateCustomerOptionalParams): Promise<Models.PoliciesUpdateCustomerResponse>;
|
|
141
|
-
/**
|
|
142
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
143
|
-
* @param customerName The ID that uniquely identifies a customer.
|
|
144
|
-
* @param callback The callback
|
|
145
|
-
*/
|
|
146
|
-
updateCustomer(billingAccountName: string, customerName: string, callback: msRest.ServiceCallback<Models.CustomerPolicy>): void;
|
|
147
|
-
/**
|
|
148
|
-
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
149
|
-
* @param customerName The ID that uniquely identifies a customer.
|
|
150
|
-
* @param options The optional parameters
|
|
151
|
-
* @param callback The callback
|
|
100
|
+
* @param parameters Request parameters that are provided to the update policies operation.
|
|
101
|
+
* @param options The options parameters.
|
|
152
102
|
*/
|
|
153
|
-
updateCustomer(
|
|
154
|
-
|
|
103
|
+
updateCustomer(
|
|
104
|
+
billingAccountName: string,
|
|
105
|
+
customerName: string,
|
|
106
|
+
parameters: CustomerPolicy,
|
|
107
|
+
options?: PoliciesUpdateCustomerOptionalParams
|
|
108
|
+
): Promise<PoliciesUpdateCustomerResponse> {
|
|
155
109
|
return this.client.sendOperationRequest(
|
|
156
|
-
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
options
|
|
160
|
-
},
|
|
161
|
-
updateCustomerOperationSpec,
|
|
162
|
-
callback) as Promise<Models.PoliciesUpdateCustomerResponse>;
|
|
110
|
+
{ billingAccountName, customerName, parameters, options },
|
|
111
|
+
updateCustomerOperationSpec
|
|
112
|
+
);
|
|
163
113
|
}
|
|
164
114
|
}
|
|
165
|
-
|
|
166
115
|
// Operation Specifications
|
|
167
|
-
const serializer =
|
|
168
|
-
|
|
116
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
117
|
+
|
|
118
|
+
const getByBillingProfileOperationSpec: coreClient.OperationSpec = {
|
|
119
|
+
path:
|
|
120
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
|
|
169
121
|
httpMethod: "GET",
|
|
170
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
|
|
171
|
-
urlParameters: [
|
|
172
|
-
Parameters.billingAccountName,
|
|
173
|
-
Parameters.billingProfileName
|
|
174
|
-
],
|
|
175
|
-
queryParameters: [
|
|
176
|
-
Parameters.apiVersion0
|
|
177
|
-
],
|
|
178
|
-
headerParameters: [
|
|
179
|
-
Parameters.acceptLanguage
|
|
180
|
-
],
|
|
181
122
|
responses: {
|
|
182
123
|
200: {
|
|
183
124
|
bodyMapper: Mappers.Policy
|
|
@@ -186,29 +127,19 @@ const getByBillingProfileOperationSpec: msRest.OperationSpec = {
|
|
|
186
127
|
bodyMapper: Mappers.ErrorResponse
|
|
187
128
|
}
|
|
188
129
|
},
|
|
189
|
-
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
193
|
-
httpMethod: "PUT",
|
|
194
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
|
|
130
|
+
queryParameters: [Parameters.apiVersion],
|
|
195
131
|
urlParameters: [
|
|
132
|
+
Parameters.$host,
|
|
196
133
|
Parameters.billingAccountName,
|
|
197
134
|
Parameters.billingProfileName
|
|
198
135
|
],
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
parameterPath: "parameters",
|
|
207
|
-
mapper: {
|
|
208
|
-
...Mappers.Policy,
|
|
209
|
-
required: true
|
|
210
|
-
}
|
|
211
|
-
},
|
|
136
|
+
headerParameters: [Parameters.accept],
|
|
137
|
+
serializer
|
|
138
|
+
};
|
|
139
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
140
|
+
path:
|
|
141
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
|
|
142
|
+
httpMethod: "PUT",
|
|
212
143
|
responses: {
|
|
213
144
|
200: {
|
|
214
145
|
bodyMapper: Mappers.Policy
|
|
@@ -217,22 +148,21 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
217
148
|
bodyMapper: Mappers.ErrorResponse
|
|
218
149
|
}
|
|
219
150
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const getByCustomerOperationSpec: msRest.OperationSpec = {
|
|
224
|
-
httpMethod: "GET",
|
|
225
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
|
|
151
|
+
requestBody: Parameters.parameters8,
|
|
152
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
153
|
urlParameters: [
|
|
154
|
+
Parameters.$host,
|
|
227
155
|
Parameters.billingAccountName,
|
|
228
|
-
Parameters.
|
|
229
|
-
],
|
|
230
|
-
queryParameters: [
|
|
231
|
-
Parameters.apiVersion0
|
|
232
|
-
],
|
|
233
|
-
headerParameters: [
|
|
234
|
-
Parameters.acceptLanguage
|
|
156
|
+
Parameters.billingProfileName
|
|
235
157
|
],
|
|
158
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
159
|
+
mediaType: "json",
|
|
160
|
+
serializer
|
|
161
|
+
};
|
|
162
|
+
const getByCustomerOperationSpec: coreClient.OperationSpec = {
|
|
163
|
+
path:
|
|
164
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
|
|
165
|
+
httpMethod: "GET",
|
|
236
166
|
responses: {
|
|
237
167
|
200: {
|
|
238
168
|
bodyMapper: Mappers.CustomerPolicy
|
|
@@ -241,34 +171,19 @@ const getByCustomerOperationSpec: msRest.OperationSpec = {
|
|
|
241
171
|
bodyMapper: Mappers.ErrorResponse
|
|
242
172
|
}
|
|
243
173
|
},
|
|
244
|
-
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
const updateCustomerOperationSpec: msRest.OperationSpec = {
|
|
248
|
-
httpMethod: "PUT",
|
|
249
|
-
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
|
|
174
|
+
queryParameters: [Parameters.apiVersion],
|
|
250
175
|
urlParameters: [
|
|
176
|
+
Parameters.$host,
|
|
251
177
|
Parameters.billingAccountName,
|
|
252
178
|
Parameters.customerName
|
|
253
179
|
],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
parameterPath: {
|
|
262
|
-
viewCharges: [
|
|
263
|
-
"options",
|
|
264
|
-
"viewCharges"
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
mapper: {
|
|
268
|
-
...Mappers.CustomerPolicy,
|
|
269
|
-
required: true
|
|
270
|
-
}
|
|
271
|
-
},
|
|
180
|
+
headerParameters: [Parameters.accept],
|
|
181
|
+
serializer
|
|
182
|
+
};
|
|
183
|
+
const updateCustomerOperationSpec: coreClient.OperationSpec = {
|
|
184
|
+
path:
|
|
185
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
|
|
186
|
+
httpMethod: "PUT",
|
|
272
187
|
responses: {
|
|
273
188
|
200: {
|
|
274
189
|
bodyMapper: Mappers.CustomerPolicy
|
|
@@ -277,5 +192,14 @@ const updateCustomerOperationSpec: msRest.OperationSpec = {
|
|
|
277
192
|
bodyMapper: Mappers.ErrorResponse
|
|
278
193
|
}
|
|
279
194
|
},
|
|
195
|
+
requestBody: Parameters.parameters9,
|
|
196
|
+
queryParameters: [Parameters.apiVersion],
|
|
197
|
+
urlParameters: [
|
|
198
|
+
Parameters.$host,
|
|
199
|
+
Parameters.billingAccountName,
|
|
200
|
+
Parameters.customerName
|
|
201
|
+
],
|
|
202
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
203
|
+
mediaType: "json",
|
|
280
204
|
serializer
|
|
281
205
|
};
|