@azure/arm-billing 2.2.0 → 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 (341) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -73
  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/dist-esm/src/models/mappers.js +3514 -0
  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/dist-esm/src/operations/index.d.ts +22 -0
  85. package/dist-esm/src/operations/index.d.ts.map +1 -0
  86. package/dist-esm/src/operations/index.js +29 -0
  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 +70 -34
  213. package/review/arm-billing.api.md +2361 -0
  214. package/rollup.config.js +184 -27
  215. package/src/billingManagementClient.ts +157 -0
  216. package/src/index.ts +12 -0
  217. package/src/lroImpl.ts +34 -0
  218. package/src/models/index.ts +3657 -0
  219. package/src/models/mappers.ts +3839 -0
  220. package/src/models/parameters.ts +435 -0
  221. package/src/operations/address.ts +68 -0
  222. package/src/operations/agreements.ts +203 -0
  223. package/src/operations/availableBalances.ts +73 -0
  224. package/src/operations/billingAccounts.ts +433 -0
  225. package/src/operations/billingPeriods.ts +196 -0
  226. package/src/operations/billingPermissions.ts +643 -0
  227. package/src/operations/billingProfiles.ts +334 -0
  228. package/src/operations/billingPropertyOperations.ts +100 -0
  229. package/src/operations/billingRoleAssignments.ts +782 -0
  230. package/src/operations/billingRoleDefinitions.ts +639 -0
  231. package/src/operations/billingSubscriptions.ts +902 -0
  232. package/src/operations/customers.ts +377 -0
  233. package/src/operations/enrollmentAccounts.ts +170 -0
  234. package/src/operations/index.ts +29 -0
  235. package/src/operations/instructions.ts +285 -0
  236. package/src/operations/invoiceSections.ts +373 -0
  237. package/src/operations/invoices.ts +1176 -0
  238. package/src/operations/operations.ts +137 -0
  239. package/src/operations/policies.ts +205 -0
  240. package/src/operations/products.ts +838 -0
  241. package/src/operations/reservations.ts +344 -0
  242. package/src/operations/transactions.ts +189 -0
  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 +4 -4
  266. package/types/arm-billing.d.ts +4451 -0
  267. package/types/tsdoc-metadata.json +11 -0
  268. package/dist/arm-billing.js +0 -1188
  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 -21
  273. package/esm/billingManagementClient.d.ts.map +0 -1
  274. package/esm/billingManagementClient.js +0 -36
  275. package/esm/billingManagementClient.js.map +0 -1
  276. package/esm/billingManagementClientContext.d.ts +0 -16
  277. package/esm/billingManagementClientContext.d.ts.map +0 -1
  278. package/esm/billingManagementClientContext.js +0 -56
  279. package/esm/billingManagementClientContext.js.map +0 -1
  280. package/esm/models/billingPeriodsMappers.d.ts +0 -2
  281. package/esm/models/billingPeriodsMappers.d.ts.map +0 -1
  282. package/esm/models/billingPeriodsMappers.js +0 -11
  283. package/esm/models/billingPeriodsMappers.js.map +0 -1
  284. package/esm/models/enrollmentAccountsMappers.d.ts +0 -2
  285. package/esm/models/enrollmentAccountsMappers.d.ts.map +0 -1
  286. package/esm/models/enrollmentAccountsMappers.js +0 -11
  287. package/esm/models/enrollmentAccountsMappers.js.map +0 -1
  288. package/esm/models/index.d.ts +0 -573
  289. package/esm/models/index.d.ts.map +0 -1
  290. package/esm/models/index.js +0 -10
  291. package/esm/models/index.js.map +0 -1
  292. package/esm/models/invoicesMappers.d.ts +0 -2
  293. package/esm/models/invoicesMappers.d.ts.map +0 -1
  294. package/esm/models/invoicesMappers.js +0 -11
  295. package/esm/models/invoicesMappers.js.map +0 -1
  296. package/esm/models/mappers.d.ts +0 -17
  297. package/esm/models/mappers.d.ts.map +0 -1
  298. package/esm/models/mappers.js +0 -364
  299. package/esm/models/mappers.js.map +0 -1
  300. package/esm/models/operationsMappers.d.ts +0 -2
  301. package/esm/models/operationsMappers.d.ts.map +0 -1
  302. package/esm/models/operationsMappers.js +0 -11
  303. package/esm/models/operationsMappers.js.map +0 -1
  304. package/esm/models/parameters.d.ts +0 -13
  305. package/esm/models/parameters.d.ts.map +0 -1
  306. package/esm/models/parameters.js +0 -133
  307. package/esm/models/parameters.js.map +0 -1
  308. package/esm/operations/billingPeriods.d.ts +0 -70
  309. package/esm/operations/billingPeriods.d.ts.map +0 -1
  310. package/esm/operations/billingPeriods.js +0 -112
  311. package/esm/operations/billingPeriods.js.map +0 -1
  312. package/esm/operations/enrollmentAccounts.d.ts +0 -64
  313. package/esm/operations/enrollmentAccounts.d.ts.map +0 -1
  314. package/esm/operations/enrollmentAccounts.js +0 -105
  315. package/esm/operations/enrollmentAccounts.js.map +0 -1
  316. package/esm/operations/index.d.ts +0 -5
  317. package/esm/operations/index.d.ts.map +0 -1
  318. package/esm/operations/index.js +0 -14
  319. package/esm/operations/index.js.map +0 -1
  320. package/esm/operations/invoices.d.ts +0 -93
  321. package/esm/operations/invoices.d.ts.map +0 -1
  322. package/esm/operations/invoices.js +0 -140
  323. package/esm/operations/invoices.js.map +0 -1
  324. package/esm/operations/operations.d.ts +0 -46
  325. package/esm/operations/operations.d.ts.map +0 -1
  326. package/esm/operations/operations.js +0 -77
  327. package/esm/operations/operations.js.map +0 -1
  328. package/lib/billingManagementClient.ts +0 -48
  329. package/lib/billingManagementClientContext.ts +0 -62
  330. package/lib/models/billingPeriodsMappers.ts +0 -22
  331. package/lib/models/enrollmentAccountsMappers.ts +0 -22
  332. package/lib/models/index.ts +0 -613
  333. package/lib/models/invoicesMappers.ts +0 -22
  334. package/lib/models/mappers.ts +0 -392
  335. package/lib/models/operationsMappers.ts +0 -18
  336. package/lib/models/parameters.ts +0 -135
  337. package/lib/operations/billingPeriods.ts +0 -187
  338. package/lib/operations/enrollmentAccounts.ts +0 -174
  339. package/lib/operations/index.ts +0 -14
  340. package/lib/operations/invoices.ts +0 -243
  341. package/lib/operations/operations.ts +0 -123
@@ -0,0 +1,782 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { BillingRoleAssignments } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { BillingManagementClient } from "../billingManagementClient";
15
+ import {
16
+ BillingRoleAssignment,
17
+ BillingRoleAssignmentsListByBillingAccountNextOptionalParams,
18
+ BillingRoleAssignmentsListByBillingAccountOptionalParams,
19
+ BillingRoleAssignmentsListByInvoiceSectionNextOptionalParams,
20
+ BillingRoleAssignmentsListByInvoiceSectionOptionalParams,
21
+ BillingRoleAssignmentsListByBillingProfileNextOptionalParams,
22
+ BillingRoleAssignmentsListByBillingProfileOptionalParams,
23
+ BillingRoleAssignmentsGetByBillingAccountOptionalParams,
24
+ BillingRoleAssignmentsGetByBillingAccountResponse,
25
+ BillingRoleAssignmentsDeleteByBillingAccountOptionalParams,
26
+ BillingRoleAssignmentsDeleteByBillingAccountResponse,
27
+ BillingRoleAssignmentsGetByInvoiceSectionOptionalParams,
28
+ BillingRoleAssignmentsGetByInvoiceSectionResponse,
29
+ BillingRoleAssignmentsDeleteByInvoiceSectionOptionalParams,
30
+ BillingRoleAssignmentsDeleteByInvoiceSectionResponse,
31
+ BillingRoleAssignmentsGetByBillingProfileOptionalParams,
32
+ BillingRoleAssignmentsGetByBillingProfileResponse,
33
+ BillingRoleAssignmentsDeleteByBillingProfileOptionalParams,
34
+ BillingRoleAssignmentsDeleteByBillingProfileResponse,
35
+ BillingRoleAssignmentsListByBillingAccountResponse,
36
+ BillingRoleAssignmentsListByInvoiceSectionResponse,
37
+ BillingRoleAssignmentsListByBillingProfileResponse,
38
+ BillingRoleAssignmentsListByBillingAccountNextResponse,
39
+ BillingRoleAssignmentsListByInvoiceSectionNextResponse,
40
+ BillingRoleAssignmentsListByBillingProfileNextResponse
41
+ } from "../models";
42
+
43
+ /// <reference lib="esnext.asynciterable" />
44
+ /** Class containing BillingRoleAssignments operations. */
45
+ export class BillingRoleAssignmentsImpl implements BillingRoleAssignments {
46
+ private readonly client: BillingManagementClient;
47
+
48
+ /**
49
+ * Initialize a new instance of the class BillingRoleAssignments class.
50
+ * @param client Reference to the service client
51
+ */
52
+ constructor(client: BillingManagementClient) {
53
+ this.client = client;
54
+ }
55
+
56
+ /**
57
+ * Lists the role assignments for the caller on a billing account. The operation is supported for
58
+ * billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
59
+ * @param billingAccountName The ID that uniquely identifies a billing account.
60
+ * @param options The options parameters.
61
+ */
62
+ public listByBillingAccount(
63
+ billingAccountName: string,
64
+ options?: BillingRoleAssignmentsListByBillingAccountOptionalParams
65
+ ): PagedAsyncIterableIterator<BillingRoleAssignment> {
66
+ const iter = this.listByBillingAccountPagingAll(
67
+ billingAccountName,
68
+ options
69
+ );
70
+ return {
71
+ next() {
72
+ return iter.next();
73
+ },
74
+ [Symbol.asyncIterator]() {
75
+ return this;
76
+ },
77
+ byPage: () => {
78
+ return this.listByBillingAccountPagingPage(billingAccountName, options);
79
+ }
80
+ };
81
+ }
82
+
83
+ private async *listByBillingAccountPagingPage(
84
+ billingAccountName: string,
85
+ options?: BillingRoleAssignmentsListByBillingAccountOptionalParams
86
+ ): AsyncIterableIterator<BillingRoleAssignment[]> {
87
+ let result = await this._listByBillingAccount(billingAccountName, options);
88
+ yield result.value || [];
89
+ let continuationToken = result.nextLink;
90
+ while (continuationToken) {
91
+ result = await this._listByBillingAccountNext(
92
+ billingAccountName,
93
+ continuationToken,
94
+ options
95
+ );
96
+ continuationToken = result.nextLink;
97
+ yield result.value || [];
98
+ }
99
+ }
100
+
101
+ private async *listByBillingAccountPagingAll(
102
+ billingAccountName: string,
103
+ options?: BillingRoleAssignmentsListByBillingAccountOptionalParams
104
+ ): AsyncIterableIterator<BillingRoleAssignment> {
105
+ for await (const page of this.listByBillingAccountPagingPage(
106
+ billingAccountName,
107
+ options
108
+ )) {
109
+ yield* page;
110
+ }
111
+ }
112
+
113
+ /**
114
+ * Lists the role assignments for the caller on an invoice section. The operation is supported for
115
+ * billing accounts with agreement type Microsoft Customer Agreement.
116
+ * @param billingAccountName The ID that uniquely identifies a billing account.
117
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
118
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
119
+ * @param options The options parameters.
120
+ */
121
+ public listByInvoiceSection(
122
+ billingAccountName: string,
123
+ billingProfileName: string,
124
+ invoiceSectionName: string,
125
+ options?: BillingRoleAssignmentsListByInvoiceSectionOptionalParams
126
+ ): PagedAsyncIterableIterator<BillingRoleAssignment> {
127
+ const iter = this.listByInvoiceSectionPagingAll(
128
+ billingAccountName,
129
+ billingProfileName,
130
+ invoiceSectionName,
131
+ options
132
+ );
133
+ return {
134
+ next() {
135
+ return iter.next();
136
+ },
137
+ [Symbol.asyncIterator]() {
138
+ return this;
139
+ },
140
+ byPage: () => {
141
+ return this.listByInvoiceSectionPagingPage(
142
+ billingAccountName,
143
+ billingProfileName,
144
+ invoiceSectionName,
145
+ options
146
+ );
147
+ }
148
+ };
149
+ }
150
+
151
+ private async *listByInvoiceSectionPagingPage(
152
+ billingAccountName: string,
153
+ billingProfileName: string,
154
+ invoiceSectionName: string,
155
+ options?: BillingRoleAssignmentsListByInvoiceSectionOptionalParams
156
+ ): AsyncIterableIterator<BillingRoleAssignment[]> {
157
+ let result = await this._listByInvoiceSection(
158
+ billingAccountName,
159
+ billingProfileName,
160
+ invoiceSectionName,
161
+ options
162
+ );
163
+ yield result.value || [];
164
+ let continuationToken = result.nextLink;
165
+ while (continuationToken) {
166
+ result = await this._listByInvoiceSectionNext(
167
+ billingAccountName,
168
+ billingProfileName,
169
+ invoiceSectionName,
170
+ continuationToken,
171
+ options
172
+ );
173
+ continuationToken = result.nextLink;
174
+ yield result.value || [];
175
+ }
176
+ }
177
+
178
+ private async *listByInvoiceSectionPagingAll(
179
+ billingAccountName: string,
180
+ billingProfileName: string,
181
+ invoiceSectionName: string,
182
+ options?: BillingRoleAssignmentsListByInvoiceSectionOptionalParams
183
+ ): AsyncIterableIterator<BillingRoleAssignment> {
184
+ for await (const page of this.listByInvoiceSectionPagingPage(
185
+ billingAccountName,
186
+ billingProfileName,
187
+ invoiceSectionName,
188
+ options
189
+ )) {
190
+ yield* page;
191
+ }
192
+ }
193
+
194
+ /**
195
+ * Lists the role assignments for the caller on a billing profile. The operation is supported for
196
+ * billing accounts with agreement type Microsoft Customer Agreement.
197
+ * @param billingAccountName The ID that uniquely identifies a billing account.
198
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
199
+ * @param options The options parameters.
200
+ */
201
+ public listByBillingProfile(
202
+ billingAccountName: string,
203
+ billingProfileName: string,
204
+ options?: BillingRoleAssignmentsListByBillingProfileOptionalParams
205
+ ): PagedAsyncIterableIterator<BillingRoleAssignment> {
206
+ const iter = this.listByBillingProfilePagingAll(
207
+ billingAccountName,
208
+ billingProfileName,
209
+ options
210
+ );
211
+ return {
212
+ next() {
213
+ return iter.next();
214
+ },
215
+ [Symbol.asyncIterator]() {
216
+ return this;
217
+ },
218
+ byPage: () => {
219
+ return this.listByBillingProfilePagingPage(
220
+ billingAccountName,
221
+ billingProfileName,
222
+ options
223
+ );
224
+ }
225
+ };
226
+ }
227
+
228
+ private async *listByBillingProfilePagingPage(
229
+ billingAccountName: string,
230
+ billingProfileName: string,
231
+ options?: BillingRoleAssignmentsListByBillingProfileOptionalParams
232
+ ): AsyncIterableIterator<BillingRoleAssignment[]> {
233
+ let result = await this._listByBillingProfile(
234
+ billingAccountName,
235
+ billingProfileName,
236
+ options
237
+ );
238
+ yield result.value || [];
239
+ let continuationToken = result.nextLink;
240
+ while (continuationToken) {
241
+ result = await this._listByBillingProfileNext(
242
+ billingAccountName,
243
+ billingProfileName,
244
+ continuationToken,
245
+ options
246
+ );
247
+ continuationToken = result.nextLink;
248
+ yield result.value || [];
249
+ }
250
+ }
251
+
252
+ private async *listByBillingProfilePagingAll(
253
+ billingAccountName: string,
254
+ billingProfileName: string,
255
+ options?: BillingRoleAssignmentsListByBillingProfileOptionalParams
256
+ ): AsyncIterableIterator<BillingRoleAssignment> {
257
+ for await (const page of this.listByBillingProfilePagingPage(
258
+ billingAccountName,
259
+ billingProfileName,
260
+ options
261
+ )) {
262
+ yield* page;
263
+ }
264
+ }
265
+
266
+ /**
267
+ * Gets a role assignment for the caller on a billing account. The operation is supported for billing
268
+ * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
269
+ * @param billingAccountName The ID that uniquely identifies a billing account.
270
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
271
+ * @param options The options parameters.
272
+ */
273
+ getByBillingAccount(
274
+ billingAccountName: string,
275
+ billingRoleAssignmentName: string,
276
+ options?: BillingRoleAssignmentsGetByBillingAccountOptionalParams
277
+ ): Promise<BillingRoleAssignmentsGetByBillingAccountResponse> {
278
+ return this.client.sendOperationRequest(
279
+ { billingAccountName, billingRoleAssignmentName, options },
280
+ getByBillingAccountOperationSpec
281
+ );
282
+ }
283
+
284
+ /**
285
+ * Deletes a role assignment for the caller on a billing account. The operation is supported for
286
+ * billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
287
+ * @param billingAccountName The ID that uniquely identifies a billing account.
288
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
289
+ * @param options The options parameters.
290
+ */
291
+ deleteByBillingAccount(
292
+ billingAccountName: string,
293
+ billingRoleAssignmentName: string,
294
+ options?: BillingRoleAssignmentsDeleteByBillingAccountOptionalParams
295
+ ): Promise<BillingRoleAssignmentsDeleteByBillingAccountResponse> {
296
+ return this.client.sendOperationRequest(
297
+ { billingAccountName, billingRoleAssignmentName, options },
298
+ deleteByBillingAccountOperationSpec
299
+ );
300
+ }
301
+
302
+ /**
303
+ * Gets a role assignment for the caller on an invoice section. The operation is supported for billing
304
+ * accounts with agreement type Microsoft Customer Agreement.
305
+ * @param billingAccountName The ID that uniquely identifies a billing account.
306
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
307
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
308
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
309
+ * @param options The options parameters.
310
+ */
311
+ getByInvoiceSection(
312
+ billingAccountName: string,
313
+ billingProfileName: string,
314
+ invoiceSectionName: string,
315
+ billingRoleAssignmentName: string,
316
+ options?: BillingRoleAssignmentsGetByInvoiceSectionOptionalParams
317
+ ): Promise<BillingRoleAssignmentsGetByInvoiceSectionResponse> {
318
+ return this.client.sendOperationRequest(
319
+ {
320
+ billingAccountName,
321
+ billingProfileName,
322
+ invoiceSectionName,
323
+ billingRoleAssignmentName,
324
+ options
325
+ },
326
+ getByInvoiceSectionOperationSpec
327
+ );
328
+ }
329
+
330
+ /**
331
+ * Deletes a role assignment for the caller on an invoice section. The operation is supported for
332
+ * billing accounts with agreement type Microsoft Customer Agreement.
333
+ * @param billingAccountName The ID that uniquely identifies a billing account.
334
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
335
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
336
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
337
+ * @param options The options parameters.
338
+ */
339
+ deleteByInvoiceSection(
340
+ billingAccountName: string,
341
+ billingProfileName: string,
342
+ invoiceSectionName: string,
343
+ billingRoleAssignmentName: string,
344
+ options?: BillingRoleAssignmentsDeleteByInvoiceSectionOptionalParams
345
+ ): Promise<BillingRoleAssignmentsDeleteByInvoiceSectionResponse> {
346
+ return this.client.sendOperationRequest(
347
+ {
348
+ billingAccountName,
349
+ billingProfileName,
350
+ invoiceSectionName,
351
+ billingRoleAssignmentName,
352
+ options
353
+ },
354
+ deleteByInvoiceSectionOperationSpec
355
+ );
356
+ }
357
+
358
+ /**
359
+ * Gets a role assignment for the caller on a billing profile. The operation is supported for billing
360
+ * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
361
+ * @param billingAccountName The ID that uniquely identifies a billing account.
362
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
363
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
364
+ * @param options The options parameters.
365
+ */
366
+ getByBillingProfile(
367
+ billingAccountName: string,
368
+ billingProfileName: string,
369
+ billingRoleAssignmentName: string,
370
+ options?: BillingRoleAssignmentsGetByBillingProfileOptionalParams
371
+ ): Promise<BillingRoleAssignmentsGetByBillingProfileResponse> {
372
+ return this.client.sendOperationRequest(
373
+ {
374
+ billingAccountName,
375
+ billingProfileName,
376
+ billingRoleAssignmentName,
377
+ options
378
+ },
379
+ getByBillingProfileOperationSpec
380
+ );
381
+ }
382
+
383
+ /**
384
+ * Deletes a role assignment for the caller on a billing profile. The operation is supported for
385
+ * billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
386
+ * @param billingAccountName The ID that uniquely identifies a billing account.
387
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
388
+ * @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
389
+ * @param options The options parameters.
390
+ */
391
+ deleteByBillingProfile(
392
+ billingAccountName: string,
393
+ billingProfileName: string,
394
+ billingRoleAssignmentName: string,
395
+ options?: BillingRoleAssignmentsDeleteByBillingProfileOptionalParams
396
+ ): Promise<BillingRoleAssignmentsDeleteByBillingProfileResponse> {
397
+ return this.client.sendOperationRequest(
398
+ {
399
+ billingAccountName,
400
+ billingProfileName,
401
+ billingRoleAssignmentName,
402
+ options
403
+ },
404
+ deleteByBillingProfileOperationSpec
405
+ );
406
+ }
407
+
408
+ /**
409
+ * Lists the role assignments for the caller on a billing account. The operation is supported for
410
+ * billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
411
+ * @param billingAccountName The ID that uniquely identifies a billing account.
412
+ * @param options The options parameters.
413
+ */
414
+ private _listByBillingAccount(
415
+ billingAccountName: string,
416
+ options?: BillingRoleAssignmentsListByBillingAccountOptionalParams
417
+ ): Promise<BillingRoleAssignmentsListByBillingAccountResponse> {
418
+ return this.client.sendOperationRequest(
419
+ { billingAccountName, options },
420
+ listByBillingAccountOperationSpec
421
+ );
422
+ }
423
+
424
+ /**
425
+ * Lists the role assignments for the caller on an invoice section. The operation is supported for
426
+ * billing accounts with agreement type Microsoft Customer Agreement.
427
+ * @param billingAccountName The ID that uniquely identifies a billing account.
428
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
429
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
430
+ * @param options The options parameters.
431
+ */
432
+ private _listByInvoiceSection(
433
+ billingAccountName: string,
434
+ billingProfileName: string,
435
+ invoiceSectionName: string,
436
+ options?: BillingRoleAssignmentsListByInvoiceSectionOptionalParams
437
+ ): Promise<BillingRoleAssignmentsListByInvoiceSectionResponse> {
438
+ return this.client.sendOperationRequest(
439
+ { billingAccountName, billingProfileName, invoiceSectionName, options },
440
+ listByInvoiceSectionOperationSpec
441
+ );
442
+ }
443
+
444
+ /**
445
+ * Lists the role assignments for the caller on a billing profile. The operation is supported for
446
+ * billing accounts with agreement type Microsoft Customer Agreement.
447
+ * @param billingAccountName The ID that uniquely identifies a billing account.
448
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
449
+ * @param options The options parameters.
450
+ */
451
+ private _listByBillingProfile(
452
+ billingAccountName: string,
453
+ billingProfileName: string,
454
+ options?: BillingRoleAssignmentsListByBillingProfileOptionalParams
455
+ ): Promise<BillingRoleAssignmentsListByBillingProfileResponse> {
456
+ return this.client.sendOperationRequest(
457
+ { billingAccountName, billingProfileName, options },
458
+ listByBillingProfileOperationSpec
459
+ );
460
+ }
461
+
462
+ /**
463
+ * ListByBillingAccountNext
464
+ * @param billingAccountName The ID that uniquely identifies a billing account.
465
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
466
+ * @param options The options parameters.
467
+ */
468
+ private _listByBillingAccountNext(
469
+ billingAccountName: string,
470
+ nextLink: string,
471
+ options?: BillingRoleAssignmentsListByBillingAccountNextOptionalParams
472
+ ): Promise<BillingRoleAssignmentsListByBillingAccountNextResponse> {
473
+ return this.client.sendOperationRequest(
474
+ { billingAccountName, nextLink, options },
475
+ listByBillingAccountNextOperationSpec
476
+ );
477
+ }
478
+
479
+ /**
480
+ * ListByInvoiceSectionNext
481
+ * @param billingAccountName The ID that uniquely identifies a billing account.
482
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
483
+ * @param invoiceSectionName The ID that uniquely identifies an invoice section.
484
+ * @param nextLink The nextLink from the previous successful call to the ListByInvoiceSection method.
485
+ * @param options The options parameters.
486
+ */
487
+ private _listByInvoiceSectionNext(
488
+ billingAccountName: string,
489
+ billingProfileName: string,
490
+ invoiceSectionName: string,
491
+ nextLink: string,
492
+ options?: BillingRoleAssignmentsListByInvoiceSectionNextOptionalParams
493
+ ): Promise<BillingRoleAssignmentsListByInvoiceSectionNextResponse> {
494
+ return this.client.sendOperationRequest(
495
+ {
496
+ billingAccountName,
497
+ billingProfileName,
498
+ invoiceSectionName,
499
+ nextLink,
500
+ options
501
+ },
502
+ listByInvoiceSectionNextOperationSpec
503
+ );
504
+ }
505
+
506
+ /**
507
+ * ListByBillingProfileNext
508
+ * @param billingAccountName The ID that uniquely identifies a billing account.
509
+ * @param billingProfileName The ID that uniquely identifies a billing profile.
510
+ * @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
511
+ * @param options The options parameters.
512
+ */
513
+ private _listByBillingProfileNext(
514
+ billingAccountName: string,
515
+ billingProfileName: string,
516
+ nextLink: string,
517
+ options?: BillingRoleAssignmentsListByBillingProfileNextOptionalParams
518
+ ): Promise<BillingRoleAssignmentsListByBillingProfileNextResponse> {
519
+ return this.client.sendOperationRequest(
520
+ { billingAccountName, billingProfileName, nextLink, options },
521
+ listByBillingProfileNextOperationSpec
522
+ );
523
+ }
524
+ }
525
+ // Operation Specifications
526
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
527
+
528
+ const getByBillingAccountOperationSpec: coreClient.OperationSpec = {
529
+ path:
530
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}",
531
+ httpMethod: "GET",
532
+ responses: {
533
+ 200: {
534
+ bodyMapper: Mappers.BillingRoleAssignment
535
+ },
536
+ default: {
537
+ bodyMapper: Mappers.ErrorResponse
538
+ }
539
+ },
540
+ queryParameters: [Parameters.apiVersion],
541
+ urlParameters: [
542
+ Parameters.$host,
543
+ Parameters.billingAccountName,
544
+ Parameters.billingRoleAssignmentName
545
+ ],
546
+ headerParameters: [Parameters.accept],
547
+ serializer
548
+ };
549
+ const deleteByBillingAccountOperationSpec: coreClient.OperationSpec = {
550
+ path:
551
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}",
552
+ httpMethod: "DELETE",
553
+ responses: {
554
+ 200: {
555
+ bodyMapper: Mappers.BillingRoleAssignment
556
+ },
557
+ default: {
558
+ bodyMapper: Mappers.ErrorResponse
559
+ }
560
+ },
561
+ queryParameters: [Parameters.apiVersion],
562
+ urlParameters: [
563
+ Parameters.$host,
564
+ Parameters.billingAccountName,
565
+ Parameters.billingRoleAssignmentName
566
+ ],
567
+ headerParameters: [Parameters.accept],
568
+ serializer
569
+ };
570
+ const getByInvoiceSectionOperationSpec: coreClient.OperationSpec = {
571
+ path:
572
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}",
573
+ httpMethod: "GET",
574
+ responses: {
575
+ 200: {
576
+ bodyMapper: Mappers.BillingRoleAssignment
577
+ },
578
+ default: {
579
+ bodyMapper: Mappers.ErrorResponse
580
+ }
581
+ },
582
+ queryParameters: [Parameters.apiVersion],
583
+ urlParameters: [
584
+ Parameters.$host,
585
+ Parameters.billingAccountName,
586
+ Parameters.billingProfileName,
587
+ Parameters.invoiceSectionName,
588
+ Parameters.billingRoleAssignmentName
589
+ ],
590
+ headerParameters: [Parameters.accept],
591
+ serializer
592
+ };
593
+ const deleteByInvoiceSectionOperationSpec: coreClient.OperationSpec = {
594
+ path:
595
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}",
596
+ httpMethod: "DELETE",
597
+ responses: {
598
+ 200: {
599
+ bodyMapper: Mappers.BillingRoleAssignment
600
+ },
601
+ default: {
602
+ bodyMapper: Mappers.ErrorResponse
603
+ }
604
+ },
605
+ queryParameters: [Parameters.apiVersion],
606
+ urlParameters: [
607
+ Parameters.$host,
608
+ Parameters.billingAccountName,
609
+ Parameters.billingProfileName,
610
+ Parameters.invoiceSectionName,
611
+ Parameters.billingRoleAssignmentName
612
+ ],
613
+ headerParameters: [Parameters.accept],
614
+ serializer
615
+ };
616
+ const getByBillingProfileOperationSpec: coreClient.OperationSpec = {
617
+ path:
618
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}",
619
+ httpMethod: "GET",
620
+ responses: {
621
+ 200: {
622
+ bodyMapper: Mappers.BillingRoleAssignment
623
+ },
624
+ default: {
625
+ bodyMapper: Mappers.ErrorResponse
626
+ }
627
+ },
628
+ queryParameters: [Parameters.apiVersion],
629
+ urlParameters: [
630
+ Parameters.$host,
631
+ Parameters.billingAccountName,
632
+ Parameters.billingProfileName,
633
+ Parameters.billingRoleAssignmentName
634
+ ],
635
+ headerParameters: [Parameters.accept],
636
+ serializer
637
+ };
638
+ const deleteByBillingProfileOperationSpec: coreClient.OperationSpec = {
639
+ path:
640
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}",
641
+ httpMethod: "DELETE",
642
+ responses: {
643
+ 200: {
644
+ bodyMapper: Mappers.BillingRoleAssignment
645
+ },
646
+ default: {
647
+ bodyMapper: Mappers.ErrorResponse
648
+ }
649
+ },
650
+ queryParameters: [Parameters.apiVersion],
651
+ urlParameters: [
652
+ Parameters.$host,
653
+ Parameters.billingAccountName,
654
+ Parameters.billingProfileName,
655
+ Parameters.billingRoleAssignmentName
656
+ ],
657
+ headerParameters: [Parameters.accept],
658
+ serializer
659
+ };
660
+ const listByBillingAccountOperationSpec: coreClient.OperationSpec = {
661
+ path:
662
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments",
663
+ httpMethod: "GET",
664
+ responses: {
665
+ 200: {
666
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
667
+ },
668
+ default: {
669
+ bodyMapper: Mappers.ErrorResponse
670
+ }
671
+ },
672
+ queryParameters: [Parameters.apiVersion],
673
+ urlParameters: [Parameters.$host, Parameters.billingAccountName],
674
+ headerParameters: [Parameters.accept],
675
+ serializer
676
+ };
677
+ const listByInvoiceSectionOperationSpec: coreClient.OperationSpec = {
678
+ path:
679
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments",
680
+ httpMethod: "GET",
681
+ responses: {
682
+ 200: {
683
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
684
+ },
685
+ default: {
686
+ bodyMapper: Mappers.ErrorResponse
687
+ }
688
+ },
689
+ queryParameters: [Parameters.apiVersion],
690
+ urlParameters: [
691
+ Parameters.$host,
692
+ Parameters.billingAccountName,
693
+ Parameters.billingProfileName,
694
+ Parameters.invoiceSectionName
695
+ ],
696
+ headerParameters: [Parameters.accept],
697
+ serializer
698
+ };
699
+ const listByBillingProfileOperationSpec: coreClient.OperationSpec = {
700
+ path:
701
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments",
702
+ httpMethod: "GET",
703
+ responses: {
704
+ 200: {
705
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
706
+ },
707
+ default: {
708
+ bodyMapper: Mappers.ErrorResponse
709
+ }
710
+ },
711
+ queryParameters: [Parameters.apiVersion],
712
+ urlParameters: [
713
+ Parameters.$host,
714
+ Parameters.billingAccountName,
715
+ Parameters.billingProfileName
716
+ ],
717
+ headerParameters: [Parameters.accept],
718
+ serializer
719
+ };
720
+ const listByBillingAccountNextOperationSpec: coreClient.OperationSpec = {
721
+ path: "{nextLink}",
722
+ httpMethod: "GET",
723
+ responses: {
724
+ 200: {
725
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
726
+ },
727
+ default: {
728
+ bodyMapper: Mappers.ErrorResponse
729
+ }
730
+ },
731
+ queryParameters: [Parameters.apiVersion],
732
+ urlParameters: [
733
+ Parameters.$host,
734
+ Parameters.billingAccountName,
735
+ Parameters.nextLink
736
+ ],
737
+ headerParameters: [Parameters.accept],
738
+ serializer
739
+ };
740
+ const listByInvoiceSectionNextOperationSpec: coreClient.OperationSpec = {
741
+ path: "{nextLink}",
742
+ httpMethod: "GET",
743
+ responses: {
744
+ 200: {
745
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
746
+ },
747
+ default: {
748
+ bodyMapper: Mappers.ErrorResponse
749
+ }
750
+ },
751
+ queryParameters: [Parameters.apiVersion],
752
+ urlParameters: [
753
+ Parameters.$host,
754
+ Parameters.billingAccountName,
755
+ Parameters.nextLink,
756
+ Parameters.billingProfileName,
757
+ Parameters.invoiceSectionName
758
+ ],
759
+ headerParameters: [Parameters.accept],
760
+ serializer
761
+ };
762
+ const listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {
763
+ path: "{nextLink}",
764
+ httpMethod: "GET",
765
+ responses: {
766
+ 200: {
767
+ bodyMapper: Mappers.BillingRoleAssignmentListResult
768
+ },
769
+ default: {
770
+ bodyMapper: Mappers.ErrorResponse
771
+ }
772
+ },
773
+ queryParameters: [Parameters.apiVersion],
774
+ urlParameters: [
775
+ Parameters.$host,
776
+ Parameters.billingAccountName,
777
+ Parameters.nextLink,
778
+ Parameters.billingProfileName
779
+ ],
780
+ headerParameters: [Parameters.accept],
781
+ serializer
782
+ };