@azure/arm-commerce 2.1.1 → 4.0.0-beta.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 (125) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +73 -81
  4. package/dist/index.js +822 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/getRateCard.d.ts +2 -0
  9. package/dist-esm/samples-dev/getRateCard.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/getRateCard.js +30 -0
  11. package/dist-esm/samples-dev/getRateCard.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +178 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +9 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +19 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +132 -149
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +13 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +62 -63
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/dist-esm/src/operations/index.js +10 -0
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/rateCard.d.ts +27 -0
  33. package/dist-esm/src/operations/rateCard.d.ts.map +1 -0
  34. package/dist-esm/src/operations/rateCard.js +55 -0
  35. package/dist-esm/src/operations/rateCard.js.map +1 -0
  36. package/dist-esm/src/operations/usageAggregates.d.ts +38 -0
  37. package/dist-esm/src/operations/usageAggregates.d.ts.map +1 -0
  38. package/dist-esm/src/operations/usageAggregates.js +144 -0
  39. package/dist-esm/src/operations/usageAggregates.js.map +1 -0
  40. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  41. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  42. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  43. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/rateCard.d.ts +19 -0
  45. package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/rateCard.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/rateCard.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts +13 -0
  49. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/usageAggregates.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +1 -0
  52. package/dist-esm/src/usageManagementClient.d.ts +20 -0
  53. package/dist-esm/src/usageManagementClient.d.ts.map +1 -0
  54. package/dist-esm/src/usageManagementClient.js +53 -0
  55. package/dist-esm/src/usageManagementClient.js.map +1 -0
  56. package/dist-esm/test/commerce_examples.d.ts +4 -0
  57. package/dist-esm/test/commerce_examples.d.ts.map +1 -0
  58. package/dist-esm/test/commerce_examples.js +58 -0
  59. package/dist-esm/test/commerce_examples.js.map +1 -0
  60. package/package.json +77 -34
  61. package/review/arm-commerce.api.md +178 -0
  62. package/rollup.config.js +181 -30
  63. package/src/index.ts +12 -0
  64. package/src/models/index.ts +210 -0
  65. package/{lib → src}/models/mappers.ts +138 -152
  66. package/src/models/parameters.ts +137 -0
  67. package/{lib → src}/operations/index.ts +3 -5
  68. package/src/operations/rateCard.ts +69 -0
  69. package/src/operations/usageAggregates.ts +188 -0
  70. package/src/operationsInterfaces/index.ts +10 -0
  71. package/src/operationsInterfaces/rateCard.ts +30 -0
  72. package/src/operationsInterfaces/usageAggregates.ts +26 -0
  73. package/src/usageManagementClient.ts +78 -0
  74. package/tsconfig.json +6 -5
  75. package/types/arm-commerce.d.ts +247 -0
  76. package/types/tsdoc-metadata.json +11 -0
  77. package/dist/arm-commerce.js +0 -930
  78. package/dist/arm-commerce.js.map +0 -1
  79. package/dist/arm-commerce.min.js +0 -1
  80. package/dist/arm-commerce.min.js.map +0 -1
  81. package/esm/models/index.d.ts +0 -453
  82. package/esm/models/index.d.ts.map +0 -1
  83. package/esm/models/index.js +0 -10
  84. package/esm/models/index.js.map +0 -1
  85. package/esm/models/mappers.d.ts +0 -21
  86. package/esm/models/mappers.d.ts.map +0 -1
  87. package/esm/models/mappers.js.map +0 -1
  88. package/esm/models/parameters.d.ts +0 -12
  89. package/esm/models/parameters.d.ts.map +0 -1
  90. package/esm/models/parameters.js.map +0 -1
  91. package/esm/models/rateCardMappers.d.ts +0 -2
  92. package/esm/models/rateCardMappers.d.ts.map +0 -1
  93. package/esm/models/rateCardMappers.js +0 -11
  94. package/esm/models/rateCardMappers.js.map +0 -1
  95. package/esm/models/usageAggregatesMappers.d.ts +0 -2
  96. package/esm/models/usageAggregatesMappers.d.ts.map +0 -1
  97. package/esm/models/usageAggregatesMappers.js +0 -11
  98. package/esm/models/usageAggregatesMappers.js.map +0 -1
  99. package/esm/operations/index.d.ts.map +0 -1
  100. package/esm/operations/index.js +0 -12
  101. package/esm/operations/index.js.map +0 -1
  102. package/esm/operations/rateCard.d.ts +0 -43
  103. package/esm/operations/rateCard.d.ts.map +0 -1
  104. package/esm/operations/rateCard.js +0 -56
  105. package/esm/operations/rateCard.js.map +0 -1
  106. package/esm/operations/usageAggregates.d.ts +0 -52
  107. package/esm/operations/usageAggregates.d.ts.map +0 -1
  108. package/esm/operations/usageAggregates.js +0 -87
  109. package/esm/operations/usageAggregates.js.map +0 -1
  110. package/esm/usageManagementClient.d.ts +0 -20
  111. package/esm/usageManagementClient.d.ts.map +0 -1
  112. package/esm/usageManagementClient.js +0 -35
  113. package/esm/usageManagementClient.js.map +0 -1
  114. package/esm/usageManagementClientContext.d.ts +0 -17
  115. package/esm/usageManagementClientContext.d.ts.map +0 -1
  116. package/esm/usageManagementClientContext.js +0 -57
  117. package/esm/usageManagementClientContext.js.map +0 -1
  118. package/lib/models/index.ts +0 -479
  119. package/lib/models/parameters.ts +0 -124
  120. package/lib/models/rateCardMappers.ts +0 -21
  121. package/lib/models/usageAggregatesMappers.ts +0 -18
  122. package/lib/operations/rateCard.ts +0 -94
  123. package/lib/operations/usageAggregates.ts +0 -139
  124. package/lib/usageManagementClient.ts +0 -45
  125. package/lib/usageManagementClientContext.ts +0 -63
@@ -0,0 +1,27 @@
1
+ import { RateCard } from "../operationsInterfaces";
2
+ import { UsageManagementClient } from "../usageManagementClient";
3
+ import { RateCardGetOptionalParams, RateCardGetResponse } from "../models";
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,yBAAyB,CAAC;AAInD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE3E,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,55 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing RateCard operations. */
12
+ export class RateCardImpl {
13
+ /**
14
+ * Initialize a new instance of the class RateCard class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Enables you to query for the resource/meter metadata and related prices used in a given subscription
22
+ * by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including
23
+ * but not limited to service names, types, resources, units of measure, and regions, is subject to
24
+ * change at any time and without notice. If you intend to use this billing data in an automated
25
+ * fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing
26
+ * meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the
27
+ * change.
28
+ * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
29
+ * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region'
30
+ * are required to be a part of the $filter.
31
+ * @param options The options parameters.
32
+ */
33
+ get(filter, options) {
34
+ return this.client.sendOperationRequest({ filter, options }, getOperationSpec);
35
+ }
36
+ }
37
+ // Operation Specifications
38
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
39
+ const getOperationSpec = {
40
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard",
41
+ httpMethod: "GET",
42
+ responses: {
43
+ 200: {
44
+ bodyMapper: Mappers.ResourceRateCardInfo
45
+ },
46
+ default: {
47
+ bodyMapper: Mappers.ErrorResponse
48
+ }
49
+ },
50
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
51
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
52
+ headerParameters: [Parameters.accept],
53
+ serializer
54
+ };
55
+ //# sourceMappingURL=rateCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.js","sourceRoot":"","sources":["../../../src/operations/rateCard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAInD,4CAA4C;AAC5C,MAAM,OAAO,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;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"}
@@ -0,0 +1,38 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { UsageAggregates } from "../operationsInterfaces";
3
+ import { UsageManagementClient } from "../usageManagementClient";
4
+ import { UsageAggregation, UsageAggregatesListOptionalParams } from "../models";
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 reportedStartTime The start of the time range to retrieve data for.
32
+ * @param reportedEndTime The end of the time range to retrieve data for.
33
+ * @param nextLink The nextLink from the previous successful call to the List method.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listNext;
37
+ }
38
+ //# 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,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EACL,gBAAgB,EAEhB,iCAAiC,EAGlC,MAAM,WAAW,CAAC;AAGnB,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;YAmBhC,cAAc;YAoBd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing UsageAggregates operations. */
14
+ export class UsageAggregatesImpl {
15
+ /**
16
+ * Initialize a new instance of the class UsageAggregates class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
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
+ list(reportedStartTime, reportedEndTime, options) {
29
+ const iter = this.listPagingAll(reportedStartTime, reportedEndTime, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listPagingPage(reportedStartTime, reportedEndTime, options);
39
+ }
40
+ };
41
+ }
42
+ listPagingPage(reportedStartTime, reportedEndTime, options) {
43
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
44
+ let result = yield __await(this._list(reportedStartTime, reportedEndTime, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listNext(reportedStartTime, reportedEndTime, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listPagingAll(reportedStartTime, reportedEndTime, options) {
55
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listPagingPage(reportedStartTime, reportedEndTime, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Query aggregated Azure subscription consumption data for a date range.
74
+ * @param reportedStartTime The start of the time range to retrieve data for.
75
+ * @param reportedEndTime The end of the time range to retrieve data for.
76
+ * @param options The options parameters.
77
+ */
78
+ _list(reportedStartTime, reportedEndTime, options) {
79
+ return this.client.sendOperationRequest({ reportedStartTime, reportedEndTime, options }, listOperationSpec);
80
+ }
81
+ /**
82
+ * ListNext
83
+ * @param reportedStartTime The start of the time range to retrieve data for.
84
+ * @param reportedEndTime The end of the time range to retrieve data for.
85
+ * @param nextLink The nextLink from the previous successful call to the List method.
86
+ * @param options The options parameters.
87
+ */
88
+ _listNext(reportedStartTime, reportedEndTime, nextLink, options) {
89
+ return this.client.sendOperationRequest({ reportedStartTime, reportedEndTime, nextLink, options }, listNextOperationSpec);
90
+ }
91
+ }
92
+ // Operation Specifications
93
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
94
+ const listOperationSpec = {
95
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates",
96
+ httpMethod: "GET",
97
+ responses: {
98
+ 200: {
99
+ bodyMapper: Mappers.UsageAggregationListResult
100
+ },
101
+ default: {
102
+ bodyMapper: Mappers.ErrorResponse
103
+ }
104
+ },
105
+ queryParameters: [
106
+ Parameters.reportedStartTime,
107
+ Parameters.reportedEndTime,
108
+ Parameters.showDetails,
109
+ Parameters.aggregationGranularity,
110
+ Parameters.continuationToken,
111
+ Parameters.apiVersion
112
+ ],
113
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
114
+ headerParameters: [Parameters.accept],
115
+ serializer
116
+ };
117
+ const listNextOperationSpec = {
118
+ path: "{nextLink}",
119
+ httpMethod: "GET",
120
+ responses: {
121
+ 200: {
122
+ bodyMapper: Mappers.UsageAggregationListResult
123
+ },
124
+ default: {
125
+ bodyMapper: Mappers.ErrorResponse
126
+ }
127
+ },
128
+ queryParameters: [
129
+ Parameters.reportedStartTime,
130
+ Parameters.reportedEndTime,
131
+ Parameters.showDetails,
132
+ Parameters.aggregationGranularity,
133
+ Parameters.continuationToken,
134
+ Parameters.apiVersion
135
+ ],
136
+ urlParameters: [
137
+ Parameters.$host,
138
+ Parameters.subscriptionId,
139
+ Parameters.nextLink
140
+ ],
141
+ headerParameters: [Parameters.accept],
142
+ serializer
143
+ };
144
+ //# 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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"}
@@ -0,0 +1,3 @@
1
+ export * from "./usageAggregates";
2
+ export * from "./rateCard";
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,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./usageAggregates";
9
+ export * from "./rateCard";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { RateCardGetOptionalParams, RateCardGetResponse } from "../models";
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,WAAW,CAAC;AAE3E,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,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=rateCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateCard.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/rateCard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { UsageAggregation, UsageAggregatesListOptionalParams } from "../models";
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,WAAW,CAAC;AAGhF,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,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=usageAggregates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageAggregates.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/usageAggregates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,20 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { UsageAggregates, RateCard } from "./operationsInterfaces";
4
+ import { UsageManagementClientOptionalParams } from "./models";
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
+ usageAggregates: UsageAggregates;
18
+ rateCard: RateCard;
19
+ }
20
+ //# 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;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,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;IA8C/C,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import { UsageAggregatesImpl, RateCardImpl } from "./operations";
10
+ export class UsageManagementClient extends coreClient.ServiceClient {
11
+ /**
12
+ * Initializes a new instance of the UsageManagementClient class.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
14
+ * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID forms
15
+ * part of the URI for every service call.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ if (credentials === undefined) {
20
+ throw new Error("'credentials' cannot be null");
21
+ }
22
+ if (subscriptionId === undefined) {
23
+ throw new Error("'subscriptionId' cannot be null");
24
+ }
25
+ // Initializing default values for options
26
+ if (!options) {
27
+ options = {};
28
+ }
29
+ const defaults = {
30
+ requestContentType: "application/json; charset=utf-8",
31
+ credential: credentials
32
+ };
33
+ const packageDetails = `azsdk-js-arm-commerce/4.0.0-beta.1`;
34
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
+ : `${packageDetails}`;
37
+ if (!options.credentialScopes) {
38
+ options.credentialScopes = ["https://management.azure.com/.default"];
39
+ }
40
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
+ userAgentPrefix
42
+ }, baseUri: options.endpoint || "https://management.azure.com" });
43
+ super(optionsWithDefaults);
44
+ // Parameter assignments
45
+ this.subscriptionId = subscriptionId;
46
+ // Assigning values to Constant parameters
47
+ this.$host = options.$host || "https://management.azure.com";
48
+ this.apiVersion = options.apiVersion || "2015-06-01-preview";
49
+ this.usageAggregates = new UsageAggregatesImpl(this);
50
+ this.rateCard = new RateCardImpl(this);
51
+ }
52
+ }
53
+ //# sourceMappingURL=usageManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usageManagementClient.js","sourceRoot":"","sources":["../../src/usageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjE,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IAKjE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,oCAAoC,CAAC;QAC5D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CAIF"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=commerce_examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce_examples.d.ts","sourceRoot":"","sources":["../../test/commerce_examples.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
10
+ import * as assert from "assert";
11
+ import { ClientSecretCredential } from "@azure/identity";
12
+ import { UsageManagementClient } from "../src/usageManagementClient";
13
+ const recorderEnvSetup = {
14
+ replaceableVariables: {
15
+ AZURE_CLIENT_ID: "azure_client_id",
16
+ AZURE_CLIENT_SECRET: "azure_client_secret",
17
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
18
+ SUBSCRIPTION_ID: "azure_subscription_id"
19
+ },
20
+ customizationsOnRecordings: [
21
+ (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
22
+ ],
23
+ queryParametersToSkip: []
24
+ };
25
+ export const testPollingOptions = {
26
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
27
+ };
28
+ describe("Commerce test", () => {
29
+ let recorder;
30
+ let subscriptionId;
31
+ let client;
32
+ let location;
33
+ let resourceGroup;
34
+ beforeEach(function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ recorder = record(this, recorderEnvSetup);
37
+ subscriptionId = env.SUBSCRIPTION_ID;
38
+ // This is an example of how the environment variables are used
39
+ const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
40
+ client = new UsageManagementClient(credential, subscriptionId);
41
+ location = "eastus";
42
+ resourceGroup = "myjstest";
43
+ });
44
+ });
45
+ afterEach(function () {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ yield recorder.stop();
48
+ });
49
+ });
50
+ it("rateCard get test", function () {
51
+ var _a;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const res = yield client.rateCard.get("OfferDurableId eq 'MS-AZR-0062P' and Currency eq 'USD' and Locale eq 'en-US' and RegionInfo eq 'US'");
54
+ assert.notEqual((_a = res.meters) === null || _a === void 0 ? void 0 : _a.length, 0);
55
+ });
56
+ });
57
+ });
58
+ //# sourceMappingURL=commerce_examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce_examples.js","sourceRoot":"","sources":["../../test/commerce_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAIN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAA6B,CAAC;IAClC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAE1B,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;YAC1C,cAAc,GAAG,GAAG,CAAC,eAAe,CAAC;YACrC,+DAA+D;YAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,CAC3C,GAAG,CAAC,eAAe,EACnB,GAAG,CAAC,eAAe,EACnB,GAAG,CAAC,mBAAmB,CACxB,CAAC;YACF,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;YAC/D,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;QAC7B,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE;;;YACtB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,qGAAqG,CAAC,CAAC;YAC7I,MAAM,CAAC,QAAQ,CAAC,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM,EAAC,CAAC,CAAC,CAAA;;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}