oci-database 2.122.0 → 2.122.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/lib/client.d.ts +9 -0
- package/lib/client.js +67 -0
- package/lib/client.js.map +1 -1
- package/lib/model/estimate-cost-saving-summary.d.ts +46 -0
- package/lib/model/estimate-cost-saving-summary.js +30 -0
- package/lib/model/estimate-cost-saving-summary.js.map +1 -0
- package/lib/model/estimate-cost-savings-summary-collection.d.ts +27 -0
- package/lib/model/estimate-cost-savings-summary-collection.js +62 -0
- package/lib/model/estimate-cost-savings-summary-collection.js.map +1 -0
- package/lib/model/index.d.ts +4 -0
- package/lib/model/index.js +10 -6
- package/lib/model/index.js.map +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-estimate-cost-savings-request.d.ts +39 -0
- package/lib/request/list-estimate-cost-savings-request.js +15 -0
- package/lib/request/list-estimate-cost-savings-request.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/lib/response/list-estimate-cost-savings-response.d.ts +33 -0
- package/lib/response/list-estimate-cost-savings-response.js +15 -0
- package/lib/response/list-estimate-cost-savings-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -4469,6 +4469,15 @@ export declare class DatabaseClient {
|
|
|
4469
4469
|
* @param request a request which can be sent to the service operation
|
|
4470
4470
|
*/
|
|
4471
4471
|
listDbnodeSnapshotsResponseIterator(request: requests.ListDbnodeSnapshotsRequest): AsyncIterableIterator<responses.ListDbnodeSnapshotsResponse>;
|
|
4472
|
+
/**
|
|
4473
|
+
* Gets the estimate cost savings of the Autonomous AI Database.
|
|
4474
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4475
|
+
* @param ListEstimateCostSavingsRequest
|
|
4476
|
+
* @return ListEstimateCostSavingsResponse
|
|
4477
|
+
* @throws OciError when an error occurs
|
|
4478
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListEstimateCostSavings.ts.html |here} to see how to use ListEstimateCostSavings API.
|
|
4479
|
+
*/
|
|
4480
|
+
listEstimateCostSavings(listEstimateCostSavingsRequest: requests.ListEstimateCostSavingsRequest): Promise<responses.ListEstimateCostSavingsResponse>;
|
|
4472
4481
|
/**
|
|
4473
4482
|
* Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only.
|
|
4474
4483
|
* To list the Exadata Cloud Service infrastructure resources in a compartment, use the {@link #listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest) listCloudExadataInfrastructures} operation.
|
package/lib/client.js
CHANGED
|
@@ -21451,6 +21451,73 @@ class DatabaseClient {
|
|
|
21451
21451
|
listDbnodeSnapshotsResponseIterator(request) {
|
|
21452
21452
|
return oci_common_1.paginateResponses(request, req => this.listDbnodeSnapshots(req));
|
|
21453
21453
|
}
|
|
21454
|
+
/**
|
|
21455
|
+
* Gets the estimate cost savings of the Autonomous AI Database.
|
|
21456
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
21457
|
+
* @param ListEstimateCostSavingsRequest
|
|
21458
|
+
* @return ListEstimateCostSavingsResponse
|
|
21459
|
+
* @throws OciError when an error occurs
|
|
21460
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListEstimateCostSavings.ts.html |here} to see how to use ListEstimateCostSavings API.
|
|
21461
|
+
*/
|
|
21462
|
+
listEstimateCostSavings(listEstimateCostSavingsRequest) {
|
|
21463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21464
|
+
if (this.logger)
|
|
21465
|
+
this.logger.debug("Calling operation DatabaseClient#listEstimateCostSavings.");
|
|
21466
|
+
const operationName = "listEstimateCostSavings";
|
|
21467
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListEstimateCostSavings";
|
|
21468
|
+
const pathParams = {
|
|
21469
|
+
"{autonomousDatabaseId}": listEstimateCostSavingsRequest.autonomousDatabaseId
|
|
21470
|
+
};
|
|
21471
|
+
const queryParams = {
|
|
21472
|
+
"limit": listEstimateCostSavingsRequest.limit,
|
|
21473
|
+
"page": listEstimateCostSavingsRequest.page,
|
|
21474
|
+
"isCpuAutoscale": listEstimateCostSavingsRequest.isCpuAutoscale
|
|
21475
|
+
};
|
|
21476
|
+
let headerParams = {
|
|
21477
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
21478
|
+
"opc-request-id": listEstimateCostSavingsRequest.opcRequestId
|
|
21479
|
+
};
|
|
21480
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
21481
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEstimateCostSavingsRequest.retryConfiguration, specRetryConfiguration);
|
|
21482
|
+
if (this.logger)
|
|
21483
|
+
retrier.logger = this.logger;
|
|
21484
|
+
const request = yield oci_common_2.composeRequest({
|
|
21485
|
+
baseEndpoint: this._endpoint,
|
|
21486
|
+
defaultHeaders: this._defaultHeaders,
|
|
21487
|
+
path: "/autonomousDatabases/{autonomousDatabaseId}/estimateCostSavings",
|
|
21488
|
+
method: "GET",
|
|
21489
|
+
pathParams: pathParams,
|
|
21490
|
+
headerParams: headerParams,
|
|
21491
|
+
queryParams: queryParams
|
|
21492
|
+
});
|
|
21493
|
+
try {
|
|
21494
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
21495
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
21496
|
+
responseObject: {},
|
|
21497
|
+
body: yield response.json(),
|
|
21498
|
+
bodyKey: "estimateCostSavingsSummaryCollection",
|
|
21499
|
+
bodyModel: model.EstimateCostSavingsSummaryCollection,
|
|
21500
|
+
type: "model.EstimateCostSavingsSummaryCollection",
|
|
21501
|
+
responseHeaders: [
|
|
21502
|
+
{
|
|
21503
|
+
value: response.headers.get("opc-request-id"),
|
|
21504
|
+
key: "opcRequestId",
|
|
21505
|
+
dataType: "string"
|
|
21506
|
+
},
|
|
21507
|
+
{
|
|
21508
|
+
value: response.headers.get("opc-next-page"),
|
|
21509
|
+
key: "opcNextPage",
|
|
21510
|
+
dataType: "string"
|
|
21511
|
+
}
|
|
21512
|
+
]
|
|
21513
|
+
});
|
|
21514
|
+
return sdkResponse;
|
|
21515
|
+
}
|
|
21516
|
+
catch (err) {
|
|
21517
|
+
throw err;
|
|
21518
|
+
}
|
|
21519
|
+
});
|
|
21520
|
+
}
|
|
21454
21521
|
/**
|
|
21455
21522
|
* Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only.
|
|
21456
21523
|
* To list the Exadata Cloud Service infrastructure resources in a compartment, use the {@link #listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest) listCloudExadataInfrastructures} operation.
|