oci-database 2.134.1 → 2.135.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 +22 -0
- package/lib/client.js +129 -0
- package/lib/client.js.map +1 -1
- package/lib/database-waiter.d.ts +20 -0
- package/lib/database-waiter.js +42 -0
- package/lib/database-waiter.js.map +1 -1
- package/lib/model/autonomous-database-standby-summary.d.ts +4 -0
- package/lib/model/autonomous-database-standby-summary.js.map +1 -1
- package/lib/model/autonomous-database-summary.d.ts +4 -0
- package/lib/model/autonomous-database-summary.js.map +1 -1
- package/lib/model/autonomous-database.d.ts +8 -0
- package/lib/model/autonomous-database.js.map +1 -1
- package/lib/model/autonomous-dw-database.d.ts +4 -0
- package/lib/model/autonomous-dw-database.js.map +1 -1
- package/lib/model/db-node-summary.d.ts +17 -0
- package/lib/model/db-node-summary.js +14 -0
- package/lib/model/db-node-summary.js.map +1 -1
- package/lib/model/db-node.d.ts +17 -0
- package/lib/model/db-node.js +14 -0
- package/lib/model/db-node.js.map +1 -1
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +11 -5
- package/lib/model/index.js.map +1 -1
- package/lib/model/restart-autonomous-container-database-details.d.ts +26 -0
- package/lib/model/restart-autonomous-container-database-details.js +30 -0
- package/lib/model/restart-autonomous-container-database-details.js.map +1 -0
- package/lib/model/restart-autonomous-database-details.d.ts +26 -0
- package/lib/model/restart-autonomous-database-details.js +30 -0
- package/lib/model/restart-autonomous-database-details.js.map +1 -0
- package/lib/model/stop-autonomous-database-details.d.ts +26 -0
- package/lib/model/stop-autonomous-database-details.js +30 -0
- package/lib/model/stop-autonomous-database-details.js.map +1 -0
- package/lib/request/index.d.ts +4 -0
- package/lib/request/restart-autonomous-container-database-request.d.ts +5 -0
- package/lib/request/restart-autonomous-database-request.d.ts +5 -0
- package/lib/request/restart-autonomous-vm-cluster-ords-request.d.ts +43 -0
- package/lib/request/restart-autonomous-vm-cluster-ords-request.js +15 -0
- package/lib/request/restart-autonomous-vm-cluster-ords-request.js.map +1 -0
- package/lib/request/restart-cloud-autonomous-vm-cluster-ords-request.d.ts +43 -0
- package/lib/request/restart-cloud-autonomous-vm-cluster-ords-request.js +15 -0
- package/lib/request/restart-cloud-autonomous-vm-cluster-ords-request.js.map +1 -0
- package/lib/request/stop-autonomous-database-request.d.ts +5 -0
- package/lib/response/index.d.ts +4 -0
- package/lib/response/restart-autonomous-vm-cluster-ords-response.d.ts +25 -0
- package/lib/response/restart-autonomous-vm-cluster-ords-response.js +15 -0
- package/lib/response/restart-autonomous-vm-cluster-ords-response.js.map +1 -0
- package/lib/response/restart-cloud-autonomous-vm-cluster-ords-response.d.ts +25 -0
- package/lib/response/restart-cloud-autonomous-vm-cluster-ords-response.js +15 -0
- package/lib/response/restart-cloud-autonomous-vm-cluster-ords-response.js.map +1 -0
- package/package.json +7 -6
package/lib/client.d.ts
CHANGED
|
@@ -1115,6 +1115,8 @@ export declare class DatabaseClient {
|
|
|
1115
1115
|
* Performs one of the following power actions on the specified DB node:
|
|
1116
1116
|
* - start - power on
|
|
1117
1117
|
* - stop - power off gracefully
|
|
1118
|
+
* - forcestop - power off forcefully
|
|
1119
|
+
* - forcereset - ACPI shutdown and power on forcefully
|
|
1118
1120
|
* - softreset - ACPI shutdown and power on
|
|
1119
1121
|
* - reset - power off and power on
|
|
1120
1122
|
* <p>
|
|
@@ -6180,6 +6182,26 @@ export declare class DatabaseClient {
|
|
|
6180
6182
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/RestartAutonomousDatabase.ts.html |here} to see how to use RestartAutonomousDatabase API.
|
|
6181
6183
|
*/
|
|
6182
6184
|
restartAutonomousDatabase(restartAutonomousDatabaseRequest: requests.RestartAutonomousDatabaseRequest): Promise<responses.RestartAutonomousDatabaseResponse>;
|
|
6185
|
+
/**
|
|
6186
|
+
* Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster.
|
|
6187
|
+
*
|
|
6188
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
6189
|
+
* @param RestartAutonomousVmClusterOrdsRequest
|
|
6190
|
+
* @return RestartAutonomousVmClusterOrdsResponse
|
|
6191
|
+
* @throws OciError when an error occurs
|
|
6192
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/RestartAutonomousVmClusterOrds.ts.html |here} to see how to use RestartAutonomousVmClusterOrds API.
|
|
6193
|
+
*/
|
|
6194
|
+
restartAutonomousVmClusterOrds(restartAutonomousVmClusterOrdsRequest: requests.RestartAutonomousVmClusterOrdsRequest): Promise<responses.RestartAutonomousVmClusterOrdsResponse>;
|
|
6195
|
+
/**
|
|
6196
|
+
* Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster.
|
|
6197
|
+
*
|
|
6198
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
6199
|
+
* @param RestartCloudAutonomousVmClusterOrdsRequest
|
|
6200
|
+
* @return RestartCloudAutonomousVmClusterOrdsResponse
|
|
6201
|
+
* @throws OciError when an error occurs
|
|
6202
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/RestartCloudAutonomousVmClusterOrds.ts.html |here} to see how to use RestartCloudAutonomousVmClusterOrds API.
|
|
6203
|
+
*/
|
|
6204
|
+
restartCloudAutonomousVmClusterOrds(restartCloudAutonomousVmClusterOrdsRequest: requests.RestartCloudAutonomousVmClusterOrdsRequest): Promise<responses.RestartCloudAutonomousVmClusterOrdsResponse>;
|
|
6183
6205
|
/**
|
|
6184
6206
|
* Restores an Autonomous AI Database based on the provided request parameters.
|
|
6185
6207
|
*
|
package/lib/client.js
CHANGED
|
@@ -6780,6 +6780,8 @@ class DatabaseClient {
|
|
|
6780
6780
|
* Performs one of the following power actions on the specified DB node:
|
|
6781
6781
|
* - start - power on
|
|
6782
6782
|
* - stop - power off gracefully
|
|
6783
|
+
* - forcestop - power off forcefully
|
|
6784
|
+
* - forcereset - ACPI shutdown and power on forcefully
|
|
6783
6785
|
* - softreset - ACPI shutdown and power on
|
|
6784
6786
|
* - reset - power off and power on
|
|
6785
6787
|
* <p>
|
|
@@ -27994,6 +27996,7 @@ class DatabaseClient {
|
|
|
27994
27996
|
defaultHeaders: this._defaultHeaders,
|
|
27995
27997
|
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/restart",
|
|
27996
27998
|
method: "POST",
|
|
27999
|
+
bodyContent: common.ObjectSerializer.serialize(restartAutonomousContainerDatabaseRequest.restartAutonomousContainerDatabaseDetails, "RestartAutonomousContainerDatabaseDetails", model.RestartAutonomousContainerDatabaseDetails.getJsonObj),
|
|
27997
28000
|
pathParams: pathParams,
|
|
27998
28001
|
headerParams: headerParams,
|
|
27999
28002
|
queryParams: queryParams
|
|
@@ -28066,6 +28069,7 @@ class DatabaseClient {
|
|
|
28066
28069
|
defaultHeaders: this._defaultHeaders,
|
|
28067
28070
|
path: "/autonomousDatabases/{autonomousDatabaseId}/actions/restart",
|
|
28068
28071
|
method: "POST",
|
|
28072
|
+
bodyContent: common.ObjectSerializer.serialize(restartAutonomousDatabaseRequest.restartAutonomousDatabaseDetails, "RestartAutonomousDatabaseDetails", model.RestartAutonomousDatabaseDetails.getJsonObj),
|
|
28069
28073
|
pathParams: pathParams,
|
|
28070
28074
|
headerParams: headerParams,
|
|
28071
28075
|
queryParams: queryParams
|
|
@@ -28103,6 +28107,130 @@ class DatabaseClient {
|
|
|
28103
28107
|
}
|
|
28104
28108
|
});
|
|
28105
28109
|
}
|
|
28110
|
+
/**
|
|
28111
|
+
* Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster.
|
|
28112
|
+
*
|
|
28113
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
28114
|
+
* @param RestartAutonomousVmClusterOrdsRequest
|
|
28115
|
+
* @return RestartAutonomousVmClusterOrdsResponse
|
|
28116
|
+
* @throws OciError when an error occurs
|
|
28117
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/RestartAutonomousVmClusterOrds.ts.html |here} to see how to use RestartAutonomousVmClusterOrds API.
|
|
28118
|
+
*/
|
|
28119
|
+
restartAutonomousVmClusterOrds(restartAutonomousVmClusterOrdsRequest) {
|
|
28120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28121
|
+
if (this.logger)
|
|
28122
|
+
this.logger.debug("Calling operation DatabaseClient#restartAutonomousVmClusterOrds.");
|
|
28123
|
+
const operationName = "restartAutonomousVmClusterOrds";
|
|
28124
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/RestartAutonomousVmClusterOrds";
|
|
28125
|
+
const pathParams = {
|
|
28126
|
+
"{autonomousVmClusterId}": restartAutonomousVmClusterOrdsRequest.autonomousVmClusterId
|
|
28127
|
+
};
|
|
28128
|
+
const queryParams = {};
|
|
28129
|
+
let headerParams = {
|
|
28130
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
28131
|
+
"opc-retry-token": restartAutonomousVmClusterOrdsRequest.opcRetryToken,
|
|
28132
|
+
"opc-request-id": restartAutonomousVmClusterOrdsRequest.opcRequestId,
|
|
28133
|
+
"if-match": restartAutonomousVmClusterOrdsRequest.ifMatch
|
|
28134
|
+
};
|
|
28135
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
28136
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartAutonomousVmClusterOrdsRequest.retryConfiguration, specRetryConfiguration);
|
|
28137
|
+
if (this.logger)
|
|
28138
|
+
retrier.logger = this.logger;
|
|
28139
|
+
const request = yield oci_common_2.composeRequest({
|
|
28140
|
+
baseEndpoint: this._endpoint,
|
|
28141
|
+
defaultHeaders: this._defaultHeaders,
|
|
28142
|
+
path: "/autonomousVmClusters/{autonomousVmClusterId}/actions/restartOrds",
|
|
28143
|
+
method: "POST",
|
|
28144
|
+
pathParams: pathParams,
|
|
28145
|
+
headerParams: headerParams,
|
|
28146
|
+
queryParams: queryParams
|
|
28147
|
+
});
|
|
28148
|
+
try {
|
|
28149
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
28150
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
28151
|
+
responseObject: {},
|
|
28152
|
+
responseHeaders: [
|
|
28153
|
+
{
|
|
28154
|
+
value: response.headers.get("opc-work-request-id"),
|
|
28155
|
+
key: "opcWorkRequestId",
|
|
28156
|
+
dataType: "string"
|
|
28157
|
+
},
|
|
28158
|
+
{
|
|
28159
|
+
value: response.headers.get("opc-request-id"),
|
|
28160
|
+
key: "opcRequestId",
|
|
28161
|
+
dataType: "string"
|
|
28162
|
+
}
|
|
28163
|
+
]
|
|
28164
|
+
});
|
|
28165
|
+
return sdkResponse;
|
|
28166
|
+
}
|
|
28167
|
+
catch (err) {
|
|
28168
|
+
throw err;
|
|
28169
|
+
}
|
|
28170
|
+
});
|
|
28171
|
+
}
|
|
28172
|
+
/**
|
|
28173
|
+
* Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster.
|
|
28174
|
+
*
|
|
28175
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
28176
|
+
* @param RestartCloudAutonomousVmClusterOrdsRequest
|
|
28177
|
+
* @return RestartCloudAutonomousVmClusterOrdsResponse
|
|
28178
|
+
* @throws OciError when an error occurs
|
|
28179
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/RestartCloudAutonomousVmClusterOrds.ts.html |here} to see how to use RestartCloudAutonomousVmClusterOrds API.
|
|
28180
|
+
*/
|
|
28181
|
+
restartCloudAutonomousVmClusterOrds(restartCloudAutonomousVmClusterOrdsRequest) {
|
|
28182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28183
|
+
if (this.logger)
|
|
28184
|
+
this.logger.debug("Calling operation DatabaseClient#restartCloudAutonomousVmClusterOrds.");
|
|
28185
|
+
const operationName = "restartCloudAutonomousVmClusterOrds";
|
|
28186
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/RestartCloudAutonomousVmClusterOrds";
|
|
28187
|
+
const pathParams = {
|
|
28188
|
+
"{cloudAutonomousVmClusterId}": restartCloudAutonomousVmClusterOrdsRequest.cloudAutonomousVmClusterId
|
|
28189
|
+
};
|
|
28190
|
+
const queryParams = {};
|
|
28191
|
+
let headerParams = {
|
|
28192
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
28193
|
+
"opc-retry-token": restartCloudAutonomousVmClusterOrdsRequest.opcRetryToken,
|
|
28194
|
+
"opc-request-id": restartCloudAutonomousVmClusterOrdsRequest.opcRequestId,
|
|
28195
|
+
"if-match": restartCloudAutonomousVmClusterOrdsRequest.ifMatch
|
|
28196
|
+
};
|
|
28197
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
28198
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartCloudAutonomousVmClusterOrdsRequest.retryConfiguration, specRetryConfiguration);
|
|
28199
|
+
if (this.logger)
|
|
28200
|
+
retrier.logger = this.logger;
|
|
28201
|
+
const request = yield oci_common_2.composeRequest({
|
|
28202
|
+
baseEndpoint: this._endpoint,
|
|
28203
|
+
defaultHeaders: this._defaultHeaders,
|
|
28204
|
+
path: "/cloudAutonomousVmClusters/{cloudAutonomousVmClusterId}/actions/restartOrds",
|
|
28205
|
+
method: "POST",
|
|
28206
|
+
pathParams: pathParams,
|
|
28207
|
+
headerParams: headerParams,
|
|
28208
|
+
queryParams: queryParams
|
|
28209
|
+
});
|
|
28210
|
+
try {
|
|
28211
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
28212
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
28213
|
+
responseObject: {},
|
|
28214
|
+
responseHeaders: [
|
|
28215
|
+
{
|
|
28216
|
+
value: response.headers.get("opc-work-request-id"),
|
|
28217
|
+
key: "opcWorkRequestId",
|
|
28218
|
+
dataType: "string"
|
|
28219
|
+
},
|
|
28220
|
+
{
|
|
28221
|
+
value: response.headers.get("opc-request-id"),
|
|
28222
|
+
key: "opcRequestId",
|
|
28223
|
+
dataType: "string"
|
|
28224
|
+
}
|
|
28225
|
+
]
|
|
28226
|
+
});
|
|
28227
|
+
return sdkResponse;
|
|
28228
|
+
}
|
|
28229
|
+
catch (err) {
|
|
28230
|
+
throw err;
|
|
28231
|
+
}
|
|
28232
|
+
});
|
|
28233
|
+
}
|
|
28106
28234
|
/**
|
|
28107
28235
|
* Restores an Autonomous AI Database based on the provided request parameters.
|
|
28108
28236
|
*
|
|
@@ -29478,6 +29606,7 @@ class DatabaseClient {
|
|
|
29478
29606
|
defaultHeaders: this._defaultHeaders,
|
|
29479
29607
|
path: "/autonomousDatabases/{autonomousDatabaseId}/actions/stop",
|
|
29480
29608
|
method: "POST",
|
|
29609
|
+
bodyContent: common.ObjectSerializer.serialize(stopAutonomousDatabaseRequest.stopAutonomousDatabaseDetails, "StopAutonomousDatabaseDetails", model.StopAutonomousDatabaseDetails.getJsonObj),
|
|
29481
29610
|
pathParams: pathParams,
|
|
29482
29611
|
headerParams: headerParams,
|
|
29483
29612
|
queryParams: queryParams
|