oci-mysql 2.116.1 → 2.116.2
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 +10 -0
- package/lib/client.js +74 -0
- package/lib/client.js.map +1 -1
- package/lib/model/backup-summary.d.ts +9 -0
- package/lib/model/backup-summary.js.map +1 -1
- package/lib/model/backup-validation-details.d.ts +71 -0
- package/lib/model/backup-validation-details.js +79 -0
- package/lib/model/backup-validation-details.js.map +1 -0
- package/lib/model/backup.d.ts +1 -0
- package/lib/model/backup.js +6 -0
- package/lib/model/backup.js.map +1 -1
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +9 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/prepared-backup-details.d.ts +29 -0
- package/lib/model/prepared-backup-details.js +29 -0
- package/lib/model/prepared-backup-details.js.map +1 -0
- package/lib/model/validate-backup-details.d.ts +30 -0
- package/lib/model/validate-backup-details.js +29 -0
- package/lib/model/validate-backup-details.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +1 -0
- package/lib/model/work-request-operation-type.js +1 -0
- package/lib/model/work-request-operation-type.js.map +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-backups-request.d.ts +9 -0
- package/lib/request/list-backups-request.js.map +1 -1
- package/lib/request/validate-backup-request.d.ts +53 -0
- package/lib/request/validate-backup-request.js +15 -0
- package/lib/request/validate-backup-request.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/lib/response/validate-backup-response.d.ts +35 -0
- package/lib/response/validate-backup-response.js +15 -0
- package/lib/response/validate-backup-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -399,6 +399,16 @@ export declare class DbBackupsClient {
|
|
|
399
399
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
|
|
400
400
|
*/
|
|
401
401
|
updateBackup(updateBackupRequest: requests.UpdateBackupRequest): Promise<responses.UpdateBackupResponse>;
|
|
402
|
+
/**
|
|
403
|
+
* Request to validate the backup by checking the data consistency.
|
|
404
|
+
*
|
|
405
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
406
|
+
* @param ValidateBackupRequest
|
|
407
|
+
* @return ValidateBackupResponse
|
|
408
|
+
* @throws OciError when an error occurs
|
|
409
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/ValidateBackup.ts.html |here} to see how to use ValidateBackup API.
|
|
410
|
+
*/
|
|
411
|
+
validateBackup(validateBackupRequest: requests.ValidateBackupRequest): Promise<responses.ValidateBackupResponse>;
|
|
402
412
|
}
|
|
403
413
|
export declare enum DbSystemApiKeys {
|
|
404
414
|
}
|
package/lib/client.js
CHANGED
|
@@ -1289,6 +1289,8 @@ class DbBackupsClient {
|
|
|
1289
1289
|
"dbSystemId": listBackupsRequest.dbSystemId,
|
|
1290
1290
|
"displayName": listBackupsRequest.displayName,
|
|
1291
1291
|
"softDelete": listBackupsRequest.softDelete,
|
|
1292
|
+
"backupPreparationStatus": listBackupsRequest.backupPreparationStatus,
|
|
1293
|
+
"validationStatus": listBackupsRequest.validationStatus,
|
|
1292
1294
|
"creationType": listBackupsRequest.creationType,
|
|
1293
1295
|
"sortBy": listBackupsRequest.sortBy,
|
|
1294
1296
|
"sortOrder": listBackupsRequest.sortOrder,
|
|
@@ -1445,6 +1447,78 @@ class DbBackupsClient {
|
|
|
1445
1447
|
}
|
|
1446
1448
|
});
|
|
1447
1449
|
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Request to validate the backup by checking the data consistency.
|
|
1452
|
+
*
|
|
1453
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1454
|
+
* @param ValidateBackupRequest
|
|
1455
|
+
* @return ValidateBackupResponse
|
|
1456
|
+
* @throws OciError when an error occurs
|
|
1457
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/ValidateBackup.ts.html |here} to see how to use ValidateBackup API.
|
|
1458
|
+
*/
|
|
1459
|
+
validateBackup(validateBackupRequest) {
|
|
1460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
+
if (this.logger)
|
|
1462
|
+
this.logger.debug("Calling operation DbBackupsClient#validateBackup.");
|
|
1463
|
+
const operationName = "validateBackup";
|
|
1464
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/ValidateBackup";
|
|
1465
|
+
const pathParams = {
|
|
1466
|
+
"{backupId}": validateBackupRequest.backupId
|
|
1467
|
+
};
|
|
1468
|
+
const queryParams = {};
|
|
1469
|
+
let headerParams = {
|
|
1470
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1471
|
+
"if-match": validateBackupRequest.ifMatch,
|
|
1472
|
+
"opc-request-id": validateBackupRequest.opcRequestId,
|
|
1473
|
+
"opc-retry-token": validateBackupRequest.opcRetryToken
|
|
1474
|
+
};
|
|
1475
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1476
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
1477
|
+
if (this.logger)
|
|
1478
|
+
retrier.logger = this.logger;
|
|
1479
|
+
const request = yield oci_common_2.composeRequest({
|
|
1480
|
+
baseEndpoint: this._endpoint,
|
|
1481
|
+
defaultHeaders: this._defaultHeaders,
|
|
1482
|
+
path: "/backups/{backupId}/actions/validate",
|
|
1483
|
+
method: "POST",
|
|
1484
|
+
bodyContent: common.ObjectSerializer.serialize(validateBackupRequest.validateBackupDetails, "ValidateBackupDetails", model.ValidateBackupDetails.getJsonObj),
|
|
1485
|
+
pathParams: pathParams,
|
|
1486
|
+
headerParams: headerParams,
|
|
1487
|
+
queryParams: queryParams
|
|
1488
|
+
});
|
|
1489
|
+
try {
|
|
1490
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1491
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1492
|
+
responseObject: {},
|
|
1493
|
+
body: yield response.json(),
|
|
1494
|
+
bodyKey: "backup",
|
|
1495
|
+
bodyModel: model.Backup,
|
|
1496
|
+
type: "model.Backup",
|
|
1497
|
+
responseHeaders: [
|
|
1498
|
+
{
|
|
1499
|
+
value: response.headers.get("etag"),
|
|
1500
|
+
key: "etag",
|
|
1501
|
+
dataType: "string"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
value: response.headers.get("opc-request-id"),
|
|
1505
|
+
key: "opcRequestId",
|
|
1506
|
+
dataType: "string"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1510
|
+
key: "opcWorkRequestId",
|
|
1511
|
+
dataType: "string"
|
|
1512
|
+
}
|
|
1513
|
+
]
|
|
1514
|
+
});
|
|
1515
|
+
return sdkResponse;
|
|
1516
|
+
}
|
|
1517
|
+
catch (err) {
|
|
1518
|
+
throw err;
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1448
1522
|
}
|
|
1449
1523
|
exports.DbBackupsClient = DbBackupsClient;
|
|
1450
1524
|
DbBackupsClient.serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}";
|