@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
@@ -1 +1 @@
1
- {"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;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5E,IAAI,EAAE,oFAAoF;IAC1F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAChE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,8EAA8E;IACpF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Policies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ServiceDefinedResourceName,\n PoliciesGetByCustomerOptionalParams,\n PoliciesGetByCustomerResponse,\n CustomerPolicy,\n PoliciesCreateOrUpdateByCustomerOptionalParams,\n PoliciesCreateOrUpdateByCustomerResponse,\n PoliciesGetByBillingProfileOptionalParams,\n PoliciesGetByBillingProfileResponse,\n BillingProfilePolicy,\n PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n PoliciesCreateOrUpdateByBillingProfileResponse,\n PoliciesGetByCustomerAtBillingAccountOptionalParams,\n PoliciesGetByCustomerAtBillingAccountResponse,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n PoliciesGetByBillingAccountOptionalParams,\n PoliciesGetByBillingAccountResponse,\n BillingAccountPolicy,\n PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByBillingAccountResponse,\n PoliciesGetBySubscriptionOptionalParams,\n PoliciesGetBySubscriptionResponse,\n} from \"../models/index.js\";\n\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param policyName Service-defined resource names such as 'default' which are reserved resource\n * names.\n * @param options The options parameters.\n */\n getByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n policyName: ServiceDefinedResourceName,\n options?: PoliciesGetByCustomerOptionalParams,\n ): Promise<PoliciesGetByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n policyName,\n options,\n },\n getByCustomerOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>,\n PoliciesCreateOrUpdateByCustomerResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n },\n spec: createOrUpdateByCustomerOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAndWait(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> {\n const poller = await this.beginCreateOrUpdateByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a billing profile. This operation is supported only for billing accounts with\n * agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PoliciesGetByBillingProfileOptionalParams,\n ): Promise<PoliciesGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>,\n PoliciesCreateOrUpdateByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, parameters, options },\n spec: createOrUpdateByBillingProfileOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingProfileResponse,\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> {\n const poller = await this.beginCreateOrUpdateByBillingProfile(\n billingAccountName,\n billingProfileName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n getByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n options?: PoliciesGetByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesGetByCustomerAtBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, customerName, options },\n getByCustomerAtBillingAccountOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, customerName, parameters, options },\n spec: createOrUpdateByCustomerAtBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccountAndWait(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n options?: PoliciesGetByBillingAccountOptionalParams,\n ): Promise<PoliciesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccount(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>,\n PoliciesCreateOrUpdateByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: createOrUpdateByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccountAndWait(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is\n * supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner\n * Agreement.\n * @param options The options parameters.\n */\n getBySubscription(\n options?: PoliciesGetBySubscriptionOptionalParams,\n ): Promise<PoliciesGetBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n getBySubscriptionOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters20,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters21,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,MAAa,YAAY;IACN,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CACX,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,UAAsC,EACtC,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,kBAAkB;YAClB,kBAAkB;YAClB,YAAY;YACZ,UAAU;YACV,OAAO;SACR,EACD,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,6BAA6B,CACjC,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,UAA0B,EAC1B,OAAwD;QAOxD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACqB,EAAE;YACrD,OAAO,IAAI,CAA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AAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Policies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ServiceDefinedResourceName,\n PoliciesGetByCustomerOptionalParams,\n PoliciesGetByCustomerResponse,\n CustomerPolicy,\n PoliciesCreateOrUpdateByCustomerOptionalParams,\n PoliciesCreateOrUpdateByCustomerResponse,\n PoliciesGetByBillingProfileOptionalParams,\n PoliciesGetByBillingProfileResponse,\n BillingProfilePolicy,\n PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n PoliciesCreateOrUpdateByBillingProfileResponse,\n PoliciesGetByCustomerAtBillingAccountOptionalParams,\n PoliciesGetByCustomerAtBillingAccountResponse,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n PoliciesGetByBillingAccountOptionalParams,\n PoliciesGetByBillingAccountResponse,\n BillingAccountPolicy,\n PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByBillingAccountResponse,\n PoliciesGetBySubscriptionOptionalParams,\n PoliciesGetBySubscriptionResponse,\n} from \"../models/index.js\";\n\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param policyName Service-defined resource names such as 'default' which are reserved resource\n * names.\n * @param options The options parameters.\n */\n getByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n policyName: ServiceDefinedResourceName,\n options?: PoliciesGetByCustomerOptionalParams,\n ): Promise<PoliciesGetByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n policyName,\n options,\n },\n getByCustomerOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>,\n PoliciesCreateOrUpdateByCustomerResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n },\n spec: createOrUpdateByCustomerOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAndWait(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> {\n const poller = await this.beginCreateOrUpdateByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a billing profile. This operation is supported only for billing accounts with\n * agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PoliciesGetByBillingProfileOptionalParams,\n ): Promise<PoliciesGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>,\n PoliciesCreateOrUpdateByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, parameters, options },\n spec: createOrUpdateByBillingProfileOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingProfileResponse,\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> {\n const poller = await this.beginCreateOrUpdateByBillingProfile(\n billingAccountName,\n billingProfileName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n getByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n options?: PoliciesGetByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesGetByCustomerAtBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, customerName, options },\n getByCustomerAtBillingAccountOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, customerName, parameters, options },\n spec: createOrUpdateByCustomerAtBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccountAndWait(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n options?: PoliciesGetByBillingAccountOptionalParams,\n ): Promise<PoliciesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccount(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>,\n PoliciesCreateOrUpdateByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: createOrUpdateByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccountAndWait(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is\n * supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner\n * Agreement.\n * @param options The options parameters.\n */\n getBySubscription(\n options?: PoliciesGetBySubscriptionOptionalParams,\n ): Promise<PoliciesGetBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n getBySubscriptionOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters20,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters21,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing Products operations. */
20
20
  class ProductsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Products class.
23
24
  * @param client Reference to the service client
@@ -43,52 +44,35 @@ class ProductsImpl {
43
44
  return this;
44
45
  },
45
46
  byPage: (settings) => {
46
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
47
+ if (settings?.maxPageSize) {
47
48
  throw new Error("maxPageSize is not supported by this operation.");
48
49
  }
49
50
  return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
50
51
  },
51
52
  };
52
53
  }
53
- listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listByInvoiceSectionPagingPage_1() {
55
- let result;
56
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
57
- if (!continuationToken) {
58
- result = yield tslib_1.__await(this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options));
59
- let page = result.value || [];
60
- continuationToken = result.nextLink;
61
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
- yield yield tslib_1.__await(page);
63
- }
64
- while (continuationToken) {
65
- result = yield tslib_1.__await(this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
66
- continuationToken = result.nextLink;
67
- let page = result.value || [];
68
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
- yield yield tslib_1.__await(page);
70
- }
71
- });
54
+ async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
55
+ let result;
56
+ let continuationToken = settings?.continuationToken;
57
+ if (!continuationToken) {
58
+ result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, options);
59
+ let page = result.value || [];
60
+ continuationToken = result.nextLink;
61
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
+ yield page;
63
+ }
64
+ while (continuationToken) {
65
+ result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
66
+ continuationToken = result.nextLink;
67
+ let page = result.value || [];
68
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
+ yield page;
70
+ }
72
71
  }
73
- listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
74
- return tslib_1.__asyncGenerator(this, arguments, function* listByInvoiceSectionPagingAll_1() {
75
- var _a, e_1, _b, _c;
76
- try {
77
- 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) {
78
- _c = _f.value;
79
- _d = false;
80
- const page = _c;
81
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
82
- }
83
- }
84
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
- finally {
86
- try {
87
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
88
- }
89
- finally { if (e_1) throw e_1.error; }
90
- }
91
- });
72
+ async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
73
+ for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
74
+ yield* page;
75
+ }
92
76
  }
93
77
  /**
94
78
  * Lists the products for a billing profile. These don't include products billed based on usage. The
@@ -108,52 +92,35 @@ class ProductsImpl {
108
92
  return this;
109
93
  },
110
94
  byPage: (settings) => {
111
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
95
+ if (settings?.maxPageSize) {
112
96
  throw new Error("maxPageSize is not supported by this operation.");
113
97
  }
114
98
  return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
115
99
  },
116
100
  };
117
101
  }
118
- listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
119
- return tslib_1.__asyncGenerator(this, arguments, function* listByBillingProfilePagingPage_1() {
120
- let result;
121
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
122
- if (!continuationToken) {
123
- result = yield tslib_1.__await(this._listByBillingProfile(billingAccountName, billingProfileName, options));
124
- let page = result.value || [];
125
- continuationToken = result.nextLink;
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- while (continuationToken) {
130
- result = yield tslib_1.__await(this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options));
131
- continuationToken = result.nextLink;
132
- let page = result.value || [];
133
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
134
- yield yield tslib_1.__await(page);
135
- }
136
- });
102
+ async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
103
+ let result;
104
+ let continuationToken = settings?.continuationToken;
105
+ if (!continuationToken) {
106
+ result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
107
+ let page = result.value || [];
108
+ continuationToken = result.nextLink;
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
112
+ while (continuationToken) {
113
+ result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
114
+ continuationToken = result.nextLink;
115
+ let page = result.value || [];
116
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
117
+ yield page;
118
+ }
137
119
  }
138
- listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
139
- return tslib_1.__asyncGenerator(this, arguments, function* listByBillingProfilePagingAll_1() {
140
- var _a, e_2, _b, _c;
141
- try {
142
- 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) {
143
- _c = _f.value;
144
- _d = false;
145
- const page = _c;
146
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
147
- }
148
- }
149
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
150
- finally {
151
- try {
152
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
153
- }
154
- finally { if (e_2) throw e_2.error; }
155
- }
156
- });
120
+ async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
121
+ for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
122
+ yield* page;
123
+ }
157
124
  }
158
125
  /**
159
126
  * Lists the products for a customer. These don't include products billed based on usage.The operation
@@ -172,52 +139,35 @@ class ProductsImpl {
172
139
  return this;
173
140
  },
174
141
  byPage: (settings) => {
175
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
142
+ if (settings?.maxPageSize) {
176
143
  throw new Error("maxPageSize is not supported by this operation.");
177
144
  }
178
145
  return this.listByCustomerPagingPage(billingAccountName, customerName, options, settings);
179
146
  },
180
147
  };
181
148
  }
182
- listByCustomerPagingPage(billingAccountName, customerName, options, settings) {
183
- return tslib_1.__asyncGenerator(this, arguments, function* listByCustomerPagingPage_1() {
184
- let result;
185
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
186
- if (!continuationToken) {
187
- result = yield tslib_1.__await(this._listByCustomer(billingAccountName, customerName, options));
188
- let page = result.value || [];
189
- continuationToken = result.nextLink;
190
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
191
- yield yield tslib_1.__await(page);
192
- }
193
- while (continuationToken) {
194
- result = yield tslib_1.__await(this._listByCustomerNext(billingAccountName, customerName, continuationToken, options));
195
- continuationToken = result.nextLink;
196
- let page = result.value || [];
197
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
198
- yield yield tslib_1.__await(page);
199
- }
200
- });
149
+ async *listByCustomerPagingPage(billingAccountName, customerName, options, settings) {
150
+ let result;
151
+ let continuationToken = settings?.continuationToken;
152
+ if (!continuationToken) {
153
+ result = await this._listByCustomer(billingAccountName, customerName, options);
154
+ let page = result.value || [];
155
+ continuationToken = result.nextLink;
156
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
157
+ yield page;
158
+ }
159
+ while (continuationToken) {
160
+ result = await this._listByCustomerNext(billingAccountName, customerName, continuationToken, options);
161
+ continuationToken = result.nextLink;
162
+ let page = result.value || [];
163
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
164
+ yield page;
165
+ }
201
166
  }
202
- listByCustomerPagingAll(billingAccountName, customerName, options) {
203
- return tslib_1.__asyncGenerator(this, arguments, function* listByCustomerPagingAll_1() {
204
- var _a, e_3, _b, _c;
205
- try {
206
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByCustomerPagingPage(billingAccountName, customerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
207
- _c = _f.value;
208
- _d = false;
209
- const page = _c;
210
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
211
- }
212
- }
213
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
214
- finally {
215
- try {
216
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
217
- }
218
- finally { if (e_3) throw e_3.error; }
219
- }
220
- });
167
+ async *listByCustomerPagingAll(billingAccountName, customerName, options) {
168
+ for await (const page of this.listByCustomerPagingPage(billingAccountName, customerName, options)) {
169
+ yield* page;
170
+ }
221
171
  }
222
172
  /**
223
173
  * Lists the products for a billing account. These don't include products billed based on usage. The
@@ -236,52 +186,35 @@ class ProductsImpl {
236
186
  return this;
237
187
  },
238
188
  byPage: (settings) => {
239
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
189
+ if (settings?.maxPageSize) {
240
190
  throw new Error("maxPageSize is not supported by this operation.");
241
191
  }
242
192
  return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
243
193
  },
244
194
  };
245
195
  }
246
- listByBillingAccountPagingPage(billingAccountName, options, settings) {
247
- return tslib_1.__asyncGenerator(this, arguments, function* listByBillingAccountPagingPage_1() {
248
- let result;
249
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
250
- if (!continuationToken) {
251
- result = yield tslib_1.__await(this._listByBillingAccount(billingAccountName, options));
252
- let page = result.value || [];
253
- continuationToken = result.nextLink;
254
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
255
- yield yield tslib_1.__await(page);
256
- }
257
- while (continuationToken) {
258
- result = yield tslib_1.__await(this._listByBillingAccountNext(billingAccountName, continuationToken, options));
259
- continuationToken = result.nextLink;
260
- let page = result.value || [];
261
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
262
- yield yield tslib_1.__await(page);
263
- }
264
- });
196
+ async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
197
+ let result;
198
+ let continuationToken = settings?.continuationToken;
199
+ if (!continuationToken) {
200
+ result = await this._listByBillingAccount(billingAccountName, options);
201
+ let page = result.value || [];
202
+ continuationToken = result.nextLink;
203
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
204
+ yield page;
205
+ }
206
+ while (continuationToken) {
207
+ result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
208
+ continuationToken = result.nextLink;
209
+ let page = result.value || [];
210
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
211
+ yield page;
212
+ }
265
213
  }
266
- listByBillingAccountPagingAll(billingAccountName, options) {
267
- return tslib_1.__asyncGenerator(this, arguments, function* listByBillingAccountPagingAll_1() {
268
- var _a, e_4, _b, _c;
269
- try {
270
- 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) {
271
- _c = _f.value;
272
- _d = false;
273
- const page = _c;
274
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
275
- }
276
- }
277
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
278
- finally {
279
- try {
280
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
281
- }
282
- finally { if (e_4) throw e_4.error; }
283
- }
284
- });
214
+ async *listByBillingAccountPagingAll(billingAccountName, options) {
215
+ for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
216
+ yield* page;
217
+ }
285
218
  }
286
219
  /**
287
220
  * Lists the products for an invoice section. These don't include products billed based on usage. The
@@ -330,14 +263,19 @@ class ProductsImpl {
330
263
  return this.client.sendOperationRequest(args, spec);
331
264
  };
332
265
  const sendOperationFn = async (args, spec) => {
333
- var _a;
334
266
  let currentRawResponse = undefined;
335
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
267
+ const providedCallback = args.options?.onResponse;
336
268
  const callback = (rawResponse, flatResponse) => {
337
269
  currentRawResponse = rawResponse;
338
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
270
+ providedCallback?.(rawResponse, flatResponse);
271
+ };
272
+ const updatedArgs = {
273
+ ...args,
274
+ options: {
275
+ ...args.options,
276
+ onResponse: callback,
277
+ },
339
278
  };
340
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
341
279
  const flatResponse = await directSendOperation(updatedArgs, spec);
342
280
  return {
343
281
  flatResponse,
@@ -354,8 +292,8 @@ class ProductsImpl {
354
292
  spec: moveOperationSpec,
355
293
  });
356
294
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
357
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
358
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
295
+ restoreFrom: options?.resumeFrom,
296
+ intervalInMs: options?.updateIntervalInMs,
359
297
  resourceLocationConfig: "location",
360
298
  });
361
299
  await poller.poll();