@azure/arm-commerce-profile-2020-09-01-hybrid 2.1.1-alpha.20250110.1 → 2.1.1-alpha.20250113.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/dist/commonjs/usageManagementClient.d.ts +22 -0
  82. package/dist/commonjs/usageManagementClient.d.ts.map +1 -0
  83. package/dist/commonjs/usageManagementClient.js +104 -0
  84. package/dist/commonjs/usageManagementClient.js.map +1 -0
  85. package/dist/esm/index.d.ts +5 -0
  86. package/dist/esm/index.d.ts.map +1 -0
  87. package/{src/index.ts → dist/esm/index.js} +5 -5
  88. package/dist/esm/index.js.map +1 -0
  89. package/dist/esm/models/index.d.ts +172 -0
  90. package/dist/esm/models/index.d.ts.map +1 -0
  91. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -3
  92. package/dist/esm/models/index.js.map +1 -0
  93. package/dist/esm/models/mappers.d.ts +19 -0
  94. package/dist/esm/models/mappers.d.ts.map +1 -0
  95. package/dist/esm/models/mappers.js +433 -0
  96. package/dist/esm/models/mappers.js.map +1 -0
  97. package/dist/esm/models/parameters.d.ts +13 -0
  98. package/dist/esm/models/parameters.d.ts.map +1 -0
  99. package/dist/esm/models/parameters.js +121 -0
  100. package/dist/esm/models/parameters.js.map +1 -0
  101. package/dist/esm/operations/index.d.ts +3 -0
  102. package/dist/esm/operations/index.d.ts.map +1 -0
  103. package/dist/esm/operations/index.js +10 -0
  104. package/dist/esm/operations/index.js.map +1 -0
  105. package/dist/esm/operations/rateCard.d.ts +27 -0
  106. package/dist/esm/operations/rateCard.d.ts.map +1 -0
  107. package/dist/esm/operations/rateCard.js +55 -0
  108. package/dist/esm/operations/rateCard.js.map +1 -0
  109. package/dist/esm/operations/usageAggregates.d.ts +36 -0
  110. package/dist/esm/operations/usageAggregates.d.ts.map +1 -0
  111. package/dist/esm/operations/usageAggregates.js +148 -0
  112. package/dist/esm/operations/usageAggregates.js.map +1 -0
  113. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  114. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  115. package/dist/esm/operationsInterfaces/index.js +10 -0
  116. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  117. package/dist/esm/operationsInterfaces/rateCard.d.ts +19 -0
  118. package/dist/esm/operationsInterfaces/rateCard.d.ts.map +1 -0
  119. package/dist/esm/operationsInterfaces/rateCard.js +9 -0
  120. package/dist/esm/operationsInterfaces/rateCard.js.map +1 -0
  121. package/dist/esm/operationsInterfaces/usageAggregates.d.ts +13 -0
  122. package/dist/esm/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  123. package/dist/esm/operationsInterfaces/usageAggregates.js +9 -0
  124. package/dist/esm/operationsInterfaces/usageAggregates.js.map +1 -0
  125. package/dist/esm/package.json +3 -0
  126. package/dist/esm/pagingHelper.d.ts +13 -0
  127. package/dist/esm/pagingHelper.d.ts.map +1 -0
  128. package/dist/esm/pagingHelper.js +32 -0
  129. package/dist/esm/pagingHelper.js.map +1 -0
  130. package/dist/esm/usageManagementClient.d.ts +22 -0
  131. package/dist/esm/usageManagementClient.d.ts.map +1 -0
  132. package/dist/esm/usageManagementClient.js +99 -0
  133. package/dist/esm/usageManagementClient.js.map +1 -0
  134. package/dist/react-native/index.d.ts +5 -0
  135. package/dist/react-native/index.d.ts.map +1 -0
  136. package/dist/react-native/index.js +13 -0
  137. package/dist/react-native/index.js.map +1 -0
  138. package/dist/react-native/models/index.d.ts +172 -0
  139. package/dist/react-native/models/index.d.ts.map +1 -0
  140. package/dist/react-native/models/index.js +9 -0
  141. package/dist/react-native/models/index.js.map +1 -0
  142. package/dist/react-native/models/mappers.d.ts +19 -0
  143. package/dist/react-native/models/mappers.d.ts.map +1 -0
  144. package/dist/react-native/models/mappers.js +433 -0
  145. package/dist/react-native/models/mappers.js.map +1 -0
  146. package/dist/react-native/models/parameters.d.ts +13 -0
  147. package/dist/react-native/models/parameters.d.ts.map +1 -0
  148. package/dist/react-native/models/parameters.js +121 -0
  149. package/dist/react-native/models/parameters.js.map +1 -0
  150. package/dist/react-native/operations/index.d.ts +3 -0
  151. package/dist/react-native/operations/index.d.ts.map +1 -0
  152. package/dist/react-native/operations/index.js +10 -0
  153. package/dist/react-native/operations/index.js.map +1 -0
  154. package/dist/react-native/operations/rateCard.d.ts +27 -0
  155. package/dist/react-native/operations/rateCard.d.ts.map +1 -0
  156. package/dist/react-native/operations/rateCard.js +55 -0
  157. package/dist/react-native/operations/rateCard.js.map +1 -0
  158. package/dist/react-native/operations/usageAggregates.d.ts +36 -0
  159. package/dist/react-native/operations/usageAggregates.d.ts.map +1 -0
  160. package/dist/react-native/operations/usageAggregates.js +148 -0
  161. package/dist/react-native/operations/usageAggregates.js.map +1 -0
  162. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  163. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  164. package/dist/react-native/operationsInterfaces/index.js +10 -0
  165. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  166. package/dist/react-native/operationsInterfaces/rateCard.d.ts +19 -0
  167. package/dist/react-native/operationsInterfaces/rateCard.d.ts.map +1 -0
  168. package/dist/react-native/operationsInterfaces/rateCard.js +9 -0
  169. package/dist/react-native/operationsInterfaces/rateCard.js.map +1 -0
  170. package/dist/react-native/operationsInterfaces/usageAggregates.d.ts +13 -0
  171. package/dist/react-native/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  172. package/dist/react-native/operationsInterfaces/usageAggregates.js +9 -0
  173. package/dist/react-native/operationsInterfaces/usageAggregates.js.map +1 -0
  174. package/dist/react-native/package.json +3 -0
  175. package/dist/react-native/pagingHelper.d.ts +13 -0
  176. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  177. package/dist/react-native/pagingHelper.js +32 -0
  178. package/dist/react-native/pagingHelper.js.map +1 -0
  179. package/dist/react-native/usageManagementClient.d.ts +22 -0
  180. package/dist/react-native/usageManagementClient.d.ts.map +1 -0
  181. package/dist/react-native/usageManagementClient.js +99 -0
  182. package/dist/react-native/usageManagementClient.js.map +1 -0
  183. package/package.json +58 -28
  184. package/dist/index.js +0 -926
  185. package/dist/index.js.map +0 -1
  186. package/dist/index.min.js +0 -1
  187. package/dist/index.min.js.map +0 -1
  188. package/dist-esm/samples-dev/rateCardGetSample.d.ts +0 -2
  189. package/dist-esm/samples-dev/rateCardGetSample.d.ts.map +0 -1
  190. package/dist-esm/samples-dev/rateCardGetSample.js +0 -38
  191. package/dist-esm/samples-dev/rateCardGetSample.js.map +0 -1
  192. package/dist-esm/src/index.d.ts +0 -5
  193. package/dist-esm/src/index.js.map +0 -1
  194. package/dist-esm/src/models/index.js.map +0 -1
  195. package/dist-esm/src/models/mappers.js.map +0 -1
  196. package/dist-esm/src/models/parameters.js.map +0 -1
  197. package/dist-esm/src/operations/index.d.ts +0 -3
  198. package/dist-esm/src/operations/index.js.map +0 -1
  199. package/dist-esm/src/operations/rateCard.d.ts.map +0 -1
  200. package/dist-esm/src/operations/rateCard.js.map +0 -1
  201. package/dist-esm/src/operations/usageAggregates.d.ts.map +0 -1
  202. package/dist-esm/src/operations/usageAggregates.js.map +0 -1
  203. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  204. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  205. package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +0 -1
  206. package/dist-esm/src/operationsInterfaces/rateCard.js.map +0 -1
  207. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +0 -1
  208. package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +0 -1
  209. package/dist-esm/src/pagingHelper.js.map +0 -1
  210. package/dist-esm/src/usageManagementClient.d.ts.map +0 -1
  211. package/dist-esm/src/usageManagementClient.js.map +0 -1
  212. package/dist-esm/test/sampleTest.d.ts +0 -2
  213. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  214. package/dist-esm/test/sampleTest.js +0 -42
  215. package/dist-esm/test/sampleTest.js.map +0 -1
  216. package/src/models/index.ts +0 -204
  217. package/src/models/mappers.ts +0 -460
  218. package/src/models/parameters.ts +0 -137
  219. package/src/operations/rateCard.ts +0 -69
  220. package/src/operations/usageAggregates.ts +0 -189
  221. package/src/operationsInterfaces/index.ts +0 -10
  222. package/src/operationsInterfaces/rateCard.ts +0 -30
  223. package/src/operationsInterfaces/usageAggregates.ts +0 -26
  224. package/src/pagingHelper.ts +0 -39
  225. package/src/usageManagementClient.ts +0 -143
  226. package/tsconfig.json +0 -33
  227. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  228. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  229. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  230. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  231. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  232. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  233. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  234. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  235. /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
  236. /package/{dist-esm/src → dist/browser}/operationsInterfaces/rateCard.js +0 -0
  237. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageAggregates.js +0 -0
  238. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  239. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  240. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  241. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,252 +1,172 @@
1
- import * as coreAuth from '@azure/core-auth';
2
- import * as coreClient from '@azure/core-client';
3
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
-
5
- /** Defines values for AggregationGranularity. */
6
- export declare type AggregationGranularity = "Daily" | "Hourly";
7
-
8
- /** Describes the format of Error response. */
9
- export declare interface ErrorResponse {
10
- /** Error code */
11
- code?: string;
12
- /** Error message indicating why the operation failed. */
13
- message?: string;
14
- }
15
-
16
- /**
17
- * Given the last `.value` produced by the `byPage` iterator,
18
- * returns a continuation token that can be used to begin paging from
19
- * that point later.
20
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
21
- * @returns The continuation token that can be passed into byPage() during future calls.
22
- */
23
- export declare function getContinuationToken(page: unknown): string | undefined;
24
-
25
- /** Key-value pairs of instance details in the legacy format. */
26
- export declare interface InfoField {
27
- /** Identifies the name of the instance provisioned by the user. */
28
- project?: string;
29
- }
30
-
31
- /** Detailed information about the meter. */
32
- export declare interface MeterInfo {
33
- /** The unique identifier of the resource. */
34
- meterId?: string;
35
- /** The name of the meter, within the given meter category */
36
- meterName?: string;
37
- /** The category of the meter, e.g., 'Cloud services', 'Networking', etc.. */
38
- meterCategory?: string;
39
- /** The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. */
40
- meterSubCategory?: string;
41
- /** The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc. */
42
- unit?: string;
43
- /** Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party. */
44
- meterTags?: string[];
45
- /** The region in which the Azure service is available. */
46
- meterRegion?: string;
47
- /** The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price */
48
- meterRates?: {
49
- [propertyName: string]: number;
50
- };
51
- /** Indicates the date from which the meter rate is effective. */
52
- effectiveDate?: Date;
53
- /** The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged. */
54
- includedQuantity?: number;
55
- }
56
-
57
- /** Indicates that a monetary commitment is required for this offer */
58
- export declare interface MonetaryCommitment extends OfferTermInfoAutoGenerated {
59
- /** Polymorphic discriminator, which specifies the different types this object can be */
60
- name: "Monetary Commitment";
61
- /** The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'. */
62
- tieredDiscount?: {
63
- [propertyName: string]: number;
64
- };
65
- /** An array of meter ids that are excluded from the given offer terms. */
66
- excludedMeterIds?: string[];
67
- }
68
-
69
- /** Indicates that this is a monetary credit offer. */
70
- export declare interface MonetaryCredit extends OfferTermInfoAutoGenerated {
71
- /** Polymorphic discriminator, which specifies the different types this object can be */
72
- name: "Monetary Credit";
73
- /** The amount of credit provided under the terms of the given offer level. */
74
- credit?: number;
75
- /** An array of meter ids that are excluded from the given offer terms. */
76
- excludedMeterIds?: string[];
77
- }
78
-
79
- /** Defines values for OfferTermInfo. */
80
- export declare type OfferTermInfo = "Recurring Charge" | "Monetary Commitment" | "Monetary Credit";
81
-
82
- /** Describes the offer term. */
83
- export declare interface OfferTermInfoAutoGenerated {
84
- /** Polymorphic discriminator, which specifies the different types this object can be */
85
- name: "Monetary Credit" | "Monetary Commitment" | "Recurring Charge";
86
- /** Indicates the date from which the offer term is effective. */
87
- effectiveDate?: Date;
88
- }
89
-
90
- export declare type OfferTermInfoAutoGeneratedUnion = OfferTermInfoAutoGenerated | MonetaryCredit | MonetaryCommitment | RecurringCharge;
91
-
92
- /** Interface representing a RateCard. */
93
- export declare interface RateCard {
94
- /**
95
- * Enables you to query for the resource/meter metadata and related prices used in a given subscription
96
- * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including
97
- * but not limited to service names, types, resources, units of measure, and regions, is subject to
98
- * change at any time and without notice. If you intend to use this billing data in an automated
99
- * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing
100
- * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the
101
- * change.
102
- * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
103
- * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'
104
- * are required to be a part of the $filter.
105
- * @param options The options parameters.
106
- */
107
- get(filter: string, options?: RateCardGetOptionalParams): Promise<RateCardGetResponse>;
108
- }
109
-
110
- /** Optional parameters. */
111
- export declare interface RateCardGetOptionalParams extends coreClient.OperationOptions {
112
- }
113
-
114
- /** Contains response data for the get operation. */
115
- export declare type RateCardGetResponse = ResourceRateCardInfo;
116
-
117
- /** Parameters that are used in the odata $filter query parameter for providing RateCard information. */
118
- export declare interface RateCardQueryParameters {
119
- /** The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more information on the list of available Offer IDs, country/region availability, and billing currency. */
120
- offerDurableId: string;
121
- /** The currency in which the rates need to be provided. */
122
- currency: string;
123
- /** The culture in which the resource metadata needs to be localized. */
124
- locale: string;
125
- /** 2 letter ISO code where the offer was purchased. */
126
- regionInfo: string;
127
- }
128
-
129
- /** Indicates a recurring charge is present for this offer. */
130
- export declare interface RecurringCharge extends OfferTermInfoAutoGenerated {
131
- /** Polymorphic discriminator, which specifies the different types this object can be */
132
- name: "Recurring Charge";
133
- /** The amount of recurring charge as per the offer term. */
134
- recurringCharge?: number;
135
- }
136
-
137
- /** Price and Metadata information for resources */
138
- export declare interface ResourceRateCardInfo {
139
- /** The currency in which the rates are provided. */
140
- currency?: string;
141
- /** The culture in which the resource information is localized. */
142
- locale?: string;
143
- /** All rates are pretax, so this will always be returned as 'false'. */
144
- isTaxIncluded?: boolean;
145
- /** A list of offer terms. */
146
- offerTerms?: OfferTermInfoAutoGeneratedUnion[];
147
- /** A list of meters. */
148
- meters?: MeterInfo[];
149
- }
150
-
151
- /** Interface representing a UsageAggregates. */
152
- export declare interface UsageAggregates {
153
- /**
154
- * Query aggregated Azure subscription consumption data for a date range.
155
- * @param reportedStartTime The start of the time range to retrieve data for.
156
- * @param reportedEndTime The end of the time range to retrieve data for.
157
- * @param options The options parameters.
158
- */
159
- list(reportedStartTime: Date, reportedEndTime: Date, options?: UsageAggregatesListOptionalParams): PagedAsyncIterableIterator<UsageAggregation>;
160
- }
161
-
162
- /** Optional parameters. */
163
- export declare interface UsageAggregatesListNextOptionalParams extends coreClient.OperationOptions {
164
- }
165
-
166
- /** Contains response data for the listNext operation. */
167
- export declare type UsageAggregatesListNextResponse = UsageAggregationListResult;
168
-
169
- /** Optional parameters. */
170
- export declare interface UsageAggregatesListOptionalParams extends coreClient.OperationOptions {
171
- /** `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). */
172
- showDetails?: boolean;
173
- /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */
174
- aggregationGranularity?: AggregationGranularity;
175
- /** 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. */
176
- continuationToken?: string;
177
- }
178
-
179
- /** Contains response data for the list operation. */
180
- export declare type UsageAggregatesListResponse = UsageAggregationListResult;
181
-
182
- /** Describes the usageAggregation. */
183
- export declare interface UsageAggregation {
184
- /** Unique Id for the usage aggregate. */
185
- id?: string;
186
- /** Name of the usage aggregate. */
187
- name?: string;
188
- /** Type of the resource being returned. */
189
- type?: string;
190
- /** The subscription identifier for the Azure user. */
191
- subscriptionId?: string;
192
- /** Unique ID for the resource that was consumed (aka ResourceID). */
193
- meterId?: string;
194
- /** UTC start time for the usage bucket to which this usage aggregate belongs. */
195
- usageStartTime?: Date;
196
- /** UTC end time for the usage bucket to which this usage aggregate belongs. */
197
- usageEndTime?: Date;
198
- /** The amount of the resource consumption that occurred in this time frame. */
199
- quantity?: number;
200
- /** The unit in which the usage for this resource is being counted, e.g. Hours, GB. */
201
- unit?: string;
202
- /** Friendly name of the resource being consumed. */
203
- meterName?: string;
204
- /** Category of the consumed resource. */
205
- meterCategory?: string;
206
- /** Sub-category of the consumed resource. */
207
- meterSubCategory?: string;
208
- /** Region of the meterId used for billing purposes */
209
- meterRegion?: string;
210
- /** Key-value pairs of instance details (legacy format). */
211
- infoFields?: InfoField;
212
- /** Key-value pairs of instance details represented as a string. */
213
- instanceData?: string;
214
- }
215
-
216
- /** The Get UsageAggregates operation response. */
217
- export declare interface UsageAggregationListResult {
218
- /** Gets or sets details for the requested aggregation. */
219
- value?: UsageAggregation[];
220
- /** Gets or sets the link to the next set of results. */
221
- nextLink?: string;
222
- }
223
-
224
- export declare class UsageManagementClient extends coreClient.ServiceClient {
225
- $host: string;
226
- apiVersion: string;
227
- subscriptionId: string;
228
- /**
229
- * Initializes a new instance of the UsageManagementClient class.
230
- * @param credentials Subscription credentials which uniquely identify client subscription.
231
- * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID forms
232
- * part of the URI for every service call.
233
- * @param options The parameter options
234
- */
235
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: UsageManagementClientOptionalParams);
236
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
237
- private addCustomApiVersionPolicy;
238
- usageAggregates: UsageAggregates;
239
- rateCard: RateCard;
240
- }
241
-
242
- /** Optional parameters. */
243
- export declare interface UsageManagementClientOptionalParams extends coreClient.ServiceClientOptions {
244
- /** server parameter */
245
- $host?: string;
246
- /** Api Version */
247
- apiVersion?: string;
248
- /** Overrides client endpoint. */
249
- endpoint?: string;
250
- }
251
-
252
- export { }
1
+ import * as coreClient from "@azure/core-client";
2
+ export type OfferTermInfoAutoGeneratedUnion = OfferTermInfoAutoGenerated | MonetaryCredit | MonetaryCommitment | RecurringCharge;
3
+ /** The Get UsageAggregates operation response. */
4
+ export interface UsageAggregationListResult {
5
+ /** Gets or sets details for the requested aggregation. */
6
+ value?: UsageAggregation[];
7
+ /** Gets or sets the link to the next set of results. */
8
+ nextLink?: string;
9
+ }
10
+ /** Describes the usageAggregation. */
11
+ export interface UsageAggregation {
12
+ /** Unique Id for the usage aggregate. */
13
+ id?: string;
14
+ /** Name of the usage aggregate. */
15
+ name?: string;
16
+ /** Type of the resource being returned. */
17
+ type?: string;
18
+ /** The subscription identifier for the Azure user. */
19
+ subscriptionId?: string;
20
+ /** Unique ID for the resource that was consumed (aka ResourceID). */
21
+ meterId?: string;
22
+ /** UTC start time for the usage bucket to which this usage aggregate belongs. */
23
+ usageStartTime?: Date;
24
+ /** UTC end time for the usage bucket to which this usage aggregate belongs. */
25
+ usageEndTime?: Date;
26
+ /** The amount of the resource consumption that occurred in this time frame. */
27
+ quantity?: number;
28
+ /** The unit in which the usage for this resource is being counted, e.g. Hours, GB. */
29
+ unit?: string;
30
+ /** Friendly name of the resource being consumed. */
31
+ meterName?: string;
32
+ /** Category of the consumed resource. */
33
+ meterCategory?: string;
34
+ /** Sub-category of the consumed resource. */
35
+ meterSubCategory?: string;
36
+ /** Region of the meterId used for billing purposes */
37
+ meterRegion?: string;
38
+ /** Key-value pairs of instance details (legacy format). */
39
+ infoFields?: InfoField;
40
+ /** Key-value pairs of instance details represented as a string. */
41
+ instanceData?: string;
42
+ }
43
+ /** Key-value pairs of instance details in the legacy format. */
44
+ export interface InfoField {
45
+ /** Identifies the name of the instance provisioned by the user. */
46
+ project?: string;
47
+ }
48
+ /** Describes the format of Error response. */
49
+ export interface ErrorResponse {
50
+ /** Error code */
51
+ code?: string;
52
+ /** Error message indicating why the operation failed. */
53
+ message?: string;
54
+ }
55
+ /** Price and Metadata information for resources */
56
+ export interface ResourceRateCardInfo {
57
+ /** The currency in which the rates are provided. */
58
+ currency?: string;
59
+ /** The culture in which the resource information is localized. */
60
+ locale?: string;
61
+ /** All rates are pretax, so this will always be returned as 'false'. */
62
+ isTaxIncluded?: boolean;
63
+ /** A list of offer terms. */
64
+ offerTerms?: OfferTermInfoAutoGeneratedUnion[];
65
+ /** A list of meters. */
66
+ meters?: MeterInfo[];
67
+ }
68
+ /** Describes the offer term. */
69
+ export interface OfferTermInfoAutoGenerated {
70
+ /** Polymorphic discriminator, which specifies the different types this object can be */
71
+ name: "Monetary Credit" | "Monetary Commitment" | "Recurring Charge";
72
+ /** Indicates the date from which the offer term is effective. */
73
+ effectiveDate?: Date;
74
+ }
75
+ /** Detailed information about the meter. */
76
+ export interface MeterInfo {
77
+ /** The unique identifier of the resource. */
78
+ meterId?: string;
79
+ /** The name of the meter, within the given meter category */
80
+ meterName?: string;
81
+ /** The category of the meter, e.g., 'Cloud services', 'Networking', etc.. */
82
+ meterCategory?: string;
83
+ /** The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. */
84
+ meterSubCategory?: string;
85
+ /** The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc. */
86
+ unit?: string;
87
+ /** Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party. */
88
+ meterTags?: string[];
89
+ /** The region in which the Azure service is available. */
90
+ meterRegion?: string;
91
+ /** The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price */
92
+ meterRates?: {
93
+ [propertyName: string]: number;
94
+ };
95
+ /** Indicates the date from which the meter rate is effective. */
96
+ effectiveDate?: Date;
97
+ /** The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged. */
98
+ includedQuantity?: number;
99
+ }
100
+ /** Parameters that are used in the odata $filter query parameter for providing RateCard information. */
101
+ export interface RateCardQueryParameters {
102
+ /** The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more information on the list of available Offer IDs, country/region availability, and billing currency. */
103
+ offerDurableId: string;
104
+ /** The currency in which the rates need to be provided. */
105
+ currency: string;
106
+ /** The culture in which the resource metadata needs to be localized. */
107
+ locale: string;
108
+ /** 2 letter ISO code where the offer was purchased. */
109
+ regionInfo: string;
110
+ }
111
+ /** Indicates that this is a monetary credit offer. */
112
+ export interface MonetaryCredit extends OfferTermInfoAutoGenerated {
113
+ /** Polymorphic discriminator, which specifies the different types this object can be */
114
+ name: "Monetary Credit";
115
+ /** The amount of credit provided under the terms of the given offer level. */
116
+ credit?: number;
117
+ /** An array of meter ids that are excluded from the given offer terms. */
118
+ excludedMeterIds?: string[];
119
+ }
120
+ /** Indicates that a monetary commitment is required for this offer */
121
+ export interface MonetaryCommitment extends OfferTermInfoAutoGenerated {
122
+ /** Polymorphic discriminator, which specifies the different types this object can be */
123
+ name: "Monetary Commitment";
124
+ /** The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'. */
125
+ tieredDiscount?: {
126
+ [propertyName: string]: number;
127
+ };
128
+ /** An array of meter ids that are excluded from the given offer terms. */
129
+ excludedMeterIds?: string[];
130
+ }
131
+ /** Indicates a recurring charge is present for this offer. */
132
+ export interface RecurringCharge extends OfferTermInfoAutoGenerated {
133
+ /** Polymorphic discriminator, which specifies the different types this object can be */
134
+ name: "Recurring Charge";
135
+ /** The amount of recurring charge as per the offer term. */
136
+ recurringCharge?: number;
137
+ }
138
+ /** Defines values for AggregationGranularity. */
139
+ export type AggregationGranularity = "Daily" | "Hourly";
140
+ /** Defines values for OfferTermInfo. */
141
+ export type OfferTermInfo = "Recurring Charge" | "Monetary Commitment" | "Monetary Credit";
142
+ /** Optional parameters. */
143
+ export interface UsageAggregatesListOptionalParams extends coreClient.OperationOptions {
144
+ /** `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). */
145
+ showDetails?: boolean;
146
+ /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */
147
+ aggregationGranularity?: AggregationGranularity;
148
+ /** 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. */
149
+ continuationToken?: string;
150
+ }
151
+ /** Contains response data for the list operation. */
152
+ export type UsageAggregatesListResponse = UsageAggregationListResult;
153
+ /** Optional parameters. */
154
+ export interface UsageAggregatesListNextOptionalParams extends coreClient.OperationOptions {
155
+ }
156
+ /** Contains response data for the listNext operation. */
157
+ export type UsageAggregatesListNextResponse = UsageAggregationListResult;
158
+ /** Optional parameters. */
159
+ export interface RateCardGetOptionalParams extends coreClient.OperationOptions {
160
+ }
161
+ /** Contains response data for the get operation. */
162
+ export type RateCardGetResponse = ResourceRateCardInfo;
163
+ /** Optional parameters. */
164
+ export interface UsageManagementClientOptionalParams extends coreClient.ServiceClientOptions {
165
+ /** server parameter */
166
+ $host?: string;
167
+ /** Api Version */
168
+ apiVersion?: string;
169
+ /** Overrides client endpoint. */
170
+ endpoint?: string;
171
+ }
172
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,+BAA+B,GACvC,0BAA0B,GAC1B,cAAc,GACd,kBAAkB,GAClB,eAAe,CAAC;AAEpB,kDAAkD;AAClD,MAAM,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AAExC,yDAAyD;AACzD,MAAM,MAAM,+BAA+B,GAAG,0BAA0B,CAAC;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,yBACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,oDAAoD;AACpD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD,2BAA2B;AAC3B,MAAM,WAAW,mCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -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=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.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 * as coreClient from \"@azure/core-client\";\n\nexport type OfferTermInfoAutoGeneratedUnion =\n | OfferTermInfoAutoGenerated\n | MonetaryCredit\n | MonetaryCommitment\n | RecurringCharge;\n\n/** The Get UsageAggregates operation response. */\nexport interface UsageAggregationListResult {\n /** Gets or sets details for the requested aggregation. */\n value?: UsageAggregation[];\n /** Gets or sets the link to the next set of results. */\n nextLink?: string;\n}\n\n/** Describes the usageAggregation. */\nexport interface UsageAggregation {\n /** Unique Id for the usage aggregate. */\n id?: string;\n /** Name of the usage aggregate. */\n name?: string;\n /** Type of the resource being returned. */\n type?: string;\n /** The subscription identifier for the Azure user. */\n subscriptionId?: string;\n /** Unique ID for the resource that was consumed (aka ResourceID). */\n meterId?: string;\n /** UTC start time for the usage bucket to which this usage aggregate belongs. */\n usageStartTime?: Date;\n /** UTC end time for the usage bucket to which this usage aggregate belongs. */\n usageEndTime?: Date;\n /** The amount of the resource consumption that occurred in this time frame. */\n quantity?: number;\n /** The unit in which the usage for this resource is being counted, e.g. Hours, GB. */\n unit?: string;\n /** Friendly name of the resource being consumed. */\n meterName?: string;\n /** Category of the consumed resource. */\n meterCategory?: string;\n /** Sub-category of the consumed resource. */\n meterSubCategory?: string;\n /** Region of the meterId used for billing purposes */\n meterRegion?: string;\n /** Key-value pairs of instance details (legacy format). */\n infoFields?: InfoField;\n /** Key-value pairs of instance details represented as a string. */\n instanceData?: string;\n}\n\n/** Key-value pairs of instance details in the legacy format. */\nexport interface InfoField {\n /** Identifies the name of the instance provisioned by the user. */\n project?: string;\n}\n\n/** Describes the format of Error response. */\nexport interface ErrorResponse {\n /** Error code */\n code?: string;\n /** Error message indicating why the operation failed. */\n message?: string;\n}\n\n/** Price and Metadata information for resources */\nexport interface ResourceRateCardInfo {\n /** The currency in which the rates are provided. */\n currency?: string;\n /** The culture in which the resource information is localized. */\n locale?: string;\n /** All rates are pretax, so this will always be returned as 'false'. */\n isTaxIncluded?: boolean;\n /** A list of offer terms. */\n offerTerms?: OfferTermInfoAutoGeneratedUnion[];\n /** A list of meters. */\n meters?: MeterInfo[];\n}\n\n/** Describes the offer term. */\nexport interface OfferTermInfoAutoGenerated {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n name: \"Monetary Credit\" | \"Monetary Commitment\" | \"Recurring Charge\";\n /** Indicates the date from which the offer term is effective. */\n effectiveDate?: Date;\n}\n\n/** Detailed information about the meter. */\nexport interface MeterInfo {\n /** The unique identifier of the resource. */\n meterId?: string;\n /** The name of the meter, within the given meter category */\n meterName?: string;\n /** The category of the meter, e.g., 'Cloud services', 'Networking', etc.. */\n meterCategory?: string;\n /** The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. */\n meterSubCategory?: string;\n /** The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc. */\n unit?: string;\n /** Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party. */\n meterTags?: string[];\n /** The region in which the Azure service is available. */\n meterRegion?: string;\n /** The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price */\n meterRates?: { [propertyName: string]: number };\n /** Indicates the date from which the meter rate is effective. */\n effectiveDate?: Date;\n /** The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged. */\n includedQuantity?: number;\n}\n\n/** Parameters that are used in the odata $filter query parameter for providing RateCard information. */\nexport interface RateCardQueryParameters {\n /** The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more information on the list of available Offer IDs, country/region availability, and billing currency. */\n offerDurableId: string;\n /** The currency in which the rates need to be provided. */\n currency: string;\n /** The culture in which the resource metadata needs to be localized. */\n locale: string;\n /** 2 letter ISO code where the offer was purchased. */\n regionInfo: string;\n}\n\n/** Indicates that this is a monetary credit offer. */\nexport interface MonetaryCredit extends OfferTermInfoAutoGenerated {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n name: \"Monetary Credit\";\n /** The amount of credit provided under the terms of the given offer level. */\n credit?: number;\n /** An array of meter ids that are excluded from the given offer terms. */\n excludedMeterIds?: string[];\n}\n\n/** Indicates that a monetary commitment is required for this offer */\nexport interface MonetaryCommitment extends OfferTermInfoAutoGenerated {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n name: \"Monetary Commitment\";\n /** The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'. */\n tieredDiscount?: { [propertyName: string]: number };\n /** An array of meter ids that are excluded from the given offer terms. */\n excludedMeterIds?: string[];\n}\n\n/** Indicates a recurring charge is present for this offer. */\nexport interface RecurringCharge extends OfferTermInfoAutoGenerated {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n name: \"Recurring Charge\";\n /** The amount of recurring charge as per the offer term. */\n recurringCharge?: number;\n}\n\n/** Defines values for AggregationGranularity. */\nexport type AggregationGranularity = \"Daily\" | \"Hourly\";\n/** Defines values for OfferTermInfo. */\nexport type OfferTermInfo =\n | \"Recurring Charge\"\n | \"Monetary Commitment\"\n | \"Monetary Credit\";\n\n/** Optional parameters. */\nexport interface UsageAggregatesListOptionalParams\n extends coreClient.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\n/** Contains response data for the list operation. */\nexport type UsageAggregatesListResponse = UsageAggregationListResult;\n\n/** Optional parameters. */\nexport interface UsageAggregatesListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type UsageAggregatesListNextResponse = UsageAggregationListResult;\n\n/** Optional parameters. */\nexport interface RateCardGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type RateCardGetResponse = ResourceRateCardInfo;\n\n/** Optional parameters. */\nexport interface UsageManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const UsageAggregationListResult: coreClient.CompositeMapper;
3
+ export declare const UsageAggregation: coreClient.CompositeMapper;
4
+ export declare const InfoField: coreClient.CompositeMapper;
5
+ export declare const ErrorResponse: coreClient.CompositeMapper;
6
+ export declare const ResourceRateCardInfo: coreClient.CompositeMapper;
7
+ export declare const OfferTermInfoAutoGenerated: coreClient.CompositeMapper;
8
+ export declare const MeterInfo: coreClient.CompositeMapper;
9
+ export declare const RateCardQueryParameters: coreClient.CompositeMapper;
10
+ export declare const MonetaryCredit: coreClient.CompositeMapper;
11
+ export declare const MonetaryCommitment: coreClient.CompositeMapper;
12
+ export declare const RecurringCharge: coreClient.CompositeMapper;
13
+ export declare let discriminators: {
14
+ OfferTermInfoAutoGenerated: coreClient.CompositeMapper;
15
+ "OfferTermInfoAutoGenerated.Monetary Credit": coreClient.CompositeMapper;
16
+ "OfferTermInfoAutoGenerated.Monetary Commitment": coreClient.CompositeMapper;
17
+ "OfferTermInfoAutoGenerated.Recurring Charge": coreClient.CompositeMapper;
18
+ };
19
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAyBnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAkGzC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAalC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAmBtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eAiD7C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eA8BnD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAyElC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAsChD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eA6BvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA8B3C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAkBxC,CAAC;AAEF,eAAO,IAAI,cAAc;;;;;CAKxB,CAAC"}