oci-osubusage 2.12.0

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 (53) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +1521 -0
  5. package/index.d.ts +21 -0
  6. package/index.js +44 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +150 -0
  9. package/lib/client.js +413 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/model/computed-usage-aggregated-summary.d.ts +82 -0
  12. package/lib/model/computed-usage-aggregated-summary.js +81 -0
  13. package/lib/model/computed-usage-aggregated-summary.js.map +1 -0
  14. package/lib/model/computed-usage-aggregation.d.ts +82 -0
  15. package/lib/model/computed-usage-aggregation.js +77 -0
  16. package/lib/model/computed-usage-aggregation.js.map +1 -0
  17. package/lib/model/computed-usage-summary.d.ts +163 -0
  18. package/lib/model/computed-usage-summary.js +83 -0
  19. package/lib/model/computed-usage-summary.js.map +1 -0
  20. package/lib/model/computed-usage.d.ts +163 -0
  21. package/lib/model/computed-usage.js +83 -0
  22. package/lib/model/computed-usage.js.map +1 -0
  23. package/lib/model/index.d.ts +23 -0
  24. package/lib/model/index.js +46 -0
  25. package/lib/model/index.js.map +1 -0
  26. package/lib/model/product.d.ts +58 -0
  27. package/lib/model/product.js +30 -0
  28. package/lib/model/product.js.map +1 -0
  29. package/lib/request/get-computed-usage-request.d.ts +44 -0
  30. package/lib/request/get-computed-usage-request.js +15 -0
  31. package/lib/request/get-computed-usage-request.js.map +1 -0
  32. package/lib/request/index.d.ts +19 -0
  33. package/lib/request/index.js +40 -0
  34. package/lib/request/index.js.map +1 -0
  35. package/lib/request/list-computed-usage-aggregateds-request.d.ts +77 -0
  36. package/lib/request/list-computed-usage-aggregateds-request.js +26 -0
  37. package/lib/request/list-computed-usage-aggregateds-request.js.map +1 -0
  38. package/lib/request/list-computed-usages-request.d.ts +90 -0
  39. package/lib/request/list-computed-usages-request.js +30 -0
  40. package/lib/request/list-computed-usages-request.js.map +1 -0
  41. package/lib/response/get-computed-usage-response.d.ts +25 -0
  42. package/lib/response/get-computed-usage-response.js +15 -0
  43. package/lib/response/get-computed-usage-response.js.map +1 -0
  44. package/lib/response/index.d.ts +19 -0
  45. package/lib/response/index.js +16 -0
  46. package/lib/response/index.js.map +1 -0
  47. package/lib/response/list-computed-usage-aggregateds-response.d.ts +32 -0
  48. package/lib/response/list-computed-usage-aggregateds-response.js +15 -0
  49. package/lib/response/list-computed-usage-aggregateds-response.js.map +1 -0
  50. package/lib/response/list-computed-usages-response.d.ts +32 -0
  51. package/lib/response/list-computed-usages-response.js +15 -0
  52. package/lib/response/list-computed-usages-response.js.map +1 -0
  53. package/package.json +29 -0
@@ -0,0 +1,90 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20210501
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import common = require("oci-common");
14
+ /**
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.0/osubusage/ListComputedUsages.ts.html |here} to see how to use ListComputedUsagesRequest.
16
+ */
17
+ export interface ListComputedUsagesRequest extends common.BaseRequest {
18
+ /**
19
+ * The OCID of the root compartment.
20
+ */
21
+ "compartmentId": string;
22
+ /**
23
+ * Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
24
+ *
25
+ */
26
+ "subscriptionId": string;
27
+ /**
28
+ * Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
29
+ *
30
+ */
31
+ "timeFrom": Date;
32
+ /**
33
+ * Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
34
+ *
35
+ */
36
+ "timeTo": Date;
37
+ /**
38
+ * Product part number for subscribed service line, called parent product.
39
+ *
40
+ */
41
+ "parentProduct"?: string;
42
+ /**
43
+ * Product part number for Computed Usage .
44
+ *
45
+ */
46
+ "computedProduct"?: string;
47
+ /**
48
+ * The maximum number of items to return in a paginated \"List\" call.
49
+ * <p>
50
+ Example: `500`
51
+ *
52
+ */
53
+ "limit"?: number;
54
+ /**
55
+ * The value of the `opc-next-page` response header from the previous \"List\" call.
56
+ *
57
+ */
58
+ "page"?: string;
59
+ /**
60
+ * The sort order to use, either ascending (`ASC`) or descending (`DESC`).
61
+ *
62
+ */
63
+ "sortOrder"?: ListComputedUsagesRequest.SortOrder;
64
+ /**
65
+ * The field to sort by. You can provide one sort order (`sortOrder`).
66
+ *
67
+ */
68
+ "sortBy"?: ListComputedUsagesRequest.SortBy;
69
+ /**
70
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
71
+ *
72
+ */
73
+ "opcRequestId"?: string;
74
+ /**
75
+ * The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
76
+ *
77
+ */
78
+ "xOneOriginRegion"?: string;
79
+ }
80
+ export declare namespace ListComputedUsagesRequest {
81
+ enum SortOrder {
82
+ Asc = "ASC",
83
+ Desc = "DESC"
84
+ }
85
+ enum SortBy {
86
+ TimeCreated = "timeCreated",
87
+ TimeOfArrival = "timeOfArrival",
88
+ TimeMeteredOn = "timeMeteredOn"
89
+ }
90
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20210501
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ListComputedUsagesRequest = void 0;
16
+ var ListComputedUsagesRequest;
17
+ (function (ListComputedUsagesRequest) {
18
+ let SortOrder;
19
+ (function (SortOrder) {
20
+ SortOrder["Asc"] = "ASC";
21
+ SortOrder["Desc"] = "DESC";
22
+ })(SortOrder = ListComputedUsagesRequest.SortOrder || (ListComputedUsagesRequest.SortOrder = {}));
23
+ let SortBy;
24
+ (function (SortBy) {
25
+ SortBy["TimeCreated"] = "timeCreated";
26
+ SortBy["TimeOfArrival"] = "timeOfArrival";
27
+ SortBy["TimeMeteredOn"] = "timeMeteredOn";
28
+ })(SortBy = ListComputedUsagesRequest.SortBy || (ListComputedUsagesRequest.SortBy = {}));
29
+ })(ListComputedUsagesRequest = exports.ListComputedUsagesRequest || (exports.ListComputedUsagesRequest = {}));
30
+ //# sourceMappingURL=list-computed-usages-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-computed-usages-request.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/request/list-computed-usages-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAwEH,IAAiB,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IACxC,IAAY,SAGX;IAHD,WAAY,SAAS;QACnB,wBAAW,CAAA;QACX,0BAAa,CAAA;IACf,CAAC,EAHW,SAAS,GAAT,mCAAS,KAAT,mCAAS,QAGpB;IAED,IAAY,MAIX;IAJD,WAAY,MAAM;QAChB,qCAA2B,CAAA;QAC3B,yCAA+B,CAAA;QAC/B,yCAA+B,CAAA;IACjC,CAAC,EAJW,MAAM,GAAN,gCAAM,KAAN,gCAAM,QAIjB;AACH,CAAC,EAXgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAWzC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20210501
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import * as model from "../model";
14
+ export interface GetComputedUsageResponse {
15
+ /**
16
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
17
+ * particular request, please provide the request ID.
18
+ *
19
+ */
20
+ "opcRequestId": string;
21
+ /**
22
+ * The returned model.ComputedUsage instance.
23
+ */
24
+ "computedUsage": model.ComputedUsage;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20210501
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=get-computed-usage-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-computed-usage-response.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/response/get-computed-usage-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * OneSubscription API Usage Computation
3
+ * OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
4
+
5
+ * OpenAPI spec version: 20210501
6
+ * Contact: kuaskum_org_ww@oracle.com
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ import * as GetComputedUsageResponse from "./get-computed-usage-response";
15
+ export import GetComputedUsageResponse = GetComputedUsageResponse.GetComputedUsageResponse;
16
+ import * as ListComputedUsageAggregatedsResponse from "./list-computed-usage-aggregateds-response";
17
+ export import ListComputedUsageAggregatedsResponse = ListComputedUsageAggregatedsResponse.ListComputedUsageAggregatedsResponse;
18
+ import * as ListComputedUsagesResponse from "./list-computed-usages-response";
19
+ export import ListComputedUsagesResponse = ListComputedUsagesResponse.ListComputedUsagesResponse;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * OneSubscription API Usage Computation
4
+ * OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
5
+
6
+ * OpenAPI spec version: 20210501
7
+ * Contact: kuaskum_org_ww@oracle.com
8
+ *
9
+ * NOTE: This class is auto generated by OracleSDKGenerator.
10
+ * Do not edit the class manually.
11
+ *
12
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
13
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/response/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20210501
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import * as model from "../model";
14
+ export interface ListComputedUsageAggregatedsResponse {
15
+ /**
16
+ * For pagination of a list of items. When paging through a list, if this header appears in the response,
17
+ * then a partial list might have been returned. Include this value as the `page` parameter for the
18
+ * subsequent GET request to get the next batch of items.
19
+ *
20
+ */
21
+ "opcNextPage": string;
22
+ /**
23
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
24
+ * particular request, please provide the request ID.
25
+ *
26
+ */
27
+ "opcRequestId": string;
28
+ /**
29
+ * A list of ComputedUsageAggregatedSummary instances.
30
+ */
31
+ "items": model.ComputedUsageAggregatedSummary[];
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20210501
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-computed-usage-aggregateds-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-computed-usage-aggregateds-response.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/response/list-computed-usage-aggregateds-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20210501
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import * as model from "../model";
14
+ export interface ListComputedUsagesResponse {
15
+ /**
16
+ * For pagination of a list of items. When paging through a list, if this header appears in the response,
17
+ * then a partial list might have been returned. Include this value as the `page` parameter for the
18
+ * subsequent GET request to get the next batch of items.
19
+ *
20
+ */
21
+ "opcNextPage": string;
22
+ /**
23
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
24
+ * particular request, please provide the request ID.
25
+ *
26
+ */
27
+ "opcRequestId": string;
28
+ /**
29
+ * A list of ComputedUsageSummary instances.
30
+ */
31
+ "items": model.ComputedUsageSummary[];
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20210501
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-computed-usages-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-computed-usages-response.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/response/list-computed-usages-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "oci-osubusage",
3
+ "version": "2.12.0",
4
+ "description": "OCI NodeJS client for Osub Usage Service",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/oracle/oci-typescript-sdk"
8
+ },
9
+ "main": "./index.js",
10
+ "typings": "./index",
11
+ "scripts": {},
12
+ "author": {
13
+ "name": "Oracle Cloud Infrastructure",
14
+ "email": ""
15
+ },
16
+ "license": "(UPL-1.0 OR Apache-2.0)",
17
+ "dependencies": {
18
+ "oci-common": "2.12.0",
19
+ "oci-workrequests": "2.12.0"
20
+ },
21
+ "publishConfig": {
22
+ "registry": "https://registry.npmjs.org"
23
+ },
24
+ "contributors": [
25
+ "Jyoti Saini <jyoti.s.saini@oracle.com>",
26
+ "Joe Levy <joe.levy@oracle.com>",
27
+ "Walt Tran <walt.tran@oracle.com>"
28
+ ]
29
+ }