@azure/arm-billing 5.0.1-alpha.20250619.1 → 5.0.1-alpha.20250730.1
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/dist/browser/billingManagementClient.js +43 -5
- package/dist/browser/billingManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +868 -393
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/address.js +1 -0
- package/dist/browser/operations/address.js.map +1 -1
- package/dist/browser/operations/agreements.js +23 -40
- package/dist/browser/operations/agreements.js.map +1 -1
- package/dist/browser/operations/associatedTenants.js +45 -52
- package/dist/browser/operations/associatedTenants.js.map +1 -1
- package/dist/browser/operations/availableBalances.js +1 -0
- package/dist/browser/operations/availableBalances.js.map +1 -1
- package/dist/browser/operations/billingAccounts.js +79 -98
- package/dist/browser/operations/billingAccounts.js.map +1 -1
- package/dist/browser/operations/billingPermissions.js +162 -281
- package/dist/browser/operations/billingPermissions.js.map +1 -1
- package/dist/browser/operations/billingProfiles.js +45 -52
- package/dist/browser/operations/billingProfiles.js.map +1 -1
- package/dist/browser/operations/billingPropertyOperations.js +1 -0
- package/dist/browser/operations/billingPropertyOperations.js.map +1 -1
- package/dist/browser/operations/billingRequests.js +122 -202
- package/dist/browser/operations/billingRequests.js.map +1 -1
- package/dist/browser/operations/billingRoleAssignments.js +260 -307
- package/dist/browser/operations/billingRoleAssignments.js.map +1 -1
- package/dist/browser/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/browser/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/billingSubscriptions.js +199 -271
- package/dist/browser/operations/billingSubscriptions.js.map +1 -1
- package/dist/browser/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/browser/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/browser/operations/customers.js +45 -79
- package/dist/browser/operations/customers.js.map +1 -1
- package/dist/browser/operations/departments.js +23 -40
- package/dist/browser/operations/departments.js.map +1 -1
- package/dist/browser/operations/enrollmentAccounts.js +45 -79
- package/dist/browser/operations/enrollmentAccounts.js.map +1 -1
- package/dist/browser/operations/invoiceSections.js +45 -52
- package/dist/browser/operations/invoiceSections.js.map +1 -1
- package/dist/browser/operations/invoices.js +133 -154
- package/dist/browser/operations/invoices.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partnerTransfers.js +23 -40
- package/dist/browser/operations/partnerTransfers.js.map +1 -1
- package/dist/browser/operations/paymentMethods.js +67 -118
- package/dist/browser/operations/paymentMethods.js.map +1 -1
- package/dist/browser/operations/policies.js +45 -24
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/products.js +100 -163
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/operations/recipientTransfers.js +23 -40
- package/dist/browser/operations/recipientTransfers.js.map +1 -1
- package/dist/browser/operations/reservationOrders.js +23 -40
- package/dist/browser/operations/reservationOrders.js.map +1 -1
- package/dist/browser/operations/reservations.js +78 -124
- package/dist/browser/operations/reservations.js.map +1 -1
- package/dist/browser/operations/savingsPlanOrders.js +23 -40
- package/dist/browser/operations/savingsPlanOrders.js.map +1 -1
- package/dist/browser/operations/savingsPlans.js +56 -85
- package/dist/browser/operations/savingsPlans.js.map +1 -1
- package/dist/browser/operations/transactions.js +100 -163
- package/dist/browser/operations/transactions.js.map +1 -1
- package/dist/browser/operations/transfers.js +23 -40
- package/dist/browser/operations/transfers.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/billingManagementClient.js +43 -5
- package/dist/commonjs/billingManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +868 -393
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/address.js +1 -0
- package/dist/commonjs/operations/address.js.map +1 -1
- package/dist/commonjs/operations/agreements.js +23 -39
- package/dist/commonjs/operations/agreements.js.map +1 -1
- package/dist/commonjs/operations/associatedTenants.js +45 -51
- package/dist/commonjs/operations/associatedTenants.js.map +1 -1
- package/dist/commonjs/operations/availableBalances.js +1 -0
- package/dist/commonjs/operations/availableBalances.js.map +1 -1
- package/dist/commonjs/operations/billingAccounts.js +79 -97
- package/dist/commonjs/operations/billingAccounts.js.map +1 -1
- package/dist/commonjs/operations/billingPermissions.js +155 -273
- package/dist/commonjs/operations/billingPermissions.js.map +1 -1
- package/dist/commonjs/operations/billingProfiles.js +45 -51
- package/dist/commonjs/operations/billingProfiles.js.map +1 -1
- package/dist/commonjs/operations/billingPropertyOperations.js +1 -0
- package/dist/commonjs/operations/billingPropertyOperations.js.map +1 -1
- package/dist/commonjs/operations/billingRequests.js +122 -201
- package/dist/commonjs/operations/billingRequests.js.map +1 -1
- package/dist/commonjs/operations/billingRoleAssignments.js +260 -306
- package/dist/commonjs/operations/billingRoleAssignments.js.map +1 -1
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js +139 -240
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptions.js +199 -270
- package/dist/commonjs/operations/billingSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptionsAliases.js +34 -45
- package/dist/commonjs/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/commonjs/operations/customers.js +45 -78
- package/dist/commonjs/operations/customers.js.map +1 -1
- package/dist/commonjs/operations/departments.js +23 -39
- package/dist/commonjs/operations/departments.js.map +1 -1
- package/dist/commonjs/operations/enrollmentAccounts.js +45 -78
- package/dist/commonjs/operations/enrollmentAccounts.js.map +1 -1
- package/dist/commonjs/operations/invoiceSections.js +45 -51
- package/dist/commonjs/operations/invoiceSections.js.map +1 -1
- package/dist/commonjs/operations/invoices.js +133 -153
- package/dist/commonjs/operations/invoices.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partnerTransfers.js +23 -39
- package/dist/commonjs/operations/partnerTransfers.js.map +1 -1
- package/dist/commonjs/operations/paymentMethods.js +67 -117
- package/dist/commonjs/operations/paymentMethods.js.map +1 -1
- package/dist/commonjs/operations/policies.js +45 -24
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/products.js +100 -162
- package/dist/commonjs/operations/products.js.map +1 -1
- package/dist/commonjs/operations/recipientTransfers.js +23 -39
- package/dist/commonjs/operations/recipientTransfers.js.map +1 -1
- package/dist/commonjs/operations/reservationOrders.js +23 -39
- package/dist/commonjs/operations/reservationOrders.js.map +1 -1
- package/dist/commonjs/operations/reservations.js +78 -123
- package/dist/commonjs/operations/reservations.js.map +1 -1
- package/dist/commonjs/operations/savingsPlanOrders.js +23 -39
- package/dist/commonjs/operations/savingsPlanOrders.js.map +1 -1
- package/dist/commonjs/operations/savingsPlans.js +56 -84
- package/dist/commonjs/operations/savingsPlans.js.map +1 -1
- package/dist/commonjs/operations/transactions.js +100 -162
- package/dist/commonjs/operations/transactions.js.map +1 -1
- package/dist/commonjs/operations/transfers.js +23 -39
- package/dist/commonjs/operations/transfers.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/billingManagementClient.js +43 -5
- package/dist/esm/billingManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +868 -393
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/address.js +1 -0
- package/dist/esm/operations/address.js.map +1 -1
- package/dist/esm/operations/agreements.js +23 -40
- package/dist/esm/operations/agreements.js.map +1 -1
- package/dist/esm/operations/associatedTenants.js +45 -52
- package/dist/esm/operations/associatedTenants.js.map +1 -1
- package/dist/esm/operations/availableBalances.js +1 -0
- package/dist/esm/operations/availableBalances.js.map +1 -1
- package/dist/esm/operations/billingAccounts.js +79 -98
- package/dist/esm/operations/billingAccounts.js.map +1 -1
- package/dist/esm/operations/billingPermissions.js +162 -281
- package/dist/esm/operations/billingPermissions.js.map +1 -1
- package/dist/esm/operations/billingProfiles.js +45 -52
- package/dist/esm/operations/billingProfiles.js.map +1 -1
- package/dist/esm/operations/billingPropertyOperations.js +1 -0
- package/dist/esm/operations/billingPropertyOperations.js.map +1 -1
- package/dist/esm/operations/billingRequests.js +122 -202
- package/dist/esm/operations/billingRequests.js.map +1 -1
- package/dist/esm/operations/billingRoleAssignments.js +260 -307
- package/dist/esm/operations/billingRoleAssignments.js.map +1 -1
- package/dist/esm/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/esm/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/billingSubscriptions.js +199 -271
- package/dist/esm/operations/billingSubscriptions.js.map +1 -1
- package/dist/esm/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/esm/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/esm/operations/customers.js +45 -79
- package/dist/esm/operations/customers.js.map +1 -1
- package/dist/esm/operations/departments.js +23 -40
- package/dist/esm/operations/departments.js.map +1 -1
- package/dist/esm/operations/enrollmentAccounts.js +45 -79
- package/dist/esm/operations/enrollmentAccounts.js.map +1 -1
- package/dist/esm/operations/invoiceSections.js +45 -52
- package/dist/esm/operations/invoiceSections.js.map +1 -1
- package/dist/esm/operations/invoices.js +133 -154
- package/dist/esm/operations/invoices.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partnerTransfers.js +23 -40
- package/dist/esm/operations/partnerTransfers.js.map +1 -1
- package/dist/esm/operations/paymentMethods.js +67 -118
- package/dist/esm/operations/paymentMethods.js.map +1 -1
- package/dist/esm/operations/policies.js +45 -24
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/products.js +100 -163
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/operations/recipientTransfers.js +23 -40
- package/dist/esm/operations/recipientTransfers.js.map +1 -1
- package/dist/esm/operations/reservationOrders.js +23 -40
- package/dist/esm/operations/reservationOrders.js.map +1 -1
- package/dist/esm/operations/reservations.js +78 -124
- package/dist/esm/operations/reservations.js.map +1 -1
- package/dist/esm/operations/savingsPlanOrders.js +23 -40
- package/dist/esm/operations/savingsPlanOrders.js.map +1 -1
- package/dist/esm/operations/savingsPlans.js +56 -85
- package/dist/esm/operations/savingsPlans.js.map +1 -1
- package/dist/esm/operations/transactions.js +100 -163
- package/dist/esm/operations/transactions.js.map +1 -1
- package/dist/esm/operations/transfers.js +23 -40
- package/dist/esm/operations/transfers.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/billingManagementClient.js +43 -5
- package/dist/react-native/billingManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +868 -393
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/address.js +1 -0
- package/dist/react-native/operations/address.js.map +1 -1
- package/dist/react-native/operations/agreements.js +23 -40
- package/dist/react-native/operations/agreements.js.map +1 -1
- package/dist/react-native/operations/associatedTenants.js +45 -52
- package/dist/react-native/operations/associatedTenants.js.map +1 -1
- package/dist/react-native/operations/availableBalances.js +1 -0
- package/dist/react-native/operations/availableBalances.js.map +1 -1
- package/dist/react-native/operations/billingAccounts.js +79 -98
- package/dist/react-native/operations/billingAccounts.js.map +1 -1
- package/dist/react-native/operations/billingPermissions.js +162 -281
- package/dist/react-native/operations/billingPermissions.js.map +1 -1
- package/dist/react-native/operations/billingProfiles.js +45 -52
- package/dist/react-native/operations/billingProfiles.js.map +1 -1
- package/dist/react-native/operations/billingPropertyOperations.js +1 -0
- package/dist/react-native/operations/billingPropertyOperations.js.map +1 -1
- package/dist/react-native/operations/billingRequests.js +122 -202
- package/dist/react-native/operations/billingRequests.js.map +1 -1
- package/dist/react-native/operations/billingRoleAssignments.js +260 -307
- package/dist/react-native/operations/billingRoleAssignments.js.map +1 -1
- package/dist/react-native/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/react-native/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptions.js +199 -271
- package/dist/react-native/operations/billingSubscriptions.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/react-native/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/react-native/operations/customers.js +45 -79
- package/dist/react-native/operations/customers.js.map +1 -1
- package/dist/react-native/operations/departments.js +23 -40
- package/dist/react-native/operations/departments.js.map +1 -1
- package/dist/react-native/operations/enrollmentAccounts.js +45 -79
- package/dist/react-native/operations/enrollmentAccounts.js.map +1 -1
- package/dist/react-native/operations/invoiceSections.js +45 -52
- package/dist/react-native/operations/invoiceSections.js.map +1 -1
- package/dist/react-native/operations/invoices.js +133 -154
- package/dist/react-native/operations/invoices.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partnerTransfers.js +23 -40
- package/dist/react-native/operations/partnerTransfers.js.map +1 -1
- package/dist/react-native/operations/paymentMethods.js +67 -118
- package/dist/react-native/operations/paymentMethods.js.map +1 -1
- package/dist/react-native/operations/policies.js +45 -24
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/products.js +100 -163
- package/dist/react-native/operations/products.js.map +1 -1
- package/dist/react-native/operations/recipientTransfers.js +23 -40
- package/dist/react-native/operations/recipientTransfers.js.map +1 -1
- package/dist/react-native/operations/reservationOrders.js +23 -40
- package/dist/react-native/operations/reservationOrders.js.map +1 -1
- package/dist/react-native/operations/reservations.js +78 -124
- package/dist/react-native/operations/reservations.js.map +1 -1
- package/dist/react-native/operations/savingsPlanOrders.js +23 -40
- package/dist/react-native/operations/savingsPlanOrders.js.map +1 -1
- package/dist/react-native/operations/savingsPlans.js +56 -85
- package/dist/react-native/operations/savingsPlans.js.map +1 -1
- package/dist/react-native/operations/transactions.js +100 -163
- package/dist/react-native/operations/transactions.js.map +1 -1
- package/dist/react-native/operations/transfers.js +23 -40
- package/dist/react-native/operations/transfers.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-billing.api.md → arm-billing-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing BillingRoleDefinitionOperations operations. */
|
|
15
14
|
export class BillingRoleDefinitionOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class BillingRoleDefinitionOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var _a, e_1, _b, _c;
|
|
71
|
-
try {
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
48
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
67
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Lists the role definitions for a customer. The operation is supported for billing accounts with
|
|
@@ -103,52 +86,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
103
86
|
return this;
|
|
104
87
|
},
|
|
105
88
|
byPage: (settings) => {
|
|
106
|
-
if (settings
|
|
89
|
+
if (settings?.maxPageSize) {
|
|
107
90
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
91
|
}
|
|
109
92
|
return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings);
|
|
110
93
|
},
|
|
111
94
|
};
|
|
112
95
|
}
|
|
113
|
-
listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var _a, e_2, _b, _c;
|
|
136
|
-
try {
|
|
137
|
-
for (var _d = true, _e = __asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
138
|
-
_c = _f.value;
|
|
139
|
-
_d = false;
|
|
140
|
-
const page = _c;
|
|
141
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
145
|
-
finally {
|
|
146
|
-
try {
|
|
147
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
148
|
-
}
|
|
149
|
-
finally { if (e_2) throw e_2.error; }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
96
|
+
async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
97
|
+
let result;
|
|
98
|
+
let continuationToken = settings?.continuationToken;
|
|
99
|
+
if (!continuationToken) {
|
|
100
|
+
result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, options);
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
106
|
+
while (continuationToken) {
|
|
107
|
+
result = await this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
|
|
115
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)) {
|
|
116
|
+
yield* page;
|
|
117
|
+
}
|
|
152
118
|
}
|
|
153
119
|
/**
|
|
154
120
|
* Lists the role definitions for an invoice section. The operation is supported for billing accounts
|
|
@@ -168,52 +134,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
168
134
|
return this;
|
|
169
135
|
},
|
|
170
136
|
byPage: (settings) => {
|
|
171
|
-
if (settings
|
|
137
|
+
if (settings?.maxPageSize) {
|
|
172
138
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
173
139
|
}
|
|
174
140
|
return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
|
|
175
141
|
},
|
|
176
142
|
};
|
|
177
143
|
}
|
|
178
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
var _a, e_3, _b, _c;
|
|
201
|
-
try {
|
|
202
|
-
for (var _d = true, _e = __asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
203
|
-
_c = _f.value;
|
|
204
|
-
_d = false;
|
|
205
|
-
const page = _c;
|
|
206
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
210
|
-
finally {
|
|
211
|
-
try {
|
|
212
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
213
|
-
}
|
|
214
|
-
finally { if (e_3) throw e_3.error; }
|
|
215
|
-
}
|
|
216
|
-
});
|
|
144
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
145
|
+
let result;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
154
|
+
while (continuationToken) {
|
|
155
|
+
result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
156
|
+
continuationToken = result.nextLink;
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
163
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
|
|
164
|
+
yield* page;
|
|
165
|
+
}
|
|
217
166
|
}
|
|
218
167
|
/**
|
|
219
168
|
* Lists the role definitions for a billing account. The operation is supported for billing accounts
|
|
@@ -232,52 +181,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
232
181
|
return this;
|
|
233
182
|
},
|
|
234
183
|
byPage: (settings) => {
|
|
235
|
-
if (settings
|
|
184
|
+
if (settings?.maxPageSize) {
|
|
236
185
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
237
186
|
}
|
|
238
187
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
239
188
|
},
|
|
240
189
|
};
|
|
241
190
|
}
|
|
242
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
var _a, e_4, _b, _c;
|
|
265
|
-
try {
|
|
266
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
267
|
-
_c = _f.value;
|
|
268
|
-
_d = false;
|
|
269
|
-
const page = _c;
|
|
270
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
274
|
-
finally {
|
|
275
|
-
try {
|
|
276
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
277
|
-
}
|
|
278
|
-
finally { if (e_4) throw e_4.error; }
|
|
279
|
-
}
|
|
280
|
-
});
|
|
191
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
192
|
+
let result;
|
|
193
|
+
let continuationToken = settings?.continuationToken;
|
|
194
|
+
if (!continuationToken) {
|
|
195
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
196
|
+
let page = result.value || [];
|
|
197
|
+
continuationToken = result.nextLink;
|
|
198
|
+
setContinuationToken(page, continuationToken);
|
|
199
|
+
yield page;
|
|
200
|
+
}
|
|
201
|
+
while (continuationToken) {
|
|
202
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
203
|
+
continuationToken = result.nextLink;
|
|
204
|
+
let page = result.value || [];
|
|
205
|
+
setContinuationToken(page, continuationToken);
|
|
206
|
+
yield page;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
210
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
211
|
+
yield* page;
|
|
212
|
+
}
|
|
281
213
|
}
|
|
282
214
|
/**
|
|
283
215
|
* List the definition for a department. The operation is supported for billing accounts with agreement
|
|
@@ -296,52 +228,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
296
228
|
return this;
|
|
297
229
|
},
|
|
298
230
|
byPage: (settings) => {
|
|
299
|
-
if (settings
|
|
231
|
+
if (settings?.maxPageSize) {
|
|
300
232
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
301
233
|
}
|
|
302
234
|
return this.listByDepartmentPagingPage(billingAccountName, departmentName, options, settings);
|
|
303
235
|
},
|
|
304
236
|
};
|
|
305
237
|
}
|
|
306
|
-
listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
var _a, e_5, _b, _c;
|
|
329
|
-
try {
|
|
330
|
-
for (var _d = true, _e = __asyncValues(this.listByDepartmentPagingPage(billingAccountName, departmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
331
|
-
_c = _f.value;
|
|
332
|
-
_d = false;
|
|
333
|
-
const page = _c;
|
|
334
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
338
|
-
finally {
|
|
339
|
-
try {
|
|
340
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
341
|
-
}
|
|
342
|
-
finally { if (e_5) throw e_5.error; }
|
|
343
|
-
}
|
|
344
|
-
});
|
|
238
|
+
async *listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
239
|
+
let result;
|
|
240
|
+
let continuationToken = settings?.continuationToken;
|
|
241
|
+
if (!continuationToken) {
|
|
242
|
+
result = await this._listByDepartment(billingAccountName, departmentName, options);
|
|
243
|
+
let page = result.value || [];
|
|
244
|
+
continuationToken = result.nextLink;
|
|
245
|
+
setContinuationToken(page, continuationToken);
|
|
246
|
+
yield page;
|
|
247
|
+
}
|
|
248
|
+
while (continuationToken) {
|
|
249
|
+
result = await this._listByDepartmentNext(billingAccountName, departmentName, continuationToken, options);
|
|
250
|
+
continuationToken = result.nextLink;
|
|
251
|
+
let page = result.value || [];
|
|
252
|
+
setContinuationToken(page, continuationToken);
|
|
253
|
+
yield page;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
async *listByDepartmentPagingAll(billingAccountName, departmentName, options) {
|
|
257
|
+
for await (const page of this.listByDepartmentPagingPage(billingAccountName, departmentName, options)) {
|
|
258
|
+
yield* page;
|
|
259
|
+
}
|
|
345
260
|
}
|
|
346
261
|
/**
|
|
347
262
|
* List the definition for an enrollment account. The operation is supported for billing accounts with
|
|
@@ -360,52 +275,35 @@ export class BillingRoleDefinitionOperationsImpl {
|
|
|
360
275
|
return this;
|
|
361
276
|
},
|
|
362
277
|
byPage: (settings) => {
|
|
363
|
-
if (settings
|
|
278
|
+
if (settings?.maxPageSize) {
|
|
364
279
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
365
280
|
}
|
|
366
281
|
return this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings);
|
|
367
282
|
},
|
|
368
283
|
};
|
|
369
284
|
}
|
|
370
|
-
listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
var _a, e_6, _b, _c;
|
|
393
|
-
try {
|
|
394
|
-
for (var _d = true, _e = __asyncValues(this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
395
|
-
_c = _f.value;
|
|
396
|
-
_d = false;
|
|
397
|
-
const page = _c;
|
|
398
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
402
|
-
finally {
|
|
403
|
-
try {
|
|
404
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
405
|
-
}
|
|
406
|
-
finally { if (e_6) throw e_6.error; }
|
|
407
|
-
}
|
|
408
|
-
});
|
|
285
|
+
async *listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
286
|
+
let result;
|
|
287
|
+
let continuationToken = settings?.continuationToken;
|
|
288
|
+
if (!continuationToken) {
|
|
289
|
+
result = await this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options);
|
|
290
|
+
let page = result.value || [];
|
|
291
|
+
continuationToken = result.nextLink;
|
|
292
|
+
setContinuationToken(page, continuationToken);
|
|
293
|
+
yield page;
|
|
294
|
+
}
|
|
295
|
+
while (continuationToken) {
|
|
296
|
+
result = await this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options);
|
|
297
|
+
continuationToken = result.nextLink;
|
|
298
|
+
let page = result.value || [];
|
|
299
|
+
setContinuationToken(page, continuationToken);
|
|
300
|
+
yield page;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
async *listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
|
|
304
|
+
for await (const page of this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)) {
|
|
305
|
+
yield* page;
|
|
306
|
+
}
|
|
409
307
|
}
|
|
410
308
|
/**
|
|
411
309
|
* Gets the definition for a role on a billing profile. The operation is supported for billing accounts
|