oci-database 2.100.2 → 2.101.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 +89 -0
- package/lib/client.js +515 -0
- package/lib/client.js.map +1 -1
- package/lib/database-waiter.d.ts +70 -0
- package/lib/database-waiter.js +117 -0
- package/lib/database-waiter.js.map +1 -1
- package/lib/model/autonomous-dw-database.d.ts +784 -0
- package/lib/model/autonomous-dw-database.js +293 -0
- package/lib/model/autonomous-dw-database.js.map +1 -0
- package/lib/model/backup-summary.d.ts +2 -0
- package/lib/model/backup-summary.js +30 -2
- package/lib/model/backup-summary.js.map +1 -1
- package/lib/model/backup.d.ts +2 -0
- package/lib/model/backup.js +30 -2
- package/lib/model/backup.js.map +1 -1
- package/lib/model/cloud-exadata-infrastructure-summary.d.ts +21 -0
- package/lib/model/cloud-exadata-infrastructure-summary.js +10 -0
- package/lib/model/cloud-exadata-infrastructure-summary.js.map +1 -1
- package/lib/model/cloud-exadata-infrastructure.d.ts +21 -0
- package/lib/model/cloud-exadata-infrastructure.js +10 -0
- package/lib/model/cloud-exadata-infrastructure.js.map +1 -1
- package/lib/model/cloud-vm-cluster-summary.d.ts +13 -0
- package/lib/model/cloud-vm-cluster-summary.js +10 -0
- package/lib/model/cloud-vm-cluster-summary.js.map +1 -1
- package/lib/model/cloud-vm-cluster.d.ts +13 -0
- package/lib/model/cloud-vm-cluster.js +10 -0
- package/lib/model/cloud-vm-cluster.js.map +1 -1
- package/lib/model/convert-to-standalone-details.d.ts +30 -0
- package/lib/model/convert-to-standalone-details.js +30 -0
- package/lib/model/convert-to-standalone-details.js.map +1 -0
- package/lib/model/create-cloud-exadata-infrastructure-details.d.ts +8 -0
- package/lib/model/create-cloud-exadata-infrastructure-details.js.map +1 -1
- package/lib/model/create-data-guard-association-details.d.ts +2 -0
- package/lib/model/create-data-guard-association-details.js +10 -2
- package/lib/model/create-data-guard-association-details.js.map +1 -1
- package/lib/model/create-database-base.js +4 -0
- package/lib/model/create-database-base.js.map +1 -1
- package/lib/model/create-database-details.d.ts +1 -0
- package/lib/model/create-database-details.js +6 -0
- package/lib/model/create-database-details.js.map +1 -1
- package/lib/model/create-database-from-backup-details.d.ts +2 -0
- package/lib/model/create-database-from-backup-details.js +30 -2
- package/lib/model/create-database-from-backup-details.js.map +1 -1
- package/lib/model/create-exadata-infrastructure-details.d.ts +8 -0
- package/lib/model/create-exadata-infrastructure-details.js.map +1 -1
- package/lib/model/create-stand-by-database-details.d.ts +29 -0
- package/lib/model/create-stand-by-database-details.js +61 -0
- package/lib/model/create-stand-by-database-details.js.map +1 -0
- package/lib/model/create-standby-details.d.ts +85 -0
- package/lib/model/create-standby-details.js +70 -0
- package/lib/model/create-standby-details.js.map +1 -0
- package/lib/model/data-guard-group-member.d.ts +99 -0
- package/lib/model/data-guard-group-member.js +52 -0
- package/lib/model/data-guard-group-member.js.map +1 -0
- package/lib/model/data-guard-group.d.ts +46 -0
- package/lib/model/data-guard-group.js +73 -0
- package/lib/model/data-guard-group.js.map +1 -0
- package/lib/model/database-summary.d.ts +2 -0
- package/lib/model/database-summary.js +12 -0
- package/lib/model/database-summary.js.map +1 -1
- package/lib/model/database.d.ts +2 -0
- package/lib/model/database.js +12 -0
- package/lib/model/database.js.map +1 -1
- package/lib/model/db-server-summary.d.ts +13 -0
- package/lib/model/db-server-summary.js +10 -0
- package/lib/model/db-server-summary.js.map +1 -1
- package/lib/model/db-server.d.ts +13 -0
- package/lib/model/db-server.js +10 -0
- package/lib/model/db-server.js.map +1 -1
- package/lib/model/db-system-shape-summary.d.ts +21 -0
- package/lib/model/db-system-shape-summary.js +10 -0
- package/lib/model/db-system-shape-summary.js.map +1 -1
- package/lib/model/encryption-key-location-details.d.ts +23 -0
- package/lib/model/encryption-key-location-details.js +69 -0
- package/lib/model/encryption-key-location-details.js.map +1 -0
- package/lib/model/exadata-infrastructure-summary.d.ts +22 -0
- package/lib/model/exadata-infrastructure-summary.js +11 -0
- package/lib/model/exadata-infrastructure-summary.js.map +1 -1
- package/lib/model/exadata-infrastructure.d.ts +22 -0
- package/lib/model/exadata-infrastructure.js +11 -0
- package/lib/model/exadata-infrastructure.js.map +1 -1
- package/lib/model/external-hsm-encryption-details.d.ts +29 -0
- package/lib/model/external-hsm-encryption-details.js +55 -0
- package/lib/model/external-hsm-encryption-details.js.map +1 -0
- package/lib/model/failover-data-guard-details.d.ts +30 -0
- package/lib/model/failover-data-guard-details.js +30 -0
- package/lib/model/failover-data-guard-details.js.map +1 -0
- package/lib/model/flex-component-summary.d.ts +37 -0
- package/lib/model/flex-component-summary.js +10 -0
- package/lib/model/flex-component-summary.js.map +1 -1
- package/lib/model/index.d.ts +24 -0
- package/lib/model/index.js +34 -10
- package/lib/model/index.js.map +1 -1
- package/lib/model/reinstate-data-guard-details.d.ts +34 -0
- package/lib/model/reinstate-data-guard-details.js +30 -0
- package/lib/model/reinstate-data-guard-details.js.map +1 -0
- package/lib/model/switch-over-data-guard-details.d.ts +30 -0
- package/lib/model/switch-over-data-guard-details.js +30 -0
- package/lib/model/switch-over-data-guard-details.js.map +1 -0
- package/lib/model/update-autonomous-database-details.d.ts +7 -0
- package/lib/model/update-autonomous-database-details.js.map +1 -1
- package/lib/model/update-data-guard-details.d.ts +65 -0
- package/lib/model/update-data-guard-details.js +42 -0
- package/lib/model/update-data-guard-details.js.map +1 -0
- package/lib/model/update-exadata-infrastructure-details.d.ts +2 -1
- package/lib/model/update-exadata-infrastructure-details.js +1 -0
- package/lib/model/update-exadata-infrastructure-details.js.map +1 -1
- package/lib/model/vm-cluster-summary.d.ts +13 -0
- package/lib/model/vm-cluster-summary.js +10 -0
- package/lib/model/vm-cluster-summary.js.map +1 -1
- package/lib/model/vm-cluster.d.ts +13 -0
- package/lib/model/vm-cluster.js +10 -0
- package/lib/model/vm-cluster.js.map +1 -1
- package/lib/request/change-encryption-key-location-request.d.ts +48 -0
- package/lib/request/change-encryption-key-location-request.js +15 -0
- package/lib/request/change-encryption-key-location-request.js.map +1 -0
- package/lib/request/convert-to-standalone-request.d.ts +48 -0
- package/lib/request/convert-to-standalone-request.js +15 -0
- package/lib/request/convert-to-standalone-request.js.map +1 -0
- package/lib/request/create-database-request.d.ts +1 -1
- package/lib/request/failover-data-guard-request.d.ts +48 -0
- package/lib/request/failover-data-guard-request.js +15 -0
- package/lib/request/failover-data-guard-request.js.map +1 -0
- package/lib/request/index.d.ts +14 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-flex-components-request.d.ts +4 -0
- package/lib/request/list-flex-components-request.js.map +1 -1
- package/lib/request/migrate-data-guard-association-to-multi-data-guards-request.d.ts +47 -0
- package/lib/request/migrate-data-guard-association-to-multi-data-guards-request.js +15 -0
- package/lib/request/migrate-data-guard-association-to-multi-data-guards-request.js.map +1 -0
- package/lib/request/reinstate-data-guard-request.d.ts +48 -0
- package/lib/request/reinstate-data-guard-request.js +15 -0
- package/lib/request/reinstate-data-guard-request.js.map +1 -0
- package/lib/request/switch-over-data-guard-request.d.ts +48 -0
- package/lib/request/switch-over-data-guard-request.js +15 -0
- package/lib/request/switch-over-data-guard-request.js.map +1 -0
- package/lib/request/update-data-guard-request.d.ts +48 -0
- package/lib/request/update-data-guard-request.js +15 -0
- package/lib/request/update-data-guard-request.js.map +1 -0
- package/lib/response/change-encryption-key-location-response.d.ts +25 -0
- package/lib/response/change-encryption-key-location-response.js +15 -0
- package/lib/response/change-encryption-key-location-response.js.map +1 -0
- package/lib/response/convert-to-standalone-response.d.ts +34 -0
- package/lib/response/convert-to-standalone-response.js +15 -0
- package/lib/response/convert-to-standalone-response.js.map +1 -0
- package/lib/response/failover-data-guard-response.d.ts +34 -0
- package/lib/response/failover-data-guard-response.js +15 -0
- package/lib/response/failover-data-guard-response.js.map +1 -0
- package/lib/response/index.d.ts +14 -0
- package/lib/response/migrate-data-guard-association-to-multi-data-guards-response.d.ts +34 -0
- package/lib/response/migrate-data-guard-association-to-multi-data-guards-response.js +15 -0
- package/lib/response/migrate-data-guard-association-to-multi-data-guards-response.js.map +1 -0
- package/lib/response/reinstate-data-guard-response.d.ts +34 -0
- package/lib/response/reinstate-data-guard-response.js +15 -0
- package/lib/response/reinstate-data-guard-response.js.map +1 -0
- package/lib/response/switch-over-data-guard-response.d.ts +34 -0
- package/lib/response/switch-over-data-guard-response.js +15 -0
- package/lib/response/switch-over-data-guard-response.js.map +1 -0
- package/lib/response/update-data-guard-response.d.ts +34 -0
- package/lib/response/update-data-guard-response.js +15 -0
- package/lib/response/update-data-guard-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1907,6 +1907,68 @@ class DatabaseClient {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
|
+
/**
|
|
1911
|
+
* Update the encryption key management location for the database
|
|
1912
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1913
|
+
* @param ChangeEncryptionKeyLocationRequest
|
|
1914
|
+
* @return ChangeEncryptionKeyLocationResponse
|
|
1915
|
+
* @throws OciError when an error occurs
|
|
1916
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeEncryptionKeyLocation.ts.html |here} to see how to use ChangeEncryptionKeyLocation API.
|
|
1917
|
+
*/
|
|
1918
|
+
changeEncryptionKeyLocation(changeEncryptionKeyLocationRequest) {
|
|
1919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1920
|
+
if (this.logger)
|
|
1921
|
+
this.logger.debug("Calling operation DatabaseClient#changeEncryptionKeyLocation.");
|
|
1922
|
+
const operationName = "changeEncryptionKeyLocation";
|
|
1923
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ChangeEncryptionKeyLocation";
|
|
1924
|
+
const pathParams = {
|
|
1925
|
+
"{databaseId}": changeEncryptionKeyLocationRequest.databaseId
|
|
1926
|
+
};
|
|
1927
|
+
const queryParams = {};
|
|
1928
|
+
let headerParams = {
|
|
1929
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1930
|
+
"if-match": changeEncryptionKeyLocationRequest.ifMatch,
|
|
1931
|
+
"opc-retry-token": changeEncryptionKeyLocationRequest.opcRetryToken,
|
|
1932
|
+
"opc-request-id": changeEncryptionKeyLocationRequest.opcRequestId
|
|
1933
|
+
};
|
|
1934
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1935
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeEncryptionKeyLocationRequest.retryConfiguration, specRetryConfiguration);
|
|
1936
|
+
if (this.logger)
|
|
1937
|
+
retrier.logger = this.logger;
|
|
1938
|
+
const request = yield oci_common_2.composeRequest({
|
|
1939
|
+
baseEndpoint: this._endpoint,
|
|
1940
|
+
defaultHeaders: this._defaultHeaders,
|
|
1941
|
+
path: "/databases/{databaseId}/actions/changeEncryptionKeyLocation",
|
|
1942
|
+
method: "POST",
|
|
1943
|
+
bodyContent: common.ObjectSerializer.serialize(changeEncryptionKeyLocationRequest.encryptionKeyLocationDetails, "EncryptionKeyLocationDetails", model.EncryptionKeyLocationDetails.getJsonObj),
|
|
1944
|
+
pathParams: pathParams,
|
|
1945
|
+
headerParams: headerParams,
|
|
1946
|
+
queryParams: queryParams
|
|
1947
|
+
});
|
|
1948
|
+
try {
|
|
1949
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1950
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1951
|
+
responseObject: {},
|
|
1952
|
+
responseHeaders: [
|
|
1953
|
+
{
|
|
1954
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1955
|
+
key: "opcWorkRequestId",
|
|
1956
|
+
dataType: "string"
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
value: response.headers.get("opc-request-id"),
|
|
1960
|
+
key: "opcRequestId",
|
|
1961
|
+
dataType: "string"
|
|
1962
|
+
}
|
|
1963
|
+
]
|
|
1964
|
+
});
|
|
1965
|
+
return sdkResponse;
|
|
1966
|
+
}
|
|
1967
|
+
catch (err) {
|
|
1968
|
+
throw err;
|
|
1969
|
+
}
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1910
1972
|
/**
|
|
1911
1973
|
* Moves an Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud@Customer instances only.
|
|
1912
1974
|
* To move an Exadata Cloud Service infrastructure resource to another compartment, use the {@link #changeCloudExadataInfrastructureCompartment(ChangeCloudExadataInfrastructureCompartmentRequest) changeCloudExadataInfrastructureCompartment} operation.
|
|
@@ -3242,6 +3304,82 @@ class DatabaseClient {
|
|
|
3242
3304
|
}
|
|
3243
3305
|
});
|
|
3244
3306
|
}
|
|
3307
|
+
/**
|
|
3308
|
+
* Disassociate the standby database identified by the `databaseId` parameter from existing Data Guard group.
|
|
3309
|
+
* <p>
|
|
3310
|
+
Convert the standby to a standalone database.
|
|
3311
|
+
* <p>
|
|
3312
|
+
This operation should be performed on respective standby database.
|
|
3313
|
+
*
|
|
3314
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3315
|
+
* @param ConvertToStandaloneRequest
|
|
3316
|
+
* @return ConvertToStandaloneResponse
|
|
3317
|
+
* @throws OciError when an error occurs
|
|
3318
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConvertToStandalone.ts.html |here} to see how to use ConvertToStandalone API.
|
|
3319
|
+
*/
|
|
3320
|
+
convertToStandalone(convertToStandaloneRequest) {
|
|
3321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3322
|
+
if (this.logger)
|
|
3323
|
+
this.logger.debug("Calling operation DatabaseClient#convertToStandalone.");
|
|
3324
|
+
const operationName = "convertToStandalone";
|
|
3325
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ConvertToStandalone";
|
|
3326
|
+
const pathParams = {
|
|
3327
|
+
"{databaseId}": convertToStandaloneRequest.databaseId
|
|
3328
|
+
};
|
|
3329
|
+
const queryParams = {};
|
|
3330
|
+
let headerParams = {
|
|
3331
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3332
|
+
"opc-retry-token": convertToStandaloneRequest.opcRetryToken,
|
|
3333
|
+
"opc-request-id": convertToStandaloneRequest.opcRequestId,
|
|
3334
|
+
"if-match": convertToStandaloneRequest.ifMatch
|
|
3335
|
+
};
|
|
3336
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3337
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, convertToStandaloneRequest.retryConfiguration, specRetryConfiguration);
|
|
3338
|
+
if (this.logger)
|
|
3339
|
+
retrier.logger = this.logger;
|
|
3340
|
+
const request = yield oci_common_2.composeRequest({
|
|
3341
|
+
baseEndpoint: this._endpoint,
|
|
3342
|
+
defaultHeaders: this._defaultHeaders,
|
|
3343
|
+
path: "/databases/{databaseId}/dataGuard/actions/convertToStandalone",
|
|
3344
|
+
method: "POST",
|
|
3345
|
+
bodyContent: common.ObjectSerializer.serialize(convertToStandaloneRequest.convertToStandaloneDetails, "ConvertToStandaloneDetails", model.ConvertToStandaloneDetails.getJsonObj),
|
|
3346
|
+
pathParams: pathParams,
|
|
3347
|
+
headerParams: headerParams,
|
|
3348
|
+
queryParams: queryParams
|
|
3349
|
+
});
|
|
3350
|
+
try {
|
|
3351
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3352
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3353
|
+
responseObject: {},
|
|
3354
|
+
body: yield response.json(),
|
|
3355
|
+
bodyKey: "database",
|
|
3356
|
+
bodyModel: model.Database,
|
|
3357
|
+
type: "model.Database",
|
|
3358
|
+
responseHeaders: [
|
|
3359
|
+
{
|
|
3360
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3361
|
+
key: "opcWorkRequestId",
|
|
3362
|
+
dataType: "string"
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
value: response.headers.get("etag"),
|
|
3366
|
+
key: "etag",
|
|
3367
|
+
dataType: "string"
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
value: response.headers.get("opc-request-id"),
|
|
3371
|
+
key: "opcRequestId",
|
|
3372
|
+
dataType: "string"
|
|
3373
|
+
}
|
|
3374
|
+
]
|
|
3375
|
+
});
|
|
3376
|
+
return sdkResponse;
|
|
3377
|
+
}
|
|
3378
|
+
catch (err) {
|
|
3379
|
+
throw err;
|
|
3380
|
+
}
|
|
3381
|
+
});
|
|
3382
|
+
}
|
|
3245
3383
|
/**
|
|
3246
3384
|
* Creates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.
|
|
3247
3385
|
*
|
|
@@ -10044,6 +10182,84 @@ class DatabaseClient {
|
|
|
10044
10182
|
}
|
|
10045
10183
|
});
|
|
10046
10184
|
}
|
|
10185
|
+
/**
|
|
10186
|
+
* Performs a failover to transition the standby database identified by the `databaseId` path parameter into the
|
|
10187
|
+
* primary role after the existing primary database fails or becomes unreachable.
|
|
10188
|
+
* <p>
|
|
10189
|
+
A failover might result in data loss depending on the protection mode in effect at the time of the primary
|
|
10190
|
+
* database failure.
|
|
10191
|
+
* <p>
|
|
10192
|
+
This operation should be performed on respective standby database.
|
|
10193
|
+
*
|
|
10194
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
10195
|
+
* @param FailoverDataGuardRequest
|
|
10196
|
+
* @return FailoverDataGuardResponse
|
|
10197
|
+
* @throws OciError when an error occurs
|
|
10198
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/FailoverDataGuard.ts.html |here} to see how to use FailoverDataGuard API.
|
|
10199
|
+
*/
|
|
10200
|
+
failoverDataGuard(failoverDataGuardRequest) {
|
|
10201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10202
|
+
if (this.logger)
|
|
10203
|
+
this.logger.debug("Calling operation DatabaseClient#failoverDataGuard.");
|
|
10204
|
+
const operationName = "failoverDataGuard";
|
|
10205
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/FailoverDataGuard";
|
|
10206
|
+
const pathParams = {
|
|
10207
|
+
"{databaseId}": failoverDataGuardRequest.databaseId
|
|
10208
|
+
};
|
|
10209
|
+
const queryParams = {};
|
|
10210
|
+
let headerParams = {
|
|
10211
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10212
|
+
"opc-retry-token": failoverDataGuardRequest.opcRetryToken,
|
|
10213
|
+
"opc-request-id": failoverDataGuardRequest.opcRequestId,
|
|
10214
|
+
"if-match": failoverDataGuardRequest.ifMatch
|
|
10215
|
+
};
|
|
10216
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
10217
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, failoverDataGuardRequest.retryConfiguration, specRetryConfiguration);
|
|
10218
|
+
if (this.logger)
|
|
10219
|
+
retrier.logger = this.logger;
|
|
10220
|
+
const request = yield oci_common_2.composeRequest({
|
|
10221
|
+
baseEndpoint: this._endpoint,
|
|
10222
|
+
defaultHeaders: this._defaultHeaders,
|
|
10223
|
+
path: "/databases/{databaseId}/dataGuard/actions/failover",
|
|
10224
|
+
method: "POST",
|
|
10225
|
+
bodyContent: common.ObjectSerializer.serialize(failoverDataGuardRequest.failoverDataGuardDetails, "FailoverDataGuardDetails", model.FailoverDataGuardDetails.getJsonObj),
|
|
10226
|
+
pathParams: pathParams,
|
|
10227
|
+
headerParams: headerParams,
|
|
10228
|
+
queryParams: queryParams
|
|
10229
|
+
});
|
|
10230
|
+
try {
|
|
10231
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10232
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10233
|
+
responseObject: {},
|
|
10234
|
+
body: yield response.json(),
|
|
10235
|
+
bodyKey: "database",
|
|
10236
|
+
bodyModel: model.Database,
|
|
10237
|
+
type: "model.Database",
|
|
10238
|
+
responseHeaders: [
|
|
10239
|
+
{
|
|
10240
|
+
value: response.headers.get("opc-work-request-id"),
|
|
10241
|
+
key: "opcWorkRequestId",
|
|
10242
|
+
dataType: "string"
|
|
10243
|
+
},
|
|
10244
|
+
{
|
|
10245
|
+
value: response.headers.get("etag"),
|
|
10246
|
+
key: "etag",
|
|
10247
|
+
dataType: "string"
|
|
10248
|
+
},
|
|
10249
|
+
{
|
|
10250
|
+
value: response.headers.get("opc-request-id"),
|
|
10251
|
+
key: "opcRequestId",
|
|
10252
|
+
dataType: "string"
|
|
10253
|
+
}
|
|
10254
|
+
]
|
|
10255
|
+
});
|
|
10256
|
+
return sdkResponse;
|
|
10257
|
+
}
|
|
10258
|
+
catch (err) {
|
|
10259
|
+
throw err;
|
|
10260
|
+
}
|
|
10261
|
+
});
|
|
10262
|
+
}
|
|
10047
10263
|
/**
|
|
10048
10264
|
* Performs a failover to transition the standby database identified by the `databaseId` parameter into the
|
|
10049
10265
|
* specified Data Guard association's primary role after the existing primary database fails or becomes unreachable.
|
|
@@ -21065,6 +21281,7 @@ class DatabaseClient {
|
|
|
21065
21281
|
const queryParams = {
|
|
21066
21282
|
"compartmentId": listFlexComponentsRequest.compartmentId,
|
|
21067
21283
|
"name": listFlexComponentsRequest.name,
|
|
21284
|
+
"shape": listFlexComponentsRequest.shape,
|
|
21068
21285
|
"sortOrder": listFlexComponentsRequest.sortOrder,
|
|
21069
21286
|
"sortBy": listFlexComponentsRequest.sortBy,
|
|
21070
21287
|
"limit": listFlexComponentsRequest.limit,
|
|
@@ -23295,6 +23512,80 @@ class DatabaseClient {
|
|
|
23295
23512
|
}
|
|
23296
23513
|
});
|
|
23297
23514
|
}
|
|
23515
|
+
/**
|
|
23516
|
+
* Migrates the existing Data Guard association to new Data Guard model to support multiple standby databases functionality.
|
|
23517
|
+
* <p>
|
|
23518
|
+
This operation should always be performed on primary.
|
|
23519
|
+
*
|
|
23520
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
23521
|
+
* @param MigrateDataGuardAssociationToMultiDataGuardsRequest
|
|
23522
|
+
* @return MigrateDataGuardAssociationToMultiDataGuardsResponse
|
|
23523
|
+
* @throws OciError when an error occurs
|
|
23524
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/MigrateDataGuardAssociationToMultiDataGuards.ts.html |here} to see how to use MigrateDataGuardAssociationToMultiDataGuards API.
|
|
23525
|
+
*/
|
|
23526
|
+
migrateDataGuardAssociationToMultiDataGuards(migrateDataGuardAssociationToMultiDataGuardsRequest) {
|
|
23527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23528
|
+
if (this.logger)
|
|
23529
|
+
this.logger.debug("Calling operation DatabaseClient#migrateDataGuardAssociationToMultiDataGuards.");
|
|
23530
|
+
const operationName = "migrateDataGuardAssociationToMultiDataGuards";
|
|
23531
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DataGuardAssociation/MigrateDataGuardAssociationToMultiDataGuards";
|
|
23532
|
+
const pathParams = {
|
|
23533
|
+
"{databaseId}": migrateDataGuardAssociationToMultiDataGuardsRequest.databaseId,
|
|
23534
|
+
"{dataGuardAssociationId}": migrateDataGuardAssociationToMultiDataGuardsRequest.dataGuardAssociationId
|
|
23535
|
+
};
|
|
23536
|
+
const queryParams = {};
|
|
23537
|
+
let headerParams = {
|
|
23538
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
23539
|
+
"opc-retry-token": migrateDataGuardAssociationToMultiDataGuardsRequest.opcRetryToken,
|
|
23540
|
+
"opc-request-id": migrateDataGuardAssociationToMultiDataGuardsRequest.opcRequestId,
|
|
23541
|
+
"if-match": migrateDataGuardAssociationToMultiDataGuardsRequest.ifMatch
|
|
23542
|
+
};
|
|
23543
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
23544
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, migrateDataGuardAssociationToMultiDataGuardsRequest.retryConfiguration, specRetryConfiguration);
|
|
23545
|
+
if (this.logger)
|
|
23546
|
+
retrier.logger = this.logger;
|
|
23547
|
+
const request = yield oci_common_2.composeRequest({
|
|
23548
|
+
baseEndpoint: this._endpoint,
|
|
23549
|
+
defaultHeaders: this._defaultHeaders,
|
|
23550
|
+
path: "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/migrate",
|
|
23551
|
+
method: "POST",
|
|
23552
|
+
pathParams: pathParams,
|
|
23553
|
+
headerParams: headerParams,
|
|
23554
|
+
queryParams: queryParams
|
|
23555
|
+
});
|
|
23556
|
+
try {
|
|
23557
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
23558
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
23559
|
+
responseObject: {},
|
|
23560
|
+
body: yield response.json(),
|
|
23561
|
+
bodyKey: "database",
|
|
23562
|
+
bodyModel: model.Database,
|
|
23563
|
+
type: "model.Database",
|
|
23564
|
+
responseHeaders: [
|
|
23565
|
+
{
|
|
23566
|
+
value: response.headers.get("opc-work-request-id"),
|
|
23567
|
+
key: "opcWorkRequestId",
|
|
23568
|
+
dataType: "string"
|
|
23569
|
+
},
|
|
23570
|
+
{
|
|
23571
|
+
value: response.headers.get("opc-request-id"),
|
|
23572
|
+
key: "opcRequestId",
|
|
23573
|
+
dataType: "string"
|
|
23574
|
+
},
|
|
23575
|
+
{
|
|
23576
|
+
value: response.headers.get("etag"),
|
|
23577
|
+
key: "etag",
|
|
23578
|
+
dataType: "string"
|
|
23579
|
+
}
|
|
23580
|
+
]
|
|
23581
|
+
});
|
|
23582
|
+
return sdkResponse;
|
|
23583
|
+
}
|
|
23584
|
+
catch (err) {
|
|
23585
|
+
throw err;
|
|
23586
|
+
}
|
|
23587
|
+
});
|
|
23588
|
+
}
|
|
23298
23589
|
/**
|
|
23299
23590
|
* Migrates the Exadata DB system to the new [Exadata resource model](https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model).
|
|
23300
23591
|
* All related resources will be migrated.
|
|
@@ -23854,6 +24145,80 @@ class DatabaseClient {
|
|
|
23854
24145
|
}
|
|
23855
24146
|
});
|
|
23856
24147
|
}
|
|
24148
|
+
/**
|
|
24149
|
+
* Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association.
|
|
24150
|
+
* <p>
|
|
24151
|
+
This operation should be performed on disabled standby database.
|
|
24152
|
+
*
|
|
24153
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
24154
|
+
* @param ReinstateDataGuardRequest
|
|
24155
|
+
* @return ReinstateDataGuardResponse
|
|
24156
|
+
* @throws OciError when an error occurs
|
|
24157
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ReinstateDataGuard.ts.html |here} to see how to use ReinstateDataGuard API.
|
|
24158
|
+
*/
|
|
24159
|
+
reinstateDataGuard(reinstateDataGuardRequest) {
|
|
24160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24161
|
+
if (this.logger)
|
|
24162
|
+
this.logger.debug("Calling operation DatabaseClient#reinstateDataGuard.");
|
|
24163
|
+
const operationName = "reinstateDataGuard";
|
|
24164
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ReinstateDataGuard";
|
|
24165
|
+
const pathParams = {
|
|
24166
|
+
"{databaseId}": reinstateDataGuardRequest.databaseId
|
|
24167
|
+
};
|
|
24168
|
+
const queryParams = {};
|
|
24169
|
+
let headerParams = {
|
|
24170
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
24171
|
+
"opc-retry-token": reinstateDataGuardRequest.opcRetryToken,
|
|
24172
|
+
"opc-request-id": reinstateDataGuardRequest.opcRequestId,
|
|
24173
|
+
"if-match": reinstateDataGuardRequest.ifMatch
|
|
24174
|
+
};
|
|
24175
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
24176
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reinstateDataGuardRequest.retryConfiguration, specRetryConfiguration);
|
|
24177
|
+
if (this.logger)
|
|
24178
|
+
retrier.logger = this.logger;
|
|
24179
|
+
const request = yield oci_common_2.composeRequest({
|
|
24180
|
+
baseEndpoint: this._endpoint,
|
|
24181
|
+
defaultHeaders: this._defaultHeaders,
|
|
24182
|
+
path: "/databases/{databaseId}/dataGuard/actions/reinstate",
|
|
24183
|
+
method: "POST",
|
|
24184
|
+
bodyContent: common.ObjectSerializer.serialize(reinstateDataGuardRequest.reinstateDataGuardDetails, "ReinstateDataGuardDetails", model.ReinstateDataGuardDetails.getJsonObj),
|
|
24185
|
+
pathParams: pathParams,
|
|
24186
|
+
headerParams: headerParams,
|
|
24187
|
+
queryParams: queryParams
|
|
24188
|
+
});
|
|
24189
|
+
try {
|
|
24190
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
24191
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
24192
|
+
responseObject: {},
|
|
24193
|
+
body: yield response.json(),
|
|
24194
|
+
bodyKey: "database",
|
|
24195
|
+
bodyModel: model.Database,
|
|
24196
|
+
type: "model.Database",
|
|
24197
|
+
responseHeaders: [
|
|
24198
|
+
{
|
|
24199
|
+
value: response.headers.get("opc-work-request-id"),
|
|
24200
|
+
key: "opcWorkRequestId",
|
|
24201
|
+
dataType: "string"
|
|
24202
|
+
},
|
|
24203
|
+
{
|
|
24204
|
+
value: response.headers.get("etag"),
|
|
24205
|
+
key: "etag",
|
|
24206
|
+
dataType: "string"
|
|
24207
|
+
},
|
|
24208
|
+
{
|
|
24209
|
+
value: response.headers.get("opc-request-id"),
|
|
24210
|
+
key: "opcRequestId",
|
|
24211
|
+
dataType: "string"
|
|
24212
|
+
}
|
|
24213
|
+
]
|
|
24214
|
+
});
|
|
24215
|
+
return sdkResponse;
|
|
24216
|
+
}
|
|
24217
|
+
catch (err) {
|
|
24218
|
+
throw err;
|
|
24219
|
+
}
|
|
24220
|
+
});
|
|
24221
|
+
}
|
|
23857
24222
|
/**
|
|
23858
24223
|
* Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association.
|
|
23859
24224
|
*
|
|
@@ -26054,6 +26419,83 @@ class DatabaseClient {
|
|
|
26054
26419
|
}
|
|
26055
26420
|
});
|
|
26056
26421
|
}
|
|
26422
|
+
/**
|
|
26423
|
+
* Performs a switchover to transition primary database of this Data Guard association into a standby role. The
|
|
26424
|
+
* standby database associated with the `dataGuardAssociationId` assumes the primary database role.
|
|
26425
|
+
* <p>
|
|
26426
|
+
A switchover guarantees no data loss.
|
|
26427
|
+
* <p>
|
|
26428
|
+
This operation should be performed on respective standby database.
|
|
26429
|
+
*
|
|
26430
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
26431
|
+
* @param SwitchOverDataGuardRequest
|
|
26432
|
+
* @return SwitchOverDataGuardResponse
|
|
26433
|
+
* @throws OciError when an error occurs
|
|
26434
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SwitchOverDataGuard.ts.html |here} to see how to use SwitchOverDataGuard API.
|
|
26435
|
+
*/
|
|
26436
|
+
switchOverDataGuard(switchOverDataGuardRequest) {
|
|
26437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26438
|
+
if (this.logger)
|
|
26439
|
+
this.logger.debug("Calling operation DatabaseClient#switchOverDataGuard.");
|
|
26440
|
+
const operationName = "switchOverDataGuard";
|
|
26441
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/SwitchOverDataGuard";
|
|
26442
|
+
const pathParams = {
|
|
26443
|
+
"{databaseId}": switchOverDataGuardRequest.databaseId
|
|
26444
|
+
};
|
|
26445
|
+
const queryParams = {};
|
|
26446
|
+
let headerParams = {
|
|
26447
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
26448
|
+
"opc-retry-token": switchOverDataGuardRequest.opcRetryToken,
|
|
26449
|
+
"opc-request-id": switchOverDataGuardRequest.opcRequestId,
|
|
26450
|
+
"if-match": switchOverDataGuardRequest.ifMatch
|
|
26451
|
+
};
|
|
26452
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
26453
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, switchOverDataGuardRequest.retryConfiguration, specRetryConfiguration);
|
|
26454
|
+
if (this.logger)
|
|
26455
|
+
retrier.logger = this.logger;
|
|
26456
|
+
const request = yield oci_common_2.composeRequest({
|
|
26457
|
+
baseEndpoint: this._endpoint,
|
|
26458
|
+
defaultHeaders: this._defaultHeaders,
|
|
26459
|
+
path: "/databases/{databaseId}/dataGuard/actions/switchover",
|
|
26460
|
+
method: "POST",
|
|
26461
|
+
bodyContent: common.ObjectSerializer.serialize(switchOverDataGuardRequest.switchOverDataGuardDetails, "SwitchOverDataGuardDetails", model.SwitchOverDataGuardDetails.getJsonObj),
|
|
26462
|
+
pathParams: pathParams,
|
|
26463
|
+
headerParams: headerParams,
|
|
26464
|
+
queryParams: queryParams
|
|
26465
|
+
});
|
|
26466
|
+
try {
|
|
26467
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
26468
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
26469
|
+
responseObject: {},
|
|
26470
|
+
body: yield response.json(),
|
|
26471
|
+
bodyKey: "database",
|
|
26472
|
+
bodyModel: model.Database,
|
|
26473
|
+
type: "model.Database",
|
|
26474
|
+
responseHeaders: [
|
|
26475
|
+
{
|
|
26476
|
+
value: response.headers.get("opc-work-request-id"),
|
|
26477
|
+
key: "opcWorkRequestId",
|
|
26478
|
+
dataType: "string"
|
|
26479
|
+
},
|
|
26480
|
+
{
|
|
26481
|
+
value: response.headers.get("etag"),
|
|
26482
|
+
key: "etag",
|
|
26483
|
+
dataType: "string"
|
|
26484
|
+
},
|
|
26485
|
+
{
|
|
26486
|
+
value: response.headers.get("opc-request-id"),
|
|
26487
|
+
key: "opcRequestId",
|
|
26488
|
+
dataType: "string"
|
|
26489
|
+
}
|
|
26490
|
+
]
|
|
26491
|
+
});
|
|
26492
|
+
return sdkResponse;
|
|
26493
|
+
}
|
|
26494
|
+
catch (err) {
|
|
26495
|
+
throw err;
|
|
26496
|
+
}
|
|
26497
|
+
});
|
|
26498
|
+
}
|
|
26057
26499
|
/**
|
|
26058
26500
|
* Switches over the primary Autonomous Container Database of an Autonomous Data Guard peer association to standby role. The standby Autonomous Container Database associated with autonomousContainerDatabaseDataguardAssociationId assumes the primary Autonomous Container Database role.
|
|
26059
26501
|
* <p>
|
|
@@ -27565,6 +28007,79 @@ class DatabaseClient {
|
|
|
27565
28007
|
}
|
|
27566
28008
|
});
|
|
27567
28009
|
}
|
|
28010
|
+
/**
|
|
28011
|
+
* Update an existing Data Guard member. A Data Guard member represents the replication relationship between the
|
|
28012
|
+
* specified database and a standby database. For more information, see [Using Oracle Data Guard](https://docs.cloud.oracle.com/Content/Database/Tasks/usingdataguard.htm).
|
|
28013
|
+
*
|
|
28014
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
28015
|
+
* @param UpdateDataGuardRequest
|
|
28016
|
+
* @return UpdateDataGuardResponse
|
|
28017
|
+
* @throws OciError when an error occurs
|
|
28018
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UpdateDataGuard.ts.html |here} to see how to use UpdateDataGuard API.
|
|
28019
|
+
*/
|
|
28020
|
+
updateDataGuard(updateDataGuardRequest) {
|
|
28021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28022
|
+
if (this.logger)
|
|
28023
|
+
this.logger.debug("Calling operation DatabaseClient#updateDataGuard.");
|
|
28024
|
+
const operationName = "updateDataGuard";
|
|
28025
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/UpdateDataGuard";
|
|
28026
|
+
const pathParams = {
|
|
28027
|
+
"{databaseId}": updateDataGuardRequest.databaseId
|
|
28028
|
+
};
|
|
28029
|
+
const queryParams = {};
|
|
28030
|
+
let headerParams = {
|
|
28031
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
28032
|
+
"opc-retry-token": updateDataGuardRequest.opcRetryToken,
|
|
28033
|
+
"opc-request-id": updateDataGuardRequest.opcRequestId,
|
|
28034
|
+
"if-match": updateDataGuardRequest.ifMatch
|
|
28035
|
+
};
|
|
28036
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
28037
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDataGuardRequest.retryConfiguration, specRetryConfiguration);
|
|
28038
|
+
if (this.logger)
|
|
28039
|
+
retrier.logger = this.logger;
|
|
28040
|
+
const request = yield oci_common_2.composeRequest({
|
|
28041
|
+
baseEndpoint: this._endpoint,
|
|
28042
|
+
defaultHeaders: this._defaultHeaders,
|
|
28043
|
+
path: "/databases/{databaseId}/dataGuard/actions/updateDataGuard",
|
|
28044
|
+
method: "POST",
|
|
28045
|
+
bodyContent: common.ObjectSerializer.serialize(updateDataGuardRequest.updateDataGuardDetails, "UpdateDataGuardDetails", model.UpdateDataGuardDetails.getJsonObj),
|
|
28046
|
+
pathParams: pathParams,
|
|
28047
|
+
headerParams: headerParams,
|
|
28048
|
+
queryParams: queryParams
|
|
28049
|
+
});
|
|
28050
|
+
try {
|
|
28051
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
28052
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
28053
|
+
responseObject: {},
|
|
28054
|
+
body: yield response.json(),
|
|
28055
|
+
bodyKey: "database",
|
|
28056
|
+
bodyModel: model.Database,
|
|
28057
|
+
type: "model.Database",
|
|
28058
|
+
responseHeaders: [
|
|
28059
|
+
{
|
|
28060
|
+
value: response.headers.get("opc-request-id"),
|
|
28061
|
+
key: "opcRequestId",
|
|
28062
|
+
dataType: "string"
|
|
28063
|
+
},
|
|
28064
|
+
{
|
|
28065
|
+
value: response.headers.get("opc-work-request-id"),
|
|
28066
|
+
key: "opcWorkRequestId",
|
|
28067
|
+
dataType: "string"
|
|
28068
|
+
},
|
|
28069
|
+
{
|
|
28070
|
+
value: response.headers.get("etag"),
|
|
28071
|
+
key: "etag",
|
|
28072
|
+
dataType: "string"
|
|
28073
|
+
}
|
|
28074
|
+
]
|
|
28075
|
+
});
|
|
28076
|
+
return sdkResponse;
|
|
28077
|
+
}
|
|
28078
|
+
catch (err) {
|
|
28079
|
+
throw err;
|
|
28080
|
+
}
|
|
28081
|
+
});
|
|
28082
|
+
}
|
|
27568
28083
|
/**
|
|
27569
28084
|
* Updates the Data Guard association the specified database. This API can be used to change the `protectionMode` and `transportType` of the Data Guard association.
|
|
27570
28085
|
*
|