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