oci-usageapi 2.75.0 → 2.76.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/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client.d.ts +110 -20
- package/lib/client.js +597 -20
- package/lib/client.js.map +1 -1
- package/lib/model/average-carbon-emission.d.ts +29 -0
- package/lib/model/average-carbon-emission.js +29 -0
- package/lib/model/average-carbon-emission.js.map +1 -0
- package/lib/model/clean-energy-usage.d.ts +33 -0
- package/lib/model/clean-energy-usage.js +29 -0
- package/lib/model/clean-energy-usage.js.map +1 -0
- package/lib/model/configuration-aggregation.d.ts +1 -1
- package/lib/model/configuration-aggregation.js +1 -1
- package/lib/model/configuration.d.ts +1 -1
- package/lib/model/configuration.js +1 -1
- package/lib/model/cost-analysis-ui.d.ts +1 -1
- package/lib/model/cost-analysis-ui.js +1 -1
- package/lib/model/create-custom-table-details.d.ts +1 -1
- package/lib/model/create-custom-table-details.js +1 -1
- package/lib/model/create-query-details.d.ts +1 -1
- package/lib/model/create-query-details.js +1 -1
- package/lib/model/create-schedule-details.d.ts +3 -3
- package/lib/model/create-schedule-details.js +1 -1
- package/lib/model/create-usage-carbon-emissions-query-details.d.ts +27 -0
- package/lib/model/create-usage-carbon-emissions-query-details.js +57 -0
- package/lib/model/create-usage-carbon-emissions-query-details.js.map +1 -0
- package/lib/model/custom-table-collection.d.ts +1 -1
- package/lib/model/custom-table-collection.js +1 -1
- package/lib/model/custom-table-summary.d.ts +1 -1
- package/lib/model/custom-table-summary.js +1 -1
- package/lib/model/custom-table.d.ts +1 -1
- package/lib/model/custom-table.js +1 -1
- package/lib/model/date-range.d.ts +1 -1
- package/lib/model/date-range.js +1 -1
- package/lib/model/dimension.d.ts +1 -1
- package/lib/model/dimension.js +1 -1
- package/lib/model/dynamic-date-range.d.ts +1 -1
- package/lib/model/dynamic-date-range.js +1 -1
- package/lib/model/filter.d.ts +1 -1
- package/lib/model/filter.js +1 -1
- package/lib/model/forecast.d.ts +1 -1
- package/lib/model/forecast.js +1 -1
- package/lib/model/index.d.ts +25 -1
- package/lib/model/index.js +26 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/object-storage-location.d.ts +1 -1
- package/lib/model/object-storage-location.js +1 -1
- package/lib/model/query-collection.d.ts +1 -1
- package/lib/model/query-collection.js +1 -1
- package/lib/model/query-definition.d.ts +1 -1
- package/lib/model/query-definition.js +1 -1
- package/lib/model/query-properties.d.ts +1 -1
- package/lib/model/query-properties.js +1 -1
- package/lib/model/query-summary.d.ts +1 -1
- package/lib/model/query-summary.js +1 -1
- package/lib/model/query.d.ts +1 -1
- package/lib/model/query.js +1 -1
- package/lib/model/report-query.d.ts +1 -1
- package/lib/model/report-query.js +1 -1
- package/lib/model/request-summarized-usages-details.d.ts +1 -1
- package/lib/model/request-summarized-usages-details.js +1 -1
- package/lib/model/request-usage-carbon-emissions-details.d.ts +59 -0
- package/lib/model/request-usage-carbon-emissions-details.js +63 -0
- package/lib/model/request-usage-carbon-emissions-details.js.map +1 -0
- package/lib/model/result-location.d.ts +1 -1
- package/lib/model/result-location.js +1 -1
- package/lib/model/saved-custom-table.d.ts +1 -1
- package/lib/model/saved-custom-table.js +1 -1
- package/lib/model/schedule-collection.d.ts +1 -1
- package/lib/model/schedule-collection.js +1 -1
- package/lib/model/schedule-summary.d.ts +1 -1
- package/lib/model/schedule-summary.js +1 -1
- package/lib/model/schedule.d.ts +3 -3
- package/lib/model/schedule.js +1 -1
- package/lib/model/scheduled-run-collection.d.ts +1 -1
- package/lib/model/scheduled-run-collection.js +1 -1
- package/lib/model/scheduled-run-summary.d.ts +1 -1
- package/lib/model/scheduled-run-summary.js +1 -1
- package/lib/model/scheduled-run.d.ts +1 -1
- package/lib/model/scheduled-run.js +1 -1
- package/lib/model/static-date-range.d.ts +1 -1
- package/lib/model/static-date-range.js +1 -1
- package/lib/model/tag.d.ts +1 -1
- package/lib/model/tag.js +1 -1
- package/lib/model/update-custom-table-details.d.ts +1 -1
- package/lib/model/update-custom-table-details.js +1 -1
- package/lib/model/update-query-details.d.ts +1 -1
- package/lib/model/update-query-details.js +1 -1
- package/lib/model/update-schedule-details.d.ts +2 -2
- package/lib/model/update-schedule-details.js +1 -1
- package/lib/model/update-usage-carbon-emissions-query-details.d.ts +23 -0
- package/lib/model/update-usage-carbon-emissions-query-details.js +57 -0
- package/lib/model/update-usage-carbon-emissions-query-details.js.map +1 -0
- package/lib/model/usage-aggregation.d.ts +1 -1
- package/lib/model/usage-aggregation.js +1 -1
- package/lib/model/usage-carbon-emission-aggregation.d.ts +30 -0
- package/lib/model/usage-carbon-emission-aggregation.js +61 -0
- package/lib/model/usage-carbon-emission-aggregation.js.map +1 -0
- package/lib/model/usage-carbon-emission-summary.d.ts +98 -0
- package/lib/model/usage-carbon-emission-summary.js +61 -0
- package/lib/model/usage-carbon-emission-summary.js.map +1 -0
- package/lib/model/usage-carbon-emissions-query-collection.d.ts +26 -0
- package/lib/model/usage-carbon-emissions-query-collection.js +61 -0
- package/lib/model/usage-carbon-emissions-query-collection.js.map +1 -0
- package/lib/model/usage-carbon-emissions-query-definition.d.ts +32 -0
- package/lib/model/usage-carbon-emissions-query-definition.js +63 -0
- package/lib/model/usage-carbon-emissions-query-definition.js.map +1 -0
- package/lib/model/usage-carbon-emissions-query-summary.d.ts +27 -0
- package/lib/model/usage-carbon-emissions-query-summary.js +57 -0
- package/lib/model/usage-carbon-emissions-query-summary.js.map +1 -0
- package/lib/model/usage-carbon-emissions-query.d.ts +31 -0
- package/lib/model/usage-carbon-emissions-query.js +57 -0
- package/lib/model/usage-carbon-emissions-query.js.map +1 -0
- package/lib/model/usage-carbon-emissions-report-query.d.ts +75 -0
- package/lib/model/usage-carbon-emissions-report-query.js +76 -0
- package/lib/model/usage-carbon-emissions-report-query.js.map +1 -0
- package/lib/model/usage-summary.d.ts +1 -1
- package/lib/model/usage-summary.js +1 -1
- package/lib/request/create-custom-table-request.d.ts +2 -2
- package/lib/request/create-custom-table-request.js +1 -1
- package/lib/request/create-query-request.d.ts +2 -2
- package/lib/request/create-query-request.js +1 -1
- package/lib/request/create-schedule-request.d.ts +2 -2
- package/lib/request/create-schedule-request.js +1 -1
- package/lib/request/create-usage-carbon-emissions-query-request.d.ts +38 -0
- package/lib/request/create-usage-carbon-emissions-query-request.js +15 -0
- package/lib/request/create-usage-carbon-emissions-query-request.js.map +1 -0
- package/lib/request/delete-custom-table-request.d.ts +2 -2
- package/lib/request/delete-custom-table-request.js +1 -1
- package/lib/request/delete-query-request.d.ts +2 -2
- package/lib/request/delete-query-request.js +1 -1
- package/lib/request/delete-schedule-request.d.ts +2 -2
- package/lib/request/delete-schedule-request.js +1 -1
- package/lib/request/delete-usage-carbon-emissions-query-request.d.ts +37 -0
- package/lib/request/delete-usage-carbon-emissions-query-request.js +15 -0
- package/lib/request/delete-usage-carbon-emissions-query-request.js.map +1 -0
- package/lib/request/get-custom-table-request.d.ts +2 -2
- package/lib/request/get-custom-table-request.js +1 -1
- package/lib/request/get-query-request.d.ts +2 -2
- package/lib/request/get-query-request.js +1 -1
- package/lib/request/get-schedule-request.d.ts +2 -2
- package/lib/request/get-schedule-request.js +1 -1
- package/lib/request/get-scheduled-run-request.d.ts +2 -2
- package/lib/request/get-scheduled-run-request.js +1 -1
- package/lib/request/get-usage-carbon-emissions-query-request.d.ts +28 -0
- package/lib/request/get-usage-carbon-emissions-query-request.js +15 -0
- package/lib/request/get-usage-carbon-emissions-query-request.js.map +1 -0
- package/lib/request/index.d.ts +19 -1
- package/lib/request/index.js +4 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-custom-tables-request.d.ts +2 -2
- package/lib/request/list-custom-tables-request.js +1 -1
- package/lib/request/list-queries-request.d.ts +2 -2
- package/lib/request/list-queries-request.js +1 -1
- package/lib/request/list-scheduled-runs-request.d.ts +2 -2
- package/lib/request/list-scheduled-runs-request.js +1 -1
- package/lib/request/list-schedules-request.d.ts +2 -2
- package/lib/request/list-schedules-request.js +1 -1
- package/lib/request/list-usage-carbon-emissions-queries-request.d.ts +56 -0
- package/lib/request/list-usage-carbon-emissions-queries-request.js +28 -0
- package/lib/request/list-usage-carbon-emissions-queries-request.js.map +1 -0
- package/lib/request/request-average-carbon-emission-request.d.ts +28 -0
- package/lib/request/request-average-carbon-emission-request.js +15 -0
- package/lib/request/request-average-carbon-emission-request.js.map +1 -0
- package/lib/request/request-clean-energy-usage-request.d.ts +32 -0
- package/lib/request/request-clean-energy-usage-request.js +15 -0
- package/lib/request/request-clean-energy-usage-request.js.map +1 -0
- package/lib/request/request-summarized-configurations-request.d.ts +2 -2
- package/lib/request/request-summarized-configurations-request.js +1 -1
- package/lib/request/request-summarized-usages-request.d.ts +2 -2
- package/lib/request/request-summarized-usages-request.js +1 -1
- package/lib/request/request-usage-carbon-emission-config-request.d.ts +28 -0
- package/lib/request/request-usage-carbon-emission-config-request.js +15 -0
- package/lib/request/request-usage-carbon-emission-config-request.js.map +1 -0
- package/lib/request/request-usage-carbon-emissions-request.d.ts +40 -0
- package/lib/request/request-usage-carbon-emissions-request.js +15 -0
- package/lib/request/request-usage-carbon-emissions-request.js.map +1 -0
- package/lib/request/update-custom-table-request.d.ts +2 -2
- package/lib/request/update-custom-table-request.js +1 -1
- package/lib/request/update-query-request.d.ts +2 -2
- package/lib/request/update-query-request.js +1 -1
- package/lib/request/update-schedule-request.d.ts +2 -2
- package/lib/request/update-schedule-request.js +1 -1
- package/lib/request/update-usage-carbon-emissions-query-request.d.ts +42 -0
- package/lib/request/update-usage-carbon-emissions-query-request.js +15 -0
- package/lib/request/update-usage-carbon-emissions-query-request.js.map +1 -0
- package/lib/response/create-custom-table-response.d.ts +1 -1
- package/lib/response/create-custom-table-response.js +1 -1
- package/lib/response/create-query-response.d.ts +1 -1
- package/lib/response/create-query-response.js +1 -1
- package/lib/response/create-schedule-response.d.ts +1 -1
- package/lib/response/create-schedule-response.js +1 -1
- package/lib/response/create-usage-carbon-emissions-query-response.d.ts +29 -0
- package/lib/response/create-usage-carbon-emissions-query-response.js +15 -0
- package/lib/response/create-usage-carbon-emissions-query-response.js.map +1 -0
- package/lib/response/delete-custom-table-response.d.ts +1 -1
- package/lib/response/delete-custom-table-response.js +1 -1
- package/lib/response/delete-query-response.d.ts +1 -1
- package/lib/response/delete-query-response.js +1 -1
- package/lib/response/delete-schedule-response.d.ts +1 -1
- package/lib/response/delete-schedule-response.js +1 -1
- package/lib/response/delete-usage-carbon-emissions-query-response.d.ts +20 -0
- package/lib/response/delete-usage-carbon-emissions-query-response.js +15 -0
- package/lib/response/delete-usage-carbon-emissions-query-response.js.map +1 -0
- package/lib/response/get-custom-table-response.d.ts +1 -1
- package/lib/response/get-custom-table-response.js +1 -1
- package/lib/response/get-query-response.d.ts +1 -1
- package/lib/response/get-query-response.js +1 -1
- package/lib/response/get-schedule-response.d.ts +1 -1
- package/lib/response/get-schedule-response.js +1 -1
- package/lib/response/get-scheduled-run-response.d.ts +1 -1
- package/lib/response/get-scheduled-run-response.js +1 -1
- package/lib/response/get-usage-carbon-emissions-query-response.d.ts +29 -0
- package/lib/response/get-usage-carbon-emissions-query-response.js +15 -0
- package/lib/response/get-usage-carbon-emissions-query-response.js.map +1 -0
- package/lib/response/index.d.ts +19 -1
- package/lib/response/index.js +1 -1
- package/lib/response/list-custom-tables-response.d.ts +1 -1
- package/lib/response/list-custom-tables-response.js +1 -1
- package/lib/response/list-queries-response.d.ts +1 -1
- package/lib/response/list-queries-response.js +1 -1
- package/lib/response/list-scheduled-runs-response.d.ts +1 -1
- package/lib/response/list-scheduled-runs-response.js +1 -1
- package/lib/response/list-schedules-response.d.ts +1 -1
- package/lib/response/list-schedules-response.js +1 -1
- package/lib/response/list-usage-carbon-emissions-queries-response.d.ts +32 -0
- package/lib/response/list-usage-carbon-emissions-queries-response.js +15 -0
- package/lib/response/list-usage-carbon-emissions-queries-response.js.map +1 -0
- package/lib/response/request-average-carbon-emission-response.d.ts +29 -0
- package/lib/response/request-average-carbon-emission-response.js +15 -0
- package/lib/response/request-average-carbon-emission-response.js.map +1 -0
- package/lib/response/request-clean-energy-usage-response.d.ts +29 -0
- package/lib/response/request-clean-energy-usage-response.js +15 -0
- package/lib/response/request-clean-energy-usage-response.js.map +1 -0
- package/lib/response/request-summarized-configurations-response.d.ts +1 -1
- package/lib/response/request-summarized-configurations-response.js +1 -1
- package/lib/response/request-summarized-usages-response.d.ts +1 -1
- package/lib/response/request-summarized-usages-response.js +1 -1
- package/lib/response/request-usage-carbon-emission-config-response.d.ts +25 -0
- package/lib/response/request-usage-carbon-emission-config-response.js +15 -0
- package/lib/response/request-usage-carbon-emission-config-response.js.map +1 -0
- package/lib/response/request-usage-carbon-emissions-response.d.ts +32 -0
- package/lib/response/request-usage-carbon-emissions-response.js +15 -0
- package/lib/response/request-usage-carbon-emissions-response.js.map +1 -0
- package/lib/response/update-custom-table-response.d.ts +1 -1
- package/lib/response/update-custom-table-response.js +1 -1
- package/lib/response/update-query-response.d.ts +1 -1
- package/lib/response/update-query-response.js +1 -1
- package/lib/response/update-schedule-response.d.ts +1 -1
- package/lib/response/update-schedule-response.js +1 -1
- package/lib/response/update-usage-carbon-emissions-query-response.d.ts +29 -0
- package/lib/response/update-usage-carbon-emissions-query-response.js +15 -0
- package/lib/response/update-usage-carbon-emissions-query-response.js.map +1 -0
- package/lib/usageapi-waiter.d.ts +1 -1
- package/lib/usageapi-waiter.js +1 -1
- package/package.json +3 -3
|
@@ -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, 2024, 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, 2024, 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
|
+
}
|
|
@@ -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, 2024, 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.UsageCarbonEmissionsQueryDefinition = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var UsageCarbonEmissionsQueryDefinition;
|
|
37
|
+
(function (UsageCarbonEmissionsQueryDefinition) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"reportQuery": obj.reportQuery
|
|
41
|
+
? model.UsageCarbonEmissionsReportQuery.getJsonObj(obj.reportQuery)
|
|
42
|
+
: undefined,
|
|
43
|
+
"costAnalysisUI": obj.costAnalysisUI
|
|
44
|
+
? model.CostAnalysisUI.getJsonObj(obj.costAnalysisUI)
|
|
45
|
+
: undefined
|
|
46
|
+
});
|
|
47
|
+
return jsonObj;
|
|
48
|
+
}
|
|
49
|
+
UsageCarbonEmissionsQueryDefinition.getJsonObj = getJsonObj;
|
|
50
|
+
function getDeserializedJsonObj(obj) {
|
|
51
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
52
|
+
"reportQuery": obj.reportQuery
|
|
53
|
+
? model.UsageCarbonEmissionsReportQuery.getDeserializedJsonObj(obj.reportQuery)
|
|
54
|
+
: undefined,
|
|
55
|
+
"costAnalysisUI": obj.costAnalysisUI
|
|
56
|
+
? model.CostAnalysisUI.getDeserializedJsonObj(obj.costAnalysisUI)
|
|
57
|
+
: undefined
|
|
58
|
+
});
|
|
59
|
+
return jsonObj;
|
|
60
|
+
}
|
|
61
|
+
UsageCarbonEmissionsQueryDefinition.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
62
|
+
})(UsageCarbonEmissionsQueryDefinition = exports.UsageCarbonEmissionsQueryDefinition || (exports.UsageCarbonEmissionsQueryDefinition = {}));
|
|
63
|
+
//# sourceMappingURL=usage-carbon-emissions-query-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-carbon-emissions-query-definition.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emissions-query-definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmBlC,IAAiB,mCAAmC,CA+BnD;AA/BD,WAAiB,mCAAmC;IAClD,SAAgB,UAAU,CAAC,GAAwC;QACjE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC;gBACnE,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACrD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,8CAAU,aAczB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwC;QAC7E,MAAM,OAAO,mCACR,GAAG,GACH;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC/E,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,0DAAsB,yBAcrC,CAAA;AACH,CAAC,EA/BgB,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QA+BnD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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, 2024, 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
|
+
* Usage carbon emissions query summary in the list request.
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageCarbonEmissionsQuerySummary {
|
|
18
|
+
/**
|
|
19
|
+
* The query OCID.
|
|
20
|
+
*/
|
|
21
|
+
"id": string;
|
|
22
|
+
"queryDefinition": model.UsageCarbonEmissionsQueryDefinition;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace UsageCarbonEmissionsQuerySummary {
|
|
25
|
+
function getJsonObj(obj: UsageCarbonEmissionsQuerySummary): object;
|
|
26
|
+
function getDeserializedJsonObj(obj: UsageCarbonEmissionsQuerySummary): object;
|
|
27
|
+
}
|
|
@@ -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, 2024, 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.UsageCarbonEmissionsQuerySummary = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var UsageCarbonEmissionsQuerySummary;
|
|
37
|
+
(function (UsageCarbonEmissionsQuerySummary) {
|
|
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
|
+
UsageCarbonEmissionsQuerySummary.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
|
+
UsageCarbonEmissionsQuerySummary.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
56
|
+
})(UsageCarbonEmissionsQuerySummary = exports.UsageCarbonEmissionsQuerySummary || (exports.UsageCarbonEmissionsQuerySummary = {}));
|
|
57
|
+
//# sourceMappingURL=usage-carbon-emissions-query-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-carbon-emissions-query-summary.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emissions-query-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAclC,IAAiB,gCAAgC,CAyBhD;AAzBD,WAAiB,gCAAgC;IAC/C,SAAgB,UAAU,CAAC,GAAqC;QAC9D,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,2CAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAqC;QAC1E,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,uDAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAyBhD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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, 2024, 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 emissions saved query to filter and aggregate.
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageCarbonEmissionsQuery {
|
|
18
|
+
/**
|
|
19
|
+
* The query OCID.
|
|
20
|
+
*/
|
|
21
|
+
"id": string;
|
|
22
|
+
/**
|
|
23
|
+
* The compartment OCID.
|
|
24
|
+
*/
|
|
25
|
+
"compartmentId": string;
|
|
26
|
+
"queryDefinition": model.UsageCarbonEmissionsQueryDefinition;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace UsageCarbonEmissionsQuery {
|
|
29
|
+
function getJsonObj(obj: UsageCarbonEmissionsQuery): object;
|
|
30
|
+
function getDeserializedJsonObj(obj: UsageCarbonEmissionsQuery): object;
|
|
31
|
+
}
|
|
@@ -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, 2024, 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.UsageCarbonEmissionsQuery = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var UsageCarbonEmissionsQuery;
|
|
37
|
+
(function (UsageCarbonEmissionsQuery) {
|
|
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
|
+
UsageCarbonEmissionsQuery.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
|
+
UsageCarbonEmissionsQuery.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
56
|
+
})(UsageCarbonEmissionsQuery = exports.UsageCarbonEmissionsQuery || (exports.UsageCarbonEmissionsQuery = {}));
|
|
57
|
+
//# sourceMappingURL=usage-carbon-emissions-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-carbon-emissions-query.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emissions-query.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkBlC,IAAiB,yBAAyB,CAyBzC;AAzBD,WAAiB,yBAAyB;IACxC,SAAgB,UAAU,CAAC,GAA8B;QACvD,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,oCAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA8B;QACnE,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,gDAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAyBzC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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, 2024, 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 request of the generated usage carbon emissions report.
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageCarbonEmissionsReportQuery {
|
|
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 or cost over the query time period will be added up.
|
|
32
|
+
*/
|
|
33
|
+
"isAggregateByTime"?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies what to aggregate the result by.
|
|
36
|
+
* For example:
|
|
37
|
+
* `[\"tagNamespace\", \"tagKey\", \"tagValue\", \"service\", \"skuName\", \"skuPartNumber\", \"unit\",
|
|
38
|
+
* \"compartmentName\", \"compartmentPath\", \"compartmentId\", \"platform\", \"region\", \"logicalAd\",
|
|
39
|
+
* \"resourceId\", \"tenantId\", \"tenantName\"]`
|
|
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
|
+
* The UI date range, for example, LAST_THREE_MONTHS. It will override timeUsageStarted and timeUsageEnded properties.
|
|
57
|
+
*/
|
|
58
|
+
"dateRangeName"?: UsageCarbonEmissionsReportQuery.DateRangeName;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace UsageCarbonEmissionsReportQuery {
|
|
61
|
+
enum DateRangeName {
|
|
62
|
+
LastTwoMonths = "LAST_TWO_MONTHS",
|
|
63
|
+
LastThreeMonths = "LAST_THREE_MONTHS",
|
|
64
|
+
LastSixMonths = "LAST_SIX_MONTHS",
|
|
65
|
+
LastOneYear = "LAST_ONE_YEAR",
|
|
66
|
+
Custom = "CUSTOM",
|
|
67
|
+
/**
|
|
68
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
69
|
+
* version of the SDK.
|
|
70
|
+
*/
|
|
71
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
72
|
+
}
|
|
73
|
+
function getJsonObj(obj: UsageCarbonEmissionsReportQuery): object;
|
|
74
|
+
function getDeserializedJsonObj(obj: UsageCarbonEmissionsReportQuery): object;
|
|
75
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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, 2024, 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.UsageCarbonEmissionsReportQuery = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var UsageCarbonEmissionsReportQuery;
|
|
37
|
+
(function (UsageCarbonEmissionsReportQuery) {
|
|
38
|
+
let DateRangeName;
|
|
39
|
+
(function (DateRangeName) {
|
|
40
|
+
DateRangeName["LastTwoMonths"] = "LAST_TWO_MONTHS";
|
|
41
|
+
DateRangeName["LastThreeMonths"] = "LAST_THREE_MONTHS";
|
|
42
|
+
DateRangeName["LastSixMonths"] = "LAST_SIX_MONTHS";
|
|
43
|
+
DateRangeName["LastOneYear"] = "LAST_ONE_YEAR";
|
|
44
|
+
DateRangeName["Custom"] = "CUSTOM";
|
|
45
|
+
/**
|
|
46
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
47
|
+
* version of the SDK.
|
|
48
|
+
*/
|
|
49
|
+
DateRangeName["UnknownValue"] = "UNKNOWN_VALUE";
|
|
50
|
+
})(DateRangeName = UsageCarbonEmissionsReportQuery.DateRangeName || (UsageCarbonEmissionsReportQuery.DateRangeName = {}));
|
|
51
|
+
function getJsonObj(obj) {
|
|
52
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
53
|
+
"groupByTag": obj.groupByTag
|
|
54
|
+
? obj.groupByTag.map(item => {
|
|
55
|
+
return model.Tag.getJsonObj(item);
|
|
56
|
+
})
|
|
57
|
+
: undefined,
|
|
58
|
+
"filter": obj.filter ? model.Filter.getJsonObj(obj.filter) : undefined
|
|
59
|
+
});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
UsageCarbonEmissionsReportQuery.getJsonObj = getJsonObj;
|
|
63
|
+
function getDeserializedJsonObj(obj) {
|
|
64
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
65
|
+
"groupByTag": obj.groupByTag
|
|
66
|
+
? obj.groupByTag.map(item => {
|
|
67
|
+
return model.Tag.getDeserializedJsonObj(item);
|
|
68
|
+
})
|
|
69
|
+
: undefined,
|
|
70
|
+
"filter": obj.filter ? model.Filter.getDeserializedJsonObj(obj.filter) : undefined
|
|
71
|
+
});
|
|
72
|
+
return jsonObj;
|
|
73
|
+
}
|
|
74
|
+
UsageCarbonEmissionsReportQuery.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
75
|
+
})(UsageCarbonEmissionsReportQuery = exports.UsageCarbonEmissionsReportQuery || (exports.UsageCarbonEmissionsReportQuery = {}));
|
|
76
|
+
//# sourceMappingURL=usage-carbon-emissions-report-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-carbon-emissions-report-query.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/model/usage-carbon-emissions-report-query.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkDlC,IAAiB,+BAA+B,CA8C/C;AA9CD,WAAiB,+BAA+B;IAC9C,IAAY,aAWX;IAXD,WAAY,aAAa;QACvB,kDAAiC,CAAA;QACjC,sDAAqC,CAAA;QACrC,kDAAiC,CAAA;QACjC,8CAA6B,CAAA;QAC7B,kCAAiB,CAAA;QACjB;;;WAGG;QACH,+CAA8B,CAAA;IAChC,CAAC,EAXW,aAAa,GAAb,6CAAa,KAAb,6CAAa,QAWxB;IAED,SAAgB,UAAU,CAAC,GAAoC;QAC7D,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,0CAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAoC;QACzE,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,sDAAsB,yBAerC,CAAA;AACH,CAAC,EA9CgB,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QA8C/C"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
8
|
* Do not edit the class manually.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2020,
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
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
12
|
*/
|
|
13
13
|
import * as model from "../model";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2020,
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
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
13
|
*/
|
|
14
14
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
8
|
* Do not edit the class manually.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2020,
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
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
12
|
*/
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.1/usageapi/CreateCustomTable.ts.html |here} to see how to use CreateCustomTableRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateCustomTableRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2020,
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
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
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
8
|
* Do not edit the class manually.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2020,
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
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
12
|
*/
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.1/usageapi/CreateQuery.ts.html |here} to see how to use CreateQueryRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateQueryRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2020,
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
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
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
8
|
* Do not edit the class manually.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2020,
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
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
12
|
*/
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.1/usageapi/CreateSchedule.ts.html |here} to see how to use CreateScheduleRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateScheduleRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2020,
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
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
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|