@azure/arm-billing 5.0.1-alpha.20250619.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing BillingRoleAssignments operations. */
|
|
20
20
|
class BillingRoleAssignmentsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class BillingRoleAssignments class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var _a, e_1, _b, _c;
|
|
75
|
-
try {
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
53
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
72
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Lists the role assignments for the caller on customer. The operation is supported for billing
|
|
@@ -107,52 +91,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
107
91
|
return this;
|
|
108
92
|
},
|
|
109
93
|
byPage: (settings) => {
|
|
110
|
-
if (settings
|
|
94
|
+
if (settings?.maxPageSize) {
|
|
111
95
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
112
96
|
}
|
|
113
97
|
return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings);
|
|
114
98
|
},
|
|
115
99
|
};
|
|
116
100
|
}
|
|
117
|
-
listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var _a, e_2, _b, _c;
|
|
140
|
-
try {
|
|
141
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
142
|
-
_c = _f.value;
|
|
143
|
-
_d = false;
|
|
144
|
-
const page = _c;
|
|
145
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
149
|
-
finally {
|
|
150
|
-
try {
|
|
151
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
152
|
-
}
|
|
153
|
-
finally { if (e_2) throw e_2.error; }
|
|
154
|
-
}
|
|
155
|
-
});
|
|
101
|
+
async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
|
|
102
|
+
let result;
|
|
103
|
+
let continuationToken = settings?.continuationToken;
|
|
104
|
+
if (!continuationToken) {
|
|
105
|
+
result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, options);
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
111
|
+
while (continuationToken) {
|
|
112
|
+
result = await this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
|
|
113
|
+
continuationToken = result.nextLink;
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
116
|
+
yield page;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
|
|
120
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
156
123
|
}
|
|
157
124
|
/**
|
|
158
125
|
* Lists the role assignments for the caller on an invoice section. The operation is supported for
|
|
@@ -172,52 +139,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
172
139
|
return this;
|
|
173
140
|
},
|
|
174
141
|
byPage: (settings) => {
|
|
175
|
-
if (settings
|
|
142
|
+
if (settings?.maxPageSize) {
|
|
176
143
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
177
144
|
}
|
|
178
145
|
return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
|
|
179
146
|
},
|
|
180
147
|
};
|
|
181
148
|
}
|
|
182
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
var _a, e_3, _b, _c;
|
|
205
|
-
try {
|
|
206
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
207
|
-
_c = _f.value;
|
|
208
|
-
_d = false;
|
|
209
|
-
const page = _c;
|
|
210
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
214
|
-
finally {
|
|
215
|
-
try {
|
|
216
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
217
|
-
}
|
|
218
|
-
finally { if (e_3) throw e_3.error; }
|
|
219
|
-
}
|
|
220
|
-
});
|
|
149
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
150
|
+
let result;
|
|
151
|
+
let continuationToken = settings?.continuationToken;
|
|
152
|
+
if (!continuationToken) {
|
|
153
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
continuationToken = result.nextLink;
|
|
156
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
157
|
+
yield page;
|
|
158
|
+
}
|
|
159
|
+
while (continuationToken) {
|
|
160
|
+
result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
161
|
+
continuationToken = result.nextLink;
|
|
162
|
+
let page = result.value || [];
|
|
163
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
164
|
+
yield page;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
168
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
|
|
169
|
+
yield* page;
|
|
170
|
+
}
|
|
221
171
|
}
|
|
222
172
|
/**
|
|
223
173
|
* Lists the role assignments for the caller on a billing account. The operation is supported for
|
|
@@ -236,52 +186,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
236
186
|
return this;
|
|
237
187
|
},
|
|
238
188
|
byPage: (settings) => {
|
|
239
|
-
if (settings
|
|
189
|
+
if (settings?.maxPageSize) {
|
|
240
190
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
241
191
|
}
|
|
242
192
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
243
193
|
},
|
|
244
194
|
};
|
|
245
195
|
}
|
|
246
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
var _a, e_4, _b, _c;
|
|
269
|
-
try {
|
|
270
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
271
|
-
_c = _f.value;
|
|
272
|
-
_d = false;
|
|
273
|
-
const page = _c;
|
|
274
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
278
|
-
finally {
|
|
279
|
-
try {
|
|
280
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
281
|
-
}
|
|
282
|
-
finally { if (e_4) throw e_4.error; }
|
|
283
|
-
}
|
|
284
|
-
});
|
|
196
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
197
|
+
let result;
|
|
198
|
+
let continuationToken = settings?.continuationToken;
|
|
199
|
+
if (!continuationToken) {
|
|
200
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
continuationToken = result.nextLink;
|
|
203
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
204
|
+
yield page;
|
|
205
|
+
}
|
|
206
|
+
while (continuationToken) {
|
|
207
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
208
|
+
continuationToken = result.nextLink;
|
|
209
|
+
let page = result.value || [];
|
|
210
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
211
|
+
yield page;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
215
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
216
|
+
yield* page;
|
|
217
|
+
}
|
|
285
218
|
}
|
|
286
219
|
/**
|
|
287
220
|
* Lists the role assignments for the caller on a department. The operation is supported for billing
|
|
@@ -300,52 +233,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
300
233
|
return this;
|
|
301
234
|
},
|
|
302
235
|
byPage: (settings) => {
|
|
303
|
-
if (settings
|
|
236
|
+
if (settings?.maxPageSize) {
|
|
304
237
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
305
238
|
}
|
|
306
239
|
return this.listByDepartmentPagingPage(billingAccountName, departmentName, options, settings);
|
|
307
240
|
},
|
|
308
241
|
};
|
|
309
242
|
}
|
|
310
|
-
listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
var _a, e_5, _b, _c;
|
|
333
|
-
try {
|
|
334
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByDepartmentPagingPage(billingAccountName, departmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
335
|
-
_c = _f.value;
|
|
336
|
-
_d = false;
|
|
337
|
-
const page = _c;
|
|
338
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
342
|
-
finally {
|
|
343
|
-
try {
|
|
344
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
345
|
-
}
|
|
346
|
-
finally { if (e_5) throw e_5.error; }
|
|
347
|
-
}
|
|
348
|
-
});
|
|
243
|
+
async *listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
|
|
244
|
+
let result;
|
|
245
|
+
let continuationToken = settings?.continuationToken;
|
|
246
|
+
if (!continuationToken) {
|
|
247
|
+
result = await this._listByDepartment(billingAccountName, departmentName, options);
|
|
248
|
+
let page = result.value || [];
|
|
249
|
+
continuationToken = result.nextLink;
|
|
250
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
251
|
+
yield page;
|
|
252
|
+
}
|
|
253
|
+
while (continuationToken) {
|
|
254
|
+
result = await this._listByDepartmentNext(billingAccountName, departmentName, continuationToken, options);
|
|
255
|
+
continuationToken = result.nextLink;
|
|
256
|
+
let page = result.value || [];
|
|
257
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
258
|
+
yield page;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
async *listByDepartmentPagingAll(billingAccountName, departmentName, options) {
|
|
262
|
+
for await (const page of this.listByDepartmentPagingPage(billingAccountName, departmentName, options)) {
|
|
263
|
+
yield* page;
|
|
264
|
+
}
|
|
349
265
|
}
|
|
350
266
|
/**
|
|
351
267
|
* Lists the role assignments for the caller on a enrollment account. The operation is supported for
|
|
@@ -364,52 +280,35 @@ class BillingRoleAssignmentsImpl {
|
|
|
364
280
|
return this;
|
|
365
281
|
},
|
|
366
282
|
byPage: (settings) => {
|
|
367
|
-
if (settings
|
|
283
|
+
if (settings?.maxPageSize) {
|
|
368
284
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
369
285
|
}
|
|
370
286
|
return this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings);
|
|
371
287
|
},
|
|
372
288
|
};
|
|
373
289
|
}
|
|
374
|
-
listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
var _a, e_6, _b, _c;
|
|
397
|
-
try {
|
|
398
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
399
|
-
_c = _f.value;
|
|
400
|
-
_d = false;
|
|
401
|
-
const page = _c;
|
|
402
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
406
|
-
finally {
|
|
407
|
-
try {
|
|
408
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
409
|
-
}
|
|
410
|
-
finally { if (e_6) throw e_6.error; }
|
|
411
|
-
}
|
|
412
|
-
});
|
|
290
|
+
async *listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
291
|
+
let result;
|
|
292
|
+
let continuationToken = settings?.continuationToken;
|
|
293
|
+
if (!continuationToken) {
|
|
294
|
+
result = await this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options);
|
|
295
|
+
let page = result.value || [];
|
|
296
|
+
continuationToken = result.nextLink;
|
|
297
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
298
|
+
yield page;
|
|
299
|
+
}
|
|
300
|
+
while (continuationToken) {
|
|
301
|
+
result = await this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options);
|
|
302
|
+
continuationToken = result.nextLink;
|
|
303
|
+
let page = result.value || [];
|
|
304
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
305
|
+
yield page;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async *listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
|
|
309
|
+
for await (const page of this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)) {
|
|
310
|
+
yield* page;
|
|
311
|
+
}
|
|
413
312
|
}
|
|
414
313
|
/**
|
|
415
314
|
* Deletes a role assignment on a billing profile. The operation is supported for billing accounts with
|
|
@@ -466,14 +365,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
466
365
|
return this.client.sendOperationRequest(args, spec);
|
|
467
366
|
};
|
|
468
367
|
const sendOperationFn = async (args, spec) => {
|
|
469
|
-
var _a;
|
|
470
368
|
let currentRawResponse = undefined;
|
|
471
|
-
const providedCallback =
|
|
369
|
+
const providedCallback = args.options?.onResponse;
|
|
472
370
|
const callback = (rawResponse, flatResponse) => {
|
|
473
371
|
currentRawResponse = rawResponse;
|
|
474
|
-
providedCallback
|
|
372
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
373
|
+
};
|
|
374
|
+
const updatedArgs = {
|
|
375
|
+
...args,
|
|
376
|
+
options: {
|
|
377
|
+
...args.options,
|
|
378
|
+
onResponse: callback,
|
|
379
|
+
},
|
|
475
380
|
};
|
|
476
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
477
381
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
478
382
|
return {
|
|
479
383
|
flatResponse,
|
|
@@ -490,8 +394,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
490
394
|
spec: createByBillingProfileOperationSpec,
|
|
491
395
|
});
|
|
492
396
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
493
|
-
restoreFrom: options
|
|
494
|
-
intervalInMs: options
|
|
397
|
+
restoreFrom: options?.resumeFrom,
|
|
398
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
495
399
|
resourceLocationConfig: "location",
|
|
496
400
|
});
|
|
497
401
|
await poller.poll();
|
|
@@ -570,14 +474,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
570
474
|
return this.client.sendOperationRequest(args, spec);
|
|
571
475
|
};
|
|
572
476
|
const sendOperationFn = async (args, spec) => {
|
|
573
|
-
var _a;
|
|
574
477
|
let currentRawResponse = undefined;
|
|
575
|
-
const providedCallback =
|
|
478
|
+
const providedCallback = args.options?.onResponse;
|
|
576
479
|
const callback = (rawResponse, flatResponse) => {
|
|
577
480
|
currentRawResponse = rawResponse;
|
|
578
|
-
providedCallback
|
|
481
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
482
|
+
};
|
|
483
|
+
const updatedArgs = {
|
|
484
|
+
...args,
|
|
485
|
+
options: {
|
|
486
|
+
...args.options,
|
|
487
|
+
onResponse: callback,
|
|
488
|
+
},
|
|
579
489
|
};
|
|
580
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
581
490
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
582
491
|
return {
|
|
583
492
|
flatResponse,
|
|
@@ -600,8 +509,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
600
509
|
spec: createByCustomerOperationSpec,
|
|
601
510
|
});
|
|
602
511
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
603
|
-
restoreFrom: options
|
|
604
|
-
intervalInMs: options
|
|
512
|
+
restoreFrom: options?.resumeFrom,
|
|
513
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
605
514
|
resourceLocationConfig: "location",
|
|
606
515
|
});
|
|
607
516
|
await poller.poll();
|
|
@@ -634,14 +543,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
634
543
|
return this.client.sendOperationRequest(args, spec);
|
|
635
544
|
};
|
|
636
545
|
const sendOperationFn = async (args, spec) => {
|
|
637
|
-
var _a;
|
|
638
546
|
let currentRawResponse = undefined;
|
|
639
|
-
const providedCallback =
|
|
547
|
+
const providedCallback = args.options?.onResponse;
|
|
640
548
|
const callback = (rawResponse, flatResponse) => {
|
|
641
549
|
currentRawResponse = rawResponse;
|
|
642
|
-
providedCallback
|
|
550
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
551
|
+
};
|
|
552
|
+
const updatedArgs = {
|
|
553
|
+
...args,
|
|
554
|
+
options: {
|
|
555
|
+
...args.options,
|
|
556
|
+
onResponse: callback,
|
|
557
|
+
},
|
|
643
558
|
};
|
|
644
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
645
559
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
646
560
|
return {
|
|
647
561
|
flatResponse,
|
|
@@ -658,8 +572,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
658
572
|
spec: resolveByCustomerOperationSpec,
|
|
659
573
|
});
|
|
660
574
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
661
|
-
restoreFrom: options
|
|
662
|
-
intervalInMs: options
|
|
575
|
+
restoreFrom: options?.resumeFrom,
|
|
576
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
663
577
|
resourceLocationConfig: "location",
|
|
664
578
|
});
|
|
665
579
|
await poller.poll();
|
|
@@ -739,14 +653,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
739
653
|
return this.client.sendOperationRequest(args, spec);
|
|
740
654
|
};
|
|
741
655
|
const sendOperationFn = async (args, spec) => {
|
|
742
|
-
var _a;
|
|
743
656
|
let currentRawResponse = undefined;
|
|
744
|
-
const providedCallback =
|
|
657
|
+
const providedCallback = args.options?.onResponse;
|
|
745
658
|
const callback = (rawResponse, flatResponse) => {
|
|
746
659
|
currentRawResponse = rawResponse;
|
|
747
|
-
providedCallback
|
|
660
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
661
|
+
};
|
|
662
|
+
const updatedArgs = {
|
|
663
|
+
...args,
|
|
664
|
+
options: {
|
|
665
|
+
...args.options,
|
|
666
|
+
onResponse: callback,
|
|
667
|
+
},
|
|
748
668
|
};
|
|
749
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
750
669
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
751
670
|
return {
|
|
752
671
|
flatResponse,
|
|
@@ -769,8 +688,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
769
688
|
spec: createByInvoiceSectionOperationSpec,
|
|
770
689
|
});
|
|
771
690
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
772
|
-
restoreFrom: options
|
|
773
|
-
intervalInMs: options
|
|
691
|
+
restoreFrom: options?.resumeFrom,
|
|
692
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
774
693
|
resourceLocationConfig: "location",
|
|
775
694
|
});
|
|
776
695
|
await poller.poll();
|
|
@@ -803,14 +722,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
803
722
|
return this.client.sendOperationRequest(args, spec);
|
|
804
723
|
};
|
|
805
724
|
const sendOperationFn = async (args, spec) => {
|
|
806
|
-
var _a;
|
|
807
725
|
let currentRawResponse = undefined;
|
|
808
|
-
const providedCallback =
|
|
726
|
+
const providedCallback = args.options?.onResponse;
|
|
809
727
|
const callback = (rawResponse, flatResponse) => {
|
|
810
728
|
currentRawResponse = rawResponse;
|
|
811
|
-
providedCallback
|
|
729
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
730
|
+
};
|
|
731
|
+
const updatedArgs = {
|
|
732
|
+
...args,
|
|
733
|
+
options: {
|
|
734
|
+
...args.options,
|
|
735
|
+
onResponse: callback,
|
|
736
|
+
},
|
|
812
737
|
};
|
|
813
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
814
738
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
815
739
|
return {
|
|
816
740
|
flatResponse,
|
|
@@ -832,8 +756,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
832
756
|
spec: resolveByInvoiceSectionOperationSpec,
|
|
833
757
|
});
|
|
834
758
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
835
|
-
restoreFrom: options
|
|
836
|
-
intervalInMs: options
|
|
759
|
+
restoreFrom: options?.resumeFrom,
|
|
760
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
837
761
|
resourceLocationConfig: "location",
|
|
838
762
|
});
|
|
839
763
|
await poller.poll();
|
|
@@ -865,14 +789,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
865
789
|
return this.client.sendOperationRequest(args, spec);
|
|
866
790
|
};
|
|
867
791
|
const sendOperationFn = async (args, spec) => {
|
|
868
|
-
var _a;
|
|
869
792
|
let currentRawResponse = undefined;
|
|
870
|
-
const providedCallback =
|
|
793
|
+
const providedCallback = args.options?.onResponse;
|
|
871
794
|
const callback = (rawResponse, flatResponse) => {
|
|
872
795
|
currentRawResponse = rawResponse;
|
|
873
|
-
providedCallback
|
|
796
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
797
|
+
};
|
|
798
|
+
const updatedArgs = {
|
|
799
|
+
...args,
|
|
800
|
+
options: {
|
|
801
|
+
...args.options,
|
|
802
|
+
onResponse: callback,
|
|
803
|
+
},
|
|
874
804
|
};
|
|
875
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
876
805
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
877
806
|
return {
|
|
878
807
|
flatResponse,
|
|
@@ -889,8 +818,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
889
818
|
spec: resolveByBillingProfileOperationSpec,
|
|
890
819
|
});
|
|
891
820
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
892
|
-
restoreFrom: options
|
|
893
|
-
intervalInMs: options
|
|
821
|
+
restoreFrom: options?.resumeFrom,
|
|
822
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
894
823
|
resourceLocationConfig: "location",
|
|
895
824
|
});
|
|
896
825
|
await poller.poll();
|
|
@@ -942,14 +871,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
942
871
|
return this.client.sendOperationRequest(args, spec);
|
|
943
872
|
};
|
|
944
873
|
const sendOperationFn = async (args, spec) => {
|
|
945
|
-
var _a;
|
|
946
874
|
let currentRawResponse = undefined;
|
|
947
|
-
const providedCallback =
|
|
875
|
+
const providedCallback = args.options?.onResponse;
|
|
948
876
|
const callback = (rawResponse, flatResponse) => {
|
|
949
877
|
currentRawResponse = rawResponse;
|
|
950
|
-
providedCallback
|
|
878
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
879
|
+
};
|
|
880
|
+
const updatedArgs = {
|
|
881
|
+
...args,
|
|
882
|
+
options: {
|
|
883
|
+
...args.options,
|
|
884
|
+
onResponse: callback,
|
|
885
|
+
},
|
|
951
886
|
};
|
|
952
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
953
887
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
954
888
|
return {
|
|
955
889
|
flatResponse,
|
|
@@ -971,8 +905,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
971
905
|
spec: createOrUpdateByBillingAccountOperationSpec,
|
|
972
906
|
});
|
|
973
907
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
974
|
-
restoreFrom: options
|
|
975
|
-
intervalInMs: options
|
|
908
|
+
restoreFrom: options?.resumeFrom,
|
|
909
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
976
910
|
});
|
|
977
911
|
await poller.poll();
|
|
978
912
|
return poller;
|
|
@@ -1011,14 +945,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
1011
945
|
return this.client.sendOperationRequest(args, spec);
|
|
1012
946
|
};
|
|
1013
947
|
const sendOperationFn = async (args, spec) => {
|
|
1014
|
-
var _a;
|
|
1015
948
|
let currentRawResponse = undefined;
|
|
1016
|
-
const providedCallback =
|
|
949
|
+
const providedCallback = args.options?.onResponse;
|
|
1017
950
|
const callback = (rawResponse, flatResponse) => {
|
|
1018
951
|
currentRawResponse = rawResponse;
|
|
1019
|
-
providedCallback
|
|
952
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
953
|
+
};
|
|
954
|
+
const updatedArgs = {
|
|
955
|
+
...args,
|
|
956
|
+
options: {
|
|
957
|
+
...args.options,
|
|
958
|
+
onResponse: callback,
|
|
959
|
+
},
|
|
1020
960
|
};
|
|
1021
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1022
961
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1023
962
|
return {
|
|
1024
963
|
flatResponse,
|
|
@@ -1035,8 +974,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
1035
974
|
spec: createByBillingAccountOperationSpec,
|
|
1036
975
|
});
|
|
1037
976
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1038
|
-
restoreFrom: options
|
|
1039
|
-
intervalInMs: options
|
|
977
|
+
restoreFrom: options?.resumeFrom,
|
|
978
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1040
979
|
resourceLocationConfig: "location",
|
|
1041
980
|
});
|
|
1042
981
|
await poller.poll();
|
|
@@ -1099,14 +1038,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
1099
1038
|
return this.client.sendOperationRequest(args, spec);
|
|
1100
1039
|
};
|
|
1101
1040
|
const sendOperationFn = async (args, spec) => {
|
|
1102
|
-
var _a;
|
|
1103
1041
|
let currentRawResponse = undefined;
|
|
1104
|
-
const providedCallback =
|
|
1042
|
+
const providedCallback = args.options?.onResponse;
|
|
1105
1043
|
const callback = (rawResponse, flatResponse) => {
|
|
1106
1044
|
currentRawResponse = rawResponse;
|
|
1107
|
-
providedCallback
|
|
1045
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1046
|
+
};
|
|
1047
|
+
const updatedArgs = {
|
|
1048
|
+
...args,
|
|
1049
|
+
options: {
|
|
1050
|
+
...args.options,
|
|
1051
|
+
onResponse: callback,
|
|
1052
|
+
},
|
|
1108
1053
|
};
|
|
1109
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1110
1054
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1111
1055
|
return {
|
|
1112
1056
|
flatResponse,
|
|
@@ -1129,8 +1073,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
1129
1073
|
spec: createOrUpdateByDepartmentOperationSpec,
|
|
1130
1074
|
});
|
|
1131
1075
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1132
|
-
restoreFrom: options
|
|
1133
|
-
intervalInMs: options
|
|
1076
|
+
restoreFrom: options?.resumeFrom,
|
|
1077
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1134
1078
|
});
|
|
1135
1079
|
await poller.poll();
|
|
1136
1080
|
return poller;
|
|
@@ -1204,14 +1148,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
1204
1148
|
return this.client.sendOperationRequest(args, spec);
|
|
1205
1149
|
};
|
|
1206
1150
|
const sendOperationFn = async (args, spec) => {
|
|
1207
|
-
var _a;
|
|
1208
1151
|
let currentRawResponse = undefined;
|
|
1209
|
-
const providedCallback =
|
|
1152
|
+
const providedCallback = args.options?.onResponse;
|
|
1210
1153
|
const callback = (rawResponse, flatResponse) => {
|
|
1211
1154
|
currentRawResponse = rawResponse;
|
|
1212
|
-
providedCallback
|
|
1155
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1156
|
+
};
|
|
1157
|
+
const updatedArgs = {
|
|
1158
|
+
...args,
|
|
1159
|
+
options: {
|
|
1160
|
+
...args.options,
|
|
1161
|
+
onResponse: callback,
|
|
1162
|
+
},
|
|
1213
1163
|
};
|
|
1214
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1215
1164
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1216
1165
|
return {
|
|
1217
1166
|
flatResponse,
|
|
@@ -1234,8 +1183,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
1234
1183
|
spec: createOrUpdateByEnrollmentAccountOperationSpec,
|
|
1235
1184
|
});
|
|
1236
1185
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1237
|
-
restoreFrom: options
|
|
1238
|
-
intervalInMs: options
|
|
1186
|
+
restoreFrom: options?.resumeFrom,
|
|
1187
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1239
1188
|
});
|
|
1240
1189
|
await poller.poll();
|
|
1241
1190
|
return poller;
|
|
@@ -1275,14 +1224,19 @@ class BillingRoleAssignmentsImpl {
|
|
|
1275
1224
|
return this.client.sendOperationRequest(args, spec);
|
|
1276
1225
|
};
|
|
1277
1226
|
const sendOperationFn = async (args, spec) => {
|
|
1278
|
-
var _a;
|
|
1279
1227
|
let currentRawResponse = undefined;
|
|
1280
|
-
const providedCallback =
|
|
1228
|
+
const providedCallback = args.options?.onResponse;
|
|
1281
1229
|
const callback = (rawResponse, flatResponse) => {
|
|
1282
1230
|
currentRawResponse = rawResponse;
|
|
1283
|
-
providedCallback
|
|
1231
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1232
|
+
};
|
|
1233
|
+
const updatedArgs = {
|
|
1234
|
+
...args,
|
|
1235
|
+
options: {
|
|
1236
|
+
...args.options,
|
|
1237
|
+
onResponse: callback,
|
|
1238
|
+
},
|
|
1284
1239
|
};
|
|
1285
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1286
1240
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1287
1241
|
return {
|
|
1288
1242
|
flatResponse,
|
|
@@ -1299,8 +1253,8 @@ class BillingRoleAssignmentsImpl {
|
|
|
1299
1253
|
spec: resolveByBillingAccountOperationSpec,
|
|
1300
1254
|
});
|
|
1301
1255
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1302
|
-
restoreFrom: options
|
|
1303
|
-
intervalInMs: options
|
|
1256
|
+
restoreFrom: options?.resumeFrom,
|
|
1257
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1304
1258
|
resourceLocationConfig: "location",
|
|
1305
1259
|
});
|
|
1306
1260
|
await poller.poll();
|