oci-usageapi 2.74.0 → 2.76.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 (123) hide show
  1. package/lib/client.d.ts +109 -19
  2. package/lib/client.js +596 -19
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/average-carbon-emission.d.ts +29 -0
  5. package/lib/model/average-carbon-emission.js +29 -0
  6. package/lib/model/average-carbon-emission.js.map +1 -0
  7. package/lib/model/clean-energy-usage.d.ts +33 -0
  8. package/lib/model/clean-energy-usage.js +29 -0
  9. package/lib/model/clean-energy-usage.js.map +1 -0
  10. package/lib/model/create-schedule-details.d.ts +2 -2
  11. package/lib/model/create-usage-carbon-emissions-query-details.d.ts +27 -0
  12. package/lib/model/create-usage-carbon-emissions-query-details.js +57 -0
  13. package/lib/model/create-usage-carbon-emissions-query-details.js.map +1 -0
  14. package/lib/model/index.d.ts +24 -0
  15. package/lib/model/index.js +25 -1
  16. package/lib/model/index.js.map +1 -1
  17. package/lib/model/request-usage-carbon-emissions-details.d.ts +59 -0
  18. package/lib/model/request-usage-carbon-emissions-details.js +63 -0
  19. package/lib/model/request-usage-carbon-emissions-details.js.map +1 -0
  20. package/lib/model/schedule.d.ts +2 -2
  21. package/lib/model/update-schedule-details.d.ts +1 -1
  22. package/lib/model/update-usage-carbon-emissions-query-details.d.ts +23 -0
  23. package/lib/model/update-usage-carbon-emissions-query-details.js +57 -0
  24. package/lib/model/update-usage-carbon-emissions-query-details.js.map +1 -0
  25. package/lib/model/usage-carbon-emission-aggregation.d.ts +30 -0
  26. package/lib/model/usage-carbon-emission-aggregation.js +61 -0
  27. package/lib/model/usage-carbon-emission-aggregation.js.map +1 -0
  28. package/lib/model/usage-carbon-emission-summary.d.ts +98 -0
  29. package/lib/model/usage-carbon-emission-summary.js +61 -0
  30. package/lib/model/usage-carbon-emission-summary.js.map +1 -0
  31. package/lib/model/usage-carbon-emissions-query-collection.d.ts +26 -0
  32. package/lib/model/usage-carbon-emissions-query-collection.js +61 -0
  33. package/lib/model/usage-carbon-emissions-query-collection.js.map +1 -0
  34. package/lib/model/usage-carbon-emissions-query-definition.d.ts +32 -0
  35. package/lib/model/usage-carbon-emissions-query-definition.js +63 -0
  36. package/lib/model/usage-carbon-emissions-query-definition.js.map +1 -0
  37. package/lib/model/usage-carbon-emissions-query-summary.d.ts +27 -0
  38. package/lib/model/usage-carbon-emissions-query-summary.js +57 -0
  39. package/lib/model/usage-carbon-emissions-query-summary.js.map +1 -0
  40. package/lib/model/usage-carbon-emissions-query.d.ts +31 -0
  41. package/lib/model/usage-carbon-emissions-query.js +57 -0
  42. package/lib/model/usage-carbon-emissions-query.js.map +1 -0
  43. package/lib/model/usage-carbon-emissions-report-query.d.ts +75 -0
  44. package/lib/model/usage-carbon-emissions-report-query.js +76 -0
  45. package/lib/model/usage-carbon-emissions-report-query.js.map +1 -0
  46. package/lib/request/create-custom-table-request.d.ts +1 -1
  47. package/lib/request/create-query-request.d.ts +1 -1
  48. package/lib/request/create-schedule-request.d.ts +1 -1
  49. package/lib/request/create-usage-carbon-emissions-query-request.d.ts +38 -0
  50. package/lib/request/create-usage-carbon-emissions-query-request.js +15 -0
  51. package/lib/request/create-usage-carbon-emissions-query-request.js.map +1 -0
  52. package/lib/request/delete-custom-table-request.d.ts +1 -1
  53. package/lib/request/delete-query-request.d.ts +1 -1
  54. package/lib/request/delete-schedule-request.d.ts +1 -1
  55. package/lib/request/delete-usage-carbon-emissions-query-request.d.ts +37 -0
  56. package/lib/request/delete-usage-carbon-emissions-query-request.js +15 -0
  57. package/lib/request/delete-usage-carbon-emissions-query-request.js.map +1 -0
  58. package/lib/request/get-custom-table-request.d.ts +1 -1
  59. package/lib/request/get-query-request.d.ts +1 -1
  60. package/lib/request/get-schedule-request.d.ts +1 -1
  61. package/lib/request/get-scheduled-run-request.d.ts +1 -1
  62. package/lib/request/get-usage-carbon-emissions-query-request.d.ts +28 -0
  63. package/lib/request/get-usage-carbon-emissions-query-request.js +15 -0
  64. package/lib/request/get-usage-carbon-emissions-query-request.js.map +1 -0
  65. package/lib/request/index.d.ts +18 -0
  66. package/lib/request/index.js +3 -1
  67. package/lib/request/index.js.map +1 -1
  68. package/lib/request/list-custom-tables-request.d.ts +1 -1
  69. package/lib/request/list-queries-request.d.ts +1 -1
  70. package/lib/request/list-scheduled-runs-request.d.ts +1 -1
  71. package/lib/request/list-schedules-request.d.ts +1 -1
  72. package/lib/request/list-usage-carbon-emissions-queries-request.d.ts +56 -0
  73. package/lib/request/list-usage-carbon-emissions-queries-request.js +28 -0
  74. package/lib/request/list-usage-carbon-emissions-queries-request.js.map +1 -0
  75. package/lib/request/request-average-carbon-emission-request.d.ts +28 -0
  76. package/lib/request/request-average-carbon-emission-request.js +15 -0
  77. package/lib/request/request-average-carbon-emission-request.js.map +1 -0
  78. package/lib/request/request-clean-energy-usage-request.d.ts +32 -0
  79. package/lib/request/request-clean-energy-usage-request.js +15 -0
  80. package/lib/request/request-clean-energy-usage-request.js.map +1 -0
  81. package/lib/request/request-summarized-configurations-request.d.ts +1 -1
  82. package/lib/request/request-summarized-usages-request.d.ts +1 -1
  83. package/lib/request/request-usage-carbon-emission-config-request.d.ts +28 -0
  84. package/lib/request/request-usage-carbon-emission-config-request.js +15 -0
  85. package/lib/request/request-usage-carbon-emission-config-request.js.map +1 -0
  86. package/lib/request/request-usage-carbon-emissions-request.d.ts +40 -0
  87. package/lib/request/request-usage-carbon-emissions-request.js +15 -0
  88. package/lib/request/request-usage-carbon-emissions-request.js.map +1 -0
  89. package/lib/request/update-custom-table-request.d.ts +1 -1
  90. package/lib/request/update-query-request.d.ts +1 -1
  91. package/lib/request/update-schedule-request.d.ts +1 -1
  92. package/lib/request/update-usage-carbon-emissions-query-request.d.ts +42 -0
  93. package/lib/request/update-usage-carbon-emissions-query-request.js +15 -0
  94. package/lib/request/update-usage-carbon-emissions-query-request.js.map +1 -0
  95. package/lib/response/create-usage-carbon-emissions-query-response.d.ts +29 -0
  96. package/lib/response/create-usage-carbon-emissions-query-response.js +15 -0
  97. package/lib/response/create-usage-carbon-emissions-query-response.js.map +1 -0
  98. package/lib/response/delete-usage-carbon-emissions-query-response.d.ts +20 -0
  99. package/lib/response/delete-usage-carbon-emissions-query-response.js +15 -0
  100. package/lib/response/delete-usage-carbon-emissions-query-response.js.map +1 -0
  101. package/lib/response/get-usage-carbon-emissions-query-response.d.ts +29 -0
  102. package/lib/response/get-usage-carbon-emissions-query-response.js +15 -0
  103. package/lib/response/get-usage-carbon-emissions-query-response.js.map +1 -0
  104. package/lib/response/index.d.ts +18 -0
  105. package/lib/response/list-usage-carbon-emissions-queries-response.d.ts +32 -0
  106. package/lib/response/list-usage-carbon-emissions-queries-response.js +15 -0
  107. package/lib/response/list-usage-carbon-emissions-queries-response.js.map +1 -0
  108. package/lib/response/request-average-carbon-emission-response.d.ts +29 -0
  109. package/lib/response/request-average-carbon-emission-response.js +15 -0
  110. package/lib/response/request-average-carbon-emission-response.js.map +1 -0
  111. package/lib/response/request-clean-energy-usage-response.d.ts +29 -0
  112. package/lib/response/request-clean-energy-usage-response.js +15 -0
  113. package/lib/response/request-clean-energy-usage-response.js.map +1 -0
  114. package/lib/response/request-usage-carbon-emission-config-response.d.ts +25 -0
  115. package/lib/response/request-usage-carbon-emission-config-response.js +15 -0
  116. package/lib/response/request-usage-carbon-emission-config-response.js.map +1 -0
  117. package/lib/response/request-usage-carbon-emissions-response.d.ts +32 -0
  118. package/lib/response/request-usage-carbon-emissions-response.js +15 -0
  119. package/lib/response/request-usage-carbon-emissions-response.js.map +1 -0
  120. package/lib/response/update-usage-carbon-emissions-query-response.d.ts +29 -0
  121. package/lib/response/update-usage-carbon-emissions-query-response.js +15 -0
  122. package/lib/response/update-usage-carbon-emissions-query-response.js.map +1 -0
  123. package/package.json +3 -3
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * Details for the '/usageCarbonEmissions' query.
16
+ */
17
+ export interface RequestUsageCarbonEmissionsDetails {
18
+ /**
19
+ * Tenant ID.
20
+ */
21
+ "tenantId": string;
22
+ /**
23
+ * The usage start time.
24
+ */
25
+ "timeUsageStarted": Date;
26
+ /**
27
+ * The usage end time.
28
+ */
29
+ "timeUsageEnded": Date;
30
+ /**
31
+ * Specifies whether aggregated by time. If isAggregateByTime is true, all usage carbon emissions over the query time period will be added up.
32
+ */
33
+ "isAggregateByTime"?: boolean;
34
+ /**
35
+ * Aggregate the result by.
36
+ * For example:
37
+ * `[\"tagNamespace\", \"tagKey\", \"tagValue\", \"service\", \"skuName\", \"skuPartNumber\", \"unit\",
38
+ * \"compartmentName\", \"compartmentPath\", \"compartmentId\", \"platform\", \"region\", \"logicalAd\",
39
+ * \"resourceId\", \"resourceName\", \"tenantId\", \"tenantName\", \"subscriptionId\"]`
40
+ *
41
+ */
42
+ "groupBy"?: Array<string>;
43
+ /**
44
+ * GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list.
45
+ * For example:
46
+ * `[{\"namespace\":\"oracle\", \"key\":\"createdBy\"]`
47
+ *
48
+ */
49
+ "groupByTag"?: Array<model.Tag>;
50
+ /**
51
+ * The compartment depth level. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
52
+ */
53
+ "compartmentDepth"?: number;
54
+ "filter"?: model.Filter;
55
+ }
56
+ export declare namespace RequestUsageCarbonEmissionsDetails {
57
+ function getJsonObj(obj: RequestUsageCarbonEmissionsDetails): object;
58
+ function getDeserializedJsonObj(obj: RequestUsageCarbonEmissionsDetails): object;
59
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /**
3
+ * Usage API
4
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
5
+ * OpenAPI spec version: 20200107
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.RequestUsageCarbonEmissionsDetails = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var RequestUsageCarbonEmissionsDetails;
37
+ (function (RequestUsageCarbonEmissionsDetails) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "groupByTag": obj.groupByTag
41
+ ? obj.groupByTag.map(item => {
42
+ return model.Tag.getJsonObj(item);
43
+ })
44
+ : undefined,
45
+ "filter": obj.filter ? model.Filter.getJsonObj(obj.filter) : undefined
46
+ });
47
+ return jsonObj;
48
+ }
49
+ RequestUsageCarbonEmissionsDetails.getJsonObj = getJsonObj;
50
+ function getDeserializedJsonObj(obj) {
51
+ const jsonObj = Object.assign(Object.assign({}, obj), {
52
+ "groupByTag": obj.groupByTag
53
+ ? obj.groupByTag.map(item => {
54
+ return model.Tag.getDeserializedJsonObj(item);
55
+ })
56
+ : undefined,
57
+ "filter": obj.filter ? model.Filter.getDeserializedJsonObj(obj.filter) : undefined
58
+ });
59
+ return jsonObj;
60
+ }
61
+ RequestUsageCarbonEmissionsDetails.getDeserializedJsonObj = getDeserializedJsonObj;
62
+ })(RequestUsageCarbonEmissionsDetails = exports.RequestUsageCarbonEmissionsDetails || (exports.RequestUsageCarbonEmissionsDetails = {}));
63
+ //# sourceMappingURL=request-usage-carbon-emissions-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-usage-carbon-emissions-details.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/request-usage-carbon-emissions-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA8ClC,IAAiB,kCAAkC,CAiClD;AAjCD,WAAiB,kCAAkC;IACjD,SAAgB,UAAU,CAAC,GAAuC;QAChE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YAEb,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;SACvE,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,6CAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAuC;QAC5E,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YAEb,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;SACnF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,yDAAsB,yBAerC,CAAA;AACH,CAAC,EAjCgB,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAiClD"}
@@ -37,11 +37,11 @@ export interface Schedule {
37
37
  */
38
38
  "timeNextRun"?: Date;
39
39
  /**
40
- * Specifies supported output file format.
40
+ * Specifies the supported output file format.
41
41
  */
42
42
  "outputFileFormat"?: Schedule.OutputFileFormat;
43
43
  /**
44
- * The saved report id which can also be used to generate query.
44
+ * The saved report ID which can also be used to generate a query.
45
45
  */
46
46
  "savedReportId"?: string;
47
47
  /**
@@ -21,7 +21,7 @@ export interface UpdateScheduleDetails {
21
21
  */
22
22
  "description"?: string;
23
23
  /**
24
- * Specifies supported output file format.
24
+ * Specifies the supported output file format.
25
25
  */
26
26
  "outputFileFormat"?: UpdateScheduleDetails.OutputFileFormat;
27
27
  "resultLocation"?: model.ObjectStorageLocation;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * Details for the query to update usageCarbonEmissionsQuery, costAnalysisUI, and displayName.
16
+ */
17
+ export interface UpdateUsageCarbonEmissionsQueryDetails {
18
+ "queryDefinition": model.UsageCarbonEmissionsQueryDefinition;
19
+ }
20
+ export declare namespace UpdateUsageCarbonEmissionsQueryDetails {
21
+ function getJsonObj(obj: UpdateUsageCarbonEmissionsQueryDetails): object;
22
+ function getDeserializedJsonObj(obj: UpdateUsageCarbonEmissionsQueryDetails): object;
23
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * Usage API
4
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
5
+ * OpenAPI spec version: 20200107
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.UpdateUsageCarbonEmissionsQueryDetails = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var UpdateUsageCarbonEmissionsQueryDetails;
37
+ (function (UpdateUsageCarbonEmissionsQueryDetails) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "queryDefinition": obj.queryDefinition
41
+ ? model.UsageCarbonEmissionsQueryDefinition.getJsonObj(obj.queryDefinition)
42
+ : undefined
43
+ });
44
+ return jsonObj;
45
+ }
46
+ UpdateUsageCarbonEmissionsQueryDetails.getJsonObj = getJsonObj;
47
+ function getDeserializedJsonObj(obj) {
48
+ const jsonObj = Object.assign(Object.assign({}, obj), {
49
+ "queryDefinition": obj.queryDefinition
50
+ ? model.UsageCarbonEmissionsQueryDefinition.getDeserializedJsonObj(obj.queryDefinition)
51
+ : undefined
52
+ });
53
+ return jsonObj;
54
+ }
55
+ UpdateUsageCarbonEmissionsQueryDetails.getDeserializedJsonObj = getDeserializedJsonObj;
56
+ })(UpdateUsageCarbonEmissionsQueryDetails = exports.UpdateUsageCarbonEmissionsQueryDetails || (exports.UpdateUsageCarbonEmissionsQueryDetails = {}));
57
+ //# sourceMappingURL=update-usage-carbon-emissions-query-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-usage-carbon-emissions-query-details.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/update-usage-carbon-emissions-query-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,sCAAsC,CAyBtD;AAzBD,WAAiB,sCAAsC;IACrD,SAAgB,UAAU,CAAC,GAA2C;QACpE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,iBAAiB,EAAE,GAAG,CAAC,eAAe;gBACpC,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC;gBAC3E,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,iDAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA2C;QAChF,MAAM,OAAO,mCACR,GAAG,GACH;YACD,iBAAiB,EAAE,GAAG,CAAC,eAAe;gBACpC,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC,sBAAsB,CAAC,GAAG,CAAC,eAAe,CAAC;gBACvF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,6DAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,sCAAsC,GAAtC,8CAAsC,KAAtC,8CAAsC,QAyBtD"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * The account (tenant) usage carbon emissions.
16
+ */
17
+ export interface UsageCarbonEmissionAggregation {
18
+ /**
19
+ * Aggregate the result by.
20
+ */
21
+ "groupBy"?: Array<string>;
22
+ /**
23
+ * A list of usage carbon emission items.
24
+ */
25
+ "items": Array<model.UsageCarbonEmissionSummary>;
26
+ }
27
+ export declare namespace UsageCarbonEmissionAggregation {
28
+ function getJsonObj(obj: UsageCarbonEmissionAggregation): object;
29
+ function getDeserializedJsonObj(obj: UsageCarbonEmissionAggregation): object;
30
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * Usage API
4
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
5
+ * OpenAPI spec version: 20200107
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.UsageCarbonEmissionAggregation = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var UsageCarbonEmissionAggregation;
37
+ (function (UsageCarbonEmissionAggregation) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "items": obj.items
41
+ ? obj.items.map(item => {
42
+ return model.UsageCarbonEmissionSummary.getJsonObj(item);
43
+ })
44
+ : undefined
45
+ });
46
+ return jsonObj;
47
+ }
48
+ UsageCarbonEmissionAggregation.getJsonObj = getJsonObj;
49
+ function getDeserializedJsonObj(obj) {
50
+ const jsonObj = Object.assign(Object.assign({}, obj), {
51
+ "items": obj.items
52
+ ? obj.items.map(item => {
53
+ return model.UsageCarbonEmissionSummary.getDeserializedJsonObj(item);
54
+ })
55
+ : undefined
56
+ });
57
+ return jsonObj;
58
+ }
59
+ UsageCarbonEmissionAggregation.getDeserializedJsonObj = getDeserializedJsonObj;
60
+ })(UsageCarbonEmissionAggregation = exports.UsageCarbonEmissionAggregation || (exports.UsageCarbonEmissionAggregation = {}));
61
+ //# sourceMappingURL=usage-carbon-emission-aggregation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-carbon-emission-aggregation.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emission-aggregation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,8BAA8B,CA6B9C;AA7BD,WAAiB,8BAA8B;IAC7C,SAAgB,UAAU,CAAC,GAAmC;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,yCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmC;QACxE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,qDAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA6B9C"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * The usage carbon emission store result.
16
+ */
17
+ export interface UsageCarbonEmissionSummary {
18
+ /**
19
+ * The tenancy OCID.
20
+ */
21
+ "tenantId"?: string;
22
+ /**
23
+ * The tenancy name.
24
+ */
25
+ "tenantName"?: string;
26
+ /**
27
+ * The compartment OCID.
28
+ */
29
+ "compartmentId"?: string;
30
+ /**
31
+ * The compartment path, starting from root.
32
+ */
33
+ "compartmentPath"?: string;
34
+ /**
35
+ * The compartment name.
36
+ */
37
+ "compartmentName"?: string;
38
+ /**
39
+ * The service name that is incurring the cost.
40
+ */
41
+ "service"?: string;
42
+ /**
43
+ * The resource name that is incurring the cost.
44
+ */
45
+ "resourceName"?: string;
46
+ /**
47
+ * The resource OCID that is incurring the cost.
48
+ */
49
+ "resourceId"?: string;
50
+ /**
51
+ * The region of the usage.
52
+ */
53
+ "region"?: string;
54
+ /**
55
+ * The availability domain of the usage.
56
+ */
57
+ "ad"?: string;
58
+ /**
59
+ * The SKU part number.
60
+ */
61
+ "skuPartNumber"?: string;
62
+ /**
63
+ * The SKU friendly name.
64
+ */
65
+ "skuName"?: string;
66
+ /**
67
+ * Platform for the cost.
68
+ */
69
+ "platform"?: string;
70
+ /**
71
+ * The usage start time.
72
+ */
73
+ "timeUsageStarted": Date;
74
+ /**
75
+ * The usage end time.
76
+ */
77
+ "timeUsageEnded": Date;
78
+ /**
79
+ * The carbon emission in MTCO2 unit. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
80
+ */
81
+ "computedCarbonEmission": number;
82
+ /**
83
+ * The method used to calculate carbon emission.
84
+ */
85
+ "emissionCalculationMethod": string;
86
+ /**
87
+ * The subscription ID.
88
+ */
89
+ "subscriptionId"?: string;
90
+ /**
91
+ * For grouping, a tag definition. For filtering, a definition and key.
92
+ */
93
+ "tags"?: Array<model.Tag>;
94
+ }
95
+ export declare namespace UsageCarbonEmissionSummary {
96
+ function getJsonObj(obj: UsageCarbonEmissionSummary): object;
97
+ function getDeserializedJsonObj(obj: UsageCarbonEmissionSummary): object;
98
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * Usage API
4
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
5
+ * OpenAPI spec version: 20200107
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.UsageCarbonEmissionSummary = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var UsageCarbonEmissionSummary;
37
+ (function (UsageCarbonEmissionSummary) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "tags": obj.tags
41
+ ? obj.tags.map(item => {
42
+ return model.Tag.getJsonObj(item);
43
+ })
44
+ : undefined
45
+ });
46
+ return jsonObj;
47
+ }
48
+ UsageCarbonEmissionSummary.getJsonObj = getJsonObj;
49
+ function getDeserializedJsonObj(obj) {
50
+ const jsonObj = Object.assign(Object.assign({}, obj), {
51
+ "tags": obj.tags
52
+ ? obj.tags.map(item => {
53
+ return model.Tag.getDeserializedJsonObj(item);
54
+ })
55
+ : undefined
56
+ });
57
+ return jsonObj;
58
+ }
59
+ UsageCarbonEmissionSummary.getDeserializedJsonObj = getDeserializedJsonObj;
60
+ })(UsageCarbonEmissionSummary = exports.UsageCarbonEmissionSummary || (exports.UsageCarbonEmissionSummary = {}));
61
+ //# sourceMappingURL=usage-carbon-emission-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-carbon-emission-summary.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emission-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAqFlC,IAAiB,0BAA0B,CA6B1C;AA7BD,WAAiB,0BAA0B;IACzC,SAAgB,UAAU,CAAC,GAA+B;QACxD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,MAAM,EAAE,GAAG,CAAC,IAAI;gBACd,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAClB,OAAO,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,qCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA+B;QACpE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,MAAM,EAAE,GAAG,CAAC,IAAI;gBACd,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAClB,OAAO,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,iDAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QA6B1C"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * A usage carbon emissions query list.
16
+ */
17
+ export interface UsageCarbonEmissionsQueryCollection {
18
+ /**
19
+ * Usage carbon emissions query list.
20
+ */
21
+ "items": Array<model.UsageCarbonEmissionsQuerySummary>;
22
+ }
23
+ export declare namespace UsageCarbonEmissionsQueryCollection {
24
+ function getJsonObj(obj: UsageCarbonEmissionsQueryCollection): object;
25
+ function getDeserializedJsonObj(obj: UsageCarbonEmissionsQueryCollection): object;
26
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * Usage API
4
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
5
+ * OpenAPI spec version: 20200107
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.UsageCarbonEmissionsQueryCollection = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var UsageCarbonEmissionsQueryCollection;
37
+ (function (UsageCarbonEmissionsQueryCollection) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "items": obj.items
41
+ ? obj.items.map(item => {
42
+ return model.UsageCarbonEmissionsQuerySummary.getJsonObj(item);
43
+ })
44
+ : undefined
45
+ });
46
+ return jsonObj;
47
+ }
48
+ UsageCarbonEmissionsQueryCollection.getJsonObj = getJsonObj;
49
+ function getDeserializedJsonObj(obj) {
50
+ const jsonObj = Object.assign(Object.assign({}, obj), {
51
+ "items": obj.items
52
+ ? obj.items.map(item => {
53
+ return model.UsageCarbonEmissionsQuerySummary.getDeserializedJsonObj(item);
54
+ })
55
+ : undefined
56
+ });
57
+ return jsonObj;
58
+ }
59
+ UsageCarbonEmissionsQueryCollection.getDeserializedJsonObj = getDeserializedJsonObj;
60
+ })(UsageCarbonEmissionsQueryCollection = exports.UsageCarbonEmissionsQueryCollection || (exports.UsageCarbonEmissionsQueryCollection = {}));
61
+ //# sourceMappingURL=usage-carbon-emissions-query-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-carbon-emissions-query-collection.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emissions-query-collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAalC,IAAiB,mCAAmC,CA6BnD;AA7BD,WAAiB,mCAAmC;IAClD,SAAgB,UAAU,CAAC,GAAwC;QACjE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,8CAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwC;QAC7E,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,gCAAgC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC7E,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,0DAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QA6BnD"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Usage API
3
+ * Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the dimension of your choosing. The Usage API is used by the Cost Analysis tool in the Console. Also see [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information.
4
+ * OpenAPI spec version: 20200107
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, 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
+ /**
15
+ * The common fields for queries.
16
+ */
17
+ export interface UsageCarbonEmissionsQueryDefinition {
18
+ /**
19
+ * The query display name. Avoid entering confidential information.
20
+ */
21
+ "displayName": string;
22
+ "reportQuery": model.UsageCarbonEmissionsReportQuery;
23
+ "costAnalysisUI": model.CostAnalysisUI;
24
+ /**
25
+ * The saved query version. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
26
+ */
27
+ "version": number;
28
+ }
29
+ export declare namespace UsageCarbonEmissionsQueryDefinition {
30
+ function getJsonObj(obj: UsageCarbonEmissionsQueryDefinition): object;
31
+ function getDeserializedJsonObj(obj: UsageCarbonEmissionsQueryDefinition): object;
32
+ }