@azure/arm-billing 4.0.2-alpha.20221101.1 → 4.1.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 (410) hide show
  1. package/CHANGELOG.md +26 -11
  2. package/dist/index.js +817 -251
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/addressValidateSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/addressValidateSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/addressValidateSample.js +59 -0
  9. package/dist-esm/samples-dev/addressValidateSample.js.map +1 -0
  10. package/dist-esm/samples-dev/agreementsGetSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/agreementsGetSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/agreementsGetSample.js +31 -0
  13. package/dist-esm/samples-dev/agreementsGetSample.js.map +1 -0
  14. package/dist-esm/samples-dev/agreementsListByBillingAccountSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/agreementsListByBillingAccountSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/agreementsListByBillingAccountSample.js +44 -0
  17. package/dist-esm/samples-dev/agreementsListByBillingAccountSample.js.map +1 -0
  18. package/dist-esm/samples-dev/availableBalancesGetSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/availableBalancesGetSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/availableBalancesGetSample.js +31 -0
  21. package/dist-esm/samples-dev/availableBalancesGetSample.js.map +1 -0
  22. package/dist-esm/samples-dev/billingAccountsGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/billingAccountsGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/billingAccountsGetSample.js +49 -0
  25. package/dist-esm/samples-dev/billingAccountsGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.js +44 -0
  29. package/dist-esm/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.js.map +1 -0
  30. package/dist-esm/samples-dev/billingAccountsListSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/billingAccountsListSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/billingAccountsListSample.js +107 -0
  33. package/dist-esm/samples-dev/billingAccountsListSample.js.map +1 -0
  34. package/dist-esm/samples-dev/billingAccountsUpdateSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/billingAccountsUpdateSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/billingAccountsUpdateSample.js +43 -0
  37. package/dist-esm/samples-dev/billingAccountsUpdateSample.js.map +1 -0
  38. package/dist-esm/samples-dev/billingPeriodsGetSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/billingPeriodsGetSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/billingPeriodsGetSample.js +30 -0
  41. package/dist-esm/samples-dev/billingPeriodsGetSample.js.map +1 -0
  42. package/dist-esm/samples-dev/billingPeriodsListSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/billingPeriodsListSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/billingPeriodsListSample.js +43 -0
  45. package/dist-esm/samples-dev/billingPeriodsListSample.js.map +1 -0
  46. package/dist-esm/samples-dev/billingPermissionsListByBillingAccountSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/billingPermissionsListByBillingAccountSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/billingPermissionsListByBillingAccountSample.js +44 -0
  49. package/dist-esm/samples-dev/billingPermissionsListByBillingAccountSample.js.map +1 -0
  50. package/dist-esm/samples-dev/billingPermissionsListByBillingProfileSample.d.ts +2 -0
  51. package/dist-esm/samples-dev/billingPermissionsListByBillingProfileSample.d.ts.map +1 -0
  52. package/dist-esm/samples-dev/billingPermissionsListByBillingProfileSample.js +45 -0
  53. package/dist-esm/samples-dev/billingPermissionsListByBillingProfileSample.js.map +1 -0
  54. package/dist-esm/samples-dev/billingPermissionsListByCustomerSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/billingPermissionsListByCustomerSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/billingPermissionsListByCustomerSample.js +45 -0
  57. package/dist-esm/samples-dev/billingPermissionsListByCustomerSample.js.map +1 -0
  58. package/dist-esm/samples-dev/billingPermissionsListByInvoiceSectionsSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/billingPermissionsListByInvoiceSectionsSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/billingPermissionsListByInvoiceSectionsSample.js +46 -0
  61. package/dist-esm/samples-dev/billingPermissionsListByInvoiceSectionsSample.js.map +1 -0
  62. package/dist-esm/samples-dev/billingProfilesCreateOrUpdateSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/billingProfilesCreateOrUpdateSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/billingProfilesCreateOrUpdateSample.js +46 -0
  65. package/dist-esm/samples-dev/billingProfilesCreateOrUpdateSample.js.map +1 -0
  66. package/dist-esm/samples-dev/billingProfilesGetSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/billingProfilesGetSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/billingProfilesGetSample.js +51 -0
  69. package/dist-esm/samples-dev/billingProfilesGetSample.js.map +1 -0
  70. package/dist-esm/samples-dev/billingProfilesListByBillingAccountSample.d.ts +2 -0
  71. package/dist-esm/samples-dev/billingProfilesListByBillingAccountSample.d.ts.map +1 -0
  72. package/dist-esm/samples-dev/billingProfilesListByBillingAccountSample.js +77 -0
  73. package/dist-esm/samples-dev/billingProfilesListByBillingAccountSample.js.map +1 -0
  74. package/dist-esm/samples-dev/billingPropertyGetSample.d.ts +2 -0
  75. package/dist-esm/samples-dev/billingPropertyGetSample.d.ts.map +1 -0
  76. package/dist-esm/samples-dev/billingPropertyGetSample.js +29 -0
  77. package/dist-esm/samples-dev/billingPropertyGetSample.js.map +1 -0
  78. package/dist-esm/samples-dev/billingPropertyUpdateSample.d.ts +2 -0
  79. package/dist-esm/samples-dev/billingPropertyUpdateSample.d.ts.map +1 -0
  80. package/dist-esm/samples-dev/billingPropertyUpdateSample.js +30 -0
  81. package/dist-esm/samples-dev/billingPropertyUpdateSample.js.map +1 -0
  82. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.d.ts +2 -0
  83. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.d.ts.map +1 -0
  84. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.js +31 -0
  85. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.js.map +1 -0
  86. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.d.ts +2 -0
  87. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.d.ts.map +1 -0
  88. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.js +32 -0
  89. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.js.map +1 -0
  90. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.d.ts +2 -0
  91. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.d.ts.map +1 -0
  92. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.js +33 -0
  93. package/dist-esm/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.js.map +1 -0
  94. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.d.ts +2 -0
  95. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.d.ts.map +1 -0
  96. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.js +31 -0
  97. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.js.map +1 -0
  98. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.js +32 -0
  101. package/dist-esm/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.js.map +1 -0
  102. package/dist-esm/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.d.ts +2 -0
  103. package/dist-esm/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.d.ts.map +1 -0
  104. package/dist-esm/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.js +33 -0
  105. package/dist-esm/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.js.map +1 -0
  106. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingAccountSample.d.ts +2 -0
  107. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingAccountSample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingAccountSample.js +44 -0
  109. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingAccountSample.js.map +1 -0
  110. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingProfileSample.d.ts +2 -0
  111. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingProfileSample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingProfileSample.js +45 -0
  113. package/dist-esm/samples-dev/billingRoleAssignmentsListByBillingProfileSample.js.map +1 -0
  114. package/dist-esm/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.d.ts +2 -0
  115. package/dist-esm/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.d.ts.map +1 -0
  116. package/dist-esm/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.js +46 -0
  117. package/dist-esm/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.js.map +1 -0
  118. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingAccountSample.d.ts +2 -0
  119. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingAccountSample.d.ts.map +1 -0
  120. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingAccountSample.js +31 -0
  121. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingAccountSample.js.map +1 -0
  122. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingProfileSample.d.ts +2 -0
  123. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingProfileSample.d.ts.map +1 -0
  124. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingProfileSample.js +32 -0
  125. package/dist-esm/samples-dev/billingRoleDefinitionsGetByBillingProfileSample.js.map +1 -0
  126. package/dist-esm/samples-dev/billingRoleDefinitionsGetByInvoiceSectionSample.d.ts +2 -0
  127. package/dist-esm/samples-dev/billingRoleDefinitionsGetByInvoiceSectionSample.d.ts.map +1 -0
  128. package/dist-esm/samples-dev/billingRoleDefinitionsGetByInvoiceSectionSample.js +33 -0
  129. package/dist-esm/samples-dev/billingRoleDefinitionsGetByInvoiceSectionSample.js.map +1 -0
  130. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingAccountSample.d.ts +2 -0
  131. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingAccountSample.d.ts.map +1 -0
  132. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingAccountSample.js +44 -0
  133. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingAccountSample.js.map +1 -0
  134. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingProfileSample.d.ts +2 -0
  135. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingProfileSample.d.ts.map +1 -0
  136. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingProfileSample.js +45 -0
  137. package/dist-esm/samples-dev/billingRoleDefinitionsListByBillingProfileSample.js.map +1 -0
  138. package/dist-esm/samples-dev/billingRoleDefinitionsListByInvoiceSectionSample.d.ts +2 -0
  139. package/dist-esm/samples-dev/billingRoleDefinitionsListByInvoiceSectionSample.d.ts.map +1 -0
  140. package/dist-esm/samples-dev/billingRoleDefinitionsListByInvoiceSectionSample.js +46 -0
  141. package/dist-esm/samples-dev/billingRoleDefinitionsListByInvoiceSectionSample.js.map +1 -0
  142. package/dist-esm/samples-dev/billingSubscriptionsGetSample.d.ts +2 -0
  143. package/dist-esm/samples-dev/billingSubscriptionsGetSample.d.ts.map +1 -0
  144. package/dist-esm/samples-dev/billingSubscriptionsGetSample.js +30 -0
  145. package/dist-esm/samples-dev/billingSubscriptionsGetSample.js.map +1 -0
  146. package/dist-esm/samples-dev/billingSubscriptionsListByBillingAccountSample.d.ts +2 -0
  147. package/dist-esm/samples-dev/billingSubscriptionsListByBillingAccountSample.d.ts.map +1 -0
  148. package/dist-esm/samples-dev/billingSubscriptionsListByBillingAccountSample.js +44 -0
  149. package/dist-esm/samples-dev/billingSubscriptionsListByBillingAccountSample.js.map +1 -0
  150. package/dist-esm/samples-dev/billingSubscriptionsListByBillingProfileSample.d.ts +2 -0
  151. package/dist-esm/samples-dev/billingSubscriptionsListByBillingProfileSample.d.ts.map +1 -0
  152. package/dist-esm/samples-dev/billingSubscriptionsListByBillingProfileSample.js +45 -0
  153. package/dist-esm/samples-dev/billingSubscriptionsListByBillingProfileSample.js.map +1 -0
  154. package/dist-esm/samples-dev/billingSubscriptionsListByCustomerSample.d.ts +2 -0
  155. package/dist-esm/samples-dev/billingSubscriptionsListByCustomerSample.d.ts.map +1 -0
  156. package/dist-esm/samples-dev/billingSubscriptionsListByCustomerSample.js +45 -0
  157. package/dist-esm/samples-dev/billingSubscriptionsListByCustomerSample.js.map +1 -0
  158. package/dist-esm/samples-dev/billingSubscriptionsListByInvoiceSectionSample.d.ts +2 -0
  159. package/dist-esm/samples-dev/billingSubscriptionsListByInvoiceSectionSample.d.ts.map +1 -0
  160. package/dist-esm/samples-dev/billingSubscriptionsListByInvoiceSectionSample.js +46 -0
  161. package/dist-esm/samples-dev/billingSubscriptionsListByInvoiceSectionSample.js.map +1 -0
  162. package/dist-esm/samples-dev/billingSubscriptionsMoveSample.d.ts +2 -0
  163. package/dist-esm/samples-dev/billingSubscriptionsMoveSample.d.ts.map +1 -0
  164. package/dist-esm/samples-dev/billingSubscriptionsMoveSample.js +33 -0
  165. package/dist-esm/samples-dev/billingSubscriptionsMoveSample.js.map +1 -0
  166. package/dist-esm/samples-dev/billingSubscriptionsUpdateSample.d.ts +2 -0
  167. package/dist-esm/samples-dev/billingSubscriptionsUpdateSample.d.ts.map +1 -0
  168. package/dist-esm/samples-dev/billingSubscriptionsUpdateSample.js +31 -0
  169. package/dist-esm/samples-dev/billingSubscriptionsUpdateSample.js.map +1 -0
  170. package/dist-esm/samples-dev/billingSubscriptionsValidateMoveSample.d.ts +2 -0
  171. package/dist-esm/samples-dev/billingSubscriptionsValidateMoveSample.d.ts.map +1 -0
  172. package/dist-esm/samples-dev/billingSubscriptionsValidateMoveSample.js +53 -0
  173. package/dist-esm/samples-dev/billingSubscriptionsValidateMoveSample.js.map +1 -0
  174. package/dist-esm/samples-dev/customersGetSample.d.ts +2 -0
  175. package/dist-esm/samples-dev/customersGetSample.d.ts.map +1 -0
  176. package/dist-esm/samples-dev/customersGetSample.js +51 -0
  177. package/dist-esm/samples-dev/customersGetSample.js.map +1 -0
  178. package/dist-esm/samples-dev/customersListByBillingAccountSample.d.ts +2 -0
  179. package/dist-esm/samples-dev/customersListByBillingAccountSample.d.ts.map +1 -0
  180. package/dist-esm/samples-dev/customersListByBillingAccountSample.js +44 -0
  181. package/dist-esm/samples-dev/customersListByBillingAccountSample.js.map +1 -0
  182. package/dist-esm/samples-dev/customersListByBillingProfileSample.d.ts +2 -0
  183. package/dist-esm/samples-dev/customersListByBillingProfileSample.d.ts.map +1 -0
  184. package/dist-esm/samples-dev/customersListByBillingProfileSample.js +45 -0
  185. package/dist-esm/samples-dev/customersListByBillingProfileSample.js.map +1 -0
  186. package/dist-esm/samples-dev/enrollmentAccountsGetSample.d.ts +2 -0
  187. package/dist-esm/samples-dev/enrollmentAccountsGetSample.d.ts.map +1 -0
  188. package/dist-esm/samples-dev/enrollmentAccountsGetSample.js +30 -0
  189. package/dist-esm/samples-dev/enrollmentAccountsGetSample.js.map +1 -0
  190. package/dist-esm/samples-dev/enrollmentAccountsListSample.d.ts +2 -0
  191. package/dist-esm/samples-dev/enrollmentAccountsListSample.d.ts.map +1 -0
  192. package/dist-esm/samples-dev/enrollmentAccountsListSample.js +43 -0
  193. package/dist-esm/samples-dev/enrollmentAccountsListSample.js.map +1 -0
  194. package/dist-esm/samples-dev/instructionsGetSample.d.ts +2 -0
  195. package/dist-esm/samples-dev/instructionsGetSample.d.ts.map +1 -0
  196. package/dist-esm/samples-dev/instructionsGetSample.js +32 -0
  197. package/dist-esm/samples-dev/instructionsGetSample.js.map +1 -0
  198. package/dist-esm/samples-dev/instructionsListByBillingProfileSample.d.ts +2 -0
  199. package/dist-esm/samples-dev/instructionsListByBillingProfileSample.d.ts.map +1 -0
  200. package/dist-esm/samples-dev/instructionsListByBillingProfileSample.js +45 -0
  201. package/dist-esm/samples-dev/instructionsListByBillingProfileSample.js.map +1 -0
  202. package/dist-esm/samples-dev/instructionsPutSample.d.ts +2 -0
  203. package/dist-esm/samples-dev/instructionsPutSample.d.ts.map +1 -0
  204. package/dist-esm/samples-dev/instructionsPutSample.js +37 -0
  205. package/dist-esm/samples-dev/instructionsPutSample.js.map +1 -0
  206. package/dist-esm/samples-dev/invoiceSectionsCreateOrUpdateSample.d.ts +2 -0
  207. package/dist-esm/samples-dev/invoiceSectionsCreateOrUpdateSample.d.ts.map +1 -0
  208. package/dist-esm/samples-dev/invoiceSectionsCreateOrUpdateSample.js +36 -0
  209. package/dist-esm/samples-dev/invoiceSectionsCreateOrUpdateSample.js.map +1 -0
  210. package/dist-esm/samples-dev/invoiceSectionsGetSample.d.ts +2 -0
  211. package/dist-esm/samples-dev/invoiceSectionsGetSample.d.ts.map +1 -0
  212. package/dist-esm/samples-dev/invoiceSectionsGetSample.js +32 -0
  213. package/dist-esm/samples-dev/invoiceSectionsGetSample.js.map +1 -0
  214. package/dist-esm/samples-dev/invoiceSectionsListByBillingProfileSample.d.ts +2 -0
  215. package/dist-esm/samples-dev/invoiceSectionsListByBillingProfileSample.d.ts.map +1 -0
  216. package/dist-esm/samples-dev/invoiceSectionsListByBillingProfileSample.js +45 -0
  217. package/dist-esm/samples-dev/invoiceSectionsListByBillingProfileSample.js.map +1 -0
  218. package/dist-esm/samples-dev/invoicesDownloadBillingSubscriptionInvoiceSample.d.ts +2 -0
  219. package/dist-esm/samples-dev/invoicesDownloadBillingSubscriptionInvoiceSample.d.ts.map +1 -0
  220. package/dist-esm/samples-dev/invoicesDownloadBillingSubscriptionInvoiceSample.js +31 -0
  221. package/dist-esm/samples-dev/invoicesDownloadBillingSubscriptionInvoiceSample.js.map +1 -0
  222. package/dist-esm/samples-dev/invoicesDownloadInvoiceSample.d.ts +2 -0
  223. package/dist-esm/samples-dev/invoicesDownloadInvoiceSample.d.ts.map +1 -0
  224. package/dist-esm/samples-dev/invoicesDownloadInvoiceSample.js +32 -0
  225. package/dist-esm/samples-dev/invoicesDownloadInvoiceSample.js.map +1 -0
  226. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingProfileInvoicesSample.d.ts +2 -0
  227. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingProfileInvoicesSample.d.ts.map +1 -0
  228. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingProfileInvoicesSample.js +35 -0
  229. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingProfileInvoicesSample.js.map +1 -0
  230. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingSubscriptionInvoicesSample.d.ts +2 -0
  231. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingSubscriptionInvoicesSample.d.ts.map +1 -0
  232. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingSubscriptionInvoicesSample.js +34 -0
  233. package/dist-esm/samples-dev/invoicesDownloadMultipleBillingSubscriptionInvoicesSample.js.map +1 -0
  234. package/dist-esm/samples-dev/invoicesGetByIdSample.d.ts +2 -0
  235. package/dist-esm/samples-dev/invoicesGetByIdSample.d.ts.map +1 -0
  236. package/dist-esm/samples-dev/invoicesGetByIdSample.js +30 -0
  237. package/dist-esm/samples-dev/invoicesGetByIdSample.js.map +1 -0
  238. package/dist-esm/samples-dev/invoicesGetBySubscriptionAndInvoiceIdSample.d.ts +2 -0
  239. package/dist-esm/samples-dev/invoicesGetBySubscriptionAndInvoiceIdSample.d.ts.map +1 -0
  240. package/dist-esm/samples-dev/invoicesGetBySubscriptionAndInvoiceIdSample.js +30 -0
  241. package/dist-esm/samples-dev/invoicesGetBySubscriptionAndInvoiceIdSample.js.map +1 -0
  242. package/dist-esm/samples-dev/invoicesGetSample.d.ts +2 -0
  243. package/dist-esm/samples-dev/invoicesGetSample.d.ts.map +1 -0
  244. package/dist-esm/samples-dev/invoicesGetSample.js +85 -0
  245. package/dist-esm/samples-dev/invoicesGetSample.js.map +1 -0
  246. package/dist-esm/samples-dev/invoicesListByBillingAccountSample.d.ts +2 -0
  247. package/dist-esm/samples-dev/invoicesListByBillingAccountSample.d.ts.map +1 -0
  248. package/dist-esm/samples-dev/invoicesListByBillingAccountSample.js +79 -0
  249. package/dist-esm/samples-dev/invoicesListByBillingAccountSample.js.map +1 -0
  250. package/dist-esm/samples-dev/invoicesListByBillingProfileSample.d.ts +2 -0
  251. package/dist-esm/samples-dev/invoicesListByBillingProfileSample.d.ts.map +1 -0
  252. package/dist-esm/samples-dev/invoicesListByBillingProfileSample.js +81 -0
  253. package/dist-esm/samples-dev/invoicesListByBillingProfileSample.js.map +1 -0
  254. package/dist-esm/samples-dev/invoicesListByBillingSubscriptionSample.d.ts +2 -0
  255. package/dist-esm/samples-dev/invoicesListByBillingSubscriptionSample.d.ts.map +1 -0
  256. package/dist-esm/samples-dev/invoicesListByBillingSubscriptionSample.js +45 -0
  257. package/dist-esm/samples-dev/invoicesListByBillingSubscriptionSample.js.map +1 -0
  258. package/dist-esm/samples-dev/policiesGetByBillingProfileSample.d.ts +2 -0
  259. package/dist-esm/samples-dev/policiesGetByBillingProfileSample.d.ts.map +1 -0
  260. package/dist-esm/samples-dev/policiesGetByBillingProfileSample.js +31 -0
  261. package/dist-esm/samples-dev/policiesGetByBillingProfileSample.js.map +1 -0
  262. package/dist-esm/samples-dev/policiesGetByCustomerSample.d.ts +2 -0
  263. package/dist-esm/samples-dev/policiesGetByCustomerSample.d.ts.map +1 -0
  264. package/dist-esm/samples-dev/policiesGetByCustomerSample.js +31 -0
  265. package/dist-esm/samples-dev/policiesGetByCustomerSample.js.map +1 -0
  266. package/dist-esm/samples-dev/policiesUpdateCustomerSample.d.ts +2 -0
  267. package/dist-esm/samples-dev/policiesUpdateCustomerSample.d.ts.map +1 -0
  268. package/dist-esm/samples-dev/policiesUpdateCustomerSample.js +32 -0
  269. package/dist-esm/samples-dev/policiesUpdateCustomerSample.js.map +1 -0
  270. package/dist-esm/samples-dev/policiesUpdateSample.d.ts +2 -0
  271. package/dist-esm/samples-dev/policiesUpdateSample.d.ts.map +1 -0
  272. package/dist-esm/samples-dev/policiesUpdateSample.js +36 -0
  273. package/dist-esm/samples-dev/policiesUpdateSample.js.map +1 -0
  274. package/dist-esm/samples-dev/productsGetSample.d.ts +2 -0
  275. package/dist-esm/samples-dev/productsGetSample.d.ts.map +1 -0
  276. package/dist-esm/samples-dev/productsGetSample.js +31 -0
  277. package/dist-esm/samples-dev/productsGetSample.js.map +1 -0
  278. package/dist-esm/samples-dev/productsListByBillingAccountSample.d.ts +2 -0
  279. package/dist-esm/samples-dev/productsListByBillingAccountSample.d.ts.map +1 -0
  280. package/dist-esm/samples-dev/productsListByBillingAccountSample.js +44 -0
  281. package/dist-esm/samples-dev/productsListByBillingAccountSample.js.map +1 -0
  282. package/dist-esm/samples-dev/productsListByBillingProfileSample.d.ts +2 -0
  283. package/dist-esm/samples-dev/productsListByBillingProfileSample.d.ts.map +1 -0
  284. package/dist-esm/samples-dev/productsListByBillingProfileSample.js +45 -0
  285. package/dist-esm/samples-dev/productsListByBillingProfileSample.js.map +1 -0
  286. package/dist-esm/samples-dev/productsListByCustomerSample.d.ts +2 -0
  287. package/dist-esm/samples-dev/productsListByCustomerSample.d.ts.map +1 -0
  288. package/dist-esm/samples-dev/productsListByCustomerSample.js +45 -0
  289. package/dist-esm/samples-dev/productsListByCustomerSample.js.map +1 -0
  290. package/dist-esm/samples-dev/productsListByInvoiceSectionSample.d.ts +2 -0
  291. package/dist-esm/samples-dev/productsListByInvoiceSectionSample.d.ts.map +1 -0
  292. package/dist-esm/samples-dev/productsListByInvoiceSectionSample.js +46 -0
  293. package/dist-esm/samples-dev/productsListByInvoiceSectionSample.js.map +1 -0
  294. package/dist-esm/samples-dev/productsMoveSample.d.ts +2 -0
  295. package/dist-esm/samples-dev/productsMoveSample.d.ts.map +1 -0
  296. package/dist-esm/samples-dev/productsMoveSample.js +34 -0
  297. package/dist-esm/samples-dev/productsMoveSample.js.map +1 -0
  298. package/dist-esm/samples-dev/productsUpdateSample.d.ts +2 -0
  299. package/dist-esm/samples-dev/productsUpdateSample.d.ts.map +1 -0
  300. package/dist-esm/samples-dev/productsUpdateSample.js +32 -0
  301. package/dist-esm/samples-dev/productsUpdateSample.js.map +1 -0
  302. package/dist-esm/samples-dev/productsValidateMoveSample.d.ts +2 -0
  303. package/dist-esm/samples-dev/productsValidateMoveSample.d.ts.map +1 -0
  304. package/dist-esm/samples-dev/productsValidateMoveSample.js +55 -0
  305. package/dist-esm/samples-dev/productsValidateMoveSample.js.map +1 -0
  306. package/dist-esm/samples-dev/reservationsListByBillingAccountSample.d.ts +2 -0
  307. package/dist-esm/samples-dev/reservationsListByBillingAccountSample.d.ts.map +1 -0
  308. package/dist-esm/samples-dev/reservationsListByBillingAccountSample.js +52 -0
  309. package/dist-esm/samples-dev/reservationsListByBillingAccountSample.js.map +1 -0
  310. package/dist-esm/samples-dev/reservationsListByBillingProfileSample.d.ts +2 -0
  311. package/dist-esm/samples-dev/reservationsListByBillingProfileSample.d.ts.map +1 -0
  312. package/dist-esm/samples-dev/reservationsListByBillingProfileSample.js +53 -0
  313. package/dist-esm/samples-dev/reservationsListByBillingProfileSample.js.map +1 -0
  314. package/dist-esm/samples-dev/transactionsListByInvoiceSample.d.ts +2 -0
  315. package/dist-esm/samples-dev/transactionsListByInvoiceSample.d.ts.map +1 -0
  316. package/dist-esm/samples-dev/transactionsListByInvoiceSample.js +45 -0
  317. package/dist-esm/samples-dev/transactionsListByInvoiceSample.js.map +1 -0
  318. package/dist-esm/src/billingManagementClient.d.ts.map +1 -1
  319. package/dist-esm/src/billingManagementClient.js +25 -6
  320. package/dist-esm/src/billingManagementClient.js.map +1 -1
  321. package/dist-esm/src/index.d.ts +1 -0
  322. package/dist-esm/src/index.d.ts.map +1 -1
  323. package/dist-esm/src/index.js +1 -0
  324. package/dist-esm/src/index.js.map +1 -1
  325. package/dist-esm/src/models/index.d.ts +168 -40
  326. package/dist-esm/src/models/index.d.ts.map +1 -1
  327. package/dist-esm/src/models/index.js +128 -0
  328. package/dist-esm/src/models/index.js.map +1 -1
  329. package/dist-esm/src/operations/agreements.d.ts.map +1 -1
  330. package/dist-esm/src/operations/agreements.js +19 -7
  331. package/dist-esm/src/operations/agreements.js.map +1 -1
  332. package/dist-esm/src/operations/billingAccounts.d.ts.map +1 -1
  333. package/dist-esm/src/operations/billingAccounts.js +37 -14
  334. package/dist-esm/src/operations/billingAccounts.js.map +1 -1
  335. package/dist-esm/src/operations/billingPeriods.d.ts.map +1 -1
  336. package/dist-esm/src/operations/billingPeriods.js +19 -7
  337. package/dist-esm/src/operations/billingPeriods.js.map +1 -1
  338. package/dist-esm/src/operations/billingPermissions.d.ts.map +1 -1
  339. package/dist-esm/src/operations/billingPermissions.js +73 -28
  340. package/dist-esm/src/operations/billingPermissions.js.map +1 -1
  341. package/dist-esm/src/operations/billingProfiles.d.ts.map +1 -1
  342. package/dist-esm/src/operations/billingProfiles.js +19 -7
  343. package/dist-esm/src/operations/billingProfiles.js.map +1 -1
  344. package/dist-esm/src/operations/billingRoleAssignments.d.ts.map +1 -1
  345. package/dist-esm/src/operations/billingRoleAssignments.js +55 -21
  346. package/dist-esm/src/operations/billingRoleAssignments.js.map +1 -1
  347. package/dist-esm/src/operations/billingRoleDefinitions.d.ts.map +1 -1
  348. package/dist-esm/src/operations/billingRoleDefinitions.js +55 -21
  349. package/dist-esm/src/operations/billingRoleDefinitions.js.map +1 -1
  350. package/dist-esm/src/operations/billingSubscriptions.d.ts.map +1 -1
  351. package/dist-esm/src/operations/billingSubscriptions.js +73 -28
  352. package/dist-esm/src/operations/billingSubscriptions.js.map +1 -1
  353. package/dist-esm/src/operations/customers.d.ts.map +1 -1
  354. package/dist-esm/src/operations/customers.js +37 -14
  355. package/dist-esm/src/operations/customers.js.map +1 -1
  356. package/dist-esm/src/operations/enrollmentAccounts.d.ts.map +1 -1
  357. package/dist-esm/src/operations/enrollmentAccounts.js +19 -7
  358. package/dist-esm/src/operations/enrollmentAccounts.js.map +1 -1
  359. package/dist-esm/src/operations/instructions.d.ts.map +1 -1
  360. package/dist-esm/src/operations/instructions.js +19 -7
  361. package/dist-esm/src/operations/instructions.js.map +1 -1
  362. package/dist-esm/src/operations/invoiceSections.d.ts.map +1 -1
  363. package/dist-esm/src/operations/invoiceSections.js +19 -7
  364. package/dist-esm/src/operations/invoiceSections.js.map +1 -1
  365. package/dist-esm/src/operations/invoices.d.ts.map +1 -1
  366. package/dist-esm/src/operations/invoices.js +55 -21
  367. package/dist-esm/src/operations/invoices.js.map +1 -1
  368. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  369. package/dist-esm/src/operations/operations.js +19 -7
  370. package/dist-esm/src/operations/operations.js.map +1 -1
  371. package/dist-esm/src/operations/products.d.ts.map +1 -1
  372. package/dist-esm/src/operations/products.js +73 -28
  373. package/dist-esm/src/operations/products.js.map +1 -1
  374. package/dist-esm/src/operations/reservations.d.ts.map +1 -1
  375. package/dist-esm/src/operations/reservations.js +37 -14
  376. package/dist-esm/src/operations/reservations.js.map +1 -1
  377. package/dist-esm/src/operations/transactions.d.ts.map +1 -1
  378. package/dist-esm/src/operations/transactions.js +19 -7
  379. package/dist-esm/src/operations/transactions.js.map +1 -1
  380. package/dist-esm/src/pagingHelper.d.ts +13 -0
  381. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  382. package/dist-esm/src/pagingHelper.js +32 -0
  383. package/dist-esm/src/pagingHelper.js.map +1 -0
  384. package/dist-esm/test/sampleTest.js +11 -13
  385. package/dist-esm/test/sampleTest.js.map +1 -1
  386. package/package.json +22 -10
  387. package/review/arm-billing.api.md +134 -259
  388. package/src/billingManagementClient.ts +35 -5
  389. package/src/index.ts +1 -0
  390. package/src/models/index.ts +168 -40
  391. package/src/operations/agreements.ts +25 -8
  392. package/src/operations/billingAccounts.ts +46 -20
  393. package/src/operations/billingPeriods.ts +21 -8
  394. package/src/operations/billingPermissions.ts +101 -45
  395. package/src/operations/billingProfiles.ts +25 -8
  396. package/src/operations/billingRoleAssignments.ts +77 -34
  397. package/src/operations/billingRoleDefinitions.ts +77 -34
  398. package/src/operations/billingSubscriptions.ts +101 -45
  399. package/src/operations/customers.ts +50 -20
  400. package/src/operations/enrollmentAccounts.ts +21 -8
  401. package/src/operations/instructions.ts +26 -12
  402. package/src/operations/invoiceSections.ts +26 -12
  403. package/src/operations/invoices.ts +80 -40
  404. package/src/operations/operations.ts +21 -8
  405. package/src/operations/products.ts +101 -45
  406. package/src/operations/reservations.ts +50 -20
  407. package/src/operations/transactions.ts +26 -12
  408. package/src/pagingHelper.ts +39 -0
  409. package/tsconfig.json +8 -2
  410. package/types/arm-billing.d.ts +177 -40
@@ -0,0 +1,44 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the billing permissions the caller has on a billing account.
15
+ *
16
+ * @summary Lists the billing permissions the caller has on a billing account.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json
18
+ */
19
+ function billingAccountPermissionsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const billingAccountName = "{billingAccountName}";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BillingManagementClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.billingPermissions.listByBillingAccount(billingAccountName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ billingAccountPermissionsList().catch(console.error);
44
+ //# sourceMappingURL=billingPermissionsListByBillingAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByBillingAccountSample.js","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByBillingAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CACnE,kBAAkB,CACnB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingPermissionsListByBillingProfileSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByBillingProfileSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByBillingProfileSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the billing permissions the caller has on a billing profile.
15
+ *
16
+ * @summary Lists the billing permissions the caller has on a billing profile.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json
18
+ */
19
+ function billingProfilePermissionsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const billingAccountName = "{billingAccountName}";
24
+ const billingProfileName = "{billingProfileName}";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BillingManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.billingPermissions.listByBillingProfile(billingAccountName, billingProfileName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ billingProfilePermissionsList().catch(console.error);
45
+ //# sourceMappingURL=billingPermissionsListByBillingProfileSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByBillingProfileSample.js","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByBillingProfileSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CACnE,kBAAkB,EAClB,kBAAkB,CACnB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingPermissionsListByCustomerSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByCustomerSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByCustomerSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the billing permissions the caller has for a customer.
15
+ *
16
+ * @summary Lists the billing permissions the caller has for a customer.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json
18
+ */
19
+ function billingProfilePermissionsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const billingAccountName = "{billingAccountName}";
24
+ const customerName = "{customerName}";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BillingManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.billingPermissions.listByCustomer(billingAccountName, customerName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ billingProfilePermissionsList().catch(console.error);
45
+ //# sourceMappingURL=billingPermissionsListByCustomerSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByCustomerSample.js","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByCustomerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,cAAc,CAC7D,kBAAkB,EAClB,YAAY,CACb,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingPermissionsListByInvoiceSectionsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByInvoiceSectionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByInvoiceSectionsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the billing permissions the caller has on an invoice section.
15
+ *
16
+ * @summary Lists the billing permissions the caller has on an invoice section.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json
18
+ */
19
+ function invoiceSectionPermissionsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const billingAccountName = "{billingAccountName}";
24
+ const billingProfileName = "{billingProfileName}";
25
+ const invoiceSectionName = "{invoiceSectionName}";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new BillingManagementClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.billingPermissions.listByInvoiceSections(billingAccountName, billingProfileName, invoiceSectionName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ invoiceSectionPermissionsList().catch(console.error);
46
+ //# sourceMappingURL=billingPermissionsListByInvoiceSectionsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPermissionsListByInvoiceSectionsSample.js","sourceRoot":"","sources":["../../samples-dev/billingPermissionsListByInvoiceSectionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,qBAAqB,CACpE,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,CACnB,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingProfilesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingProfilesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
15
+ *
16
+ * @summary Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutBillingProfile.json
18
+ */
19
+ function createBillingProfile() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const billingAccountName = "{billingAccountName}";
23
+ const billingProfileName = "{billingProfileName}";
24
+ const parameters = {
25
+ billTo: {
26
+ addressLine1: "Test Address 1",
27
+ city: "Redmond",
28
+ country: "US",
29
+ firstName: "Test",
30
+ lastName: "User",
31
+ postalCode: "12345",
32
+ region: "WA"
33
+ },
34
+ displayName: "Finance",
35
+ enabledAzurePlans: [{ skuId: "0001" }, { skuId: "0002" }],
36
+ invoiceEmailOptIn: true,
37
+ poNumber: "ABC12345"
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new BillingManagementClient(credential, subscriptionId);
41
+ const result = yield client.billingProfiles.beginCreateOrUpdateAndWait(billingAccountName, billingProfileName, parameters);
42
+ console.log(result);
43
+ });
44
+ }
45
+ createBillingProfile().catch(console.error);
46
+ //# sourceMappingURL=billingProfilesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/billingProfilesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAkB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAmB;YACjC,MAAM,EAAE;gBACN,YAAY,EAAE,gBAAgB;gBAC9B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,IAAI;aACb;YACD,WAAW,EAAE,SAAS;YACtB,iBAAiB,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;YACzD,iBAAiB,EAAE,IAAI;YACvB,QAAQ,EAAE,UAAU;SACrB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0BAA0B,CACpE,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingProfilesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingProfilesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
15
+ *
16
+ * @summary Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json
18
+ */
19
+ function billingProfile() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const billingAccountName = "{billingAccountName}";
23
+ const billingProfileName = "{billingProfileName}";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BillingManagementClient(credential, subscriptionId);
26
+ const result = yield client.billingProfiles.get(billingAccountName, billingProfileName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ billingProfile().catch(console.error);
31
+ /**
32
+ * This sample demonstrates how to Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
33
+ *
34
+ * @summary Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
35
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json
36
+ */
37
+ function billingProfileWithExpand() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
40
+ const billingAccountName = "{billingAccountName}";
41
+ const billingProfileName = "{billingProfileName}";
42
+ const expand = "invoiceSections";
43
+ const options = { expand };
44
+ const credential = new DefaultAzureCredential();
45
+ const client = new BillingManagementClient(credential, subscriptionId);
46
+ const result = yield client.billingProfiles.get(billingAccountName, billingProfileName, options);
47
+ console.log(result);
48
+ });
49
+ }
50
+ billingProfileWithExpand().catch(console.error);
51
+ //# sourceMappingURL=billingProfilesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesGetSample.js","sourceRoot":"","sources":["../../samples-dev/billingProfilesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,kBAAkB,EAClB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtC;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,MAAM,OAAO,GAAqC,EAAE,MAAM,EAAE,CAAC;QAC7D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingProfilesListByBillingAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesListByBillingAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingProfilesListByBillingAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,77 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
15
+ *
16
+ * @summary Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json
18
+ */
19
+ function billingProfilesListByBillingAccount() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const billingAccountName = "{billingAccountName}";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BillingManagementClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.billingProfiles.listByBillingAccount(billingAccountName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ billingProfilesListByBillingAccount().catch(console.error);
44
+ /**
45
+ * This sample demonstrates how to Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
46
+ *
47
+ * @summary Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
48
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json
49
+ */
50
+ function billingProfilesListWithExpand() {
51
+ var e_2, _a;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
54
+ const billingAccountName = "{billingAccountName}";
55
+ const expand = "invoiceSections";
56
+ const options = { expand };
57
+ const credential = new DefaultAzureCredential();
58
+ const client = new BillingManagementClient(credential, subscriptionId);
59
+ const resArray = new Array();
60
+ try {
61
+ for (var _b = __asyncValues(client.billingProfiles.listByBillingAccount(billingAccountName, options)), _c; _c = yield _b.next(), !_c.done;) {
62
+ let item = _c.value;
63
+ resArray.push(item);
64
+ }
65
+ }
66
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
67
+ finally {
68
+ try {
69
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
70
+ }
71
+ finally { if (e_2) throw e_2.error; }
72
+ }
73
+ console.log(resArray);
74
+ });
75
+ }
76
+ billingProfilesListWithExpand().catch(console.error);
77
+ //# sourceMappingURL=billingProfilesListByBillingAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingProfilesListByBillingAccountSample.js","sourceRoot":"","sources":["../../samples-dev/billingProfilesListByBillingAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mCAAmC;;;QAChD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,oBAAoB,CAChE,kBAAkB,CACnB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,MAAM,OAAO,GAAsD,EAAE,MAAM,EAAE,CAAC;QAC9E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,oBAAoB,CAChE,kBAAkB,EAClB,OAAO,CACR,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingPropertyGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPropertyGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingPropertyGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.
15
+ *
16
+ * @summary Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProperty.json
18
+ */
19
+ function billingProperty() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscriptionId}";
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new BillingManagementClient(credential, subscriptionId);
24
+ const result = yield client.billingPropertyOperations.get();
25
+ console.log(result);
26
+ });
27
+ }
28
+ billingProperty().catch(console.error);
29
+ //# sourceMappingURL=billingPropertyGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPropertyGetSample.js","sourceRoot":"","sources":["../../samples-dev/billingPropertyGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,GAAG,EAAE,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingPropertyUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPropertyUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingPropertyUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
15
+ *
16
+ * @summary Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingProperty.json
18
+ */
19
+ function updateBillingProperty() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscriptionId}";
22
+ const parameters = { costCenter: "1010" };
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new BillingManagementClient(credential, subscriptionId);
25
+ const result = yield client.billingPropertyOperations.update(parameters);
26
+ console.log(result);
27
+ });
28
+ }
29
+ updateBillingProperty().catch(console.error);
30
+ //# sourceMappingURL=billingPropertyUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingPropertyUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/billingPropertyUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAmB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,UAAU,GAAoB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingRoleAssignmentsDeleteByBillingAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingRoleAssignmentsDeleteByBillingAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
15
+ *
16
+ * @summary Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentDelete.json
18
+ */
19
+ function billingAccountRoleAssignmentDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const billingAccountName = "{billingAccountName}";
23
+ const billingRoleAssignmentName = "{billingRoleAssignmentName}";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BillingManagementClient(credential, subscriptionId);
26
+ const result = yield client.billingRoleAssignments.deleteByBillingAccount(billingAccountName, billingRoleAssignmentName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ billingAccountRoleAssignmentDelete().catch(console.error);
31
+ //# sourceMappingURL=billingRoleAssignmentsDeleteByBillingAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingRoleAssignmentsDeleteByBillingAccountSample.js","sourceRoot":"","sources":["../../samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,yBAAyB,GAAG,6BAA6B,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,sBAAsB,CACvE,kBAAkB,EAClB,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingRoleAssignmentsDeleteByBillingProfileSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingRoleAssignmentsDeleteByBillingProfileSample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BillingManagementClient } from "@azure/arm-billing";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
15
+ *
16
+ * @summary Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
17
+ * x-ms-original-file: specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentDelete.json
18
+ */
19
+ function billingProfileRoleAssignmentDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const billingAccountName = "{billingAccountName}";
23
+ const billingProfileName = "{billingProfileName}";
24
+ const billingRoleAssignmentName = "{billingRoleAssignmentName}";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BillingManagementClient(credential, subscriptionId);
27
+ const result = yield client.billingRoleAssignments.deleteByBillingProfile(billingAccountName, billingProfileName, billingRoleAssignmentName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ billingProfileRoleAssignmentDelete().catch(console.error);
32
+ //# sourceMappingURL=billingRoleAssignmentsDeleteByBillingProfileSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingRoleAssignmentsDeleteByBillingProfileSample.js","sourceRoot":"","sources":["../../samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;QAClD,MAAM,yBAAyB,GAAG,6BAA6B,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,sBAAsB,CACvE,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billingRoleAssignmentsDeleteByInvoiceSectionSample.d.ts.map