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.
- package/lib/client.d.ts +109 -19
- package/lib/client.js +596 -19
- 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/create-schedule-details.d.ts +2 -2
- 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/index.d.ts +24 -0
- package/lib/model/index.js +25 -1
- package/lib/model/index.js.map +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/schedule.d.ts +2 -2
- package/lib/model/update-schedule-details.d.ts +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-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/request/create-custom-table-request.d.ts +1 -1
- package/lib/request/create-query-request.d.ts +1 -1
- package/lib/request/create-schedule-request.d.ts +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 +1 -1
- package/lib/request/delete-query-request.d.ts +1 -1
- package/lib/request/delete-schedule-request.d.ts +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 +1 -1
- package/lib/request/get-query-request.d.ts +1 -1
- package/lib/request/get-schedule-request.d.ts +1 -1
- package/lib/request/get-scheduled-run-request.d.ts +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 +18 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-custom-tables-request.d.ts +1 -1
- package/lib/request/list-queries-request.d.ts +1 -1
- package/lib/request/list-scheduled-runs-request.d.ts +1 -1
- package/lib/request/list-schedules-request.d.ts +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 +1 -1
- package/lib/request/request-summarized-usages-request.d.ts +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 +1 -1
- package/lib/request/update-query-request.d.ts +1 -1
- package/lib/request/update-schedule-request.d.ts +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-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-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-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 +18 -0
- 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-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-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/package.json +3 -3
|
@@ -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.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, 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
|
+
* 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, 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.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, 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 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, 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.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, 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 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, 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.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"}
|
|
@@ -13,7 +13,7 @@
|
|
|
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.0/usageapi/CreateCustomTable.ts.html |here} to see how to use CreateCustomTableRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateCustomTableRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -13,7 +13,7 @@
|
|
|
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.0/usageapi/CreateQuery.ts.html |here} to see how to use CreateQueryRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateQueryRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -13,7 +13,7 @@
|
|
|
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.0/usageapi/CreateSchedule.ts.html |here} to see how to use CreateScheduleRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateScheduleRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
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
|
+
import common = require("oci-common");
|
|
15
|
+
/**
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/CreateUsageCarbonEmissionsQuery.ts.html |here} to see how to use CreateUsageCarbonEmissionsQueryRequest.
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateUsageCarbonEmissionsQueryRequest extends common.BaseRequest {
|
|
19
|
+
/**
|
|
20
|
+
* New query details. Up to ten saved queries.
|
|
21
|
+
*/
|
|
22
|
+
"createUsageCarbonEmissionsQueryDetails": model.CreateUsageCarbonEmissionsQueryDetails;
|
|
23
|
+
/**
|
|
24
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
25
|
+
* particular request, please provide the request ID.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
"opcRequestId"?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
31
|
+
* server error, without risk of executing that same action again. Retry tokens expire after 24
|
|
32
|
+
* hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
|
33
|
+
* has been deleted and purged from the system, then a retry of the original creation request
|
|
34
|
+
* might be rejected.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
"opcRetryToken"?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=create-usage-carbon-emissions-query-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-usage-carbon-emissions-query-request.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/request/create-usage-carbon-emissions-query-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/DeleteCustomTable.ts.html |here} to see how to use DeleteCustomTableRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface DeleteCustomTableRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/DeleteQuery.ts.html |here} to see how to use DeleteQueryRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface DeleteQueryRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/DeleteSchedule.ts.html |here} to see how to use DeleteScheduleRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface DeleteScheduleRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
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 common = require("oci-common");
|
|
14
|
+
/**
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/DeleteUsageCarbonEmissionsQuery.ts.html |here} to see how to use DeleteUsageCarbonEmissionsQueryRequest.
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteUsageCarbonEmissionsQueryRequest extends common.BaseRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The query unique OCID.
|
|
20
|
+
*/
|
|
21
|
+
"usageCarbonEmissionsQueryId": string;
|
|
22
|
+
/**
|
|
23
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
24
|
+
* particular request, please provide the request ID.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
"opcRequestId"?: string;
|
|
28
|
+
/**
|
|
29
|
+
* For optimistic concurrency control. In the PUT or DELETE call
|
|
30
|
+
* for a resource, set the `if-match` parameter to the value of the
|
|
31
|
+
* etag from a previous GET or POST response for that resource.
|
|
32
|
+
* The resource will be updated or deleted, only if the etag you
|
|
33
|
+
* provide matches the resource's current etag value.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
"ifMatch"?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=delete-usage-carbon-emissions-query-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-usage-carbon-emissions-query-request.js","sourceRoot":"","sources":["../../../../../lib/usageapi/lib/request/delete-usage-carbon-emissions-query-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/GetCustomTable.ts.html |here} to see how to use GetCustomTableRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface GetCustomTableRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/GetQuery.ts.html |here} to see how to use GetQueryRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface GetQueryRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/GetSchedule.ts.html |here} to see how to use GetScheduleRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface GetScheduleRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.76.0/usageapi/GetScheduledRun.ts.html |here} to see how to use GetScheduledRunRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface GetScheduledRunRequest extends common.BaseRequest {
|
|
18
18
|
/**
|