@azure/arm-commerce 3.0.0 → 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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +70 -88
- package/dist/index.js +822 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/getRateCard.d.ts +2 -0
- package/dist-esm/samples-dev/getRateCard.d.ts.map +1 -0
- package/dist-esm/samples-dev/getRateCard.js +30 -0
- package/dist-esm/samples-dev/getRateCard.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +178 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +1 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +129 -144
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +60 -60
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/rateCard.d.ts +27 -0
- package/dist-esm/src/operations/rateCard.d.ts.map +1 -0
- package/dist-esm/src/operations/rateCard.js +55 -0
- package/dist-esm/src/operations/rateCard.js.map +1 -0
- package/dist-esm/src/operations/usageAggregates.d.ts +38 -0
- package/dist-esm/src/operations/usageAggregates.d.ts.map +1 -0
- package/dist-esm/src/operations/usageAggregates.js +144 -0
- package/dist-esm/src/operations/usageAggregates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/models/usageAggregatesMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/rateCard.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/rateCard.js +9 -0
- package/dist-esm/src/operationsInterfaces/rateCard.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageAggregates.js +9 -0
- package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +1 -0
- package/dist-esm/src/usageManagementClient.d.ts +20 -0
- package/dist-esm/src/usageManagementClient.d.ts.map +1 -0
- package/dist-esm/src/usageManagementClient.js +53 -0
- package/dist-esm/src/usageManagementClient.js.map +1 -0
- package/dist-esm/test/commerce_examples.d.ts +4 -0
- package/dist-esm/test/commerce_examples.d.ts.map +1 -0
- package/dist-esm/test/commerce_examples.js +58 -0
- package/dist-esm/test/commerce_examples.js.map +1 -0
- package/package.json +75 -33
- package/review/arm-commerce.api.md +178 -0
- package/rollup.config.js +181 -30
- package/src/{models/rateCardMappers.ts → index.ts} +4 -10
- package/src/models/index.ts +140 -353
- package/src/models/mappers.ts +135 -148
- package/src/models/parameters.ts +75 -61
- package/src/operations/index.ts +1 -2
- package/src/operations/rateCard.ts +36 -60
- package/src/operations/usageAggregates.ts +122 -88
- package/src/{models/usageAggregatesMappers.ts → operationsInterfaces/index.ts} +2 -7
- package/src/operationsInterfaces/rateCard.ts +30 -0
- package/src/operationsInterfaces/usageAggregates.ts +26 -0
- package/src/usageManagementClient.ts +64 -36
- package/tsconfig.json +5 -4
- package/types/arm-commerce.d.ts +247 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-commerce.js +0 -930
- package/dist/arm-commerce.js.map +0 -1
- package/dist/arm-commerce.min.js +0 -1
- package/dist/arm-commerce.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -397
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -21
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/rateCardMappers.d.ts +0 -2
- package/esm/models/rateCardMappers.d.ts.map +0 -1
- package/esm/models/rateCardMappers.js +0 -9
- package/esm/models/rateCardMappers.js.map +0 -1
- package/esm/models/usageAggregatesMappers.d.ts +0 -2
- package/esm/models/usageAggregatesMappers.d.ts.map +0 -1
- package/esm/models/usageAggregatesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/rateCard.d.ts +0 -43
- package/esm/operations/rateCard.d.ts.map +0 -1
- package/esm/operations/rateCard.js +0 -55
- package/esm/operations/rateCard.js.map +0 -1
- package/esm/operations/usageAggregates.d.ts +0 -58
- package/esm/operations/usageAggregates.d.ts.map +0 -1
- package/esm/operations/usageAggregates.js +0 -96
- package/esm/operations/usageAggregates.js.map +0 -1
- package/esm/usageManagementClient.d.ts +0 -26
- package/esm/usageManagementClient.d.ts.map +0 -1
- package/esm/usageManagementClient.js +0 -39
- package/esm/usageManagementClient.js.map +0 -1
- package/esm/usageManagementClientContext.d.ts +0 -23
- package/esm/usageManagementClientContext.d.ts.map +0 -1
- package/esm/usageManagementClientContext.js +0 -61
- package/esm/usageManagementClientContext.js.map +0 -1
- package/src/usageManagementClientContext.ts +0 -68
package/esm/models/mappers.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
export declare const CloudError: msRest.CompositeMapper;
|
|
3
|
-
export declare const BaseResource: msRest.CompositeMapper;
|
|
4
|
-
export declare const InfoField: msRest.CompositeMapper;
|
|
5
|
-
export declare const UsageAggregation: msRest.CompositeMapper;
|
|
6
|
-
export declare const RateCardQueryParameters: msRest.CompositeMapper;
|
|
7
|
-
export declare const OfferTermInfo: msRest.CompositeMapper;
|
|
8
|
-
export declare const MeterInfo: msRest.CompositeMapper;
|
|
9
|
-
export declare const ResourceRateCardInfo: msRest.CompositeMapper;
|
|
10
|
-
export declare const MonetaryCredit: msRest.CompositeMapper;
|
|
11
|
-
export declare const MonetaryCommitment: msRest.CompositeMapper;
|
|
12
|
-
export declare const RecurringCharge: msRest.CompositeMapper;
|
|
13
|
-
export declare const ErrorResponse: msRest.CompositeMapper;
|
|
14
|
-
export declare const UsageAggregationListResult: msRest.CompositeMapper;
|
|
15
|
-
export declare const discriminators: {
|
|
16
|
-
OfferTermInfo: msRest.CompositeMapper;
|
|
17
|
-
'OfferTermInfo.Monetary Credit': msRest.CompositeMapper;
|
|
18
|
-
'OfferTermInfo.Monetary Commitment': msRest.CompositeMapper;
|
|
19
|
-
'OfferTermInfo.Recurring Charge': msRest.CompositeMapper;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/models/mappers.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,UAAU,wBAAmB,CAAC;AAC3C,eAAO,MAAM,YAAY,wBAAqB,CAAC;AAE/C,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,eAc9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CA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ACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,cAAc,GAAG;IAC5B,eAAe,EAAG,aAAa;IAC/B,+BAA+B,EAAG,cAAc;IAChD,mCAAmC,EAAG,kBAAkB;IACxD,gCAAgC,EAAG,eAAe;CAEnD,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
export declare const acceptLanguage: msRest.OperationParameter;
|
|
3
|
-
export declare const aggregationGranularity: msRest.OperationQueryParameter;
|
|
4
|
-
export declare const apiVersion: msRest.OperationQueryParameter;
|
|
5
|
-
export declare const continuationToken: msRest.OperationQueryParameter;
|
|
6
|
-
export declare const filter: msRest.OperationQueryParameter;
|
|
7
|
-
export declare const nextPageLink: msRest.OperationURLParameter;
|
|
8
|
-
export declare const reportedEndTime: msRest.OperationQueryParameter;
|
|
9
|
-
export declare const reportedStartTime: msRest.OperationQueryParameter;
|
|
10
|
-
export declare const showDetails: msRest.OperationQueryParameter;
|
|
11
|
-
export declare const subscriptionId: msRest.OperationURLParameter;
|
|
12
|
-
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/models/parameters.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,kBASnC,CAAC;AACF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,uBAgB3C,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,uBAS/B,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,uBAWtC,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,uBAS3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,qBAUjC,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,uBASpC,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,uBAStC,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,uBAWhC,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,qBASnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,IAAM,cAAc,GAA8B;IACvD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,OAAO;QACrB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,sBAAsB,GAAmC;IACpE,aAAa,EAAE;QACb,SAAS;QACT,wBAAwB;KACzB;IACD,MAAM,EAAE;QACN,cAAc,EAAE,wBAAwB;QACxC,YAAY,EAAE,OAAO;QACrB,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE;gBACb,OAAO;gBACP,QAAQ;aACT;SACF;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,UAAU,GAAmC;IACxD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,iBAAiB,GAAmC;IAC/D,aAAa,EAAE;QACb,SAAS;QACT,mBAAmB;KACpB;IACD,MAAM,EAAE;QACN,cAAc,EAAE,mBAAmB;QACnC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,MAAM,GAAmC;IACpD,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,SAAS;QACzB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,YAAY,GAAiC;IACxD,aAAa,EAAE,cAAc;IAC7B,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,UAAU;QAC1B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AACF,MAAM,CAAC,IAAM,eAAe,GAAmC;IAC7D,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,iBAAiB;QACjC,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;SACjB;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,iBAAiB,GAAmC;IAC/D,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,mBAAmB;QACnC,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;SACjB;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,WAAW,GAAmC;IACzD,aAAa,EAAE;QACb,SAAS;QACT,aAAa;KACd;IACD,MAAM,EAAE;QACN,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAAiC;IAC1D,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,gBAAgB;QAChC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rateCardMappers.d.ts","sourceRoot":"","sources":["../../src/models/rateCardMappers.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,oBAAoB,EACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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 { discriminators, ErrorResponse, MeterInfo, MonetaryCommitment, MonetaryCredit, OfferTermInfo, RecurringCharge, ResourceRateCardInfo } from "../models/mappers";
|
|
9
|
-
//# sourceMappingURL=rateCardMappers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rateCardMappers.js","sourceRoot":"","sources":["../../src/models/rateCardMappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,oBAAoB,EACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageAggregatesMappers.d.ts","sourceRoot":"","sources":["../../src/models/usageAggregatesMappers.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageAggregatesMappers.js","sourceRoot":"","sources":["../../src/models/usageAggregatesMappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import * as Models from "../models";
|
|
3
|
-
import { UsageManagementClientContext } from "../usageManagementClientContext";
|
|
4
|
-
/** Class representing a RateCard. */
|
|
5
|
-
export declare class RateCard {
|
|
6
|
-
private readonly client;
|
|
7
|
-
/**
|
|
8
|
-
* Create a RateCard.
|
|
9
|
-
* @param {UsageManagementClientContext} client Reference to the service client.
|
|
10
|
-
*/
|
|
11
|
-
constructor(client: UsageManagementClientContext);
|
|
12
|
-
/**
|
|
13
|
-
* Enables you to query for the resource/meter metadata and related prices used in a given
|
|
14
|
-
* subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing
|
|
15
|
-
* meters, including but not limited to service names, types, resources, units of measure, and
|
|
16
|
-
* regions, is subject to change at any time and without notice. If you intend to use this billing
|
|
17
|
-
* data in an automated fashion, please use the billing meter GUID to uniquely identify each
|
|
18
|
-
* billable item. If the billing meter GUID is scheduled to change due to a new billing model, you
|
|
19
|
-
* will be notified in advance of the 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',
|
|
22
|
-
* 'Region' are required to be a part of the $filter.
|
|
23
|
-
* @param [options] The optional parameters
|
|
24
|
-
* @returns Promise<Models.RateCardGetResponse>
|
|
25
|
-
*/
|
|
26
|
-
get(filter: string, options?: msRest.RequestOptionsBase): Promise<Models.RateCardGetResponse>;
|
|
27
|
-
/**
|
|
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',
|
|
30
|
-
* 'Region' are required to be a part of the $filter.
|
|
31
|
-
* @param callback The callback
|
|
32
|
-
*/
|
|
33
|
-
get(filter: string, callback: msRest.ServiceCallback<Models.ResourceRateCardInfo>): void;
|
|
34
|
-
/**
|
|
35
|
-
* @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical
|
|
36
|
-
* operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale',
|
|
37
|
-
* 'Region' are required to be a part of the $filter.
|
|
38
|
-
* @param options The optional parameters
|
|
39
|
-
* @param callback The callback
|
|
40
|
-
*/
|
|
41
|
-
get(filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceRateCardInfo>): void;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=rateCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rateCard.d.ts","sourceRoot":"","sources":["../../src/operations/rateCard.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E,qCAAqC;AACrC,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAC7F;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,GAAG,IAAI;IACxF;;;;;;OAMG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,GAAG,IAAI;CAU7H"}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
|
7
|
-
* regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
10
|
-
import * as Mappers from "../models/rateCardMappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
12
|
-
/** Class representing a RateCard. */
|
|
13
|
-
var RateCard = /** @class */ (function () {
|
|
14
|
-
/**
|
|
15
|
-
* Create a RateCard.
|
|
16
|
-
* @param {UsageManagementClientContext} client Reference to the service client.
|
|
17
|
-
*/
|
|
18
|
-
function RateCard(client) {
|
|
19
|
-
this.client = client;
|
|
20
|
-
}
|
|
21
|
-
RateCard.prototype.get = function (filter, options, callback) {
|
|
22
|
-
return this.client.sendOperationRequest({
|
|
23
|
-
filter: filter,
|
|
24
|
-
options: options
|
|
25
|
-
}, getOperationSpec, callback);
|
|
26
|
-
};
|
|
27
|
-
return RateCard;
|
|
28
|
-
}());
|
|
29
|
-
export { RateCard };
|
|
30
|
-
// Operation Specifications
|
|
31
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
32
|
-
var getOperationSpec = {
|
|
33
|
-
httpMethod: "GET",
|
|
34
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard",
|
|
35
|
-
urlParameters: [
|
|
36
|
-
Parameters.subscriptionId
|
|
37
|
-
],
|
|
38
|
-
queryParameters: [
|
|
39
|
-
Parameters.filter,
|
|
40
|
-
Parameters.apiVersion
|
|
41
|
-
],
|
|
42
|
-
headerParameters: [
|
|
43
|
-
Parameters.acceptLanguage
|
|
44
|
-
],
|
|
45
|
-
responses: {
|
|
46
|
-
200: {
|
|
47
|
-
bodyMapper: Mappers.ResourceRateCardInfo
|
|
48
|
-
},
|
|
49
|
-
default: {
|
|
50
|
-
bodyMapper: Mappers.ErrorResponse
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
serializer: serializer
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=rateCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rateCard.js","sourceRoot":"","sources":["../../src/operations/rateCard.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,qCAAqC;AACrC;IAGE;;;OAGG;IACH,kBAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAgCD,sBAAG,GAAH,UAAI,MAAc,EAAE,OAAyF,EAAE,QAA8D;QAC3K,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,MAAM,QAAA;YACN,OAAO,SAAA;SACR,EACD,gBAAgB,EAChB,QAAQ,CAAwC,CAAC;IACrD,CAAC;IACH,eAAC;AAAD,CAAC,AAlDD,IAkDC;;AAED,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAClD,IAAM,gBAAgB,GAAyB;IAC7C,UAAU,EAAE,KAAK;IACjB,IAAI,EAAE,sEAAsE;IAC5E,aAAa,EAAE;QACb,UAAU,CAAC,cAAc;KAC1B;IACD,eAAe,EAAE;QACf,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,cAAc;KAC1B;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,UAAU,YAAA;CACX,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import * as Models from "../models";
|
|
3
|
-
import { UsageManagementClientContext } from "../usageManagementClientContext";
|
|
4
|
-
/** Class representing a UsageAggregates. */
|
|
5
|
-
export declare class UsageAggregates {
|
|
6
|
-
private readonly client;
|
|
7
|
-
/**
|
|
8
|
-
* Create a UsageAggregates.
|
|
9
|
-
* @param {UsageManagementClientContext} client Reference to the service client.
|
|
10
|
-
*/
|
|
11
|
-
constructor(client: UsageManagementClientContext);
|
|
12
|
-
/**
|
|
13
|
-
* Query aggregated Azure subscription consumption data for a date range.
|
|
14
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
15
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
16
|
-
* @param [options] The optional parameters
|
|
17
|
-
* @returns Promise<Models.UsageAggregatesListResponse>
|
|
18
|
-
*/
|
|
19
|
-
list(reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListOptionalParams): Promise<Models.UsageAggregatesListResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
22
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
23
|
-
* @param callback The callback
|
|
24
|
-
*/
|
|
25
|
-
list(reportedStartTime: Date | string, reportedEndTime: Date | string, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;
|
|
26
|
-
/**
|
|
27
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
28
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
29
|
-
* @param options The optional parameters
|
|
30
|
-
* @param callback The callback
|
|
31
|
-
*/
|
|
32
|
-
list(reportedStartTime: Date | string, reportedEndTime: Date | string, options: Models.UsageAggregatesListOptionalParams, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;
|
|
33
|
-
/**
|
|
34
|
-
* Query aggregated Azure subscription consumption data for a date range.
|
|
35
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
36
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
37
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
38
|
-
* @param [options] The optional parameters
|
|
39
|
-
* @returns Promise<Models.UsageAggregatesListNextResponse>
|
|
40
|
-
*/
|
|
41
|
-
listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListNextOptionalParams): Promise<Models.UsageAggregatesListNextResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
44
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
45
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
46
|
-
* @param callback The callback
|
|
47
|
-
*/
|
|
48
|
-
listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;
|
|
49
|
-
/**
|
|
50
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
51
|
-
* @param reportedStartTime The start of the time range to retrieve data for.
|
|
52
|
-
* @param reportedEndTime The end of the time range to retrieve data for.
|
|
53
|
-
* @param options The optional parameters
|
|
54
|
-
* @param callback The callback
|
|
55
|
-
*/
|
|
56
|
-
listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, options: Models.UsageAggregatesListNextOptionalParams, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=usageAggregates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageAggregates.d.ts","sourceRoot":"","sources":["../../src/operations/usageAggregates.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E,4CAA4C;AAC5C,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;OAMG;IACH,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,iCAAiC,GAAG,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAC;IACvK;;;;OAIG;IACH,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,0BAA0B,CAAC,GAAG,IAAI;IACjJ;;;;;OAKG;IACH,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,iCAAiC,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,0BAA0B,CAAC,GAAG,IAAI;IAYpM;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,qCAAqC,GAAG,OAAO,CAAC,MAAM,CAAC,+BAA+B,CAAC;IACzM;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,0BAA0B,CAAC,GAAG,IAAI;IAC3K;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,GAAG,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,qCAAqC,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,0BAA0B,CAAC,GAAG,IAAI;CAYnO"}
|
|
@@ -1,96 +0,0 @@
|
|
|
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
|
|
7
|
-
* regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
10
|
-
import * as Mappers from "../models/usageAggregatesMappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
12
|
-
/** Class representing a UsageAggregates. */
|
|
13
|
-
var UsageAggregates = /** @class */ (function () {
|
|
14
|
-
/**
|
|
15
|
-
* Create a UsageAggregates.
|
|
16
|
-
* @param {UsageManagementClientContext} client Reference to the service client.
|
|
17
|
-
*/
|
|
18
|
-
function UsageAggregates(client) {
|
|
19
|
-
this.client = client;
|
|
20
|
-
}
|
|
21
|
-
UsageAggregates.prototype.list = function (reportedStartTime, reportedEndTime, options, callback) {
|
|
22
|
-
return this.client.sendOperationRequest({
|
|
23
|
-
reportedStartTime: reportedStartTime,
|
|
24
|
-
reportedEndTime: reportedEndTime,
|
|
25
|
-
options: options
|
|
26
|
-
}, listOperationSpec, callback);
|
|
27
|
-
};
|
|
28
|
-
UsageAggregates.prototype.listNext = function (nextPageLink, reportedStartTime, reportedEndTime, options, callback) {
|
|
29
|
-
return this.client.sendOperationRequest({
|
|
30
|
-
nextPageLink: nextPageLink,
|
|
31
|
-
reportedStartTime: reportedStartTime,
|
|
32
|
-
reportedEndTime: reportedEndTime,
|
|
33
|
-
options: options
|
|
34
|
-
}, listNextOperationSpec, callback);
|
|
35
|
-
};
|
|
36
|
-
return UsageAggregates;
|
|
37
|
-
}());
|
|
38
|
-
export { UsageAggregates };
|
|
39
|
-
// Operation Specifications
|
|
40
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
41
|
-
var listOperationSpec = {
|
|
42
|
-
httpMethod: "GET",
|
|
43
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates",
|
|
44
|
-
urlParameters: [
|
|
45
|
-
Parameters.subscriptionId
|
|
46
|
-
],
|
|
47
|
-
queryParameters: [
|
|
48
|
-
Parameters.reportedStartTime,
|
|
49
|
-
Parameters.reportedEndTime,
|
|
50
|
-
Parameters.showDetails,
|
|
51
|
-
Parameters.aggregationGranularity,
|
|
52
|
-
Parameters.continuationToken,
|
|
53
|
-
Parameters.apiVersion
|
|
54
|
-
],
|
|
55
|
-
headerParameters: [
|
|
56
|
-
Parameters.acceptLanguage
|
|
57
|
-
],
|
|
58
|
-
responses: {
|
|
59
|
-
200: {
|
|
60
|
-
bodyMapper: Mappers.UsageAggregationListResult
|
|
61
|
-
},
|
|
62
|
-
default: {
|
|
63
|
-
bodyMapper: Mappers.ErrorResponse
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
serializer: serializer
|
|
67
|
-
};
|
|
68
|
-
var listNextOperationSpec = {
|
|
69
|
-
httpMethod: "GET",
|
|
70
|
-
baseUrl: "https://management.azure.com",
|
|
71
|
-
path: "{nextLink}",
|
|
72
|
-
urlParameters: [
|
|
73
|
-
Parameters.nextPageLink
|
|
74
|
-
],
|
|
75
|
-
queryParameters: [
|
|
76
|
-
Parameters.reportedStartTime,
|
|
77
|
-
Parameters.reportedEndTime,
|
|
78
|
-
Parameters.showDetails,
|
|
79
|
-
Parameters.aggregationGranularity,
|
|
80
|
-
Parameters.continuationToken,
|
|
81
|
-
Parameters.apiVersion
|
|
82
|
-
],
|
|
83
|
-
headerParameters: [
|
|
84
|
-
Parameters.acceptLanguage
|
|
85
|
-
],
|
|
86
|
-
responses: {
|
|
87
|
-
200: {
|
|
88
|
-
bodyMapper: Mappers.UsageAggregationListResult
|
|
89
|
-
},
|
|
90
|
-
default: {
|
|
91
|
-
bodyMapper: Mappers.ErrorResponse
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
serializer: serializer
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=usageAggregates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageAggregates.js","sourceRoot":"","sources":["../../src/operations/usageAggregates.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,4CAA4C;AAC5C;IAGE;;;OAGG;IACH,yBAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAuBD,8BAAI,GAAJ,UAAK,iBAAgC,EAAE,eAA8B,EAAE,OAA8G,EAAE,QAAoE;QACzP,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB,mBAAA;YACjB,eAAe,iBAAA;YACf,OAAO,SAAA;SACR,EACD,iBAAiB,EACjB,QAAQ,CAAgD,CAAC;IAC7D,CAAC;IA0BD,kCAAQ,GAAR,UAAS,YAAoB,EAAE,iBAAgC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AC,cAAc;KAC1B;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,UAAU,YAAA;CACX,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
-
import * as Models from "./models";
|
|
4
|
-
import * as Mappers from "./models/mappers";
|
|
5
|
-
import * as operations from "./operations";
|
|
6
|
-
import { UsageManagementClientContext } from "./usageManagementClientContext";
|
|
7
|
-
declare class UsageManagementClient extends UsageManagementClientContext {
|
|
8
|
-
usageAggregates: operations.UsageAggregates;
|
|
9
|
-
rateCard: operations.RateCard;
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new instance of the UsageManagementClient class.
|
|
12
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
13
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
14
|
-
* more information about these credentials, see
|
|
15
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
16
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
17
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
18
|
-
* @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID
|
|
19
|
-
* forms part of the URI for every service call.
|
|
20
|
-
* @param [options] The parameter options
|
|
21
|
-
*/
|
|
22
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.UsageManagementClientOptions);
|
|
23
|
-
}
|
|
24
|
-
export { UsageManagementClient, UsageManagementClientContext, Models as UsageManagementModels, Mappers as UsageManagementMappers };
|
|
25
|
-
export * from "./operations";
|
|
26
|
-
//# sourceMappingURL=usageManagementClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageManagementClient.d.ts","sourceRoot":"","sources":["../src/usageManagementClient.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAG9E,cAAM,qBAAsB,SAAQ,4BAA4B;IAE9D,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IAC5C,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IAE9B;;;;;;;;;;;OAWG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,4BAA4B;CAKlJ;AAID,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,MAAM,IAAI,qBAAqB,EAC/B,OAAO,IAAI,sBAAsB,EAClC,CAAC;AACF,cAAc,cAAc,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
7
|
-
* regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { __extends } from "tslib";
|
|
10
|
-
import * as Models from "./models";
|
|
11
|
-
import * as Mappers from "./models/mappers";
|
|
12
|
-
import * as operations from "./operations";
|
|
13
|
-
import { UsageManagementClientContext } from "./usageManagementClientContext";
|
|
14
|
-
var UsageManagementClient = /** @class */ (function (_super) {
|
|
15
|
-
__extends(UsageManagementClient, _super);
|
|
16
|
-
/**
|
|
17
|
-
* Initializes a new instance of the UsageManagementClient class.
|
|
18
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
19
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
20
|
-
* more information about these credentials, see
|
|
21
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
22
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
23
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
24
|
-
* @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID
|
|
25
|
-
* forms part of the URI for every service call.
|
|
26
|
-
* @param [options] The parameter options
|
|
27
|
-
*/
|
|
28
|
-
function UsageManagementClient(credentials, subscriptionId, options) {
|
|
29
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
30
|
-
_this.usageAggregates = new operations.UsageAggregates(_this);
|
|
31
|
-
_this.rateCard = new operations.RateCard(_this);
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UsageManagementClient;
|
|
35
|
-
}(UsageManagementClientContext));
|
|
36
|
-
// Operation Specifications
|
|
37
|
-
export { UsageManagementClient, UsageManagementClientContext, Models as UsageManagementModels, Mappers as UsageManagementMappers };
|
|
38
|
-
export * from "./operations";
|
|
39
|
-
//# sourceMappingURL=usageManagementClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageManagementClient.js","sourceRoot":"","sources":["../src/usageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAIH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAG9E;IAAoC,yCAA4B;IAK9D;;;;;;;;;;;OAWG;IACH,+BAAY,WAA8D,EAAE,cAAsB,EAAE,OAA6C;QAAjJ,YACE,kBAAM,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,SAG5C;QAFC,KAAI,CAAC,eAAe,GAAG,IAAI,UAAU,CAAC,eAAe,CAAC,KAAI,CAAC,CAAC;QAC5D,KAAI,CAAC,QAAQ,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAI,CAAC,CAAC;;IAChD,CAAC;IACH,4BAAC;AAAD,CAAC,AAtBD,CAAoC,4BAA4B,GAsB/D;AAED,2BAA2B;AAE3B,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,MAAM,IAAI,qBAAqB,EAC/B,OAAO,IAAI,sBAAsB,EAClC,CAAC;AACF,cAAc,cAAc,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as Models from "./models";
|
|
2
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
3
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
4
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
5
|
-
export declare class UsageManagementClientContext extends msRestAzure.AzureServiceClient {
|
|
6
|
-
credentials: msRest.ServiceClientCredentials | TokenCredential;
|
|
7
|
-
subscriptionId: string;
|
|
8
|
-
apiVersion?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Initializes a new instance of the UsageManagementClient class.
|
|
11
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
12
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
13
|
-
* more information about these credentials, see
|
|
14
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
15
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
16
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
17
|
-
* @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID
|
|
18
|
-
* forms part of the URI for every service call.
|
|
19
|
-
* @param [options] The parameter options
|
|
20
|
-
*/
|
|
21
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.UsageManagementClientOptions);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=usageManagementClientContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageManagementClientContext.d.ts","sourceRoot":"","sources":["../src/usageManagementClientContext.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKnD,qBAAa,4BAA6B,SAAQ,WAAW,CAAC,kBAAkB;IAC9E,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,CAAC;IAC/D,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;OAWG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,4BAA4B;CAiClJ"}
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
|
7
|
-
* regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { __extends } from "tslib";
|
|
10
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
11
|
-
var packageName = "@azure/arm-commerce";
|
|
12
|
-
var packageVersion = "3.0.0";
|
|
13
|
-
var UsageManagementClientContext = /** @class */ (function (_super) {
|
|
14
|
-
__extends(UsageManagementClientContext, _super);
|
|
15
|
-
/**
|
|
16
|
-
* Initializes a new instance of the UsageManagementClient class.
|
|
17
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
18
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
19
|
-
* more information about these credentials, see
|
|
20
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
21
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
22
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
23
|
-
* @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID
|
|
24
|
-
* forms part of the URI for every service call.
|
|
25
|
-
* @param [options] The parameter options
|
|
26
|
-
*/
|
|
27
|
-
function UsageManagementClientContext(credentials, subscriptionId, options) {
|
|
28
|
-
var _this = this;
|
|
29
|
-
if (credentials == undefined) {
|
|
30
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
31
|
-
}
|
|
32
|
-
if (subscriptionId == undefined) {
|
|
33
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
34
|
-
}
|
|
35
|
-
if (!options) {
|
|
36
|
-
options = {};
|
|
37
|
-
}
|
|
38
|
-
if (!options.userAgent) {
|
|
39
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
40
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
41
|
-
}
|
|
42
|
-
_this = _super.call(this, credentials, options) || this;
|
|
43
|
-
_this.apiVersion = '2015-06-01-preview';
|
|
44
|
-
_this.acceptLanguage = 'en-US';
|
|
45
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
46
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
47
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
48
|
-
_this.credentials = credentials;
|
|
49
|
-
_this.subscriptionId = subscriptionId;
|
|
50
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
51
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
52
|
-
}
|
|
53
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
54
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
55
|
-
}
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
return UsageManagementClientContext;
|
|
59
|
-
}(msRestAzure.AzureServiceClient));
|
|
60
|
-
export { UsageManagementClientContext };
|
|
61
|
-
//# sourceMappingURL=usageManagementClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usageManagementClientContext.js","sourceRoot":"","sources":["../src/usageManagementClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAIH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAGvD,IAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,IAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;IAAkD,gDAA8B;IAK9E;;;;;;;;;;;OAWG;IACH,sCAAY,WAA8D,EAAE,cAAsB,EAAE,OAA6C;QAAjJ,iBAgCC;QA/BC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QACD,IAAI,cAAc,IAAI,SAAS,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACvD;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,IAAM,gBAAgB,GAAG,WAAW,CAAC,wBAAwB,EAAE,CAAC;YAChE,OAAO,CAAC,SAAS,GAAM,WAAW,SAAI,cAAc,SAAI,gBAAkB,CAAC;SAC5E;QAED,QAAA,kBAAM,WAAW,EAAE,OAAO,CAAC,SAAC;QAE5B,KAAI,CAAC,UAAU,GAAG,oBAAoB,CAAC;QACvC,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,KAAI,CAAC,gCAAgC,GAAG,EAAE,CAAC;QAC3C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,KAAI,CAAC,OAAO,IAAI,8BAA8B,CAAC;QACjF,KAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAC5D,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE;YAC3E,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC9C;QACD,IAAI,OAAO,CAAC,gCAAgC,KAAK,IAAI,IAAI,OAAO,CAAC,gCAAgC,KAAK,SAAS,EAAE;YAC/G,KAAI,CAAC,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC;SAClF;;IACH,CAAC;IACH,mCAAC;AAAD,CAAC,AAlDD,CAAkD,WAAW,CAAC,kBAAkB,GAkD/E"}
|
|
@@ -1,68 +0,0 @@
|
|
|
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
|
|
7
|
-
* regenerated.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import * as Models from "./models";
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
13
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
14
|
-
|
|
15
|
-
const packageName = "@azure/arm-commerce";
|
|
16
|
-
const packageVersion = "3.0.0";
|
|
17
|
-
|
|
18
|
-
export class UsageManagementClientContext extends msRestAzure.AzureServiceClient {
|
|
19
|
-
credentials: msRest.ServiceClientCredentials | TokenCredential;
|
|
20
|
-
subscriptionId: string;
|
|
21
|
-
apiVersion?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Initializes a new instance of the UsageManagementClient class.
|
|
25
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
26
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
27
|
-
* more information about these credentials, see
|
|
28
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
29
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
30
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
31
|
-
* @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID
|
|
32
|
-
* forms part of the URI for every service call.
|
|
33
|
-
* @param [options] The parameter options
|
|
34
|
-
*/
|
|
35
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.UsageManagementClientOptions) {
|
|
36
|
-
if (credentials == undefined) {
|
|
37
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
38
|
-
}
|
|
39
|
-
if (subscriptionId == undefined) {
|
|
40
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (!options) {
|
|
44
|
-
options = {};
|
|
45
|
-
}
|
|
46
|
-
if (!options.userAgent) {
|
|
47
|
-
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
48
|
-
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
super(credentials, options);
|
|
52
|
-
|
|
53
|
-
this.apiVersion = '2015-06-01-preview';
|
|
54
|
-
this.acceptLanguage = 'en-US';
|
|
55
|
-
this.longRunningOperationRetryTimeout = 30;
|
|
56
|
-
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
|
|
57
|
-
this.requestContentType = "application/json; charset=utf-8";
|
|
58
|
-
this.credentials = credentials;
|
|
59
|
-
this.subscriptionId = subscriptionId;
|
|
60
|
-
|
|
61
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
62
|
-
this.acceptLanguage = options.acceptLanguage;
|
|
63
|
-
}
|
|
64
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
65
|
-
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|