@azure/arm-commerce 4.0.0-beta.2 → 4.0.0-beta.4

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 (312) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +31 -25
  3. package/dist/browser/api/index.d.ts +3 -0
  4. package/dist/browser/api/index.js +4 -0
  5. package/dist/browser/api/index.js.map +1 -0
  6. package/dist/browser/api/rateCard/index.d.ts +3 -0
  7. package/dist/browser/api/rateCard/index.js +4 -0
  8. package/dist/browser/api/rateCard/index.js.map +1 -0
  9. package/dist/browser/api/rateCard/operations.d.ts +9 -0
  10. package/dist/browser/api/rateCard/operations.js +33 -0
  11. package/dist/browser/api/rateCard/operations.js.map +1 -0
  12. package/dist/browser/api/rateCard/options.d.ts +5 -0
  13. package/dist/browser/api/rateCard/options.js +4 -0
  14. package/dist/browser/api/rateCard/options.js.map +1 -0
  15. package/dist/browser/api/usageAggregates/index.d.ts +3 -0
  16. package/dist/browser/api/usageAggregates/index.js +4 -0
  17. package/dist/browser/api/usageAggregates/index.js.map +1 -0
  18. package/dist/browser/api/usageAggregates/operations.d.ts +10 -0
  19. package/dist/browser/api/usageAggregates/operations.js +47 -0
  20. package/dist/browser/api/usageAggregates/operations.js.map +1 -0
  21. package/dist/browser/api/usageAggregates/options.d.ts +12 -0
  22. package/dist/browser/api/usageAggregates/options.js +4 -0
  23. package/dist/browser/api/usageAggregates/options.js.map +1 -0
  24. package/dist/browser/api/usageManagementContext.d.ts +20 -0
  25. package/dist/browser/api/usageManagementContext.js +23 -0
  26. package/dist/browser/api/usageManagementContext.js.map +1 -0
  27. package/dist/browser/classic/index.d.ts +3 -0
  28. package/dist/browser/classic/index.js +4 -0
  29. package/dist/browser/classic/index.js.map +1 -0
  30. package/dist/browser/classic/rateCard/index.d.ts +10 -0
  31. package/dist/browser/classic/rateCard/index.js +14 -0
  32. package/dist/browser/classic/rateCard/index.js.map +1 -0
  33. package/dist/browser/classic/usageAggregates/index.d.ts +11 -0
  34. package/dist/browser/classic/usageAggregates/index.js +14 -0
  35. package/dist/browser/classic/usageAggregates/index.js.map +1 -0
  36. package/dist/browser/index.d.ts +14 -0
  37. package/dist/browser/index.js +7 -0
  38. package/dist/browser/index.js.map +1 -0
  39. package/dist/browser/logger.d.ts +2 -0
  40. package/dist/browser/logger.js +5 -0
  41. package/dist/browser/logger.js.map +1 -0
  42. package/dist/browser/models/index.d.ts +3 -0
  43. package/dist/browser/models/index.js +4 -0
  44. package/dist/browser/models/index.js.map +1 -0
  45. package/dist/browser/models/models.d.ts +193 -0
  46. package/dist/browser/models/models.js +169 -0
  47. package/dist/browser/models/models.js.map +1 -0
  48. package/dist/browser/package.json +3 -0
  49. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  50. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  51. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  52. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  53. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  54. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  55. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  56. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  57. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  58. package/dist/browser/usageManagementClient.d.ts +17 -0
  59. package/dist/browser/usageManagementClient.js +32 -0
  60. package/dist/browser/usageManagementClient.js.map +1 -0
  61. package/dist/commonjs/api/index.d.ts +3 -0
  62. package/dist/commonjs/api/index.js +28 -0
  63. package/dist/commonjs/api/index.js.map +7 -0
  64. package/dist/commonjs/api/rateCard/index.d.ts +3 -0
  65. package/dist/commonjs/api/rateCard/index.js +28 -0
  66. package/dist/commonjs/api/rateCard/index.js.map +7 -0
  67. package/dist/commonjs/api/rateCard/operations.d.ts +9 -0
  68. package/dist/commonjs/api/rateCard/operations.js +64 -0
  69. package/dist/commonjs/api/rateCard/operations.js.map +7 -0
  70. package/dist/commonjs/api/rateCard/options.d.ts +5 -0
  71. package/dist/commonjs/api/rateCard/options.js +16 -0
  72. package/dist/commonjs/api/rateCard/options.js.map +7 -0
  73. package/dist/commonjs/api/usageAggregates/index.d.ts +3 -0
  74. package/dist/commonjs/api/usageAggregates/index.js +28 -0
  75. package/dist/commonjs/api/usageAggregates/index.js.map +7 -0
  76. package/dist/commonjs/api/usageAggregates/operations.d.ts +10 -0
  77. package/dist/commonjs/api/usageAggregates/operations.js +83 -0
  78. package/dist/commonjs/api/usageAggregates/operations.js.map +7 -0
  79. package/dist/commonjs/api/usageAggregates/options.d.ts +12 -0
  80. package/dist/commonjs/api/usageAggregates/options.js +16 -0
  81. package/dist/commonjs/api/usageAggregates/options.js.map +7 -0
  82. package/dist/commonjs/api/usageManagementContext.d.ts +20 -0
  83. package/dist/commonjs/api/usageManagementContext.js +45 -0
  84. package/dist/commonjs/api/usageManagementContext.js.map +7 -0
  85. package/dist/commonjs/classic/index.d.ts +3 -0
  86. package/dist/commonjs/classic/index.js +16 -0
  87. package/dist/commonjs/classic/index.js.map +7 -0
  88. package/dist/commonjs/classic/rateCard/index.d.ts +10 -0
  89. package/dist/commonjs/classic/rateCard/index.js +38 -0
  90. package/dist/commonjs/classic/rateCard/index.js.map +7 -0
  91. package/dist/commonjs/classic/usageAggregates/index.d.ts +11 -0
  92. package/dist/commonjs/classic/usageAggregates/index.js +38 -0
  93. package/dist/commonjs/classic/usageAggregates/index.js.map +7 -0
  94. package/dist/commonjs/index.d.ts +14 -0
  95. package/dist/commonjs/index.js +34 -0
  96. package/dist/commonjs/index.js.map +7 -0
  97. package/dist/commonjs/logger.d.ts +2 -0
  98. package/dist/commonjs/logger.js +29 -0
  99. package/dist/commonjs/logger.js.map +7 -0
  100. package/dist/commonjs/models/index.d.ts +3 -0
  101. package/dist/commonjs/models/index.js +28 -0
  102. package/dist/commonjs/models/index.js.map +7 -0
  103. package/dist/commonjs/models/models.d.ts +193 -0
  104. package/dist/commonjs/models/models.js +209 -0
  105. package/dist/commonjs/models/models.js.map +7 -0
  106. package/dist/commonjs/package.json +3 -0
  107. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  108. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  109. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  110. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  111. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  112. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  113. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  114. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  115. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  116. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  117. package/dist/commonjs/usageManagementClient.d.ts +17 -0
  118. package/dist/commonjs/usageManagementClient.js +54 -0
  119. package/dist/commonjs/usageManagementClient.js.map +7 -0
  120. package/dist/esm/api/index.d.ts +3 -0
  121. package/dist/esm/api/index.js +4 -0
  122. package/dist/esm/api/index.js.map +1 -0
  123. package/dist/esm/api/rateCard/index.d.ts +3 -0
  124. package/dist/esm/api/rateCard/index.js +4 -0
  125. package/dist/esm/api/rateCard/index.js.map +1 -0
  126. package/dist/esm/api/rateCard/operations.d.ts +9 -0
  127. package/dist/esm/api/rateCard/operations.js +33 -0
  128. package/dist/esm/api/rateCard/operations.js.map +1 -0
  129. package/dist/esm/api/rateCard/options.d.ts +5 -0
  130. package/dist/esm/api/rateCard/options.js +4 -0
  131. package/dist/esm/api/rateCard/options.js.map +1 -0
  132. package/dist/esm/api/usageAggregates/index.d.ts +3 -0
  133. package/dist/esm/api/usageAggregates/index.js +4 -0
  134. package/dist/esm/api/usageAggregates/index.js.map +1 -0
  135. package/dist/esm/api/usageAggregates/operations.d.ts +10 -0
  136. package/dist/esm/api/usageAggregates/operations.js +47 -0
  137. package/dist/esm/api/usageAggregates/operations.js.map +1 -0
  138. package/dist/esm/api/usageAggregates/options.d.ts +12 -0
  139. package/dist/esm/api/usageAggregates/options.js +4 -0
  140. package/dist/esm/api/usageAggregates/options.js.map +1 -0
  141. package/dist/esm/api/usageManagementContext.d.ts +20 -0
  142. package/dist/esm/api/usageManagementContext.js +23 -0
  143. package/dist/esm/api/usageManagementContext.js.map +1 -0
  144. package/dist/esm/classic/index.d.ts +3 -0
  145. package/dist/esm/classic/index.js +4 -0
  146. package/dist/esm/classic/index.js.map +1 -0
  147. package/dist/esm/classic/rateCard/index.d.ts +10 -0
  148. package/dist/esm/classic/rateCard/index.js +14 -0
  149. package/dist/esm/classic/rateCard/index.js.map +1 -0
  150. package/dist/esm/classic/usageAggregates/index.d.ts +11 -0
  151. package/dist/esm/classic/usageAggregates/index.js +14 -0
  152. package/dist/esm/classic/usageAggregates/index.js.map +1 -0
  153. package/dist/esm/index.d.ts +14 -0
  154. package/dist/esm/index.js +7 -0
  155. package/dist/esm/index.js.map +1 -0
  156. package/dist/esm/logger.d.ts +2 -0
  157. package/dist/esm/logger.js +5 -0
  158. package/dist/esm/logger.js.map +1 -0
  159. package/dist/esm/models/index.d.ts +3 -0
  160. package/dist/esm/models/index.js +4 -0
  161. package/dist/esm/models/index.js.map +1 -0
  162. package/dist/esm/models/models.d.ts +193 -0
  163. package/dist/esm/models/models.js +169 -0
  164. package/dist/esm/models/models.js.map +1 -0
  165. package/dist/esm/package.json +3 -0
  166. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  167. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  168. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  169. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  170. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  171. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  172. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  173. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  174. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  175. package/dist/esm/usageManagementClient.d.ts +17 -0
  176. package/dist/esm/usageManagementClient.js +32 -0
  177. package/dist/esm/usageManagementClient.js.map +1 -0
  178. package/dist/react-native/api/index.d.ts +3 -0
  179. package/dist/react-native/api/index.js +4 -0
  180. package/dist/react-native/api/index.js.map +1 -0
  181. package/dist/react-native/api/rateCard/index.d.ts +3 -0
  182. package/dist/react-native/api/rateCard/index.js +4 -0
  183. package/dist/react-native/api/rateCard/index.js.map +1 -0
  184. package/dist/react-native/api/rateCard/operations.d.ts +9 -0
  185. package/dist/react-native/api/rateCard/operations.js +33 -0
  186. package/dist/react-native/api/rateCard/operations.js.map +1 -0
  187. package/dist/react-native/api/rateCard/options.d.ts +5 -0
  188. package/dist/react-native/api/rateCard/options.js +4 -0
  189. package/dist/react-native/api/rateCard/options.js.map +1 -0
  190. package/dist/react-native/api/usageAggregates/index.d.ts +3 -0
  191. package/dist/react-native/api/usageAggregates/index.js +4 -0
  192. package/dist/react-native/api/usageAggregates/index.js.map +1 -0
  193. package/dist/react-native/api/usageAggregates/operations.d.ts +10 -0
  194. package/dist/react-native/api/usageAggregates/operations.js +47 -0
  195. package/dist/react-native/api/usageAggregates/operations.js.map +1 -0
  196. package/dist/react-native/api/usageAggregates/options.d.ts +12 -0
  197. package/dist/react-native/api/usageAggregates/options.js +4 -0
  198. package/dist/react-native/api/usageAggregates/options.js.map +1 -0
  199. package/dist/react-native/api/usageManagementContext.d.ts +20 -0
  200. package/dist/react-native/api/usageManagementContext.js +23 -0
  201. package/dist/react-native/api/usageManagementContext.js.map +1 -0
  202. package/dist/react-native/classic/index.d.ts +3 -0
  203. package/dist/react-native/classic/index.js +4 -0
  204. package/dist/react-native/classic/index.js.map +1 -0
  205. package/dist/react-native/classic/rateCard/index.d.ts +10 -0
  206. package/dist/react-native/classic/rateCard/index.js +14 -0
  207. package/dist/react-native/classic/rateCard/index.js.map +1 -0
  208. package/dist/react-native/classic/usageAggregates/index.d.ts +11 -0
  209. package/dist/react-native/classic/usageAggregates/index.js +14 -0
  210. package/dist/react-native/classic/usageAggregates/index.js.map +1 -0
  211. package/dist/react-native/index.d.ts +14 -0
  212. package/dist/react-native/index.js +7 -0
  213. package/dist/react-native/index.js.map +1 -0
  214. package/dist/react-native/logger.d.ts +2 -0
  215. package/dist/react-native/logger.js +5 -0
  216. package/dist/react-native/logger.js.map +1 -0
  217. package/dist/react-native/models/index.d.ts +3 -0
  218. package/dist/react-native/models/index.js +4 -0
  219. package/dist/react-native/models/index.js.map +1 -0
  220. package/dist/react-native/models/models.d.ts +193 -0
  221. package/dist/react-native/models/models.js +169 -0
  222. package/dist/react-native/models/models.js.map +1 -0
  223. package/dist/react-native/package.json +3 -0
  224. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  225. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  226. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  227. package/dist/react-native/static-helpers/pagingHelpers.d.ts +74 -0
  228. package/dist/react-native/static-helpers/pagingHelpers.js +143 -0
  229. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  230. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  231. package/dist/react-native/static-helpers/urlTemplate.js +200 -0
  232. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  233. package/dist/react-native/usageManagementClient.d.ts +17 -0
  234. package/dist/react-native/usageManagementClient.js +32 -0
  235. package/dist/react-native/usageManagementClient.js.map +1 -0
  236. package/package.json +164 -83
  237. package/CHANGELOG.md +0 -11
  238. package/dist/index.js +0 -843
  239. package/dist/index.js.map +0 -1
  240. package/dist/index.min.js +0 -1
  241. package/dist/index.min.js.map +0 -1
  242. package/dist-esm/samples-dev/getRateCard.d.ts +0 -2
  243. package/dist-esm/samples-dev/getRateCard.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/getRateCard.js +0 -30
  245. package/dist-esm/samples-dev/getRateCard.js.map +0 -1
  246. package/dist-esm/samples-dev/rateCardGetSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/rateCardGetSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/rateCardGetSample.js +0 -30
  249. package/dist-esm/samples-dev/rateCardGetSample.js.map +0 -1
  250. package/dist-esm/src/index.d.ts +0 -5
  251. package/dist-esm/src/index.d.ts.map +0 -1
  252. package/dist-esm/src/index.js +0 -12
  253. package/dist-esm/src/index.js.map +0 -1
  254. package/dist-esm/src/models/index.d.ts +0 -178
  255. package/dist-esm/src/models/index.d.ts.map +0 -1
  256. package/dist-esm/src/models/index.js +0 -9
  257. package/dist-esm/src/models/index.js.map +0 -1
  258. package/dist-esm/src/models/mappers.d.ts +0 -19
  259. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  260. package/dist-esm/src/models/mappers.js +0 -433
  261. package/dist-esm/src/models/mappers.js.map +0 -1
  262. package/dist-esm/src/models/parameters.d.ts +0 -13
  263. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  264. package/dist-esm/src/models/parameters.js +0 -121
  265. package/dist-esm/src/models/parameters.js.map +0 -1
  266. package/dist-esm/src/operations/index.d.ts +0 -3
  267. package/dist-esm/src/operations/index.d.ts.map +0 -1
  268. package/dist-esm/src/operations/index.js +0 -10
  269. package/dist-esm/src/operations/index.js.map +0 -1
  270. package/dist-esm/src/operations/rateCard.d.ts +0 -27
  271. package/dist-esm/src/operations/rateCard.d.ts.map +0 -1
  272. package/dist-esm/src/operations/rateCard.js +0 -55
  273. package/dist-esm/src/operations/rateCard.js.map +0 -1
  274. package/dist-esm/src/operations/usageAggregates.d.ts +0 -38
  275. package/dist-esm/src/operations/usageAggregates.d.ts.map +0 -1
  276. package/dist-esm/src/operations/usageAggregates.js +0 -144
  277. package/dist-esm/src/operations/usageAggregates.js.map +0 -1
  278. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  279. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  280. package/dist-esm/src/operationsInterfaces/index.js +0 -10
  281. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  282. package/dist-esm/src/operationsInterfaces/rateCard.d.ts +0 -19
  283. package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +0 -1
  284. package/dist-esm/src/operationsInterfaces/rateCard.js +0 -9
  285. package/dist-esm/src/operationsInterfaces/rateCard.js.map +0 -1
  286. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts +0 -13
  287. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +0 -1
  288. package/dist-esm/src/operationsInterfaces/usageAggregates.js +0 -9
  289. package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +0 -1
  290. package/dist-esm/src/usageManagementClient.d.ts +0 -20
  291. package/dist-esm/src/usageManagementClient.d.ts.map +0 -1
  292. package/dist-esm/src/usageManagementClient.js +0 -54
  293. package/dist-esm/src/usageManagementClient.js.map +0 -1
  294. package/dist-esm/test/commerce_examples.d.ts +0 -4
  295. package/dist-esm/test/commerce_examples.d.ts.map +0 -1
  296. package/dist-esm/test/commerce_examples.js +0 -58
  297. package/dist-esm/test/commerce_examples.js.map +0 -1
  298. package/review/arm-commerce.api.md +0 -178
  299. package/rollup.config.js +0 -122
  300. package/src/index.ts +0 -12
  301. package/src/models/index.ts +0 -210
  302. package/src/models/mappers.ts +0 -460
  303. package/src/models/parameters.ts +0 -137
  304. package/src/operations/index.ts +0 -10
  305. package/src/operations/rateCard.ts +0 -69
  306. package/src/operations/usageAggregates.ts +0 -188
  307. package/src/operationsInterfaces/index.ts +0 -10
  308. package/src/operationsInterfaces/rateCard.ts +0 -30
  309. package/src/operationsInterfaces/usageAggregates.ts +0 -26
  310. package/src/usageManagementClient.ts +0 -79
  311. package/tsconfig.json +0 -33
  312. package/types/arm-commerce.d.ts +0 -247
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2022 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
package/README.md CHANGED
@@ -4,16 +4,18 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
4
4
 
5
5
 
6
6
 
7
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/commerce/arm-commerce) |
8
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-commerce) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-commerce?view=azure-node-preview) |
10
- [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/commerce/arm-commerce)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-commerce)
11
+ - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-commerce?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/commerce/arm-commerce/samples)
11
13
 
12
14
  ## Getting started
13
15
 
14
16
  ### Currently supported environments
15
17
 
16
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
18
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
17
19
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
20
 
19
21
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
@@ -35,7 +37,7 @@ npm install @azure/arm-commerce
35
37
  To create a client object to access the Azure UsageManagement API, you will need the `endpoint` of your Azure UsageManagement resource and a `credential`. The Azure UsageManagement client can use Azure Active Directory credentials to authenticate.
36
38
  You can find the endpoint for your Azure UsageManagement resource in the [Azure Portal][azure_portal].
37
39
 
38
- You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
40
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
39
41
 
40
42
  To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
41
43
 
@@ -44,24 +46,31 @@ npm install @azure/identity
44
46
  ```
45
47
 
46
48
  You will also need to **register a new AAD application and grant access to Azure UsageManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47
- Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
48
49
 
49
- For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
51
+
52
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
50
53
 
51
- ```javascript
52
- const { UsageManagementClient } = require("@azure/arm-commerce");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
54
+ ```ts snippet:ReadmeSampleCreateClient_Node
55
+ import { UsageManagementClient } from "@azure/arm-commerce";
56
+ import { DefaultAzureCredential } from "@azure/identity";
55
57
 
56
58
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
59
  const client = new UsageManagementClient(new DefaultAzureCredential(), subscriptionId);
60
+ ```
61
+
62
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
63
+
64
+ ```ts snippet:ReadmeSampleCreateClient_Browser
65
+ import { InteractiveBrowserCredential } from "@azure/identity";
66
+ import { UsageManagementClient } from "@azure/arm-commerce";
58
67
 
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new UsageManagementClient(credential, subscriptionId);
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
73
+ const client = new UsageManagementClient(credential, subscriptionId);
65
74
  ```
66
75
 
67
76
 
@@ -80,8 +89,9 @@ To use this client library in the browser, first you need to use a bundler. For
80
89
 
81
90
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
91
 
83
- ```javascript
84
- const { setLogLevel } = require("@azure/logger");
92
+ ```ts snippet:SetLogLevel
93
+ import { setLogLevel } from "@azure/logger";
94
+
85
95
  setLogLevel("info");
86
96
  ```
87
97
 
@@ -89,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
89
99
 
90
100
  ## Next steps
91
101
 
92
- Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
102
+ Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/commerce/arm-commerce/samples) directory for detailed examples on how to use this library.
93
103
 
94
104
  ## Contributing
95
105
 
@@ -99,10 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
99
109
 
100
110
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
101
111
 
102
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcommerce%2Farm-commerce%2FREADME.png)
103
-
104
- [azure_cli]: https://docs.microsoft.com/cli/azure
105
- [azure_sub]: https://azure.microsoft.com/free/
106
112
  [azure_sub]: https://azure.microsoft.com/free/
107
113
  [azure_portal]: https://portal.azure.com
108
114
  [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
@@ -0,0 +1,3 @@
1
+ export type { UsageManagementContext, UsageManagementClientOptionalParams, } from "./usageManagementContext.js";
2
+ export { createUsageManagement } from "./usageManagementContext.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createUsageManagement } from "./usageManagementContext.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n UsageManagementContext,\n UsageManagementClientOptionalParams,\n} from \"./usageManagementContext.js\";\nexport { createUsageManagement } from \"./usageManagementContext.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export { get } from "./operations.js";
2
+ export type { RateCardGetOptionalParams } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/rateCard/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { get } from \"./operations.js\";\nexport type { RateCardGetOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,9 @@
1
+ import type { UsageManagementContext as Client } from "../index.js";
2
+ import type { ResourceRateCardInfo } from "../../models/models.js";
3
+ import type { RateCardGetOptionalParams } from "./options.js";
4
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ export declare function _getSend(context: Client, filter: string, options?: RateCardGetOptionalParams): StreamableMethod;
6
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<ResourceRateCardInfo>;
7
+ /** Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. */
8
+ export declare function get(context: Client, filter: string, options?: RateCardGetOptionalParams): Promise<ResourceRateCardInfo>;
9
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,33 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, resourceRateCardInfoDeserializer, } from "../../models/models.js";
4
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
5
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
6
+ export function _getSend(context, filter, options = { requestOptions: {} }) {
7
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/rateCard{?api%2Dversion,%24filter}", {
8
+ subscriptionId: context.subscriptionId,
9
+ "api%2Dversion": context.apiVersion ?? "2015-06-01-preview",
10
+ "%24filter": filter,
11
+ }, {
12
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
13
+ });
14
+ return context.path(path).get({
15
+ ...operationOptionsToRequestParameters(options),
16
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
17
+ });
18
+ }
19
+ export async function _getDeserialize(result) {
20
+ const expectedStatuses = ["200"];
21
+ if (!expectedStatuses.includes(result.status)) {
22
+ const error = createRestError(result);
23
+ error.details = errorResponseDeserializer(result.body);
24
+ throw error;
25
+ }
26
+ return resourceRateCardInfoDeserializer(result.body);
27
+ }
28
+ /** Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. */
29
+ export async function get(context, filter, options = { requestOptions: {} }) {
30
+ const result = await _getSend(context, filter, options);
31
+ return _getDeserialize(result);
32
+ }
33
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/rateCard/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,MAAc,EACd,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,iGAAiG,EACjG;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;QAC3D,WAAW,EAAE,MAAM;KACpB,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,+lBAA+lB;AAC/lB,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,MAAc,EACd,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { UsageManagementContext as Client } from \"../index.js\";\nimport type { ResourceRateCardInfo } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n resourceRateCardInfoDeserializer,\n} from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { RateCardGetOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _getSend(\n context: Client,\n filter: string,\n options: RateCardGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/rateCard{?api%2Dversion,%24filter}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2015-06-01-preview\",\n \"%24filter\": filter,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceRateCardInfo> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return resourceRateCardInfoDeserializer(result.body);\n}\n\n/** Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. */\nexport async function get(\n context: Client,\n filter: string,\n options: RateCardGetOptionalParams = { requestOptions: {} },\n): Promise<ResourceRateCardInfo> {\n const result = await _getSend(context, filter, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface RateCardGetOptionalParams extends OperationOptions {
4
+ }
5
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/rateCard/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface RateCardGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { list } from "./operations.js";
2
+ export type { UsageAggregatesListOptionalParams } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { list } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/usageAggregates/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { UsageAggregatesListOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import type { UsageManagementContext as Client } from "../index.js";
2
+ import type { _UsageAggregationListResult, UsageAggregation } from "../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import type { UsageAggregatesListOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listSend(context: Client, reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams): StreamableMethod;
7
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_UsageAggregationListResult>;
8
+ /** Query aggregated Azure subscription consumption data for a date range. */
9
+ export declare function list(context: Client, reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams): PagedAsyncIterableIterator<UsageAggregation>;
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,47 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _usageAggregationListResultDeserializer, errorObjectResponseDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
7
+ export function _listSend(context, reportedStartTime, reportedEndTime, options = { requestOptions: {} }) {
8
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/usageAggregates{?api%2Dversion,reportedStartTime,reportedEndTime,showDetails,aggregationGranularity,continuationToken}", {
9
+ subscriptionId: context.subscriptionId,
10
+ "api%2Dversion": context.apiVersion ?? "2015-06-01-preview",
11
+ reportedStartTime: reportedStartTime.toISOString(),
12
+ reportedEndTime: reportedEndTime.toISOString(),
13
+ showDetails: options?.showDetails,
14
+ aggregationGranularity: options?.aggregationGranularity ?? "Daily",
15
+ continuationToken: options?.continuationToken,
16
+ }, {
17
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
18
+ });
19
+ return context.path(path).get({
20
+ ...operationOptionsToRequestParameters(options),
21
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
22
+ });
23
+ }
24
+ export async function _listDeserialize(result) {
25
+ const expectedStatuses = ["200"];
26
+ if (!expectedStatuses.includes(result.status)) {
27
+ const error = createRestError(result);
28
+ const statusCode = Number.parseInt(result.status);
29
+ if (statusCode === 202) {
30
+ error.details = errorObjectResponseDeserializer(result.body);
31
+ }
32
+ else {
33
+ error.details = errorObjectResponseDeserializer(result.body);
34
+ }
35
+ throw error;
36
+ }
37
+ return _usageAggregationListResultDeserializer(result.body);
38
+ }
39
+ /** Query aggregated Azure subscription consumption data for a date range. */
40
+ export function list(context, reportedStartTime, reportedEndTime, options = { requestOptions: {} }) {
41
+ return buildPagedAsyncIterator(context, () => _listSend(context, reportedStartTime, reportedEndTime, options), _listDeserialize, ["200"], {
42
+ itemName: "value",
43
+ nextLinkName: "nextLink",
44
+ apiVersion: context.apiVersion ?? "2015-06-01-preview",
45
+ });
46
+ }
47
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/usageAggregates/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,uCAAuC,EACvC,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,iBAAuB,EACvB,eAAqB,EACrB,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qLAAqL,EACrL;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;QAC3D,iBAAiB,EAAE,iBAAiB,CAAC,WAAW,EAAE;QAClD,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE;QAC9C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,sBAAsB,EAAE,OAAO,EAAE,sBAAsB,IAAI,OAAO;QAClE,iBAAiB,EAAE,OAAO,EAAE,iBAAiB;KAC9C,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,UAAU,KAAK,GAAG,EAAE,CAAC;YACvB,KAAK,CAAC,OAAO,GAAG,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,OAAO,GAAG,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,iBAAuB,EACvB,eAAqB,EACrB,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC,EACrE,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP;QACE,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KACvD,CACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { UsageManagementContext as Client } from \"../index.js\";\nimport type { _UsageAggregationListResult, UsageAggregation } from \"../../models/models.js\";\nimport {\n _usageAggregationListResultDeserializer,\n errorObjectResponseDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { UsageAggregatesListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n reportedStartTime: Date,\n reportedEndTime: Date,\n options: UsageAggregatesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/usageAggregates{?api%2Dversion,reportedStartTime,reportedEndTime,showDetails,aggregationGranularity,continuationToken}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2015-06-01-preview\",\n reportedStartTime: reportedStartTime.toISOString(),\n reportedEndTime: reportedEndTime.toISOString(),\n showDetails: options?.showDetails,\n aggregationGranularity: options?.aggregationGranularity ?? \"Daily\",\n continuationToken: options?.continuationToken,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_UsageAggregationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n const statusCode = Number.parseInt(result.status);\n if (statusCode === 202) {\n error.details = errorObjectResponseDeserializer(result.body);\n } else {\n error.details = errorObjectResponseDeserializer(result.body);\n }\n throw error;\n }\n\n return _usageAggregationListResultDeserializer(result.body);\n}\n\n/** Query aggregated Azure subscription consumption data for a date range. */\nexport function list(\n context: Client,\n reportedStartTime: Date,\n reportedEndTime: Date,\n options: UsageAggregatesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<UsageAggregation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, reportedStartTime, reportedEndTime, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2015-06-01-preview\",\n },\n );\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { AggregationGranularity } from "../../models/models.js";
2
+ import type { OperationOptions } from "@azure-rest/core-client";
3
+ /** Optional parameters. */
4
+ export interface UsageAggregatesListOptionalParams extends OperationOptions {
5
+ /** `True` returns usage data in instance-level detail, `false` causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime). */
6
+ showDetails?: boolean;
7
+ /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */
8
+ aggregationGranularity?: AggregationGranularity;
9
+ /** Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in. */
10
+ continuationToken?: string;
11
+ }
12
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/usageAggregates/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AggregationGranularity } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface UsageAggregatesListOptionalParams extends OperationOptions {\n /** `True` returns usage data in instance-level detail, `false` causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime). */\n showDetails?: boolean;\n /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */\n aggregationGranularity?: AggregationGranularity;\n /** Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in. */\n continuationToken?: string;\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
2
+ import type { Client, ClientOptions } from "@azure-rest/core-client";
3
+ import type { TokenCredential } from "@azure/core-auth";
4
+ export interface UsageManagementContext extends Client {
5
+ /** The ID of the target subscription. The value must be an UUID. */
6
+ subscriptionId: string;
7
+ /** The API version to use for this operation. */
8
+ /** Known values of {@link KnownVersions} that the service accepts. */
9
+ apiVersion?: string;
10
+ }
11
+ /** Optional parameters for the client. */
12
+ export interface UsageManagementClientOptionalParams extends ClientOptions {
13
+ /** The API version to use for this operation. */
14
+ /** Known values of {@link KnownVersions} that the service accepts. */
15
+ apiVersion?: string;
16
+ /** Specifies the Azure cloud environment for the client. */
17
+ cloudSetting?: AzureSupportedClouds;
18
+ }
19
+ export declare function createUsageManagement(credential: TokenCredential, subscriptionId: string, options?: UsageManagementClientOptionalParams): UsageManagementContext;
20
+ //# sourceMappingURL=usageManagementContext.d.ts.map
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ export function createUsageManagement(credential, subscriptionId, options = {}) {
7
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
8
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
9
+ const userAgentInfo = `azsdk-js-arm-commerce/4.0.0-beta.4`;
10
+ const userAgentPrefix = prefixFromOptions
11
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
12
+ : `azsdk-js-api ${userAgentInfo}`;
13
+ const { apiVersion: _, ...updatedOptions } = {
14
+ ...options,
15
+ userAgentOptions: { userAgentPrefix },
16
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
17
+ credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },
18
+ };
19
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
20
+ const apiVersion = options.apiVersion;
21
+ return { ...clientContext, apiVersion, subscriptionId };
22
+ }
23
+ //# sourceMappingURL=usageManagementContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageManagementContext.js","sourceRoot":"","sources":["../../../src/api/usageManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAoBpD,MAAM,UAAU,qBAAqB,CACnC,UAA2B,EAC3B,cAAsB,EACtB,UAA+C,EAAE;IAEjD,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,oCAAoC,CAAC;IAC3D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC,EAAE;KACpF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAA4B,CAAC;AACpF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\nexport interface UsageManagementContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface UsageManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\nexport function createUsageManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: UsageManagementClientOptionalParams = {},\n): UsageManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-commerce/4.0.0-beta.4`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as UsageManagementContext;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export type { RateCardOperations } from "./rateCard/index.js";
2
+ export type { UsageAggregatesOperations } from "./usageAggregates/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { RateCardOperations } from \"./rateCard/index.js\";\nexport type { UsageAggregatesOperations } from \"./usageAggregates/index.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import type { UsageManagementContext } from "../../api/usageManagementContext.js";
2
+ import type { RateCardGetOptionalParams } from "../../api/rateCard/options.js";
3
+ import type { ResourceRateCardInfo } from "../../models/models.js";
4
+ /** Interface representing a RateCard operations. */
5
+ export interface RateCardOperations {
6
+ /** Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. */
7
+ get: (filter: string, options?: RateCardGetOptionalParams) => Promise<ResourceRateCardInfo>;
8
+ }
9
+ export declare function _getRateCardOperations(context: UsageManagementContext): RateCardOperations;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { get } from "../../api/rateCard/operations.js";
4
+ function _getRateCard(context) {
5
+ return {
6
+ get: (filter, options) => get(context, filter, options),
7
+ };
8
+ }
9
+ export function _getRateCardOperations(context) {
10
+ return {
11
+ ..._getRateCard(context),
12
+ };
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/rateCard/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,GAAG,EAAE,MAAM,kCAAkC,CAAC;AAUvD,SAAS,YAAY,CAAC,OAA+B;IACnD,OAAO;QACL,GAAG,EAAE,CAAC,MAAc,EAAE,OAAmC,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;KAC5F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAA+B;IACpE,OAAO;QACL,GAAG,YAAY,CAAC,OAAO,CAAC;KACzB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { UsageManagementContext } from \"../../api/usageManagementContext.js\";\nimport { get } from \"../../api/rateCard/operations.js\";\nimport type { RateCardGetOptionalParams } from \"../../api/rateCard/options.js\";\nimport type { ResourceRateCardInfo } from \"../../models/models.js\";\n\n/** Interface representing a RateCard operations. */\nexport interface RateCardOperations {\n /** Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. */\n get: (filter: string, options?: RateCardGetOptionalParams) => Promise<ResourceRateCardInfo>;\n}\n\nfunction _getRateCard(context: UsageManagementContext) {\n return {\n get: (filter: string, options?: RateCardGetOptionalParams) => get(context, filter, options),\n };\n}\n\nexport function _getRateCardOperations(context: UsageManagementContext): RateCardOperations {\n return {\n ..._getRateCard(context),\n };\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import type { UsageManagementContext } from "../../api/usageManagementContext.js";
2
+ import type { UsageAggregatesListOptionalParams } from "../../api/usageAggregates/options.js";
3
+ import type { UsageAggregation } from "../../models/models.js";
4
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ /** Interface representing a UsageAggregates operations. */
6
+ export interface UsageAggregatesOperations {
7
+ /** Query aggregated Azure subscription consumption data for a date range. */
8
+ list: (reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams) => PagedAsyncIterableIterator<UsageAggregation>;
9
+ }
10
+ export declare function _getUsageAggregatesOperations(context: UsageManagementContext): UsageAggregatesOperations;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { list } from "../../api/usageAggregates/operations.js";
4
+ function _getUsageAggregates(context) {
5
+ return {
6
+ list: (reportedStartTime, reportedEndTime, options) => list(context, reportedStartTime, reportedEndTime, options),
7
+ };
8
+ }
9
+ export function _getUsageAggregatesOperations(context) {
10
+ return {
11
+ ..._getUsageAggregates(context),
12
+ };
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/usageAggregates/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAe/D,SAAS,mBAAmB,CAAC,OAA+B;IAC1D,OAAO;QACL,IAAI,EAAE,CACJ,iBAAuB,EACvB,eAAqB,EACrB,OAA2C,EAC3C,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAA+B;IAE/B,OAAO;QACL,GAAG,mBAAmB,CAAC,OAAO,CAAC;KAChC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { UsageManagementContext } from \"../../api/usageManagementContext.js\";\nimport { list } from \"../../api/usageAggregates/operations.js\";\nimport type { UsageAggregatesListOptionalParams } from \"../../api/usageAggregates/options.js\";\nimport type { UsageAggregation } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a UsageAggregates operations. */\nexport interface UsageAggregatesOperations {\n /** Query aggregated Azure subscription consumption data for a date range. */\n list: (\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams,\n ) => PagedAsyncIterableIterator<UsageAggregation>;\n}\n\nfunction _getUsageAggregates(context: UsageManagementContext) {\n return {\n list: (\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams,\n ) => list(context, reportedStartTime, reportedEndTime, options),\n };\n}\n\nexport function _getUsageAggregatesOperations(\n context: UsageManagementContext,\n): UsageAggregatesOperations {\n return {\n ..._getUsageAggregates(context),\n };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import type { AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
2
+ import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
3
+ import type { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
4
+ export { UsageManagementClient } from "./usageManagementClient.js";
5
+ export type { UsageAggregation, UsageSample, ErrorObjectResponse, ErrorResponse, ResourceRateCardInfo, OfferTermInfo, OfferTermInfoUnion, OfferTermInfoName, MonetaryCredit, MonetaryCommitment, RecurringCharge, MeterInfo, AggregationGranularity, } from "./models/index.js";
6
+ export { KnownVersions } from "./models/index.js";
7
+ export type { UsageManagementClientOptionalParams } from "./api/index.js";
8
+ export type { RateCardGetOptionalParams } from "./api/rateCard/index.js";
9
+ export type { UsageAggregatesListOptionalParams } from "./api/usageAggregates/index.js";
10
+ export type { RateCardOperations, UsageAggregatesOperations } from "./classic/index.js";
11
+ export type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
12
+ export { AzureClouds };
13
+ export type { AzureSupportedClouds };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
4
+ export { UsageManagementClient } from "./usageManagementClient.js";
5
+ export { KnownVersions } from "./models/index.js";
6
+ export { AzureClouds };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAOtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAgBnE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport { AzureClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport type {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { UsageManagementClient } from \"./usageManagementClient.js\";\nexport type {\n UsageAggregation,\n UsageSample,\n ErrorObjectResponse,\n ErrorResponse,\n ResourceRateCardInfo,\n OfferTermInfo,\n OfferTermInfoUnion,\n OfferTermInfoName,\n MonetaryCredit,\n MonetaryCommitment,\n RecurringCharge,\n MeterInfo,\n AggregationGranularity,\n} from \"./models/index.js\";\nexport { KnownVersions } from \"./models/index.js\";\nexport type { UsageManagementClientOptionalParams } from \"./api/index.js\";\nexport type { RateCardGetOptionalParams } from \"./api/rateCard/index.js\";\nexport type { UsageAggregatesListOptionalParams } from \"./api/usageAggregates/index.js\";\nexport type { RateCardOperations, UsageAggregatesOperations } from \"./classic/index.js\";\nexport type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds };\nexport type { AzureSupportedClouds };\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("arm-commerce");
5
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"arm-commerce\");\n"]}
@@ -0,0 +1,3 @@
1
+ export type { UsageAggregation, UsageSample, ErrorObjectResponse, ErrorResponse, ResourceRateCardInfo, OfferTermInfo, OfferTermInfoUnion, OfferTermInfoName, MonetaryCredit, MonetaryCommitment, RecurringCharge, MeterInfo, AggregationGranularity, } from "./models.js";
2
+ export { KnownVersions } from "./models.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { KnownVersions } from "./models.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAiBlC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n UsageAggregation,\n UsageSample,\n ErrorObjectResponse,\n ErrorResponse,\n ResourceRateCardInfo,\n OfferTermInfo,\n OfferTermInfoUnion,\n OfferTermInfoName,\n MonetaryCredit,\n MonetaryCommitment,\n RecurringCharge,\n MeterInfo,\n AggregationGranularity,\n} from \"./models.js\";\nexport { KnownVersions } from \"./models.js\";\n"]}