@azure/arm-billing 3.1.1 → 4.0.0

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 (473) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -81
  4. package/dist/index.js +10450 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/billingManagementClient.d.ts +37 -0
  9. package/dist-esm/src/billingManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/billingManagementClient.js +70 -0
  11. package/dist-esm/src/billingManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +3244 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +272 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +86 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +2114 -1808
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +45 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +374 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/address.d.ts +20 -0
  33. package/dist-esm/src/operations/address.d.ts.map +1 -0
  34. package/dist-esm/src/operations/address.js +50 -0
  35. package/dist-esm/src/operations/address.js.map +1 -0
  36. package/dist-esm/src/operations/agreements.d.ts +42 -0
  37. package/dist-esm/src/operations/agreements.d.ts.map +1 -0
  38. package/dist-esm/src/operations/agreements.js +156 -0
  39. package/dist-esm/src/operations/agreements.js.map +1 -0
  40. package/dist-esm/src/operations/availableBalances.d.ts +22 -0
  41. package/dist-esm/src/operations/availableBalances.d.ts.map +1 -0
  42. package/dist-esm/src/operations/availableBalances.js +54 -0
  43. package/dist-esm/src/operations/availableBalances.js.map +1 -0
  44. package/dist-esm/src/operations/billingAccounts.d.ts +79 -0
  45. package/dist-esm/src/operations/billingAccounts.d.ts.map +1 -0
  46. package/dist-esm/src/operations/billingAccounts.js +330 -0
  47. package/dist-esm/src/operations/billingAccounts.js.map +1 -0
  48. package/dist-esm/src/operations/billingPeriods.d.ts +44 -0
  49. package/dist-esm/src/operations/billingPeriods.d.ts.map +1 -0
  50. package/dist-esm/src/operations/billingPeriods.js +168 -0
  51. package/dist-esm/src/operations/billingPeriods.js.map +1 -0
  52. package/dist-esm/src/operations/billingPermissions.d.ts +110 -0
  53. package/dist-esm/src/operations/billingPermissions.d.ts.map +1 -0
  54. package/dist-esm/src/operations/billingPermissions.js +468 -0
  55. package/dist-esm/src/operations/billingPermissions.js.map +1 -0
  56. package/dist-esm/src/operations/billingProfiles.d.ts +64 -0
  57. package/dist-esm/src/operations/billingProfiles.d.ts.map +1 -0
  58. package/dist-esm/src/operations/billingProfiles.js +245 -0
  59. package/dist-esm/src/operations/billingProfiles.js.map +1 -0
  60. package/dist-esm/src/operations/billingPropertyOperations.d.ts +26 -0
  61. package/dist-esm/src/operations/billingPropertyOperations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/billingPropertyOperations.js +74 -0
  63. package/dist-esm/src/operations/billingPropertyOperations.js.map +1 -0
  64. package/dist-esm/src/operations/billingRoleAssignments.d.ts +146 -0
  65. package/dist-esm/src/operations/billingRoleAssignments.d.ts.map +1 -0
  66. package/dist-esm/src/operations/billingRoleAssignments.js +578 -0
  67. package/dist-esm/src/operations/billingRoleAssignments.js.map +1 -0
  68. package/dist-esm/src/operations/billingRoleDefinitions.d.ts +119 -0
  69. package/dist-esm/src/operations/billingRoleDefinitions.d.ts.map +1 -0
  70. package/dist-esm/src/operations/billingRoleDefinitions.js +471 -0
  71. package/dist-esm/src/operations/billingRoleDefinitions.js.map +1 -0
  72. package/dist-esm/src/operations/billingSubscriptions.d.ts +160 -0
  73. package/dist-esm/src/operations/billingSubscriptions.d.ts.map +1 -0
  74. package/dist-esm/src/operations/billingSubscriptions.js +655 -0
  75. package/dist-esm/src/operations/billingSubscriptions.js.map +1 -0
  76. package/dist-esm/src/operations/customers.d.ts +71 -0
  77. package/dist-esm/src/operations/customers.d.ts.map +1 -0
  78. package/dist-esm/src/operations/customers.js +287 -0
  79. package/dist-esm/src/operations/customers.js.map +1 -0
  80. package/dist-esm/src/operations/enrollmentAccounts.d.ts +38 -0
  81. package/dist-esm/src/operations/enrollmentAccounts.d.ts.map +1 -0
  82. package/dist-esm/src/operations/enrollmentAccounts.js +144 -0
  83. package/dist-esm/src/operations/enrollmentAccounts.js.map +1 -0
  84. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  85. package/dist-esm/src/operations/index.d.ts.map +1 -0
  86. package/{esm → dist-esm/src}/operations/index.js +4 -5
  87. package/dist-esm/src/operations/index.js.map +1 -0
  88. package/dist-esm/src/operations/instructions.d.ts +57 -0
  89. package/dist-esm/src/operations/instructions.d.ts.map +1 -0
  90. package/dist-esm/src/operations/instructions.js +208 -0
  91. package/dist-esm/src/operations/instructions.js.map +1 -0
  92. package/dist-esm/src/operations/invoiceSections.d.ts +70 -0
  93. package/dist-esm/src/operations/invoiceSections.d.ts.map +1 -0
  94. package/dist-esm/src/operations/invoiceSections.js +264 -0
  95. package/dist-esm/src/operations/invoiceSections.js.map +1 -0
  96. package/dist-esm/src/operations/invoices.d.ts +202 -0
  97. package/dist-esm/src/operations/invoices.d.ts.map +1 -0
  98. package/dist-esm/src/operations/invoices.js +817 -0
  99. package/dist-esm/src/operations/invoices.js.map +1 -0
  100. package/dist-esm/src/operations/operations.d.ts +32 -0
  101. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operations/operations.js +120 -0
  103. package/dist-esm/src/operations/operations.js.map +1 -0
  104. package/dist-esm/src/operations/policies.d.ts +47 -0
  105. package/dist-esm/src/operations/policies.d.ts.map +1 -0
  106. package/dist-esm/src/operations/policies.js +149 -0
  107. package/dist-esm/src/operations/policies.js.map +1 -0
  108. package/dist-esm/src/operations/products.d.ts +160 -0
  109. package/dist-esm/src/operations/products.d.ts.map +1 -0
  110. package/dist-esm/src/operations/products.js +615 -0
  111. package/dist-esm/src/operations/products.js.map +1 -0
  112. package/dist-esm/src/operations/reservations.d.ts +63 -0
  113. package/dist-esm/src/operations/reservations.d.ts.map +1 -0
  114. package/dist-esm/src/operations/reservations.js +265 -0
  115. package/dist-esm/src/operations/reservations.js.map +1 -0
  116. package/dist-esm/src/operations/transactions.d.ts +40 -0
  117. package/dist-esm/src/operations/transactions.d.ts.map +1 -0
  118. package/dist-esm/src/operations/transactions.js +137 -0
  119. package/dist-esm/src/operations/transactions.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/address.d.ts +12 -0
  121. package/dist-esm/src/operationsInterfaces/address.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/address.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/address.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/agreements.d.ts +19 -0
  125. package/dist-esm/src/operationsInterfaces/agreements.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/agreements.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/agreements.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/availableBalances.d.ts +14 -0
  129. package/dist-esm/src/operationsInterfaces/availableBalances.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/availableBalances.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/availableBalances.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts +41 -0
  133. package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/billingAccounts.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/billingAccounts.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts +21 -0
  137. package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/billingPeriods.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/billingPeriods.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts +34 -0
  141. package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/billingPermissions.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/billingPermissions.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts +40 -0
  145. package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/billingProfiles.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/billingProfiles.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts +18 -0
  149. package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts +84 -0
  153. package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts +57 -0
  157. package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts +80 -0
  161. package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/billingSubscriptions.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/billingSubscriptions.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/customers.d.ts +29 -0
  165. package/dist-esm/src/operationsInterfaces/customers.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/customers.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/customers.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts +17 -0
  169. package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/index.d.ts +22 -0
  173. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/index.js +29 -0
  175. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/instructions.d.ts +32 -0
  177. package/dist-esm/src/operationsInterfaces/instructions.d.ts.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/instructions.js +9 -0
  179. package/dist-esm/src/operationsInterfaces/instructions.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts +44 -0
  181. package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts.map +1 -0
  182. package/dist-esm/src/operationsInterfaces/invoiceSections.js +9 -0
  183. package/dist-esm/src/operationsInterfaces/invoiceSections.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/invoices.d.ts +124 -0
  185. package/dist-esm/src/operationsInterfaces/invoices.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/invoices.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/invoices.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  189. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  190. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  191. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/policies.d.ts +39 -0
  193. package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/policies.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
  196. package/dist-esm/src/operationsInterfaces/products.d.ts +78 -0
  197. package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
  198. package/dist-esm/src/operationsInterfaces/products.js +9 -0
  199. package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
  200. package/dist-esm/src/operationsInterfaces/reservations.d.ts +21 -0
  201. package/dist-esm/src/operationsInterfaces/reservations.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/reservations.js +9 -0
  203. package/dist-esm/src/operationsInterfaces/reservations.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/transactions.d.ts +14 -0
  205. package/dist-esm/src/operationsInterfaces/transactions.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/transactions.js +9 -0
  207. package/dist-esm/src/operationsInterfaces/transactions.js.map +1 -0
  208. package/dist-esm/test/sampleTest.d.ts +2 -0
  209. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  210. package/dist-esm/test/sampleTest.js +40 -0
  211. package/dist-esm/test/sampleTest.js.map +1 -0
  212. package/package.json +65 -32
  213. package/review/arm-billing.api.md +2361 -0
  214. package/rollup.config.js +181 -30
  215. package/src/billingManagementClient.ts +144 -73
  216. package/src/index.ts +12 -0
  217. package/src/lroImpl.ts +34 -0
  218. package/src/models/index.ts +2567 -3859
  219. package/src/models/mappers.ts +2120 -1803
  220. package/src/models/parameters.ts +257 -103
  221. package/src/operations/address.ts +38 -56
  222. package/src/operations/agreements.ts +133 -118
  223. package/src/operations/availableBalances.ts +41 -56
  224. package/src/operations/billingAccounts.ts +314 -229
  225. package/src/operations/billingPeriods.ts +131 -122
  226. package/src/operations/billingPermissions.ts +468 -275
  227. package/src/operations/billingProfiles.ts +236 -165
  228. package/src/operations/billingPropertyOperations.ts +55 -94
  229. package/src/operations/billingRoleAssignments.ts +506 -453
  230. package/src/operations/billingRoleDefinitions.ts +436 -334
  231. package/src/operations/billingSubscriptions.ts +669 -487
  232. package/src/operations/customers.ts +263 -187
  233. package/src/operations/enrollmentAccounts.ts +104 -108
  234. package/src/operations/index.ts +4 -5
  235. package/src/operations/instructions.ts +182 -167
  236. package/src/operations/invoiceSections.ts +265 -167
  237. package/src/operations/invoices.ts +903 -544
  238. package/src/operations/operations.ts +87 -73
  239. package/src/operations/policies.ts +112 -188
  240. package/src/operations/products.ts +599 -501
  241. package/src/operations/reservations.ts +344 -0
  242. package/src/operations/transactions.ts +133 -81
  243. package/src/operationsInterfaces/address.ts +27 -0
  244. package/src/operationsInterfaces/agreements.ts +40 -0
  245. package/src/operationsInterfaces/availableBalances.ts +29 -0
  246. package/src/operationsInterfaces/billingAccounts.ts +81 -0
  247. package/src/operationsInterfaces/billingPeriods.ts +40 -0
  248. package/src/operationsInterfaces/billingPermissions.ts +65 -0
  249. package/src/operationsInterfaces/billingProfiles.ts +78 -0
  250. package/src/operationsInterfaces/billingPropertyOperations.ts +37 -0
  251. package/src/operationsInterfaces/billingRoleAssignments.ts +152 -0
  252. package/src/operationsInterfaces/billingRoleDefinitions.ts +104 -0
  253. package/src/operationsInterfaces/billingSubscriptions.ts +144 -0
  254. package/src/operationsInterfaces/customers.ts +55 -0
  255. package/src/operationsInterfaces/enrollmentAccounts.ts +36 -0
  256. package/src/operationsInterfaces/index.ts +29 -0
  257. package/src/operationsInterfaces/instructions.ts +63 -0
  258. package/src/operationsInterfaces/invoiceSections.ts +86 -0
  259. package/src/operationsInterfaces/invoices.ts +233 -0
  260. package/src/operationsInterfaces/operations.ts +22 -0
  261. package/src/operationsInterfaces/policies.ts +76 -0
  262. package/src/operationsInterfaces/products.ts +137 -0
  263. package/src/operationsInterfaces/reservations.ts +41 -0
  264. package/src/operationsInterfaces/transactions.ts +30 -0
  265. package/tsconfig.json +3 -3
  266. package/types/arm-billing.d.ts +4451 -0
  267. package/types/tsdoc-metadata.json +11 -0
  268. package/dist/arm-billing.js +0 -8674
  269. package/dist/arm-billing.js.map +0 -1
  270. package/dist/arm-billing.min.js +0 -1
  271. package/dist/arm-billing.min.js.map +0 -1
  272. package/esm/billingManagementClient.d.ts +0 -43
  273. package/esm/billingManagementClient.d.ts.map +0 -1
  274. package/esm/billingManagementClient.js +0 -57
  275. package/esm/billingManagementClient.js.map +0 -1
  276. package/esm/billingManagementClientContext.d.ts +0 -21
  277. package/esm/billingManagementClientContext.d.ts.map +0 -1
  278. package/esm/billingManagementClientContext.js +0 -60
  279. package/esm/billingManagementClientContext.js.map +0 -1
  280. package/esm/models/addressMappers.d.ts +0 -2
  281. package/esm/models/addressMappers.d.ts.map +0 -1
  282. package/esm/models/addressMappers.js +0 -9
  283. package/esm/models/addressMappers.js.map +0 -1
  284. package/esm/models/agreementsMappers.d.ts +0 -2
  285. package/esm/models/agreementsMappers.d.ts.map +0 -1
  286. package/esm/models/agreementsMappers.js +0 -9
  287. package/esm/models/agreementsMappers.js.map +0 -1
  288. package/esm/models/availableBalancesMappers.d.ts +0 -2
  289. package/esm/models/availableBalancesMappers.d.ts.map +0 -1
  290. package/esm/models/availableBalancesMappers.js +0 -9
  291. package/esm/models/availableBalancesMappers.js.map +0 -1
  292. package/esm/models/billingAccountsMappers.d.ts +0 -2
  293. package/esm/models/billingAccountsMappers.d.ts.map +0 -1
  294. package/esm/models/billingAccountsMappers.js +0 -9
  295. package/esm/models/billingAccountsMappers.js.map +0 -1
  296. package/esm/models/billingPeriodsMappers.d.ts +0 -2
  297. package/esm/models/billingPeriodsMappers.d.ts.map +0 -1
  298. package/esm/models/billingPeriodsMappers.js +0 -9
  299. package/esm/models/billingPeriodsMappers.js.map +0 -1
  300. package/esm/models/billingPermissionsMappers.d.ts +0 -2
  301. package/esm/models/billingPermissionsMappers.d.ts.map +0 -1
  302. package/esm/models/billingPermissionsMappers.js +0 -9
  303. package/esm/models/billingPermissionsMappers.js.map +0 -1
  304. package/esm/models/billingProfilesMappers.d.ts +0 -2
  305. package/esm/models/billingProfilesMappers.d.ts.map +0 -1
  306. package/esm/models/billingProfilesMappers.js +0 -9
  307. package/esm/models/billingProfilesMappers.js.map +0 -1
  308. package/esm/models/billingPropertyOperationsMappers.d.ts +0 -2
  309. package/esm/models/billingPropertyOperationsMappers.d.ts.map +0 -1
  310. package/esm/models/billingPropertyOperationsMappers.js +0 -9
  311. package/esm/models/billingPropertyOperationsMappers.js.map +0 -1
  312. package/esm/models/billingRoleAssignmentsMappers.d.ts +0 -2
  313. package/esm/models/billingRoleAssignmentsMappers.d.ts.map +0 -1
  314. package/esm/models/billingRoleAssignmentsMappers.js +0 -9
  315. package/esm/models/billingRoleAssignmentsMappers.js.map +0 -1
  316. package/esm/models/billingRoleDefinitionsMappers.d.ts +0 -2
  317. package/esm/models/billingRoleDefinitionsMappers.d.ts.map +0 -1
  318. package/esm/models/billingRoleDefinitionsMappers.js +0 -9
  319. package/esm/models/billingRoleDefinitionsMappers.js.map +0 -1
  320. package/esm/models/billingSubscriptionsMappers.d.ts +0 -2
  321. package/esm/models/billingSubscriptionsMappers.d.ts.map +0 -1
  322. package/esm/models/billingSubscriptionsMappers.js +0 -9
  323. package/esm/models/billingSubscriptionsMappers.js.map +0 -1
  324. package/esm/models/customersMappers.d.ts +0 -2
  325. package/esm/models/customersMappers.d.ts.map +0 -1
  326. package/esm/models/customersMappers.js +0 -9
  327. package/esm/models/customersMappers.js.map +0 -1
  328. package/esm/models/enrollmentAccountsMappers.d.ts +0 -2
  329. package/esm/models/enrollmentAccountsMappers.d.ts.map +0 -1
  330. package/esm/models/enrollmentAccountsMappers.js +0 -9
  331. package/esm/models/enrollmentAccountsMappers.js.map +0 -1
  332. package/esm/models/index.d.ts +0 -4587
  333. package/esm/models/index.d.ts.map +0 -1
  334. package/esm/models/index.js +0 -8
  335. package/esm/models/index.js.map +0 -1
  336. package/esm/models/instructionsMappers.d.ts +0 -2
  337. package/esm/models/instructionsMappers.d.ts.map +0 -1
  338. package/esm/models/instructionsMappers.js +0 -9
  339. package/esm/models/instructionsMappers.js.map +0 -1
  340. package/esm/models/invoiceSectionsMappers.d.ts +0 -2
  341. package/esm/models/invoiceSectionsMappers.d.ts.map +0 -1
  342. package/esm/models/invoiceSectionsMappers.js +0 -9
  343. package/esm/models/invoiceSectionsMappers.js.map +0 -1
  344. package/esm/models/invoicesMappers.d.ts +0 -2
  345. package/esm/models/invoicesMappers.d.ts.map +0 -1
  346. package/esm/models/invoicesMappers.js +0 -9
  347. package/esm/models/invoicesMappers.js.map +0 -1
  348. package/esm/models/mappers.d.ts +0 -82
  349. package/esm/models/mappers.d.ts.map +0 -1
  350. package/esm/models/mappers.js.map +0 -1
  351. package/esm/models/operationsMappers.d.ts +0 -2
  352. package/esm/models/operationsMappers.d.ts.map +0 -1
  353. package/esm/models/operationsMappers.js +0 -9
  354. package/esm/models/operationsMappers.js.map +0 -1
  355. package/esm/models/parameters.d.ts +0 -27
  356. package/esm/models/parameters.d.ts.map +0 -1
  357. package/esm/models/parameters.js +0 -279
  358. package/esm/models/parameters.js.map +0 -1
  359. package/esm/models/policiesMappers.d.ts +0 -2
  360. package/esm/models/policiesMappers.d.ts.map +0 -1
  361. package/esm/models/policiesMappers.js +0 -9
  362. package/esm/models/policiesMappers.js.map +0 -1
  363. package/esm/models/productsMappers.d.ts +0 -2
  364. package/esm/models/productsMappers.d.ts.map +0 -1
  365. package/esm/models/productsMappers.js +0 -9
  366. package/esm/models/productsMappers.js.map +0 -1
  367. package/esm/models/transactionsMappers.d.ts +0 -2
  368. package/esm/models/transactionsMappers.d.ts.map +0 -1
  369. package/esm/models/transactionsMappers.js +0 -9
  370. package/esm/models/transactionsMappers.js.map +0 -1
  371. package/esm/operations/address.d.ts +0 -32
  372. package/esm/operations/address.d.ts.map +0 -1
  373. package/esm/operations/address.js +0 -57
  374. package/esm/operations/address.js.map +0 -1
  375. package/esm/operations/agreements.d.ts +0 -70
  376. package/esm/operations/agreements.d.ts.map +0 -1
  377. package/esm/operations/agreements.js +0 -113
  378. package/esm/operations/agreements.js.map +0 -1
  379. package/esm/operations/availableBalances.d.ts +0 -36
  380. package/esm/operations/availableBalances.d.ts.map +0 -1
  381. package/esm/operations/availableBalances.js +0 -57
  382. package/esm/operations/availableBalances.js.map +0 -1
  383. package/esm/operations/billingAccounts.d.ts +0 -127
  384. package/esm/operations/billingAccounts.d.ts.map +0 -1
  385. package/esm/operations/billingAccounts.js +0 -218
  386. package/esm/operations/billingAccounts.js.map +0 -1
  387. package/esm/operations/billingPeriods.d.ts +0 -70
  388. package/esm/operations/billingPeriods.d.ts.map +0 -1
  389. package/esm/operations/billingPeriods.js +0 -112
  390. package/esm/operations/billingPeriods.js.map +0 -1
  391. package/esm/operations/billingPermissions.d.ts +0 -169
  392. package/esm/operations/billingPermissions.d.ts.map +0 -1
  393. package/esm/operations/billingPermissions.js +0 -251
  394. package/esm/operations/billingPermissions.js.map +0 -1
  395. package/esm/operations/billingProfiles.d.ts +0 -94
  396. package/esm/operations/billingProfiles.d.ts.map +0 -1
  397. package/esm/operations/billingProfiles.js +0 -176
  398. package/esm/operations/billingProfiles.js.map +0 -1
  399. package/esm/operations/billingPropertyOperations.d.ts +0 -46
  400. package/esm/operations/billingPropertyOperations.d.ts.map +0 -1
  401. package/esm/operations/billingPropertyOperations.js +0 -91
  402. package/esm/operations/billingPropertyOperations.js.map +0 -1
  403. package/esm/operations/billingRoleAssignments.d.ts +0 -292
  404. package/esm/operations/billingRoleAssignments.d.ts.map +0 -1
  405. package/esm/operations/billingRoleAssignments.js +0 -387
  406. package/esm/operations/billingRoleAssignments.js.map +0 -1
  407. package/esm/operations/billingRoleDefinitions.d.ts +0 -211
  408. package/esm/operations/billingRoleDefinitions.d.ts.map +0 -1
  409. package/esm/operations/billingRoleDefinitions.js +0 -291
  410. package/esm/operations/billingRoleDefinitions.js.map +0 -1
  411. package/esm/operations/billingSubscriptions.d.ts +0 -267
  412. package/esm/operations/billingSubscriptions.d.ts.map +0 -1
  413. package/esm/operations/billingSubscriptions.js +0 -414
  414. package/esm/operations/billingSubscriptions.js.map +0 -1
  415. package/esm/operations/customers.d.ts +0 -114
  416. package/esm/operations/customers.d.ts.map +0 -1
  417. package/esm/operations/customers.js +0 -172
  418. package/esm/operations/customers.js.map +0 -1
  419. package/esm/operations/enrollmentAccounts.d.ts +0 -64
  420. package/esm/operations/enrollmentAccounts.d.ts.map +0 -1
  421. package/esm/operations/enrollmentAccounts.js +0 -105
  422. package/esm/operations/enrollmentAccounts.js.map +0 -1
  423. package/esm/operations/index.d.ts.map +0 -1
  424. package/esm/operations/index.js.map +0 -1
  425. package/esm/operations/instructions.d.ts +0 -105
  426. package/esm/operations/instructions.d.ts.map +0 -1
  427. package/esm/operations/instructions.js +0 -153
  428. package/esm/operations/instructions.js.map +0 -1
  429. package/esm/operations/invoiceSections.d.ts +0 -102
  430. package/esm/operations/invoiceSections.d.ts.map +0 -1
  431. package/esm/operations/invoiceSections.js +0 -182
  432. package/esm/operations/invoiceSections.js.map +0 -1
  433. package/esm/operations/invoices.d.ts +0 -291
  434. package/esm/operations/invoices.d.ts.map +0 -1
  435. package/esm/operations/invoices.js +0 -539
  436. package/esm/operations/invoices.js.map +0 -1
  437. package/esm/operations/operations.d.ts +0 -46
  438. package/esm/operations/operations.d.ts.map +0 -1
  439. package/esm/operations/operations.js +0 -77
  440. package/esm/operations/operations.js.map +0 -1
  441. package/esm/operations/policies.d.ts +0 -104
  442. package/esm/operations/policies.d.ts.map +0 -1
  443. package/esm/operations/policies.js +0 -162
  444. package/esm/operations/policies.js.map +0 -1
  445. package/esm/operations/products.d.ts +0 -279
  446. package/esm/operations/products.d.ts.map +0 -1
  447. package/esm/operations/products.js +0 -403
  448. package/esm/operations/products.js.map +0 -1
  449. package/esm/operations/transactions.d.ts +0 -54
  450. package/esm/operations/transactions.d.ts.map +0 -1
  451. package/esm/operations/transactions.js +0 -83
  452. package/esm/operations/transactions.js.map +0 -1
  453. package/src/billingManagementClientContext.ts +0 -66
  454. package/src/models/addressMappers.ts +0 -15
  455. package/src/models/agreementsMappers.ts +0 -50
  456. package/src/models/availableBalancesMappers.ts +0 -49
  457. package/src/models/billingAccountsMappers.ts +0 -53
  458. package/src/models/billingPeriodsMappers.ts +0 -50
  459. package/src/models/billingPermissionsMappers.ts +0 -15
  460. package/src/models/billingProfilesMappers.ts +0 -51
  461. package/src/models/billingPropertyOperationsMappers.ts +0 -49
  462. package/src/models/billingRoleAssignmentsMappers.ts +0 -50
  463. package/src/models/billingRoleDefinitionsMappers.ts +0 -50
  464. package/src/models/billingSubscriptionsMappers.ts +0 -54
  465. package/src/models/customersMappers.ts +0 -50
  466. package/src/models/enrollmentAccountsMappers.ts +0 -50
  467. package/src/models/instructionsMappers.ts +0 -50
  468. package/src/models/invoiceSectionsMappers.ts +0 -51
  469. package/src/models/invoicesMappers.ts +0 -55
  470. package/src/models/operationsMappers.ts +0 -16
  471. package/src/models/policiesMappers.ts +0 -49
  472. package/src/models/productsMappers.ts +0 -54
  473. package/src/models/transactionsMappers.ts +0 -50
@@ -0,0 +1,110 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { BillingPermissions } from "../operationsInterfaces";
3
+ import { BillingManagementClient } from "../billingManagementClient";
4
+ import { BillingPermissionsProperties, BillingPermissionsListByCustomerOptionalParams, BillingPermissionsListByBillingAccountOptionalParams, BillingPermissionsListByInvoiceSectionsOptionalParams, BillingPermissionsListByBillingProfileOptionalParams } from "../models";
5
+ /** Class containing BillingPermissions operations. */
6
+ export declare class BillingPermissionsImpl implements BillingPermissions {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class BillingPermissions class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BillingManagementClient);
13
+ /**
14
+ * Lists the billing permissions the caller has for a customer.
15
+ * @param billingAccountName The ID that uniquely identifies a billing account.
16
+ * @param customerName The ID that uniquely identifies a customer.
17
+ * @param options The options parameters.
18
+ */
19
+ listByCustomer(billingAccountName: string, customerName: string, options?: BillingPermissionsListByCustomerOptionalParams): PagedAsyncIterableIterator<BillingPermissionsProperties>;
20
+ private listByCustomerPagingPage;
21
+ private listByCustomerPagingAll;
22
+ /**
23
+ * Lists the billing permissions the caller has on a billing account.
24
+ * @param billingAccountName The ID that uniquely identifies a billing account.
25
+ * @param options The options parameters.
26
+ */
27
+ listByBillingAccount(billingAccountName: string, options?: BillingPermissionsListByBillingAccountOptionalParams): PagedAsyncIterableIterator<BillingPermissionsProperties>;
28
+ private listByBillingAccountPagingPage;
29
+ private listByBillingAccountPagingAll;
30
+ /**
31
+ * Lists the billing permissions the caller has on an invoice section.
32
+ * @param billingAccountName The ID that uniquely identifies a billing account.
33
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
34
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
35
+ * @param options The options parameters.
36
+ */
37
+ listByInvoiceSections(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: BillingPermissionsListByInvoiceSectionsOptionalParams): PagedAsyncIterableIterator<BillingPermissionsProperties>;
38
+ private listByInvoiceSectionsPagingPage;
39
+ private listByInvoiceSectionsPagingAll;
40
+ /**
41
+ * Lists the billing permissions the caller has on a billing profile.
42
+ * @param billingAccountName The ID that uniquely identifies a billing account.
43
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
44
+ * @param options The options parameters.
45
+ */
46
+ listByBillingProfile(billingAccountName: string, billingProfileName: string, options?: BillingPermissionsListByBillingProfileOptionalParams): PagedAsyncIterableIterator<BillingPermissionsProperties>;
47
+ private listByBillingProfilePagingPage;
48
+ private listByBillingProfilePagingAll;
49
+ /**
50
+ * Lists the billing permissions the caller has for a customer.
51
+ * @param billingAccountName The ID that uniquely identifies a billing account.
52
+ * @param customerName The ID that uniquely identifies a customer.
53
+ * @param options The options parameters.
54
+ */
55
+ private _listByCustomer;
56
+ /**
57
+ * Lists the billing permissions the caller has on a billing account.
58
+ * @param billingAccountName The ID that uniquely identifies a billing account.
59
+ * @param options The options parameters.
60
+ */
61
+ private _listByBillingAccount;
62
+ /**
63
+ * Lists the billing permissions the caller has on an invoice section.
64
+ * @param billingAccountName The ID that uniquely identifies a billing account.
65
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
66
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
67
+ * @param options The options parameters.
68
+ */
69
+ private _listByInvoiceSections;
70
+ /**
71
+ * Lists the billing permissions the caller has on a billing profile.
72
+ * @param billingAccountName The ID that uniquely identifies a billing account.
73
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
74
+ * @param options The options parameters.
75
+ */
76
+ private _listByBillingProfile;
77
+ /**
78
+ * ListByCustomerNext
79
+ * @param billingAccountName The ID that uniquely identifies a billing account.
80
+ * @param customerName The ID that uniquely identifies a customer.
81
+ * @param nextLink The nextLink from the previous successful call to the ListByCustomer method.
82
+ * @param options The options parameters.
83
+ */
84
+ private _listByCustomerNext;
85
+ /**
86
+ * ListByBillingAccountNext
87
+ * @param billingAccountName The ID that uniquely identifies a billing account.
88
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
89
+ * @param options The options parameters.
90
+ */
91
+ private _listByBillingAccountNext;
92
+ /**
93
+ * ListByInvoiceSectionsNext
94
+ * @param billingAccountName The ID that uniquely identifies a billing account.
95
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
96
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
97
+ * @param nextLink The nextLink from the previous successful call to the ListByInvoiceSections method.
98
+ * @param options The options parameters.
99
+ */
100
+ private _listByInvoiceSectionsNext;
101
+ /**
102
+ * ListByBillingProfileNext
103
+ * @param billingAccountName The ID that uniquely identifies a billing account.
104
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
105
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
106
+ * @param options The options parameters.
107
+ */
108
+ private _listByBillingProfileNext;
109
+ }
110
+ //# sourceMappingURL=billingPermissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissions.d.ts","sourceRoot":"","sources":["../../../src/operations/billingPermissions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,8CAA8C,EAE9C,oDAAoD,EAEpD,qDAAqD,EAErD,oDAAoD,EASrD,MAAM,WAAW,CAAC;AAGnB,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;OAKG;IACI,cAAc,CACnB,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,4BAA4B,CAAC;YAuB5C,wBAAwB;YAwBxB,uBAAuB;IActC;;;;OAIG;IACI,oBAAoB,CACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,4BAA4B,CAAC;YAkB5C,8BAA8B;YAkB9B,6BAA6B;IAY5C;;;;;;OAMG;IACI,qBAAqB,CAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,4BAA4B,CAAC;YAyB5C,+BAA+B;YA2B/B,8BAA8B;IAgB7C;;;;;OAKG;IACI,oBAAoB,CACzB,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,4BAA4B,CAAC;YAuB5C,8BAA8B;YAwB9B,6BAA6B;IAc5C;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAWvB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAY3B;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAWjC;;;;;;;OAOG;IACH,OAAO,CAAC,0BAA0B;IAmBlC;;;;;;OAMG;IACH,OAAO,CAAC,yBAAyB;CAWlC"}
@@ -0,0 +1,468 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing BillingPermissions operations. */
14
+ export class BillingPermissionsImpl {
15
+ /**
16
+ * Initialize a new instance of the class BillingPermissions class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists the billing permissions the caller has for a customer.
24
+ * @param billingAccountName The ID that uniquely identifies a billing account.
25
+ * @param customerName The ID that uniquely identifies a customer.
26
+ * @param options The options parameters.
27
+ */
28
+ listByCustomer(billingAccountName, customerName, options) {
29
+ const iter = this.listByCustomerPagingAll(billingAccountName, customerName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listByCustomerPagingPage(billingAccountName, customerName, options);
39
+ }
40
+ };
41
+ }
42
+ listByCustomerPagingPage(billingAccountName, customerName, options) {
43
+ return __asyncGenerator(this, arguments, function* listByCustomerPagingPage_1() {
44
+ let result = yield __await(this._listByCustomer(billingAccountName, customerName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listByCustomerNext(billingAccountName, customerName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listByCustomerPagingAll(billingAccountName, customerName, options) {
55
+ return __asyncGenerator(this, arguments, function* listByCustomerPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listByCustomerPagingPage(billingAccountName, customerName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Lists the billing permissions the caller has on a billing account.
74
+ * @param billingAccountName The ID that uniquely identifies a billing account.
75
+ * @param options The options parameters.
76
+ */
77
+ listByBillingAccount(billingAccountName, options) {
78
+ const iter = this.listByBillingAccountPagingAll(billingAccountName, options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listByBillingAccountPagingPage(billingAccountName, options);
88
+ }
89
+ };
90
+ }
91
+ listByBillingAccountPagingPage(billingAccountName, options) {
92
+ return __asyncGenerator(this, arguments, function* listByBillingAccountPagingPage_1() {
93
+ let result = yield __await(this._listByBillingAccount(billingAccountName, options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listByBillingAccountNext(billingAccountName, continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listByBillingAccountPagingAll(billingAccountName, options) {
104
+ return __asyncGenerator(this, arguments, function* listByBillingAccountPagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * Lists the billing permissions the caller has on an invoice section.
123
+ * @param billingAccountName The ID that uniquely identifies a billing account.
124
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
125
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
126
+ * @param options The options parameters.
127
+ */
128
+ listByInvoiceSections(billingAccountName, billingProfileName, invoiceSectionName, options) {
129
+ const iter = this.listByInvoiceSectionsPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options);
130
+ return {
131
+ next() {
132
+ return iter.next();
133
+ },
134
+ [Symbol.asyncIterator]() {
135
+ return this;
136
+ },
137
+ byPage: () => {
138
+ return this.listByInvoiceSectionsPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options);
139
+ }
140
+ };
141
+ }
142
+ listByInvoiceSectionsPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options) {
143
+ return __asyncGenerator(this, arguments, function* listByInvoiceSectionsPagingPage_1() {
144
+ let result = yield __await(this._listByInvoiceSections(billingAccountName, billingProfileName, invoiceSectionName, options));
145
+ yield yield __await(result.value || []);
146
+ let continuationToken = result.nextLink;
147
+ while (continuationToken) {
148
+ result = yield __await(this._listByInvoiceSectionsNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
149
+ continuationToken = result.nextLink;
150
+ yield yield __await(result.value || []);
151
+ }
152
+ });
153
+ }
154
+ listByInvoiceSectionsPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
155
+ return __asyncGenerator(this, arguments, function* listByInvoiceSectionsPagingAll_1() {
156
+ var e_3, _a;
157
+ try {
158
+ for (var _b = __asyncValues(this.listByInvoiceSectionsPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
159
+ const page = _c.value;
160
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
161
+ }
162
+ }
163
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
164
+ finally {
165
+ try {
166
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
167
+ }
168
+ finally { if (e_3) throw e_3.error; }
169
+ }
170
+ });
171
+ }
172
+ /**
173
+ * Lists the billing permissions the caller has on a billing profile.
174
+ * @param billingAccountName The ID that uniquely identifies a billing account.
175
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
176
+ * @param options The options parameters.
177
+ */
178
+ listByBillingProfile(billingAccountName, billingProfileName, options) {
179
+ const iter = this.listByBillingProfilePagingAll(billingAccountName, billingProfileName, options);
180
+ return {
181
+ next() {
182
+ return iter.next();
183
+ },
184
+ [Symbol.asyncIterator]() {
185
+ return this;
186
+ },
187
+ byPage: () => {
188
+ return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options);
189
+ }
190
+ };
191
+ }
192
+ listByBillingProfilePagingPage(billingAccountName, billingProfileName, options) {
193
+ return __asyncGenerator(this, arguments, function* listByBillingProfilePagingPage_1() {
194
+ let result = yield __await(this._listByBillingProfile(billingAccountName, billingProfileName, options));
195
+ yield yield __await(result.value || []);
196
+ let continuationToken = result.nextLink;
197
+ while (continuationToken) {
198
+ result = yield __await(this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options));
199
+ continuationToken = result.nextLink;
200
+ yield yield __await(result.value || []);
201
+ }
202
+ });
203
+ }
204
+ listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
205
+ return __asyncGenerator(this, arguments, function* listByBillingProfilePagingAll_1() {
206
+ var e_4, _a;
207
+ try {
208
+ for (var _b = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
209
+ const page = _c.value;
210
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
211
+ }
212
+ }
213
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
214
+ finally {
215
+ try {
216
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
217
+ }
218
+ finally { if (e_4) throw e_4.error; }
219
+ }
220
+ });
221
+ }
222
+ /**
223
+ * Lists the billing permissions the caller has for a customer.
224
+ * @param billingAccountName The ID that uniquely identifies a billing account.
225
+ * @param customerName The ID that uniquely identifies a customer.
226
+ * @param options The options parameters.
227
+ */
228
+ _listByCustomer(billingAccountName, customerName, options) {
229
+ return this.client.sendOperationRequest({ billingAccountName, customerName, options }, listByCustomerOperationSpec);
230
+ }
231
+ /**
232
+ * Lists the billing permissions the caller has on a billing account.
233
+ * @param billingAccountName The ID that uniquely identifies a billing account.
234
+ * @param options The options parameters.
235
+ */
236
+ _listByBillingAccount(billingAccountName, options) {
237
+ return this.client.sendOperationRequest({ billingAccountName, options }, listByBillingAccountOperationSpec);
238
+ }
239
+ /**
240
+ * Lists the billing permissions the caller has on an invoice section.
241
+ * @param billingAccountName The ID that uniquely identifies a billing account.
242
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
243
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
244
+ * @param options The options parameters.
245
+ */
246
+ _listByInvoiceSections(billingAccountName, billingProfileName, invoiceSectionName, options) {
247
+ return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, listByInvoiceSectionsOperationSpec);
248
+ }
249
+ /**
250
+ * Lists the billing permissions the caller has on a billing profile.
251
+ * @param billingAccountName The ID that uniquely identifies a billing account.
252
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
253
+ * @param options The options parameters.
254
+ */
255
+ _listByBillingProfile(billingAccountName, billingProfileName, options) {
256
+ return this.client.sendOperationRequest({ billingAccountName, billingProfileName, options }, listByBillingProfileOperationSpec);
257
+ }
258
+ /**
259
+ * ListByCustomerNext
260
+ * @param billingAccountName The ID that uniquely identifies a billing account.
261
+ * @param customerName The ID that uniquely identifies a customer.
262
+ * @param nextLink The nextLink from the previous successful call to the ListByCustomer method.
263
+ * @param options The options parameters.
264
+ */
265
+ _listByCustomerNext(billingAccountName, customerName, nextLink, options) {
266
+ return this.client.sendOperationRequest({ billingAccountName, customerName, nextLink, options }, listByCustomerNextOperationSpec);
267
+ }
268
+ /**
269
+ * ListByBillingAccountNext
270
+ * @param billingAccountName The ID that uniquely identifies a billing account.
271
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
272
+ * @param options The options parameters.
273
+ */
274
+ _listByBillingAccountNext(billingAccountName, nextLink, options) {
275
+ return this.client.sendOperationRequest({ billingAccountName, nextLink, options }, listByBillingAccountNextOperationSpec);
276
+ }
277
+ /**
278
+ * ListByInvoiceSectionsNext
279
+ * @param billingAccountName The ID that uniquely identifies a billing account.
280
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
281
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
282
+ * @param nextLink The nextLink from the previous successful call to the ListByInvoiceSections method.
283
+ * @param options The options parameters.
284
+ */
285
+ _listByInvoiceSectionsNext(billingAccountName, billingProfileName, invoiceSectionName, nextLink, options) {
286
+ return this.client.sendOperationRequest({
287
+ billingAccountName,
288
+ billingProfileName,
289
+ invoiceSectionName,
290
+ nextLink,
291
+ options
292
+ }, listByInvoiceSectionsNextOperationSpec);
293
+ }
294
+ /**
295
+ * ListByBillingProfileNext
296
+ * @param billingAccountName The ID that uniquely identifies a billing account.
297
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
298
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
299
+ * @param options The options parameters.
300
+ */
301
+ _listByBillingProfileNext(billingAccountName, billingProfileName, nextLink, options) {
302
+ return this.client.sendOperationRequest({ billingAccountName, billingProfileName, nextLink, options }, listByBillingProfileNextOperationSpec);
303
+ }
304
+ }
305
+ // Operation Specifications
306
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
307
+ const listByCustomerOperationSpec = {
308
+ path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingPermissions",
309
+ httpMethod: "GET",
310
+ responses: {
311
+ 200: {
312
+ bodyMapper: Mappers.BillingPermissionsListResult
313
+ },
314
+ default: {
315
+ bodyMapper: Mappers.ErrorResponse
316
+ }
317
+ },
318
+ queryParameters: [Parameters.apiVersion],
319
+ urlParameters: [
320
+ Parameters.$host,
321
+ Parameters.billingAccountName,
322
+ Parameters.customerName
323
+ ],
324
+ headerParameters: [Parameters.accept],
325
+ serializer
326
+ };
327
+ const listByBillingAccountOperationSpec = {
328
+ path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingPermissions",
329
+ httpMethod: "GET",
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.BillingPermissionsListResult
333
+ },
334
+ default: {
335
+ bodyMapper: Mappers.ErrorResponse
336
+ }
337
+ },
338
+ queryParameters: [Parameters.apiVersion],
339
+ urlParameters: [Parameters.$host, Parameters.billingAccountName],
340
+ headerParameters: [Parameters.accept],
341
+ serializer
342
+ };
343
+ const listByInvoiceSectionsOperationSpec = {
344
+ path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingPermissions",
345
+ httpMethod: "GET",
346
+ responses: {
347
+ 200: {
348
+ bodyMapper: Mappers.BillingPermissionsListResult
349
+ },
350
+ default: {
351
+ bodyMapper: Mappers.ErrorResponse
352
+ }
353
+ },
354
+ queryParameters: [Parameters.apiVersion],
355
+ urlParameters: [
356
+ Parameters.$host,
357
+ Parameters.billingAccountName,
358
+ Parameters.billingProfileName,
359
+ Parameters.invoiceSectionName
360
+ ],
361
+ headerParameters: [Parameters.accept],
362
+ serializer
363
+ };
364
+ const listByBillingProfileOperationSpec = {
365
+ path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingPermissions",
366
+ httpMethod: "GET",
367
+ responses: {
368
+ 200: {
369
+ bodyMapper: Mappers.BillingPermissionsListResult
370
+ },
371
+ default: {
372
+ bodyMapper: Mappers.ErrorResponse
373
+ }
374
+ },
375
+ queryParameters: [Parameters.apiVersion],
376
+ urlParameters: [
377
+ Parameters.$host,
378
+ Parameters.billingAccountName,
379
+ Parameters.billingProfileName
380
+ ],
381
+ headerParameters: [Parameters.accept],
382
+ serializer
383
+ };
384
+ const listByCustomerNextOperationSpec = {
385
+ path: "{nextLink}",
386
+ httpMethod: "GET",
387
+ responses: {
388
+ 200: {
389
+ bodyMapper: Mappers.BillingPermissionsListResult
390
+ },
391
+ default: {
392
+ bodyMapper: Mappers.ErrorResponse
393
+ }
394
+ },
395
+ queryParameters: [Parameters.apiVersion],
396
+ urlParameters: [
397
+ Parameters.$host,
398
+ Parameters.billingAccountName,
399
+ Parameters.nextLink,
400
+ Parameters.customerName
401
+ ],
402
+ headerParameters: [Parameters.accept],
403
+ serializer
404
+ };
405
+ const listByBillingAccountNextOperationSpec = {
406
+ path: "{nextLink}",
407
+ httpMethod: "GET",
408
+ responses: {
409
+ 200: {
410
+ bodyMapper: Mappers.BillingPermissionsListResult
411
+ },
412
+ default: {
413
+ bodyMapper: Mappers.ErrorResponse
414
+ }
415
+ },
416
+ queryParameters: [Parameters.apiVersion],
417
+ urlParameters: [
418
+ Parameters.$host,
419
+ Parameters.billingAccountName,
420
+ Parameters.nextLink
421
+ ],
422
+ headerParameters: [Parameters.accept],
423
+ serializer
424
+ };
425
+ const listByInvoiceSectionsNextOperationSpec = {
426
+ path: "{nextLink}",
427
+ httpMethod: "GET",
428
+ responses: {
429
+ 200: {
430
+ bodyMapper: Mappers.BillingPermissionsListResult
431
+ },
432
+ default: {
433
+ bodyMapper: Mappers.ErrorResponse
434
+ }
435
+ },
436
+ queryParameters: [Parameters.apiVersion],
437
+ urlParameters: [
438
+ Parameters.$host,
439
+ Parameters.billingAccountName,
440
+ Parameters.nextLink,
441
+ Parameters.billingProfileName,
442
+ Parameters.invoiceSectionName
443
+ ],
444
+ headerParameters: [Parameters.accept],
445
+ serializer
446
+ };
447
+ const listByBillingProfileNextOperationSpec = {
448
+ path: "{nextLink}",
449
+ httpMethod: "GET",
450
+ responses: {
451
+ 200: {
452
+ bodyMapper: Mappers.BillingPermissionsListResult
453
+ },
454
+ default: {
455
+ bodyMapper: Mappers.ErrorResponse
456
+ }
457
+ },
458
+ queryParameters: [Parameters.apiVersion],
459
+ urlParameters: [
460
+ Parameters.$host,
461
+ Parameters.billingAccountName,
462
+ Parameters.nextLink,
463
+ Parameters.billingProfileName
464
+ ],
465
+ headerParameters: [Parameters.accept],
466
+ serializer
467
+ };
468
+ //# sourceMappingURL=billingPermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissions.js","sourceRoot":"","sources":["../../../src/operations/billingPermissions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,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UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { BillingProfiles } from "../operationsInterfaces";
3
+ import { BillingManagementClient } from "../billingManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { BillingProfile, BillingProfilesListByBillingAccountOptionalParams, BillingProfilesGetOptionalParams, BillingProfilesGetResponse, BillingProfilesCreateOrUpdateOptionalParams, BillingProfilesCreateOrUpdateResponse } from "../models";
6
+ /** Class containing BillingProfiles operations. */
7
+ export declare class BillingProfilesImpl implements BillingProfiles {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class BillingProfiles class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: BillingManagementClient);
14
+ /**
15
+ * Lists the billing profiles that a user has access to. The operation is supported for billing
16
+ * accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
17
+ * @param billingAccountName The ID that uniquely identifies a billing account.
18
+ * @param options The options parameters.
19
+ */
20
+ listByBillingAccount(billingAccountName: string, options?: BillingProfilesListByBillingAccountOptionalParams): PagedAsyncIterableIterator<BillingProfile>;
21
+ private listByBillingAccountPagingPage;
22
+ private listByBillingAccountPagingAll;
23
+ /**
24
+ * Lists the billing profiles that a user has access to. The operation is supported for billing
25
+ * accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
26
+ * @param billingAccountName The ID that uniquely identifies a billing account.
27
+ * @param options The options parameters.
28
+ */
29
+ private _listByBillingAccount;
30
+ /**
31
+ * Gets a billing profile by its ID. The operation is supported for billing accounts with agreement
32
+ * type Microsoft Customer Agreement or Microsoft Partner Agreement.
33
+ * @param billingAccountName The ID that uniquely identifies a billing account.
34
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
35
+ * @param options The options parameters.
36
+ */
37
+ get(billingAccountName: string, billingProfileName: string, options?: BillingProfilesGetOptionalParams): Promise<BillingProfilesGetResponse>;
38
+ /**
39
+ * Creates or updates a billing profile. The operation is supported for billing accounts with agreement
40
+ * type Microsoft Customer Agreement or Microsoft Partner Agreement.
41
+ * @param billingAccountName The ID that uniquely identifies a billing account.
42
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
43
+ * @param parameters The new or updated billing profile.
44
+ * @param options The options parameters.
45
+ */
46
+ beginCreateOrUpdate(billingAccountName: string, billingProfileName: string, parameters: BillingProfile, options?: BillingProfilesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<BillingProfilesCreateOrUpdateResponse>, BillingProfilesCreateOrUpdateResponse>>;
47
+ /**
48
+ * Creates or updates a billing profile. The operation is supported for billing accounts with agreement
49
+ * type Microsoft Customer Agreement or Microsoft Partner Agreement.
50
+ * @param billingAccountName The ID that uniquely identifies a billing account.
51
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
52
+ * @param parameters The new or updated billing profile.
53
+ * @param options The options parameters.
54
+ */
55
+ beginCreateOrUpdateAndWait(billingAccountName: string, billingProfileName: string, parameters: BillingProfile, options?: BillingProfilesCreateOrUpdateOptionalParams): Promise<BillingProfilesCreateOrUpdateResponse>;
56
+ /**
57
+ * ListByBillingAccountNext
58
+ * @param billingAccountName The ID that uniquely identifies a billing account.
59
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
60
+ * @param options The options parameters.
61
+ */
62
+ private _listByBillingAccountNext;
63
+ }
64
+ //# sourceMappingURL=billingProfiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfiles.d.ts","sourceRoot":"","sources":["../../../src/operations/billingProfiles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,cAAc,EAEd,iDAAiD,EAEjD,gCAAgC,EAChC,0BAA0B,EAC1B,2CAA2C,EAC3C,qCAAqC,EAEtC,MAAM,WAAW,CAAC;AAGnB,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