@azure/arm-commerce-profile-2020-09-01-hybrid 2.1.1-alpha.20250110.1 → 2.1.1-alpha.20250114.1

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 (241) hide show
  1. package/dist/browser/index.d.ts +5 -0
  2. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  3. package/{dist-esm/src → dist/browser}/index.js +4 -4
  4. package/dist/browser/index.js.map +1 -0
  5. package/dist/browser/models/index.js.map +1 -0
  6. package/dist/browser/models/mappers.js.map +1 -0
  7. package/dist/browser/models/parameters.js.map +1 -0
  8. package/dist/browser/operations/index.d.ts +3 -0
  9. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  10. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  11. package/dist/browser/operations/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/operations/rateCard.d.ts +3 -3
  13. package/dist/browser/operations/rateCard.d.ts.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/rateCard.js +2 -2
  15. package/dist/browser/operations/rateCard.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/usageAggregates.d.ts +3 -3
  17. package/dist/browser/operations/usageAggregates.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/usageAggregates.js +3 -3
  19. package/dist/browser/operations/usageAggregates.js.map +1 -0
  20. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  21. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  22. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  23. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operationsInterfaces/rateCard.d.ts +1 -1
  25. package/dist/browser/operationsInterfaces/rateCard.d.ts.map +1 -0
  26. package/dist/browser/operationsInterfaces/rateCard.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/usageAggregates.d.ts +1 -1
  28. package/dist/browser/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  29. package/dist/browser/operationsInterfaces/usageAggregates.js.map +1 -0
  30. package/dist/browser/package.json +3 -0
  31. package/dist/browser/pagingHelper.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/usageManagementClient.d.ts +2 -2
  33. package/dist/browser/usageManagementClient.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/usageManagementClient.js +15 -18
  35. package/dist/browser/usageManagementClient.js.map +1 -0
  36. package/dist/commonjs/index.d.ts +5 -0
  37. package/dist/commonjs/index.d.ts.map +1 -0
  38. package/dist/commonjs/index.js +19 -0
  39. package/dist/commonjs/index.js.map +1 -0
  40. package/{types/arm-commerce-profile-2020-09-01-hybrid.d.ts → dist/commonjs/models/index.d.ts} +172 -252
  41. package/dist/commonjs/models/index.d.ts.map +1 -0
  42. package/dist/commonjs/models/index.js +10 -0
  43. package/dist/commonjs/models/index.js.map +1 -0
  44. package/dist/commonjs/models/mappers.d.ts +19 -0
  45. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  46. package/dist/commonjs/models/mappers.js +436 -0
  47. package/dist/commonjs/models/mappers.js.map +1 -0
  48. package/dist/commonjs/models/parameters.d.ts +13 -0
  49. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  50. package/dist/commonjs/models/parameters.js +124 -0
  51. package/dist/commonjs/models/parameters.js.map +1 -0
  52. package/dist/commonjs/operations/index.d.ts +3 -0
  53. package/dist/commonjs/operations/index.d.ts.map +1 -0
  54. package/dist/commonjs/operations/index.js +13 -0
  55. package/dist/commonjs/operations/index.js.map +1 -0
  56. package/dist/commonjs/operations/rateCard.d.ts +27 -0
  57. package/dist/commonjs/operations/rateCard.d.ts.map +1 -0
  58. package/dist/commonjs/operations/rateCard.js +60 -0
  59. package/dist/commonjs/operations/rateCard.js.map +1 -0
  60. package/dist/commonjs/operations/usageAggregates.d.ts +36 -0
  61. package/dist/commonjs/operations/usageAggregates.d.ts.map +1 -0
  62. package/dist/commonjs/operations/usageAggregates.js +152 -0
  63. package/dist/commonjs/operations/usageAggregates.js.map +1 -0
  64. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  65. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  67. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  68. package/dist/commonjs/operationsInterfaces/rateCard.d.ts +19 -0
  69. package/dist/commonjs/operationsInterfaces/rateCard.d.ts.map +1 -0
  70. package/dist/commonjs/operationsInterfaces/rateCard.js +10 -0
  71. package/dist/commonjs/operationsInterfaces/rateCard.js.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/usageAggregates.d.ts +13 -0
  73. package/dist/commonjs/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/usageAggregates.js +10 -0
  75. package/dist/commonjs/operationsInterfaces/usageAggregates.js.map +1 -0
  76. package/dist/commonjs/package.json +3 -0
  77. package/dist/commonjs/pagingHelper.d.ts +13 -0
  78. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  79. package/dist/commonjs/pagingHelper.js +36 -0
  80. package/dist/commonjs/pagingHelper.js.map +1 -0
  81. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  82. package/dist/commonjs/usageManagementClient.d.ts +22 -0
  83. package/dist/commonjs/usageManagementClient.d.ts.map +1 -0
  84. package/dist/commonjs/usageManagementClient.js +104 -0
  85. package/dist/commonjs/usageManagementClient.js.map +1 -0
  86. package/dist/esm/index.d.ts +5 -0
  87. package/dist/esm/index.d.ts.map +1 -0
  88. package/{src/index.ts → dist/esm/index.js} +5 -5
  89. package/dist/esm/index.js.map +1 -0
  90. package/dist/esm/models/index.d.ts +172 -0
  91. package/dist/esm/models/index.d.ts.map +1 -0
  92. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -3
  93. package/dist/esm/models/index.js.map +1 -0
  94. package/dist/esm/models/mappers.d.ts +19 -0
  95. package/dist/esm/models/mappers.d.ts.map +1 -0
  96. package/dist/esm/models/mappers.js +433 -0
  97. package/dist/esm/models/mappers.js.map +1 -0
  98. package/dist/esm/models/parameters.d.ts +13 -0
  99. package/dist/esm/models/parameters.d.ts.map +1 -0
  100. package/dist/esm/models/parameters.js +121 -0
  101. package/dist/esm/models/parameters.js.map +1 -0
  102. package/dist/esm/operations/index.d.ts +3 -0
  103. package/dist/esm/operations/index.d.ts.map +1 -0
  104. package/dist/esm/operations/index.js +10 -0
  105. package/dist/esm/operations/index.js.map +1 -0
  106. package/dist/esm/operations/rateCard.d.ts +27 -0
  107. package/dist/esm/operations/rateCard.d.ts.map +1 -0
  108. package/dist/esm/operations/rateCard.js +55 -0
  109. package/dist/esm/operations/rateCard.js.map +1 -0
  110. package/dist/esm/operations/usageAggregates.d.ts +36 -0
  111. package/dist/esm/operations/usageAggregates.d.ts.map +1 -0
  112. package/dist/esm/operations/usageAggregates.js +148 -0
  113. package/dist/esm/operations/usageAggregates.js.map +1 -0
  114. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  115. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  116. package/dist/esm/operationsInterfaces/index.js +10 -0
  117. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  118. package/dist/esm/operationsInterfaces/rateCard.d.ts +19 -0
  119. package/dist/esm/operationsInterfaces/rateCard.d.ts.map +1 -0
  120. package/dist/esm/operationsInterfaces/rateCard.js +9 -0
  121. package/dist/esm/operationsInterfaces/rateCard.js.map +1 -0
  122. package/dist/esm/operationsInterfaces/usageAggregates.d.ts +13 -0
  123. package/dist/esm/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  124. package/dist/esm/operationsInterfaces/usageAggregates.js +9 -0
  125. package/dist/esm/operationsInterfaces/usageAggregates.js.map +1 -0
  126. package/dist/esm/package.json +3 -0
  127. package/dist/esm/pagingHelper.d.ts +13 -0
  128. package/dist/esm/pagingHelper.d.ts.map +1 -0
  129. package/dist/esm/pagingHelper.js +32 -0
  130. package/dist/esm/pagingHelper.js.map +1 -0
  131. package/dist/esm/usageManagementClient.d.ts +22 -0
  132. package/dist/esm/usageManagementClient.d.ts.map +1 -0
  133. package/dist/esm/usageManagementClient.js +99 -0
  134. package/dist/esm/usageManagementClient.js.map +1 -0
  135. package/dist/react-native/index.d.ts +5 -0
  136. package/dist/react-native/index.d.ts.map +1 -0
  137. package/dist/react-native/index.js +13 -0
  138. package/dist/react-native/index.js.map +1 -0
  139. package/dist/react-native/models/index.d.ts +172 -0
  140. package/dist/react-native/models/index.d.ts.map +1 -0
  141. package/dist/react-native/models/index.js +9 -0
  142. package/dist/react-native/models/index.js.map +1 -0
  143. package/dist/react-native/models/mappers.d.ts +19 -0
  144. package/dist/react-native/models/mappers.d.ts.map +1 -0
  145. package/dist/react-native/models/mappers.js +433 -0
  146. package/dist/react-native/models/mappers.js.map +1 -0
  147. package/dist/react-native/models/parameters.d.ts +13 -0
  148. package/dist/react-native/models/parameters.d.ts.map +1 -0
  149. package/dist/react-native/models/parameters.js +121 -0
  150. package/dist/react-native/models/parameters.js.map +1 -0
  151. package/dist/react-native/operations/index.d.ts +3 -0
  152. package/dist/react-native/operations/index.d.ts.map +1 -0
  153. package/dist/react-native/operations/index.js +10 -0
  154. package/dist/react-native/operations/index.js.map +1 -0
  155. package/dist/react-native/operations/rateCard.d.ts +27 -0
  156. package/dist/react-native/operations/rateCard.d.ts.map +1 -0
  157. package/dist/react-native/operations/rateCard.js +55 -0
  158. package/dist/react-native/operations/rateCard.js.map +1 -0
  159. package/dist/react-native/operations/usageAggregates.d.ts +36 -0
  160. package/dist/react-native/operations/usageAggregates.d.ts.map +1 -0
  161. package/dist/react-native/operations/usageAggregates.js +148 -0
  162. package/dist/react-native/operations/usageAggregates.js.map +1 -0
  163. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  164. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  165. package/dist/react-native/operationsInterfaces/index.js +10 -0
  166. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  167. package/dist/react-native/operationsInterfaces/rateCard.d.ts +19 -0
  168. package/dist/react-native/operationsInterfaces/rateCard.d.ts.map +1 -0
  169. package/dist/react-native/operationsInterfaces/rateCard.js +9 -0
  170. package/dist/react-native/operationsInterfaces/rateCard.js.map +1 -0
  171. package/dist/react-native/operationsInterfaces/usageAggregates.d.ts +13 -0
  172. package/dist/react-native/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  173. package/dist/react-native/operationsInterfaces/usageAggregates.js +9 -0
  174. package/dist/react-native/operationsInterfaces/usageAggregates.js.map +1 -0
  175. package/dist/react-native/package.json +3 -0
  176. package/dist/react-native/pagingHelper.d.ts +13 -0
  177. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  178. package/dist/react-native/pagingHelper.js +32 -0
  179. package/dist/react-native/pagingHelper.js.map +1 -0
  180. package/dist/react-native/usageManagementClient.d.ts +22 -0
  181. package/dist/react-native/usageManagementClient.d.ts.map +1 -0
  182. package/dist/react-native/usageManagementClient.js +99 -0
  183. package/dist/react-native/usageManagementClient.js.map +1 -0
  184. package/package.json +58 -28
  185. package/dist/index.js +0 -926
  186. package/dist/index.js.map +0 -1
  187. package/dist/index.min.js +0 -1
  188. package/dist/index.min.js.map +0 -1
  189. package/dist-esm/samples-dev/rateCardGetSample.d.ts +0 -2
  190. package/dist-esm/samples-dev/rateCardGetSample.d.ts.map +0 -1
  191. package/dist-esm/samples-dev/rateCardGetSample.js +0 -38
  192. package/dist-esm/samples-dev/rateCardGetSample.js.map +0 -1
  193. package/dist-esm/src/index.d.ts +0 -5
  194. package/dist-esm/src/index.js.map +0 -1
  195. package/dist-esm/src/models/index.js.map +0 -1
  196. package/dist-esm/src/models/mappers.js.map +0 -1
  197. package/dist-esm/src/models/parameters.js.map +0 -1
  198. package/dist-esm/src/operations/index.d.ts +0 -3
  199. package/dist-esm/src/operations/index.js.map +0 -1
  200. package/dist-esm/src/operations/rateCard.d.ts.map +0 -1
  201. package/dist-esm/src/operations/rateCard.js.map +0 -1
  202. package/dist-esm/src/operations/usageAggregates.d.ts.map +0 -1
  203. package/dist-esm/src/operations/usageAggregates.js.map +0 -1
  204. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  205. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  206. package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +0 -1
  207. package/dist-esm/src/operationsInterfaces/rateCard.js.map +0 -1
  208. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +0 -1
  209. package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +0 -1
  210. package/dist-esm/src/pagingHelper.js.map +0 -1
  211. package/dist-esm/src/usageManagementClient.d.ts.map +0 -1
  212. package/dist-esm/src/usageManagementClient.js.map +0 -1
  213. package/dist-esm/test/sampleTest.d.ts +0 -2
  214. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  215. package/dist-esm/test/sampleTest.js +0 -42
  216. package/dist-esm/test/sampleTest.js.map +0 -1
  217. package/src/models/index.ts +0 -204
  218. package/src/models/mappers.ts +0 -460
  219. package/src/models/parameters.ts +0 -137
  220. package/src/operations/rateCard.ts +0 -69
  221. package/src/operations/usageAggregates.ts +0 -189
  222. package/src/operationsInterfaces/index.ts +0 -10
  223. package/src/operationsInterfaces/rateCard.ts +0 -30
  224. package/src/operationsInterfaces/usageAggregates.ts +0 -26
  225. package/src/pagingHelper.ts +0 -39
  226. package/src/usageManagementClient.ts +0 -143
  227. package/tsconfig.json +0 -33
  228. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  229. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  230. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  231. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  232. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  233. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  234. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  235. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  236. /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
  237. /package/{dist-esm/src → dist/browser}/operationsInterfaces/rateCard.js +0 -0
  238. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageAggregates.js +0 -0
  239. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  240. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  241. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -0,0 +1,27 @@
1
+ import { RateCard } from "../operationsInterfaces/index.js";
2
+ import { UsageManagementClient } from "../usageManagementClient.js";
3
+ import { RateCardGetOptionalParams, RateCardGetResponse } from "../models/index.js";
4
+ /** Class containing RateCard operations. */
5
+ export declare class RateCardImpl implements RateCard {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class RateCard class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: UsageManagementClient);
12
+ /**
13
+ * Enables you to query for the resource/meter metadata and related prices used in a given subscription
14
+ * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including
15
+ * but not limited to service names, types, resources, units of measure, and regions, is subject to
16
+ * change at any time and without notice. If you intend to use this billing data in an automated
17
+ * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing
18
+ * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the
19
+ * change.
20
+ * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
21
+ * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'
22
+ * are required to be a part of the $filter.
23
+ * @param options The options parameters.
24
+ */
25
+ get(filter: string, options?: RateCardGetOptionalParams): Promise<RateCardGetResponse>;
26
+ }
27
+ //# sourceMappingURL=rateCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.d.ts","sourceRoot":"","sources":["../../../src/operations/rateCard.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEpF,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;CAMhC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.RateCardImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ /** Class containing RateCard operations. */
16
+ class RateCardImpl {
17
+ /**
18
+ * Initialize a new instance of the class RateCard class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Enables you to query for the resource/meter metadata and related prices used in a given subscription
26
+ * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including
27
+ * but not limited to service names, types, resources, units of measure, and regions, is subject to
28
+ * change at any time and without notice. If you intend to use this billing data in an automated
29
+ * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing
30
+ * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the
31
+ * change.
32
+ * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
33
+ * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'
34
+ * are required to be a part of the $filter.
35
+ * @param options The options parameters.
36
+ */
37
+ get(filter, options) {
38
+ return this.client.sendOperationRequest({ filter, options }, getOperationSpec);
39
+ }
40
+ }
41
+ exports.RateCardImpl = RateCardImpl;
42
+ // Operation Specifications
43
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
44
+ const getOperationSpec = {
45
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard",
46
+ httpMethod: "GET",
47
+ responses: {
48
+ 200: {
49
+ bodyMapper: Mappers.ResourceRateCardInfo
50
+ },
51
+ default: {
52
+ bodyMapper: Mappers.ErrorResponse
53
+ }
54
+ },
55
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
56
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
57
+ headerParameters: [Parameters.accept],
58
+ serializer
59
+ };
60
+ //# sourceMappingURL=rateCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.js","sourceRoot":"","sources":["../../../src/operations/rateCard.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,MAAc,EACd,OAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,MAAM,EAAE,OAAO,EAAE,EACnB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAjCD,oCAiCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { RateCard } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { UsageManagementClient } from \"../usageManagementClient.js\";\nimport { RateCardGetOptionalParams, RateCardGetResponse } from \"../models/index.js\";\n\n/** Class containing RateCard operations. */\nexport class RateCardImpl implements RateCard {\n private readonly client: UsageManagementClient;\n\n /**\n * Initialize a new instance of the class RateCard class.\n * @param client Reference to the service client\n */\n constructor(client: UsageManagementClient) {\n this.client = client;\n }\n\n /**\n * Enables you to query for the resource/meter metadata and related prices used in a given subscription\n * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including\n * but not limited to service names, types, resources, units of measure, and regions, is subject to\n * change at any time and without notice. If you intend to use this billing data in an automated\n * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing\n * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the\n * change.\n * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical\n * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'\n * are required to be a part of the $filter.\n * @param options The options parameters.\n */\n get(\n filter: string,\n options?: RateCardGetOptionalParams\n ): Promise<RateCardGetResponse> {\n return this.client.sendOperationRequest(\n { filter, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceRateCardInfo\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,36 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { UsageAggregates } from "../operationsInterfaces/index.js";
3
+ import { UsageManagementClient } from "../usageManagementClient.js";
4
+ import { UsageAggregation, UsageAggregatesListOptionalParams } from "../models/index.js";
5
+ /** Class containing UsageAggregates operations. */
6
+ export declare class UsageAggregatesImpl implements UsageAggregates {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class UsageAggregates class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: UsageManagementClient);
13
+ /**
14
+ * Query aggregated Azure subscription consumption data for a date range.
15
+ * @param reportedStartTime The start of the time range to retrieve data for.
16
+ * @param reportedEndTime The end of the time range to retrieve data for.
17
+ * @param options The options parameters.
18
+ */
19
+ list(reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams): PagedAsyncIterableIterator<UsageAggregation>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * Query aggregated Azure subscription consumption data for a date range.
24
+ * @param reportedStartTime The start of the time range to retrieve data for.
25
+ * @param reportedEndTime The end of the time range to retrieve data for.
26
+ * @param options The options parameters.
27
+ */
28
+ private _list;
29
+ /**
30
+ * ListNext
31
+ * @param nextLink The nextLink from the previous successful call to the List method.
32
+ * @param options The options parameters.
33
+ */
34
+ private _listNext;
35
+ }
36
+ //# sourceMappingURL=usageAggregates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageAggregates.d.ts","sourceRoot":"","sources":["../../../src/operations/usageAggregates.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAEhB,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,IAAI,EACvB,eAAe,EAAE,IAAI,EACrB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,gBAAgB,CAAC;YA2BhC,cAAc;YAwBd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.UsageAggregatesImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing UsageAggregates operations. */
18
+ class UsageAggregatesImpl {
19
+ /**
20
+ * Initialize a new instance of the class UsageAggregates class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Query aggregated Azure subscription consumption data for a date range.
28
+ * @param reportedStartTime The start of the time range to retrieve data for.
29
+ * @param reportedEndTime The end of the time range to retrieve data for.
30
+ * @param options The options parameters.
31
+ */
32
+ list(reportedStartTime, reportedEndTime, options) {
33
+ const iter = this.listPagingAll(reportedStartTime, reportedEndTime, options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listPagingPage(reportedStartTime, reportedEndTime, options, settings);
46
+ }
47
+ };
48
+ }
49
+ listPagingPage(reportedStartTime, reportedEndTime, options, settings) {
50
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield tslib_1.__await(this._list(reportedStartTime, reportedEndTime, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield yield tslib_1.__await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield yield tslib_1.__await(page);
66
+ }
67
+ });
68
+ }
69
+ listPagingAll(reportedStartTime, reportedEndTime, options) {
70
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(reportedStartTime, reportedEndTime, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Query aggregated Azure subscription consumption data for a date range.
91
+ * @param reportedStartTime The start of the time range to retrieve data for.
92
+ * @param reportedEndTime The end of the time range to retrieve data for.
93
+ * @param options The options parameters.
94
+ */
95
+ _list(reportedStartTime, reportedEndTime, options) {
96
+ return this.client.sendOperationRequest({ reportedStartTime, reportedEndTime, options }, listOperationSpec);
97
+ }
98
+ /**
99
+ * ListNext
100
+ * @param nextLink The nextLink from the previous successful call to the List method.
101
+ * @param options The options parameters.
102
+ */
103
+ _listNext(nextLink, options) {
104
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
105
+ }
106
+ }
107
+ exports.UsageAggregatesImpl = UsageAggregatesImpl;
108
+ // Operation Specifications
109
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
110
+ const listOperationSpec = {
111
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates",
112
+ httpMethod: "GET",
113
+ responses: {
114
+ 200: {
115
+ bodyMapper: Mappers.UsageAggregationListResult
116
+ },
117
+ default: {
118
+ bodyMapper: Mappers.ErrorResponse
119
+ }
120
+ },
121
+ queryParameters: [
122
+ Parameters.reportedStartTime,
123
+ Parameters.reportedEndTime,
124
+ Parameters.showDetails,
125
+ Parameters.aggregationGranularity,
126
+ Parameters.continuationToken,
127
+ Parameters.apiVersion
128
+ ],
129
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
130
+ headerParameters: [Parameters.accept],
131
+ serializer
132
+ };
133
+ const listNextOperationSpec = {
134
+ path: "{nextLink}",
135
+ httpMethod: "GET",
136
+ responses: {
137
+ 200: {
138
+ bodyMapper: Mappers.UsageAggregationListResult
139
+ },
140
+ default: {
141
+ bodyMapper: Mappers.ErrorResponse
142
+ }
143
+ },
144
+ urlParameters: [
145
+ Parameters.$host,
146
+ Parameters.subscriptionId,
147
+ Parameters.nextLink
148
+ ],
149
+ headerParameters: [Parameters.accept],
150
+ serializer
151
+ };
152
+ //# sourceMappingURL=usageAggregates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageAggregates.js","sourceRoot":"","sources":["../../../src/operations/usageAggregates.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { UsageAggregates } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { UsageManagementClient } from \"../usageManagementClient.js\";\nimport {\n UsageAggregation,\n UsageAggregatesListNextOptionalParams,\n UsageAggregatesListOptionalParams,\n UsageAggregatesListResponse,\n UsageAggregatesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing UsageAggregates operations. */\nexport class UsageAggregatesImpl implements UsageAggregates {\n private readonly client: UsageManagementClient;\n\n /**\n * Initialize a new instance of the class UsageAggregates class.\n * @param client Reference to the service client\n */\n constructor(client: UsageManagementClient) {\n this.client = client;\n }\n\n /**\n * Query aggregated Azure subscription consumption data for a date range.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param options The options parameters.\n */\n public list(\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams\n ): PagedAsyncIterableIterator<UsageAggregation> {\n const iter = this.listPagingAll(\n reportedStartTime,\n reportedEndTime,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n reportedStartTime,\n reportedEndTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<UsageAggregation[]> {\n let result: UsageAggregatesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(reportedStartTime, reportedEndTime, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams\n ): AsyncIterableIterator<UsageAggregation> {\n for await (const page of this.listPagingPage(\n reportedStartTime,\n reportedEndTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Query aggregated Azure subscription consumption data for a date range.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param options The options parameters.\n */\n private _list(\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams\n ): Promise<UsageAggregatesListResponse> {\n return this.client.sendOperationRequest(\n { reportedStartTime, reportedEndTime, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: UsageAggregatesListNextOptionalParams\n ): Promise<UsageAggregatesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageAggregationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.reportedStartTime,\n Parameters.reportedEndTime,\n Parameters.showDetails,\n Parameters.aggregationGranularity,\n Parameters.continuationToken,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageAggregationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./usageAggregates.js";
2
+ export * from "./rateCard.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./usageAggregates.js"), exports);
12
+ tslib_1.__exportStar(require("./rateCard.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+DAAqC;AACrC,wDAA8B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./usageAggregates.js\";\nexport * from \"./rateCard.js\";\n"]}
@@ -0,0 +1,19 @@
1
+ import { RateCardGetOptionalParams, RateCardGetResponse } from "../models/index.js";
2
+ /** Interface representing a RateCard. */
3
+ export interface RateCard {
4
+ /**
5
+ * Enables you to query for the resource/meter metadata and related prices used in a given subscription
6
+ * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including
7
+ * but not limited to service names, types, resources, units of measure, and regions, is subject to
8
+ * change at any time and without notice. If you intend to use this billing data in an automated
9
+ * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing
10
+ * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the
11
+ * change.
12
+ * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
13
+ * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'
14
+ * are required to be a part of the $filter.
15
+ * @param options The options parameters.
16
+ */
17
+ get(filter: string, options?: RateCardGetOptionalParams): Promise<RateCardGetResponse>;
18
+ }
19
+ //# sourceMappingURL=rateCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/rateCard.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEpF,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACjC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=rateCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/rateCard.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { RateCardGetOptionalParams, RateCardGetResponse } from \"../models/index.js\";\n\n/** Interface representing a RateCard. */\nexport interface RateCard {\n /**\n * Enables you to query for the resource/meter metadata and related prices used in a given subscription\n * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including\n * but not limited to service names, types, resources, units of measure, and regions, is subject to\n * change at any time and without notice. If you intend to use this billing data in an automated\n * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing\n * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the\n * change.\n * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical\n * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'\n * are required to be a part of the $filter.\n * @param options The options parameters.\n */\n get(\n filter: string,\n options?: RateCardGetOptionalParams\n ): Promise<RateCardGetResponse>;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { UsageAggregation, UsageAggregatesListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a UsageAggregates. */
4
+ export interface UsageAggregates {
5
+ /**
6
+ * Query aggregated Azure subscription consumption data for a date range.
7
+ * @param reportedStartTime The start of the time range to retrieve data for.
8
+ * @param reportedEndTime The end of the time range to retrieve data for.
9
+ * @param options The options parameters.
10
+ */
11
+ list(reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams): PagedAsyncIterableIterator<UsageAggregation>;
12
+ }
13
+ //# sourceMappingURL=usageAggregates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageAggregates.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/usageAggregates.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAGzF,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,IAAI,EACvB,eAAe,EAAE,IAAI,EACrB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;CACjD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=usageAggregates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageAggregates.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/usageAggregates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { UsageAggregation, UsageAggregatesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a UsageAggregates. */\nexport interface UsageAggregates {\n /**\n * Query aggregated Azure subscription consumption data for a date range.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param options The options parameters.\n */\n list(\n reportedStartTime: Date,\n reportedEndTime: Date,\n options?: UsageAggregatesListOptionalParams\n ): PagedAsyncIterableIterator<UsageAggregation>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given the last `.value` produced by the `byPage` iterator,
15
+ * returns a continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
18
+ * @returns The continuation token that can be passed into byPage() during future calls.
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.1"
8
+ "packageVersion": "7.49.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { UsageAggregates, RateCard } from "./operationsInterfaces/index.js";
4
+ import { UsageManagementClientOptionalParams } from "./models/index.js";
5
+ export declare class UsageManagementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the UsageManagementClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID forms
13
+ * part of the URI for every service call.
14
+ * @param options The parameter options
15
+ */
16
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: UsageManagementClientOptionalParams);
17
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
18
+ private addCustomApiVersionPolicy;
19
+ usageAggregates: UsageAggregates;
20
+ rateCard: RateCard;
21
+ }
22
+ //# sourceMappingURL=usageManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageManagementClient.d.ts","sourceRoot":"","sources":["../../src/usageManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AAExE,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC;IA6E/C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.UsageManagementClient = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const index_js_1 = require("./operations/index.js");
15
+ class UsageManagementClient extends coreClient.ServiceClient {
16
+ /**
17
+ * Initializes a new instance of the UsageManagementClient class.
18
+ * @param credentials Subscription credentials which uniquely identify client subscription.
19
+ * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID forms
20
+ * part of the URI for every service call.
21
+ * @param options The parameter options
22
+ */
23
+ constructor(credentials, subscriptionId, options) {
24
+ var _a, _b, _c;
25
+ if (credentials === undefined) {
26
+ throw new Error("'credentials' cannot be null");
27
+ }
28
+ if (subscriptionId === undefined) {
29
+ throw new Error("'subscriptionId' cannot be null");
30
+ }
31
+ // Initializing default values for options
32
+ if (!options) {
33
+ options = {};
34
+ }
35
+ const defaults = {
36
+ requestContentType: "application/json; charset=utf-8",
37
+ credential: credentials
38
+ };
39
+ const packageDetails = `azsdk-js-arm-commerce-profile-2020-09-01-hybrid/2.1.1`;
40
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
41
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
42
+ : `${packageDetails}`;
43
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
44
+ userAgentPrefix
45
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
46
+ super(optionsWithDefaults);
47
+ let bearerTokenAuthenticationPolicyFound = false;
48
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
49
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
50
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
51
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
52
+ }
53
+ if (!options ||
54
+ !options.pipeline ||
55
+ options.pipeline.getOrderedPolicies().length == 0 ||
56
+ !bearerTokenAuthenticationPolicyFound) {
57
+ this.pipeline.removePolicy({
58
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
59
+ });
60
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
61
+ credential: credentials,
62
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
63
+ challengeCallbacks: {
64
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
65
+ }
66
+ }));
67
+ }
68
+ // Parameter assignments
69
+ this.subscriptionId = subscriptionId;
70
+ // Assigning values to Constant parameters
71
+ this.$host = options.$host || "https://management.azure.com";
72
+ this.apiVersion = options.apiVersion || "2015-06-01-preview";
73
+ this.usageAggregates = new index_js_1.UsageAggregatesImpl(this);
74
+ this.rateCard = new index_js_1.RateCardImpl(this);
75
+ this.addCustomApiVersionPolicy(options.apiVersion);
76
+ }
77
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
78
+ addCustomApiVersionPolicy(apiVersion) {
79
+ if (!apiVersion) {
80
+ return;
81
+ }
82
+ const apiVersionPolicy = {
83
+ name: "CustomApiVersionPolicy",
84
+ async sendRequest(request, next) {
85
+ const param = request.url.split("?");
86
+ if (param.length > 1) {
87
+ const newParams = param[1].split("&").map((item) => {
88
+ if (item.indexOf("api-version") > -1) {
89
+ return "api-version=" + apiVersion;
90
+ }
91
+ else {
92
+ return item;
93
+ }
94
+ });
95
+ request.url = param[0] + "?" + newParams.join("&");
96
+ }
97
+ return next(request);
98
+ }
99
+ };
100
+ this.pipeline.addPolicy(apiVersionPolicy);
101
+ }
102
+ }
103
+ exports.UsageManagementClient = UsageManagementClient;
104
+ //# sourceMappingURL=usageManagementClient.js.map