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