@azure/arm-billing 5.0.1-alpha.20250618.1 → 5.0.1-alpha.20250718.2
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 BillingPermissions operations. */
|
|
15
14
|
export class BillingPermissionsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class BillingPermissions class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -35,52 +35,35 @@ export class BillingPermissionsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var _a, e_1, _b, _c;
|
|
68
|
-
try {
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
45
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
64
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Lists the billing permissions the caller has on a billing profile.
|
|
@@ -98,52 +81,35 @@ export class BillingPermissionsImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var _a, e_2, _b, _c;
|
|
131
|
-
try {
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
91
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
110
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Lists the billing permissions the caller has for a customer.
|
|
@@ -162,52 +128,35 @@ export class BillingPermissionsImpl {
|
|
|
162
128
|
return this;
|
|
163
129
|
},
|
|
164
130
|
byPage: (settings) => {
|
|
165
|
-
if (settings
|
|
131
|
+
if (settings?.maxPageSize) {
|
|
166
132
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
167
133
|
}
|
|
168
134
|
return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings);
|
|
169
135
|
},
|
|
170
136
|
};
|
|
171
137
|
}
|
|
172
|
-
listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
var _a, e_3, _b, _c;
|
|
195
|
-
try {
|
|
196
|
-
for (var _d = true, _e = __asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
197
|
-
_c = _f.value;
|
|
198
|
-
_d = false;
|
|
199
|
-
const page = _c;
|
|
200
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
204
|
-
finally {
|
|
205
|
-
try {
|
|
206
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
207
|
-
}
|
|
208
|
-
finally { if (e_3) throw e_3.error; }
|
|
209
|
-
}
|
|
210
|
-
});
|
|
138
|
+
async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
139
|
+
let result;
|
|
140
|
+
let continuationToken = settings?.continuationToken;
|
|
141
|
+
if (!continuationToken) {
|
|
142
|
+
result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, options);
|
|
143
|
+
let page = result.value || [];
|
|
144
|
+
continuationToken = result.nextLink;
|
|
145
|
+
setContinuationToken(page, continuationToken);
|
|
146
|
+
yield page;
|
|
147
|
+
}
|
|
148
|
+
while (continuationToken) {
|
|
149
|
+
result = await this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
let page = result.value || [];
|
|
152
|
+
setContinuationToken(page, continuationToken);
|
|
153
|
+
yield page;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
|
|
157
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)) {
|
|
158
|
+
yield* page;
|
|
159
|
+
}
|
|
211
160
|
}
|
|
212
161
|
/**
|
|
213
162
|
* Lists the billing permissions the caller has for an invoice section.
|
|
@@ -226,52 +175,35 @@ export class BillingPermissionsImpl {
|
|
|
226
175
|
return this;
|
|
227
176
|
},
|
|
228
177
|
byPage: (settings) => {
|
|
229
|
-
if (settings
|
|
178
|
+
if (settings?.maxPageSize) {
|
|
230
179
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
231
180
|
}
|
|
232
181
|
return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
|
|
233
182
|
},
|
|
234
183
|
};
|
|
235
184
|
}
|
|
236
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var _a, e_4, _b, _c;
|
|
259
|
-
try {
|
|
260
|
-
for (var _d = true, _e = __asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
261
|
-
_c = _f.value;
|
|
262
|
-
_d = false;
|
|
263
|
-
const page = _c;
|
|
264
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
268
|
-
finally {
|
|
269
|
-
try {
|
|
270
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
271
|
-
}
|
|
272
|
-
finally { if (e_4) throw e_4.error; }
|
|
273
|
-
}
|
|
274
|
-
});
|
|
185
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
186
|
+
let result;
|
|
187
|
+
let continuationToken = settings?.continuationToken;
|
|
188
|
+
if (!continuationToken) {
|
|
189
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
190
|
+
let page = result.value || [];
|
|
191
|
+
continuationToken = result.nextLink;
|
|
192
|
+
setContinuationToken(page, continuationToken);
|
|
193
|
+
yield page;
|
|
194
|
+
}
|
|
195
|
+
while (continuationToken) {
|
|
196
|
+
result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
197
|
+
continuationToken = result.nextLink;
|
|
198
|
+
let page = result.value || [];
|
|
199
|
+
setContinuationToken(page, continuationToken);
|
|
200
|
+
yield page;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
204
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
|
|
205
|
+
yield* page;
|
|
206
|
+
}
|
|
275
207
|
}
|
|
276
208
|
/**
|
|
277
209
|
* Lists the billing permissions the caller has for a customer at billing account level.
|
|
@@ -289,52 +221,35 @@ export class BillingPermissionsImpl {
|
|
|
289
221
|
return this;
|
|
290
222
|
},
|
|
291
223
|
byPage: (settings) => {
|
|
292
|
-
if (settings
|
|
224
|
+
if (settings?.maxPageSize) {
|
|
293
225
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
294
226
|
}
|
|
295
227
|
return this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings);
|
|
296
228
|
},
|
|
297
229
|
};
|
|
298
230
|
}
|
|
299
|
-
listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
var _a, e_5, _b, _c;
|
|
322
|
-
try {
|
|
323
|
-
for (var _d = true, _e = __asyncValues(this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
324
|
-
_c = _f.value;
|
|
325
|
-
_d = false;
|
|
326
|
-
const page = _c;
|
|
327
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
331
|
-
finally {
|
|
332
|
-
try {
|
|
333
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
334
|
-
}
|
|
335
|
-
finally { if (e_5) throw e_5.error; }
|
|
336
|
-
}
|
|
337
|
-
});
|
|
231
|
+
async *listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings) {
|
|
232
|
+
let result;
|
|
233
|
+
let continuationToken = settings?.continuationToken;
|
|
234
|
+
if (!continuationToken) {
|
|
235
|
+
result = await this._listByCustomerAtBillingAccount(billingAccountName, customerName, options);
|
|
236
|
+
let page = result.value || [];
|
|
237
|
+
continuationToken = result.nextLink;
|
|
238
|
+
setContinuationToken(page, continuationToken);
|
|
239
|
+
yield page;
|
|
240
|
+
}
|
|
241
|
+
while (continuationToken) {
|
|
242
|
+
result = await this._listByCustomerAtBillingAccountNext(billingAccountName, customerName, continuationToken, options);
|
|
243
|
+
continuationToken = result.nextLink;
|
|
244
|
+
let page = result.value || [];
|
|
245
|
+
setContinuationToken(page, continuationToken);
|
|
246
|
+
yield page;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
async *listByCustomerAtBillingAccountPagingAll(billingAccountName, customerName, options) {
|
|
250
|
+
for await (const page of this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options)) {
|
|
251
|
+
yield* page;
|
|
252
|
+
}
|
|
338
253
|
}
|
|
339
254
|
/**
|
|
340
255
|
* Lists the billing permissions the caller has for a department.
|
|
@@ -352,52 +267,35 @@ export class BillingPermissionsImpl {
|
|
|
352
267
|
return this;
|
|
353
268
|
},
|
|
354
269
|
byPage: (settings) => {
|
|
355
|
-
if (settings
|
|
270
|
+
if (settings?.maxPageSize) {
|
|
356
271
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
357
272
|
}
|
|
358
273
|
return this.listByDepartmentPagingPage(billingAccountName, departmentName, options, settings);
|
|
359
274
|
},
|
|
360
275
|
};
|
|
361
276
|
}
|
|
362
|
-
listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
var _a, e_6, _b, _c;
|
|
385
|
-
try {
|
|
386
|
-
for (var _d = true, _e = __asyncValues(this.listByDepartmentPagingPage(billingAccountName, departmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
387
|
-
_c = _f.value;
|
|
388
|
-
_d = false;
|
|
389
|
-
const page = _c;
|
|
390
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
394
|
-
finally {
|
|
395
|
-
try {
|
|
396
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
397
|
-
}
|
|
398
|
-
finally { if (e_6) throw e_6.error; }
|
|
399
|
-
}
|
|
400
|
-
});
|
|
277
|
+
async *listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
278
|
+
let result;
|
|
279
|
+
let continuationToken = settings?.continuationToken;
|
|
280
|
+
if (!continuationToken) {
|
|
281
|
+
result = await this._listByDepartment(billingAccountName, departmentName, options);
|
|
282
|
+
let page = result.value || [];
|
|
283
|
+
continuationToken = result.nextLink;
|
|
284
|
+
setContinuationToken(page, continuationToken);
|
|
285
|
+
yield page;
|
|
286
|
+
}
|
|
287
|
+
while (continuationToken) {
|
|
288
|
+
result = await this._listByDepartmentNext(billingAccountName, departmentName, continuationToken, options);
|
|
289
|
+
continuationToken = result.nextLink;
|
|
290
|
+
let page = result.value || [];
|
|
291
|
+
setContinuationToken(page, continuationToken);
|
|
292
|
+
yield page;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
async *listByDepartmentPagingAll(billingAccountName, departmentName, options) {
|
|
296
|
+
for await (const page of this.listByDepartmentPagingPage(billingAccountName, departmentName, options)) {
|
|
297
|
+
yield* page;
|
|
298
|
+
}
|
|
401
299
|
}
|
|
402
300
|
/**
|
|
403
301
|
* Lists the billing permissions the caller has for an enrollment account.
|
|
@@ -415,52 +313,35 @@ export class BillingPermissionsImpl {
|
|
|
415
313
|
return this;
|
|
416
314
|
},
|
|
417
315
|
byPage: (settings) => {
|
|
418
|
-
if (settings
|
|
316
|
+
if (settings?.maxPageSize) {
|
|
419
317
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
420
318
|
}
|
|
421
319
|
return this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings);
|
|
422
320
|
},
|
|
423
321
|
};
|
|
424
322
|
}
|
|
425
|
-
listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
var _a, e_7, _b, _c;
|
|
448
|
-
try {
|
|
449
|
-
for (var _d = true, _e = __asyncValues(this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
450
|
-
_c = _f.value;
|
|
451
|
-
_d = false;
|
|
452
|
-
const page = _c;
|
|
453
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
457
|
-
finally {
|
|
458
|
-
try {
|
|
459
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
460
|
-
}
|
|
461
|
-
finally { if (e_7) throw e_7.error; }
|
|
462
|
-
}
|
|
463
|
-
});
|
|
323
|
+
async *listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
324
|
+
let result;
|
|
325
|
+
let continuationToken = settings?.continuationToken;
|
|
326
|
+
if (!continuationToken) {
|
|
327
|
+
result = await this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options);
|
|
328
|
+
let page = result.value || [];
|
|
329
|
+
continuationToken = result.nextLink;
|
|
330
|
+
setContinuationToken(page, continuationToken);
|
|
331
|
+
yield page;
|
|
332
|
+
}
|
|
333
|
+
while (continuationToken) {
|
|
334
|
+
result = await this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options);
|
|
335
|
+
continuationToken = result.nextLink;
|
|
336
|
+
let page = result.value || [];
|
|
337
|
+
setContinuationToken(page, continuationToken);
|
|
338
|
+
yield page;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
async *listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
|
|
342
|
+
for await (const page of this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)) {
|
|
343
|
+
yield* page;
|
|
344
|
+
}
|
|
464
345
|
}
|
|
465
346
|
/**
|
|
466
347
|
* Lists the billing permissions the caller has on a billing account.
|