@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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Invoices operations. */
|
|
17
16
|
export class InvoicesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Invoices class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -40,52 +40,35 @@ export class InvoicesImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
50
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
68
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
69
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
89
72
|
}
|
|
90
73
|
/**
|
|
91
74
|
* Lists the invoices for a billing account for a given start date and end date. The operation is
|
|
@@ -103,52 +86,35 @@ export class InvoicesImpl {
|
|
|
103
86
|
return this;
|
|
104
87
|
},
|
|
105
88
|
byPage: (settings) => {
|
|
106
|
-
if (settings
|
|
89
|
+
if (settings?.maxPageSize) {
|
|
107
90
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
91
|
}
|
|
109
92
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
110
93
|
},
|
|
111
94
|
};
|
|
112
95
|
}
|
|
113
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
});
|
|
96
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
97
|
+
let result;
|
|
98
|
+
let continuationToken = settings?.continuationToken;
|
|
99
|
+
if (!continuationToken) {
|
|
100
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
106
|
+
while (continuationToken) {
|
|
107
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
112
|
+
}
|
|
132
113
|
}
|
|
133
|
-
listByBillingAccountPagingAll(billingAccountName, options) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
138
|
-
_c = _f.value;
|
|
139
|
-
_d = false;
|
|
140
|
-
const page = _c;
|
|
141
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
145
|
-
finally {
|
|
146
|
-
try {
|
|
147
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
148
|
-
}
|
|
149
|
-
finally { if (e_2) throw e_2.error; }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
114
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
115
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
116
|
+
yield* page;
|
|
117
|
+
}
|
|
152
118
|
}
|
|
153
119
|
/**
|
|
154
120
|
* Lists the invoices for a subscription. The operation is supported for billing accounts with
|
|
@@ -165,52 +131,35 @@ export class InvoicesImpl {
|
|
|
165
131
|
return this;
|
|
166
132
|
},
|
|
167
133
|
byPage: (settings) => {
|
|
168
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
169
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
170
136
|
}
|
|
171
137
|
return this.listByBillingSubscriptionPagingPage(options, settings);
|
|
172
138
|
},
|
|
173
139
|
};
|
|
174
140
|
}
|
|
175
|
-
listByBillingSubscriptionPagingPage(options, settings) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
});
|
|
141
|
+
async *listByBillingSubscriptionPagingPage(options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listByBillingSubscription(options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
setContinuationToken(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listByBillingSubscriptionNext(continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
194
158
|
}
|
|
195
|
-
listByBillingSubscriptionPagingAll(options) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingSubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
200
|
-
_c = _f.value;
|
|
201
|
-
_d = false;
|
|
202
|
-
const page = _c;
|
|
203
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
207
|
-
finally {
|
|
208
|
-
try {
|
|
209
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
210
|
-
}
|
|
211
|
-
finally { if (e_3) throw e_3.error; }
|
|
212
|
-
}
|
|
213
|
-
});
|
|
159
|
+
async *listByBillingSubscriptionPagingAll(options) {
|
|
160
|
+
for await (const page of this.listByBillingSubscriptionPagingPage(options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
214
163
|
}
|
|
215
164
|
/**
|
|
216
165
|
* Lists the invoices for a billing profile for a given start date and end date. The operation is
|
|
@@ -236,14 +185,19 @@ export class InvoicesImpl {
|
|
|
236
185
|
return this.client.sendOperationRequest(args, spec);
|
|
237
186
|
};
|
|
238
187
|
const sendOperationFn = async (args, spec) => {
|
|
239
|
-
var _a;
|
|
240
188
|
let currentRawResponse = undefined;
|
|
241
|
-
const providedCallback =
|
|
189
|
+
const providedCallback = args.options?.onResponse;
|
|
242
190
|
const callback = (rawResponse, flatResponse) => {
|
|
243
191
|
currentRawResponse = rawResponse;
|
|
244
|
-
providedCallback
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback,
|
|
199
|
+
},
|
|
245
200
|
};
|
|
246
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
247
201
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
248
202
|
return {
|
|
249
203
|
flatResponse,
|
|
@@ -260,8 +214,8 @@ export class InvoicesImpl {
|
|
|
260
214
|
spec: downloadDocumentsByBillingAccountOperationSpec,
|
|
261
215
|
});
|
|
262
216
|
const poller = await createHttpPoller(lro, {
|
|
263
|
-
restoreFrom: options
|
|
264
|
-
intervalInMs: options
|
|
217
|
+
restoreFrom: options?.resumeFrom,
|
|
218
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
265
219
|
resourceLocationConfig: "location",
|
|
266
220
|
});
|
|
267
221
|
await poller.poll();
|
|
@@ -291,14 +245,19 @@ export class InvoicesImpl {
|
|
|
291
245
|
return this.client.sendOperationRequest(args, spec);
|
|
292
246
|
};
|
|
293
247
|
const sendOperationFn = async (args, spec) => {
|
|
294
|
-
var _a;
|
|
295
248
|
let currentRawResponse = undefined;
|
|
296
|
-
const providedCallback =
|
|
249
|
+
const providedCallback = args.options?.onResponse;
|
|
297
250
|
const callback = (rawResponse, flatResponse) => {
|
|
298
251
|
currentRawResponse = rawResponse;
|
|
299
|
-
providedCallback
|
|
252
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
253
|
+
};
|
|
254
|
+
const updatedArgs = {
|
|
255
|
+
...args,
|
|
256
|
+
options: {
|
|
257
|
+
...args.options,
|
|
258
|
+
onResponse: callback,
|
|
259
|
+
},
|
|
300
260
|
};
|
|
301
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
302
261
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
303
262
|
return {
|
|
304
263
|
flatResponse,
|
|
@@ -315,8 +274,8 @@ export class InvoicesImpl {
|
|
|
315
274
|
spec: amendOperationSpec,
|
|
316
275
|
});
|
|
317
276
|
const poller = await createHttpPoller(lro, {
|
|
318
|
-
restoreFrom: options
|
|
319
|
-
intervalInMs: options
|
|
277
|
+
restoreFrom: options?.resumeFrom,
|
|
278
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
320
279
|
resourceLocationConfig: "location",
|
|
321
280
|
});
|
|
322
281
|
await poller.poll();
|
|
@@ -345,14 +304,19 @@ export class InvoicesImpl {
|
|
|
345
304
|
return this.client.sendOperationRequest(args, spec);
|
|
346
305
|
};
|
|
347
306
|
const sendOperationFn = async (args, spec) => {
|
|
348
|
-
var _a;
|
|
349
307
|
let currentRawResponse = undefined;
|
|
350
|
-
const providedCallback =
|
|
308
|
+
const providedCallback = args.options?.onResponse;
|
|
351
309
|
const callback = (rawResponse, flatResponse) => {
|
|
352
310
|
currentRawResponse = rawResponse;
|
|
353
|
-
providedCallback
|
|
311
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
312
|
+
};
|
|
313
|
+
const updatedArgs = {
|
|
314
|
+
...args,
|
|
315
|
+
options: {
|
|
316
|
+
...args.options,
|
|
317
|
+
onResponse: callback,
|
|
318
|
+
},
|
|
354
319
|
};
|
|
355
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
356
320
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
357
321
|
return {
|
|
358
322
|
flatResponse,
|
|
@@ -369,8 +333,8 @@ export class InvoicesImpl {
|
|
|
369
333
|
spec: downloadByBillingAccountOperationSpec,
|
|
370
334
|
});
|
|
371
335
|
const poller = await createHttpPoller(lro, {
|
|
372
|
-
restoreFrom: options
|
|
373
|
-
intervalInMs: options
|
|
336
|
+
restoreFrom: options?.resumeFrom,
|
|
337
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
374
338
|
resourceLocationConfig: "location",
|
|
375
339
|
});
|
|
376
340
|
await poller.poll();
|
|
@@ -399,14 +363,19 @@ export class InvoicesImpl {
|
|
|
399
363
|
return this.client.sendOperationRequest(args, spec);
|
|
400
364
|
};
|
|
401
365
|
const sendOperationFn = async (args, spec) => {
|
|
402
|
-
var _a;
|
|
403
366
|
let currentRawResponse = undefined;
|
|
404
|
-
const providedCallback =
|
|
367
|
+
const providedCallback = args.options?.onResponse;
|
|
405
368
|
const callback = (rawResponse, flatResponse) => {
|
|
406
369
|
currentRawResponse = rawResponse;
|
|
407
|
-
providedCallback
|
|
370
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
371
|
+
};
|
|
372
|
+
const updatedArgs = {
|
|
373
|
+
...args,
|
|
374
|
+
options: {
|
|
375
|
+
...args.options,
|
|
376
|
+
onResponse: callback,
|
|
377
|
+
},
|
|
408
378
|
};
|
|
409
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
410
379
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
411
380
|
return {
|
|
412
381
|
flatResponse,
|
|
@@ -423,8 +392,8 @@ export class InvoicesImpl {
|
|
|
423
392
|
spec: downloadSummaryByBillingAccountOperationSpec,
|
|
424
393
|
});
|
|
425
394
|
const poller = await createHttpPoller(lro, {
|
|
426
|
-
restoreFrom: options
|
|
427
|
-
intervalInMs: options
|
|
395
|
+
restoreFrom: options?.resumeFrom,
|
|
396
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
428
397
|
resourceLocationConfig: "location",
|
|
429
398
|
});
|
|
430
399
|
await poller.poll();
|
|
@@ -472,14 +441,19 @@ export class InvoicesImpl {
|
|
|
472
441
|
return this.client.sendOperationRequest(args, spec);
|
|
473
442
|
};
|
|
474
443
|
const sendOperationFn = async (args, spec) => {
|
|
475
|
-
var _a;
|
|
476
444
|
let currentRawResponse = undefined;
|
|
477
|
-
const providedCallback =
|
|
445
|
+
const providedCallback = args.options?.onResponse;
|
|
478
446
|
const callback = (rawResponse, flatResponse) => {
|
|
479
447
|
currentRawResponse = rawResponse;
|
|
480
|
-
providedCallback
|
|
448
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
449
|
+
};
|
|
450
|
+
const updatedArgs = {
|
|
451
|
+
...args,
|
|
452
|
+
options: {
|
|
453
|
+
...args.options,
|
|
454
|
+
onResponse: callback,
|
|
455
|
+
},
|
|
481
456
|
};
|
|
482
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
483
457
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
484
458
|
return {
|
|
485
459
|
flatResponse,
|
|
@@ -496,8 +470,8 @@ export class InvoicesImpl {
|
|
|
496
470
|
spec: downloadDocumentsByBillingSubscriptionOperationSpec,
|
|
497
471
|
});
|
|
498
472
|
const poller = await createHttpPoller(lro, {
|
|
499
|
-
restoreFrom: options
|
|
500
|
-
intervalInMs: options
|
|
473
|
+
restoreFrom: options?.resumeFrom,
|
|
474
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
501
475
|
resourceLocationConfig: "location",
|
|
502
476
|
});
|
|
503
477
|
await poller.poll();
|
|
@@ -525,14 +499,19 @@ export class InvoicesImpl {
|
|
|
525
499
|
return this.client.sendOperationRequest(args, spec);
|
|
526
500
|
};
|
|
527
501
|
const sendOperationFn = async (args, spec) => {
|
|
528
|
-
var _a;
|
|
529
502
|
let currentRawResponse = undefined;
|
|
530
|
-
const providedCallback =
|
|
503
|
+
const providedCallback = args.options?.onResponse;
|
|
531
504
|
const callback = (rawResponse, flatResponse) => {
|
|
532
505
|
currentRawResponse = rawResponse;
|
|
533
|
-
providedCallback
|
|
506
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
507
|
+
};
|
|
508
|
+
const updatedArgs = {
|
|
509
|
+
...args,
|
|
510
|
+
options: {
|
|
511
|
+
...args.options,
|
|
512
|
+
onResponse: callback,
|
|
513
|
+
},
|
|
534
514
|
};
|
|
535
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
536
515
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
537
516
|
return {
|
|
538
517
|
flatResponse,
|
|
@@ -549,8 +528,8 @@ export class InvoicesImpl {
|
|
|
549
528
|
spec: downloadByBillingSubscriptionOperationSpec,
|
|
550
529
|
});
|
|
551
530
|
const poller = await createHttpPoller(lro, {
|
|
552
|
-
restoreFrom: options
|
|
553
|
-
intervalInMs: options
|
|
531
|
+
restoreFrom: options?.resumeFrom,
|
|
532
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
554
533
|
resourceLocationConfig: "location",
|
|
555
534
|
});
|
|
556
535
|
await poller.poll();
|