@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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing BillingSubscriptions operations. */
|
|
20
20
|
class BillingSubscriptionsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class BillingSubscriptions class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class BillingSubscriptionsImpl {
|
|
|
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
|
-
});
|
|
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
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
});
|
|
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 subscriptions for a customer. The operation is supported only for billing accounts with
|
|
@@ -107,52 +91,35 @@ class BillingSubscriptionsImpl {
|
|
|
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
|
-
});
|
|
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
|
+
}
|
|
136
118
|
}
|
|
137
|
-
listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
});
|
|
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 subscriptions that are billed to an invoice section. The operation is supported only for
|
|
@@ -172,52 +139,35 @@ class BillingSubscriptionsImpl {
|
|
|
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
|
-
});
|
|
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
|
+
}
|
|
201
166
|
}
|
|
202
|
-
listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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
|
-
});
|
|
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 subscriptions for a billing account.
|
|
@@ -234,52 +184,35 @@ class BillingSubscriptionsImpl {
|
|
|
234
184
|
return this;
|
|
235
185
|
},
|
|
236
186
|
byPage: (settings) => {
|
|
237
|
-
if (settings
|
|
187
|
+
if (settings?.maxPageSize) {
|
|
238
188
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
239
189
|
}
|
|
240
190
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
241
191
|
},
|
|
242
192
|
};
|
|
243
193
|
}
|
|
244
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
});
|
|
194
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
195
|
+
let result;
|
|
196
|
+
let continuationToken = settings?.continuationToken;
|
|
197
|
+
if (!continuationToken) {
|
|
198
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
199
|
+
let page = result.value || [];
|
|
200
|
+
continuationToken = result.nextLink;
|
|
201
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
202
|
+
yield page;
|
|
203
|
+
}
|
|
204
|
+
while (continuationToken) {
|
|
205
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
206
|
+
continuationToken = result.nextLink;
|
|
207
|
+
let page = result.value || [];
|
|
208
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
209
|
+
yield page;
|
|
210
|
+
}
|
|
263
211
|
}
|
|
264
|
-
listByBillingAccountPagingAll(billingAccountName, options) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
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) {
|
|
269
|
-
_c = _f.value;
|
|
270
|
-
_d = false;
|
|
271
|
-
const page = _c;
|
|
272
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
276
|
-
finally {
|
|
277
|
-
try {
|
|
278
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
279
|
-
}
|
|
280
|
-
finally { if (e_4) throw e_4.error; }
|
|
281
|
-
}
|
|
282
|
-
});
|
|
212
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
213
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
214
|
+
yield* page;
|
|
215
|
+
}
|
|
283
216
|
}
|
|
284
217
|
/**
|
|
285
218
|
* Lists the subscriptions for a customer at billing account level. The operation is supported only for
|
|
@@ -298,52 +231,35 @@ class BillingSubscriptionsImpl {
|
|
|
298
231
|
return this;
|
|
299
232
|
},
|
|
300
233
|
byPage: (settings) => {
|
|
301
|
-
if (settings
|
|
234
|
+
if (settings?.maxPageSize) {
|
|
302
235
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
303
236
|
}
|
|
304
237
|
return this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings);
|
|
305
238
|
},
|
|
306
239
|
};
|
|
307
240
|
}
|
|
308
|
-
listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
});
|
|
241
|
+
async *listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options, settings) {
|
|
242
|
+
let result;
|
|
243
|
+
let continuationToken = settings?.continuationToken;
|
|
244
|
+
if (!continuationToken) {
|
|
245
|
+
result = await this._listByCustomerAtBillingAccount(billingAccountName, customerName, options);
|
|
246
|
+
let page = result.value || [];
|
|
247
|
+
continuationToken = result.nextLink;
|
|
248
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
249
|
+
yield page;
|
|
250
|
+
}
|
|
251
|
+
while (continuationToken) {
|
|
252
|
+
result = await this._listByCustomerAtBillingAccountNext(billingAccountName, customerName, continuationToken, options);
|
|
253
|
+
continuationToken = result.nextLink;
|
|
254
|
+
let page = result.value || [];
|
|
255
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
256
|
+
yield page;
|
|
257
|
+
}
|
|
327
258
|
}
|
|
328
|
-
listByCustomerAtBillingAccountPagingAll(billingAccountName, customerName, options) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
333
|
-
_c = _f.value;
|
|
334
|
-
_d = false;
|
|
335
|
-
const page = _c;
|
|
336
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
340
|
-
finally {
|
|
341
|
-
try {
|
|
342
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
343
|
-
}
|
|
344
|
-
finally { if (e_5) throw e_5.error; }
|
|
345
|
-
}
|
|
346
|
-
});
|
|
259
|
+
async *listByCustomerAtBillingAccountPagingAll(billingAccountName, customerName, options) {
|
|
260
|
+
for await (const page of this.listByCustomerAtBillingAccountPagingPage(billingAccountName, customerName, options)) {
|
|
261
|
+
yield* page;
|
|
262
|
+
}
|
|
347
263
|
}
|
|
348
264
|
/**
|
|
349
265
|
* Lists the subscriptions for an enrollment account. The operation is supported for billing accounts
|
|
@@ -362,52 +278,35 @@ class BillingSubscriptionsImpl {
|
|
|
362
278
|
return this;
|
|
363
279
|
},
|
|
364
280
|
byPage: (settings) => {
|
|
365
|
-
if (settings
|
|
281
|
+
if (settings?.maxPageSize) {
|
|
366
282
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
367
283
|
}
|
|
368
284
|
return this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings);
|
|
369
285
|
},
|
|
370
286
|
};
|
|
371
287
|
}
|
|
372
|
-
listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
});
|
|
288
|
+
async *listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
|
|
289
|
+
let result;
|
|
290
|
+
let continuationToken = settings?.continuationToken;
|
|
291
|
+
if (!continuationToken) {
|
|
292
|
+
result = await this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options);
|
|
293
|
+
let page = result.value || [];
|
|
294
|
+
continuationToken = result.nextLink;
|
|
295
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
296
|
+
yield page;
|
|
297
|
+
}
|
|
298
|
+
while (continuationToken) {
|
|
299
|
+
result = await this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options);
|
|
300
|
+
continuationToken = result.nextLink;
|
|
301
|
+
let page = result.value || [];
|
|
302
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
303
|
+
yield page;
|
|
304
|
+
}
|
|
391
305
|
}
|
|
392
|
-
listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
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) {
|
|
397
|
-
_c = _f.value;
|
|
398
|
-
_d = false;
|
|
399
|
-
const page = _c;
|
|
400
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
404
|
-
finally {
|
|
405
|
-
try {
|
|
406
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
407
|
-
}
|
|
408
|
-
finally { if (e_6) throw e_6.error; }
|
|
409
|
-
}
|
|
410
|
-
});
|
|
306
|
+
async *listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
|
|
307
|
+
for await (const page of this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)) {
|
|
308
|
+
yield* page;
|
|
309
|
+
}
|
|
411
310
|
}
|
|
412
311
|
/**
|
|
413
312
|
* Gets a subscription by its billing profile and ID. The operation is supported for billing accounts
|
|
@@ -470,14 +369,19 @@ class BillingSubscriptionsImpl {
|
|
|
470
369
|
return this.client.sendOperationRequest(args, spec);
|
|
471
370
|
};
|
|
472
371
|
const sendOperationFn = async (args, spec) => {
|
|
473
|
-
var _a;
|
|
474
372
|
let currentRawResponse = undefined;
|
|
475
|
-
const providedCallback =
|
|
373
|
+
const providedCallback = args.options?.onResponse;
|
|
476
374
|
const callback = (rawResponse, flatResponse) => {
|
|
477
375
|
currentRawResponse = rawResponse;
|
|
478
|
-
providedCallback
|
|
376
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
377
|
+
};
|
|
378
|
+
const updatedArgs = {
|
|
379
|
+
...args,
|
|
380
|
+
options: {
|
|
381
|
+
...args.options,
|
|
382
|
+
onResponse: callback,
|
|
383
|
+
},
|
|
479
384
|
};
|
|
480
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
481
385
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
482
386
|
return {
|
|
483
387
|
flatResponse,
|
|
@@ -499,8 +403,8 @@ class BillingSubscriptionsImpl {
|
|
|
499
403
|
spec: cancelOperationSpec,
|
|
500
404
|
});
|
|
501
405
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
502
|
-
restoreFrom: options
|
|
503
|
-
intervalInMs: options
|
|
406
|
+
restoreFrom: options?.resumeFrom,
|
|
407
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
504
408
|
resourceLocationConfig: "location",
|
|
505
409
|
});
|
|
506
410
|
await poller.poll();
|
|
@@ -530,14 +434,19 @@ class BillingSubscriptionsImpl {
|
|
|
530
434
|
return this.client.sendOperationRequest(args, spec);
|
|
531
435
|
};
|
|
532
436
|
const sendOperationFn = async (args, spec) => {
|
|
533
|
-
var _a;
|
|
534
437
|
let currentRawResponse = undefined;
|
|
535
|
-
const providedCallback =
|
|
438
|
+
const providedCallback = args.options?.onResponse;
|
|
536
439
|
const callback = (rawResponse, flatResponse) => {
|
|
537
440
|
currentRawResponse = rawResponse;
|
|
538
|
-
providedCallback
|
|
441
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
442
|
+
};
|
|
443
|
+
const updatedArgs = {
|
|
444
|
+
...args,
|
|
445
|
+
options: {
|
|
446
|
+
...args.options,
|
|
447
|
+
onResponse: callback,
|
|
448
|
+
},
|
|
539
449
|
};
|
|
540
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
541
450
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
542
451
|
return {
|
|
543
452
|
flatResponse,
|
|
@@ -559,8 +468,8 @@ class BillingSubscriptionsImpl {
|
|
|
559
468
|
spec: mergeOperationSpec,
|
|
560
469
|
});
|
|
561
470
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
562
|
-
restoreFrom: options
|
|
563
|
-
intervalInMs: options
|
|
471
|
+
restoreFrom: options?.resumeFrom,
|
|
472
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
564
473
|
resourceLocationConfig: "location",
|
|
565
474
|
});
|
|
566
475
|
await poller.poll();
|
|
@@ -591,14 +500,19 @@ class BillingSubscriptionsImpl {
|
|
|
591
500
|
return this.client.sendOperationRequest(args, spec);
|
|
592
501
|
};
|
|
593
502
|
const sendOperationFn = async (args, spec) => {
|
|
594
|
-
var _a;
|
|
595
503
|
let currentRawResponse = undefined;
|
|
596
|
-
const providedCallback =
|
|
504
|
+
const providedCallback = args.options?.onResponse;
|
|
597
505
|
const callback = (rawResponse, flatResponse) => {
|
|
598
506
|
currentRawResponse = rawResponse;
|
|
599
|
-
providedCallback
|
|
507
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
508
|
+
};
|
|
509
|
+
const updatedArgs = {
|
|
510
|
+
...args,
|
|
511
|
+
options: {
|
|
512
|
+
...args.options,
|
|
513
|
+
onResponse: callback,
|
|
514
|
+
},
|
|
600
515
|
};
|
|
601
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
602
516
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
603
517
|
return {
|
|
604
518
|
flatResponse,
|
|
@@ -620,8 +534,8 @@ class BillingSubscriptionsImpl {
|
|
|
620
534
|
spec: moveOperationSpec,
|
|
621
535
|
});
|
|
622
536
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
623
|
-
restoreFrom: options
|
|
624
|
-
intervalInMs: options
|
|
537
|
+
restoreFrom: options?.resumeFrom,
|
|
538
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
625
539
|
resourceLocationConfig: "location",
|
|
626
540
|
});
|
|
627
541
|
await poller.poll();
|
|
@@ -653,14 +567,19 @@ class BillingSubscriptionsImpl {
|
|
|
653
567
|
return this.client.sendOperationRequest(args, spec);
|
|
654
568
|
};
|
|
655
569
|
const sendOperationFn = async (args, spec) => {
|
|
656
|
-
var _a;
|
|
657
570
|
let currentRawResponse = undefined;
|
|
658
|
-
const providedCallback =
|
|
571
|
+
const providedCallback = args.options?.onResponse;
|
|
659
572
|
const callback = (rawResponse, flatResponse) => {
|
|
660
573
|
currentRawResponse = rawResponse;
|
|
661
|
-
providedCallback
|
|
574
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
575
|
+
};
|
|
576
|
+
const updatedArgs = {
|
|
577
|
+
...args,
|
|
578
|
+
options: {
|
|
579
|
+
...args.options,
|
|
580
|
+
onResponse: callback,
|
|
581
|
+
},
|
|
662
582
|
};
|
|
663
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
664
583
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
665
584
|
return {
|
|
666
585
|
flatResponse,
|
|
@@ -682,8 +601,8 @@ class BillingSubscriptionsImpl {
|
|
|
682
601
|
spec: splitOperationSpec,
|
|
683
602
|
});
|
|
684
603
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
685
|
-
restoreFrom: options
|
|
686
|
-
intervalInMs: options
|
|
604
|
+
restoreFrom: options?.resumeFrom,
|
|
605
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
687
606
|
resourceLocationConfig: "location",
|
|
688
607
|
});
|
|
689
608
|
await poller.poll();
|
|
@@ -724,14 +643,19 @@ class BillingSubscriptionsImpl {
|
|
|
724
643
|
return this.client.sendOperationRequest(args, spec);
|
|
725
644
|
};
|
|
726
645
|
const sendOperationFn = async (args, spec) => {
|
|
727
|
-
var _a;
|
|
728
646
|
let currentRawResponse = undefined;
|
|
729
|
-
const providedCallback =
|
|
647
|
+
const providedCallback = args.options?.onResponse;
|
|
730
648
|
const callback = (rawResponse, flatResponse) => {
|
|
731
649
|
currentRawResponse = rawResponse;
|
|
732
|
-
providedCallback
|
|
650
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
651
|
+
};
|
|
652
|
+
const updatedArgs = {
|
|
653
|
+
...args,
|
|
654
|
+
options: {
|
|
655
|
+
...args.options,
|
|
656
|
+
onResponse: callback,
|
|
657
|
+
},
|
|
733
658
|
};
|
|
734
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
735
659
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
736
660
|
return {
|
|
737
661
|
flatResponse,
|
|
@@ -748,8 +672,8 @@ class BillingSubscriptionsImpl {
|
|
|
748
672
|
spec: deleteOperationSpec,
|
|
749
673
|
});
|
|
750
674
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
751
|
-
restoreFrom: options
|
|
752
|
-
intervalInMs: options
|
|
675
|
+
restoreFrom: options?.resumeFrom,
|
|
676
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
753
677
|
resourceLocationConfig: "location",
|
|
754
678
|
});
|
|
755
679
|
await poller.poll();
|
|
@@ -788,14 +712,19 @@ class BillingSubscriptionsImpl {
|
|
|
788
712
|
return this.client.sendOperationRequest(args, spec);
|
|
789
713
|
};
|
|
790
714
|
const sendOperationFn = async (args, spec) => {
|
|
791
|
-
var _a;
|
|
792
715
|
let currentRawResponse = undefined;
|
|
793
|
-
const providedCallback =
|
|
716
|
+
const providedCallback = args.options?.onResponse;
|
|
794
717
|
const callback = (rawResponse, flatResponse) => {
|
|
795
718
|
currentRawResponse = rawResponse;
|
|
796
|
-
providedCallback
|
|
719
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
720
|
+
};
|
|
721
|
+
const updatedArgs = {
|
|
722
|
+
...args,
|
|
723
|
+
options: {
|
|
724
|
+
...args.options,
|
|
725
|
+
onResponse: callback,
|
|
726
|
+
},
|
|
797
727
|
};
|
|
798
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
799
728
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
800
729
|
return {
|
|
801
730
|
flatResponse,
|
|
@@ -817,8 +746,8 @@ class BillingSubscriptionsImpl {
|
|
|
817
746
|
spec: updateOperationSpec,
|
|
818
747
|
});
|
|
819
748
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
820
|
-
restoreFrom: options
|
|
821
|
-
intervalInMs: options
|
|
749
|
+
restoreFrom: options?.resumeFrom,
|
|
750
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
822
751
|
resourceLocationConfig: "location",
|
|
823
752
|
});
|
|
824
753
|
await poller.poll();
|