@azure/arm-billing 5.0.1-alpha.20250618.1 → 5.0.1-alpha.20250718.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 BillingRoleDefinitionOperations operations. */
15
14
  export class BillingRoleDefinitionOperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class BillingRoleDefinitionOperations class.
18
18
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class BillingRoleDefinitionOperationsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByBillingProfilePagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByBillingProfile(billingAccountName, billingProfileName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
67
- }
68
- listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
69
- return __asyncGenerator(this, arguments, function* listByBillingProfilePagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
48
+ async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
67
+ for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Lists the role definitions for a customer. The operation is supported for billing accounts with
@@ -103,52 +86,35 @@ export class BillingRoleDefinitionOperationsImpl {
103
86
  return this;
104
87
  },
105
88
  byPage: (settings) => {
106
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
89
+ if (settings?.maxPageSize) {
107
90
  throw new Error("maxPageSize is not supported by this operation.");
108
91
  }
109
92
  return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings);
110
93
  },
111
94
  };
112
95
  }
113
- listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
114
- return __asyncGenerator(this, arguments, function* listByCustomerPagingPage_1() {
115
- let result;
116
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
117
- if (!continuationToken) {
118
- result = yield __await(this._listByCustomer(billingAccountName, billingProfileName, customerName, options));
119
- let page = result.value || [];
120
- continuationToken = result.nextLink;
121
- setContinuationToken(page, continuationToken);
122
- yield yield __await(page);
123
- }
124
- while (continuationToken) {
125
- result = yield __await(this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options));
126
- continuationToken = result.nextLink;
127
- let page = result.value || [];
128
- setContinuationToken(page, continuationToken);
129
- yield yield __await(page);
130
- }
131
- });
132
- }
133
- listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
134
- return __asyncGenerator(this, arguments, function* listByCustomerPagingAll_1() {
135
- var _a, e_2, _b, _c;
136
- try {
137
- for (var _d = true, _e = __asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, 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
- });
96
+ async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
97
+ let result;
98
+ let continuationToken = settings?.continuationToken;
99
+ if (!continuationToken) {
100
+ result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, 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._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
108
+ continuationToken = result.nextLink;
109
+ let page = result.value || [];
110
+ setContinuationToken(page, continuationToken);
111
+ yield page;
112
+ }
113
+ }
114
+ async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, options) {
115
+ for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, options)) {
116
+ yield* page;
117
+ }
152
118
  }
153
119
  /**
154
120
  * Lists the role definitions for an invoice section. The operation is supported for billing accounts
@@ -168,52 +134,35 @@ export class BillingRoleDefinitionOperationsImpl {
168
134
  return this;
169
135
  },
170
136
  byPage: (settings) => {
171
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
137
+ if (settings?.maxPageSize) {
172
138
  throw new Error("maxPageSize is not supported by this operation.");
173
139
  }
174
140
  return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
175
141
  },
176
142
  };
177
143
  }
178
- listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
179
- return __asyncGenerator(this, arguments, function* listByInvoiceSectionPagingPage_1() {
180
- let result;
181
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
182
- if (!continuationToken) {
183
- result = yield __await(this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options));
184
- let page = result.value || [];
185
- continuationToken = result.nextLink;
186
- setContinuationToken(page, continuationToken);
187
- yield yield __await(page);
188
- }
189
- while (continuationToken) {
190
- result = yield __await(this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
191
- continuationToken = result.nextLink;
192
- let page = result.value || [];
193
- setContinuationToken(page, continuationToken);
194
- yield yield __await(page);
195
- }
196
- });
197
- }
198
- listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
199
- return __asyncGenerator(this, arguments, function* listByInvoiceSectionPagingAll_1() {
200
- var _a, e_3, _b, _c;
201
- try {
202
- for (var _d = true, _e = __asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
203
- _c = _f.value;
204
- _d = false;
205
- const page = _c;
206
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
207
- }
208
- }
209
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
210
- finally {
211
- try {
212
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
213
- }
214
- finally { if (e_3) throw e_3.error; }
215
- }
216
- });
144
+ async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
145
+ let result;
146
+ let continuationToken = settings?.continuationToken;
147
+ if (!continuationToken) {
148
+ result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options);
149
+ let page = result.value || [];
150
+ continuationToken = result.nextLink;
151
+ setContinuationToken(page, continuationToken);
152
+ yield page;
153
+ }
154
+ while (continuationToken) {
155
+ result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
156
+ continuationToken = result.nextLink;
157
+ let page = result.value || [];
158
+ setContinuationToken(page, continuationToken);
159
+ yield page;
160
+ }
161
+ }
162
+ async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
163
+ for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
164
+ yield* page;
165
+ }
217
166
  }
218
167
  /**
219
168
  * Lists the role definitions for a billing account. The operation is supported for billing accounts
@@ -232,52 +181,35 @@ export class BillingRoleDefinitionOperationsImpl {
232
181
  return this;
233
182
  },
234
183
  byPage: (settings) => {
235
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
184
+ if (settings?.maxPageSize) {
236
185
  throw new Error("maxPageSize is not supported by this operation.");
237
186
  }
238
187
  return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
239
188
  },
240
189
  };
241
190
  }
242
- listByBillingAccountPagingPage(billingAccountName, options, settings) {
243
- return __asyncGenerator(this, arguments, function* listByBillingAccountPagingPage_1() {
244
- let result;
245
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
246
- if (!continuationToken) {
247
- result = yield __await(this._listByBillingAccount(billingAccountName, options));
248
- let page = result.value || [];
249
- continuationToken = result.nextLink;
250
- setContinuationToken(page, continuationToken);
251
- yield yield __await(page);
252
- }
253
- while (continuationToken) {
254
- result = yield __await(this._listByBillingAccountNext(billingAccountName, continuationToken, options));
255
- continuationToken = result.nextLink;
256
- let page = result.value || [];
257
- setContinuationToken(page, continuationToken);
258
- yield yield __await(page);
259
- }
260
- });
261
- }
262
- listByBillingAccountPagingAll(billingAccountName, options) {
263
- return __asyncGenerator(this, arguments, function* listByBillingAccountPagingAll_1() {
264
- var _a, e_4, _b, _c;
265
- try {
266
- for (var _d = true, _e = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
267
- _c = _f.value;
268
- _d = false;
269
- const page = _c;
270
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
271
- }
272
- }
273
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
274
- finally {
275
- try {
276
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
277
- }
278
- finally { if (e_4) throw e_4.error; }
279
- }
280
- });
191
+ async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
192
+ let result;
193
+ let continuationToken = settings?.continuationToken;
194
+ if (!continuationToken) {
195
+ result = await this._listByBillingAccount(billingAccountName, options);
196
+ let page = result.value || [];
197
+ continuationToken = result.nextLink;
198
+ setContinuationToken(page, continuationToken);
199
+ yield page;
200
+ }
201
+ while (continuationToken) {
202
+ result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
203
+ continuationToken = result.nextLink;
204
+ let page = result.value || [];
205
+ setContinuationToken(page, continuationToken);
206
+ yield page;
207
+ }
208
+ }
209
+ async *listByBillingAccountPagingAll(billingAccountName, options) {
210
+ for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
211
+ yield* page;
212
+ }
281
213
  }
282
214
  /**
283
215
  * List the definition for a department. The operation is supported for billing accounts with agreement
@@ -296,52 +228,35 @@ export class BillingRoleDefinitionOperationsImpl {
296
228
  return this;
297
229
  },
298
230
  byPage: (settings) => {
299
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
231
+ if (settings?.maxPageSize) {
300
232
  throw new Error("maxPageSize is not supported by this operation.");
301
233
  }
302
234
  return this.listByDepartmentPagingPage(billingAccountName, departmentName, options, settings);
303
235
  },
304
236
  };
305
237
  }
306
- listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
307
- return __asyncGenerator(this, arguments, function* listByDepartmentPagingPage_1() {
308
- let result;
309
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
310
- if (!continuationToken) {
311
- result = yield __await(this._listByDepartment(billingAccountName, departmentName, options));
312
- let page = result.value || [];
313
- continuationToken = result.nextLink;
314
- setContinuationToken(page, continuationToken);
315
- yield yield __await(page);
316
- }
317
- while (continuationToken) {
318
- result = yield __await(this._listByDepartmentNext(billingAccountName, departmentName, continuationToken, options));
319
- continuationToken = result.nextLink;
320
- let page = result.value || [];
321
- setContinuationToken(page, continuationToken);
322
- yield yield __await(page);
323
- }
324
- });
325
- }
326
- listByDepartmentPagingAll(billingAccountName, departmentName, options) {
327
- return __asyncGenerator(this, arguments, function* listByDepartmentPagingAll_1() {
328
- var _a, e_5, _b, _c;
329
- try {
330
- for (var _d = true, _e = __asyncValues(this.listByDepartmentPagingPage(billingAccountName, departmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
331
- _c = _f.value;
332
- _d = false;
333
- const page = _c;
334
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
335
- }
336
- }
337
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
338
- finally {
339
- try {
340
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
341
- }
342
- finally { if (e_5) throw e_5.error; }
343
- }
344
- });
238
+ async *listByDepartmentPagingPage(billingAccountName, departmentName, options, settings) {
239
+ let result;
240
+ let continuationToken = settings?.continuationToken;
241
+ if (!continuationToken) {
242
+ result = await this._listByDepartment(billingAccountName, departmentName, options);
243
+ let page = result.value || [];
244
+ continuationToken = result.nextLink;
245
+ setContinuationToken(page, continuationToken);
246
+ yield page;
247
+ }
248
+ while (continuationToken) {
249
+ result = await this._listByDepartmentNext(billingAccountName, departmentName, continuationToken, options);
250
+ continuationToken = result.nextLink;
251
+ let page = result.value || [];
252
+ setContinuationToken(page, continuationToken);
253
+ yield page;
254
+ }
255
+ }
256
+ async *listByDepartmentPagingAll(billingAccountName, departmentName, options) {
257
+ for await (const page of this.listByDepartmentPagingPage(billingAccountName, departmentName, options)) {
258
+ yield* page;
259
+ }
345
260
  }
346
261
  /**
347
262
  * List the definition for an enrollment account. The operation is supported for billing accounts with
@@ -360,52 +275,35 @@ export class BillingRoleDefinitionOperationsImpl {
360
275
  return this;
361
276
  },
362
277
  byPage: (settings) => {
363
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
278
+ if (settings?.maxPageSize) {
364
279
  throw new Error("maxPageSize is not supported by this operation.");
365
280
  }
366
281
  return this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings);
367
282
  },
368
283
  };
369
284
  }
370
- listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
371
- return __asyncGenerator(this, arguments, function* listByEnrollmentAccountPagingPage_1() {
372
- let result;
373
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
374
- if (!continuationToken) {
375
- result = yield __await(this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options));
376
- let page = result.value || [];
377
- continuationToken = result.nextLink;
378
- setContinuationToken(page, continuationToken);
379
- yield yield __await(page);
380
- }
381
- while (continuationToken) {
382
- result = yield __await(this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options));
383
- continuationToken = result.nextLink;
384
- let page = result.value || [];
385
- setContinuationToken(page, continuationToken);
386
- yield yield __await(page);
387
- }
388
- });
389
- }
390
- listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
391
- return __asyncGenerator(this, arguments, function* listByEnrollmentAccountPagingAll_1() {
392
- var _a, e_6, _b, _c;
393
- try {
394
- for (var _d = true, _e = __asyncValues(this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
395
- _c = _f.value;
396
- _d = false;
397
- const page = _c;
398
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
399
- }
400
- }
401
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
402
- finally {
403
- try {
404
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
405
- }
406
- finally { if (e_6) throw e_6.error; }
407
- }
408
- });
285
+ async *listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options, settings) {
286
+ let result;
287
+ let continuationToken = settings?.continuationToken;
288
+ if (!continuationToken) {
289
+ result = await this._listByEnrollmentAccount(billingAccountName, enrollmentAccountName, options);
290
+ let page = result.value || [];
291
+ continuationToken = result.nextLink;
292
+ setContinuationToken(page, continuationToken);
293
+ yield page;
294
+ }
295
+ while (continuationToken) {
296
+ result = await this._listByEnrollmentAccountNext(billingAccountName, enrollmentAccountName, continuationToken, options);
297
+ continuationToken = result.nextLink;
298
+ let page = result.value || [];
299
+ setContinuationToken(page, continuationToken);
300
+ yield page;
301
+ }
302
+ }
303
+ async *listByEnrollmentAccountPagingAll(billingAccountName, enrollmentAccountName, options) {
304
+ for await (const page of this.listByEnrollmentAccountPagingPage(billingAccountName, enrollmentAccountName, options)) {
305
+ yield* page;
306
+ }
409
307
  }
410
308
  /**
411
309
  * Gets the definition for a role on a billing profile. The operation is supported for billing accounts