oci-distributeddatabase 2.126.0 → 2.126.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 +87 -1
- package/lib/client.js +514 -3
- package/lib/client.js.map +1 -1
- package/lib/model/catalog-peer-with-dedicated-infra.d.ts +1 -1
- package/lib/model/catalog-peer-with-exadb-xs-new-vault-and-cluster.d.ts +77 -0
- package/lib/model/catalog-peer-with-exadb-xs-new-vault-and-cluster.js +84 -0
- package/lib/model/catalog-peer-with-exadb-xs-new-vault-and-cluster.js.map +1 -0
- package/lib/model/configure-distributed-autonomous-database-gsm-wallet-details.d.ts +30 -0
- package/lib/model/configure-distributed-autonomous-database-gsm-wallet-details.js +29 -0
- package/lib/model/configure-distributed-autonomous-database-gsm-wallet-details.js.map +1 -0
- package/lib/model/create-catalog-peer-with-dedicated-infra-details.d.ts +1 -1
- package/lib/model/create-catalog-peer-with-exadb-xs-new-vault-and-cluster-details.d.ts +36 -0
- package/lib/model/create-catalog-peer-with-exadb-xs-new-vault-and-cluster-details.js +63 -0
- package/lib/model/create-catalog-peer-with-exadb-xs-new-vault-and-cluster-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-catalog-with-dedicated-infra-details.d.ts +8 -0
- package/lib/model/create-distributed-autonomous-database-catalog-with-dedicated-infra-details.js.map +1 -1
- package/lib/model/create-distributed-autonomous-database-shard-with-dedicated-infra-details.d.ts +8 -0
- package/lib/model/create-distributed-autonomous-database-shard-with-dedicated-infra-details.js.map +1 -1
- package/lib/model/create-distributed-database-catalog-details.js +4 -0
- package/lib/model/create-distributed-database-catalog-details.js.map +1 -1
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-new-vault-and-cluster-details.d.ts +57 -0
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-new-vault-and-cluster-details.js +78 -0
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-new-vault-and-cluster-details.js.map +1 -0
- package/lib/model/create-distributed-database-details.d.ts +8 -0
- package/lib/model/create-distributed-database-details.js.map +1 -1
- package/lib/model/create-distributed-database-shard-details.js +4 -0
- package/lib/model/create-distributed-database-shard-details.js.map +1 -1
- package/lib/model/create-distributed-database-shard-with-exadb-xs-new-vault-and-cluster-details.d.ts +57 -0
- package/lib/model/create-distributed-database-shard-with-exadb-xs-new-vault-and-cluster-details.js +78 -0
- package/lib/model/create-distributed-database-shard-with-exadb-xs-new-vault-and-cluster-details.js.map +1 -0
- package/lib/model/create-shard-peer-with-dedicated-infra-details.d.ts +1 -1
- package/lib/model/create-shard-peer-with-exadb-xs-new-vault-and-cluster-details.d.ts +36 -0
- package/lib/model/create-shard-peer-with-exadb-xs-new-vault-and-cluster-details.js +63 -0
- package/lib/model/create-shard-peer-with-exadb-xs-new-vault-and-cluster-details.js.map +1 -0
- package/lib/model/db-storage-vault-details.d.ts +30 -0
- package/lib/model/db-storage-vault-details.js +29 -0
- package/lib/model/db-storage-vault-details.js.map +1 -0
- package/lib/model/distributed-autonomous-database-associated-with-private-endpoint.d.ts +2 -1
- package/lib/model/distributed-autonomous-database-associated-with-private-endpoint.js.map +1 -1
- package/lib/model/distributed-autonomous-database-catalog-with-dedicated-infra.d.ts +8 -0
- package/lib/model/distributed-autonomous-database-catalog-with-dedicated-infra.js.map +1 -1
- package/lib/model/distributed-autonomous-database-raft-metric.d.ts +33 -0
- package/lib/model/distributed-autonomous-database-raft-metric.js +29 -0
- package/lib/model/distributed-autonomous-database-raft-metric.js.map +1 -0
- package/lib/model/distributed-autonomous-database-shard-with-dedicated-infra.d.ts +8 -0
- package/lib/model/distributed-autonomous-database-shard-with-dedicated-infra.js.map +1 -1
- package/lib/model/distributed-database-associated-with-private-endpoint.d.ts +2 -1
- package/lib/model/distributed-database-associated-with-private-endpoint.js.map +1 -1
- package/lib/model/distributed-database-catalog-with-exadb-xs-new-vault-and-cluster.d.ts +84 -0
- package/lib/model/distributed-database-catalog-with-exadb-xs-new-vault-and-cluster.js +99 -0
- package/lib/model/distributed-database-catalog-with-exadb-xs-new-vault-and-cluster.js.map +1 -0
- package/lib/model/distributed-database-catalog.js +4 -0
- package/lib/model/distributed-database-catalog.js.map +1 -1
- package/lib/model/distributed-database-private-endpoint.d.ts +4 -2
- package/lib/model/distributed-database-private-endpoint.js.map +1 -1
- package/lib/model/distributed-database-raft-metric.d.ts +33 -0
- package/lib/model/distributed-database-raft-metric.js +29 -0
- package/lib/model/distributed-database-raft-metric.js.map +1 -0
- package/lib/model/distributed-database-shard-with-exadb-xs-new-vault-and-cluster.d.ts +90 -0
- package/lib/model/distributed-database-shard-with-exadb-xs-new-vault-and-cluster.js +99 -0
- package/lib/model/distributed-database-shard-with-exadb-xs-new-vault-and-cluster.js.map +1 -0
- package/lib/model/distributed-database-shard.js +4 -0
- package/lib/model/distributed-database-shard.js.map +1 -1
- package/lib/model/distributed-database.d.ts +4 -0
- package/lib/model/distributed-database.js.map +1 -1
- package/lib/model/distributed-db-storage-vault.d.ts +37 -0
- package/lib/model/distributed-db-storage-vault.js +29 -0
- package/lib/model/distributed-db-storage-vault.js.map +1 -0
- package/lib/model/distributed-db-vm-cluster.d.ts +122 -0
- package/lib/model/distributed-db-vm-cluster.js +39 -0
- package/lib/model/distributed-db-vm-cluster.js.map +1 -0
- package/lib/model/index.d.ts +34 -0
- package/lib/model/index.js +37 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/move-distributed-autonomous-database-replication-unit-details.d.ts +34 -0
- package/lib/model/move-distributed-autonomous-database-replication-unit-details.js +29 -0
- package/lib/model/move-distributed-autonomous-database-replication-unit-details.js.map +1 -0
- package/lib/model/move-distributed-database-replication-unit-details.d.ts +34 -0
- package/lib/model/move-distributed-database-replication-unit-details.js +29 -0
- package/lib/model/move-distributed-database-replication-unit-details.js.map +1 -0
- package/lib/model/operation-type.d.ts +4 -0
- package/lib/model/operation-type.js +4 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/shard-peer-with-dedicated-infra.d.ts +1 -1
- package/lib/model/shard-peer-with-exadb-xs-new-vault-and-cluster.d.ts +77 -0
- package/lib/model/shard-peer-with-exadb-xs-new-vault-and-cluster.js +84 -0
- package/lib/model/shard-peer-with-exadb-xs-new-vault-and-cluster.js.map +1 -0
- package/lib/model/vm-cluster-details.d.ts +110 -0
- package/lib/model/vm-cluster-details.js +34 -0
- package/lib/model/vm-cluster-details.js.map +1 -0
- package/lib/request/configure-distributed-autonomous-database-gsm-wallet-request.d.ts +49 -0
- package/lib/request/configure-distributed-autonomous-database-gsm-wallet-request.js +15 -0
- package/lib/request/configure-distributed-autonomous-database-gsm-wallet-request.js.map +1 -0
- package/lib/request/configure-distributed-autonomous-database-sharding-request.d.ts +8 -0
- package/lib/request/delete-distributed-database-request.d.ts +4 -0
- package/lib/request/generate-distributed-autonomous-database-gsm-certificate-signing-request-request.d.ts +4 -4
- package/lib/request/get-distributed-autonomous-database-raft-metric-request.d.ts +26 -0
- package/lib/request/get-distributed-autonomous-database-raft-metric-request.js +15 -0
- package/lib/request/get-distributed-autonomous-database-raft-metric-request.js.map +1 -0
- package/lib/request/get-distributed-database-raft-metric-request.d.ts +26 -0
- package/lib/request/get-distributed-database-raft-metric-request.js +15 -0
- package/lib/request/get-distributed-database-raft-metric-request.js.map +1 -0
- package/lib/request/index.d.ts +16 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-distributed-autonomous-databases-request.d.ts +4 -0
- package/lib/request/list-distributed-autonomous-databases-request.js.map +1 -1
- package/lib/request/list-distributed-databases-request.d.ts +4 -0
- package/lib/request/list-distributed-databases-request.js.map +1 -1
- package/lib/request/move-distributed-autonomous-database-replication-unit-request.d.ts +50 -0
- package/lib/request/move-distributed-autonomous-database-replication-unit-request.js +15 -0
- package/lib/request/move-distributed-autonomous-database-replication-unit-request.js.map +1 -0
- package/lib/request/move-distributed-database-replication-unit-request.d.ts +50 -0
- package/lib/request/move-distributed-database-replication-unit-request.js +15 -0
- package/lib/request/move-distributed-database-replication-unit-request.js.map +1 -0
- package/lib/request/recreate-failed-distributed-autonomous-database-resource-request.d.ts +54 -0
- package/lib/request/recreate-failed-distributed-autonomous-database-resource-request.js +15 -0
- package/lib/request/recreate-failed-distributed-autonomous-database-resource-request.js.map +1 -0
- package/lib/request/recreate-failed-distributed-database-resource-request.d.ts +54 -0
- package/lib/request/recreate-failed-distributed-database-resource-request.js +15 -0
- package/lib/request/recreate-failed-distributed-database-resource-request.js.map +1 -0
- package/lib/request/validate-distributed-autonomous-database-ca-bundle-request.d.ts +44 -0
- package/lib/request/validate-distributed-autonomous-database-ca-bundle-request.js +15 -0
- package/lib/request/validate-distributed-autonomous-database-ca-bundle-request.js.map +1 -0
- package/lib/request/validate-distributed-autonomous-database-network-request.d.ts +1 -1
- package/lib/request/validate-distributed-database-network-request.d.ts +1 -1
- package/lib/response/configure-distributed-autonomous-database-gsm-wallet-response.d.ts +25 -0
- package/lib/response/configure-distributed-autonomous-database-gsm-wallet-response.js +15 -0
- package/lib/response/configure-distributed-autonomous-database-gsm-wallet-response.js.map +1 -0
- package/lib/response/get-distributed-autonomous-database-raft-metric-response.d.ts +25 -0
- package/lib/response/get-distributed-autonomous-database-raft-metric-response.js +15 -0
- package/lib/response/get-distributed-autonomous-database-raft-metric-response.js.map +1 -0
- package/lib/response/get-distributed-database-raft-metric-response.d.ts +25 -0
- package/lib/response/get-distributed-database-raft-metric-response.js +15 -0
- package/lib/response/get-distributed-database-raft-metric-response.js.map +1 -0
- package/lib/response/index.d.ts +16 -0
- package/lib/response/move-distributed-autonomous-database-replication-unit-response.d.ts +25 -0
- package/lib/response/move-distributed-autonomous-database-replication-unit-response.js +15 -0
- package/lib/response/move-distributed-autonomous-database-replication-unit-response.js.map +1 -0
- package/lib/response/move-distributed-database-replication-unit-response.d.ts +25 -0
- package/lib/response/move-distributed-database-replication-unit-response.js +15 -0
- package/lib/response/move-distributed-database-replication-unit-response.js.map +1 -0
- package/lib/response/recreate-failed-distributed-autonomous-database-resource-response.d.ts +25 -0
- package/lib/response/recreate-failed-distributed-autonomous-database-resource-response.js +15 -0
- package/lib/response/recreate-failed-distributed-autonomous-database-resource-response.js.map +1 -0
- package/lib/response/recreate-failed-distributed-database-resource-response.d.ts +25 -0
- package/lib/response/recreate-failed-distributed-database-resource-response.js +15 -0
- package/lib/response/recreate-failed-distributed-database-resource-response.js.map +1 -0
- package/lib/response/validate-distributed-autonomous-database-ca-bundle-response.d.ts +25 -0
- package/lib/response/validate-distributed-autonomous-database-ca-bundle-response.js +15 -0
- package/lib/response/validate-distributed-autonomous-database-ca-bundle-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -399,6 +399,69 @@ class DistributedAutonomousDbServiceClient {
|
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Configure wallets on Global Service Manager(GSM) instances for a Globally distributed autonomous database.
|
|
404
|
+
*
|
|
405
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
406
|
+
* @param ConfigureDistributedAutonomousDatabaseGsmWalletRequest
|
|
407
|
+
* @return ConfigureDistributedAutonomousDatabaseGsmWalletResponse
|
|
408
|
+
* @throws OciError when an error occurs
|
|
409
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ConfigureDistributedAutonomousDatabaseGsmWallet.ts.html |here} to see how to use ConfigureDistributedAutonomousDatabaseGsmWallet API.
|
|
410
|
+
*/
|
|
411
|
+
configureDistributedAutonomousDatabaseGsmWallet(configureDistributedAutonomousDatabaseGsmWalletRequest) {
|
|
412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
+
if (this.logger)
|
|
414
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#configureDistributedAutonomousDatabaseGsmWallet.");
|
|
415
|
+
const operationName = "configureDistributedAutonomousDatabaseGsmWallet";
|
|
416
|
+
const apiReferenceLink = "";
|
|
417
|
+
const pathParams = {
|
|
418
|
+
"{distributedAutonomousDatabaseId}": configureDistributedAutonomousDatabaseGsmWalletRequest.distributedAutonomousDatabaseId
|
|
419
|
+
};
|
|
420
|
+
const queryParams = {};
|
|
421
|
+
let headerParams = {
|
|
422
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
423
|
+
"opc-retry-token": configureDistributedAutonomousDatabaseGsmWalletRequest.opcRetryToken,
|
|
424
|
+
"opc-request-id": configureDistributedAutonomousDatabaseGsmWalletRequest.opcRequestId,
|
|
425
|
+
"if-match": configureDistributedAutonomousDatabaseGsmWalletRequest.ifMatch
|
|
426
|
+
};
|
|
427
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
428
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureDistributedAutonomousDatabaseGsmWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
429
|
+
if (this.logger)
|
|
430
|
+
retrier.logger = this.logger;
|
|
431
|
+
const request = yield oci_common_1.composeRequest({
|
|
432
|
+
baseEndpoint: this._endpoint,
|
|
433
|
+
defaultHeaders: this._defaultHeaders,
|
|
434
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/configureGsmWallet",
|
|
435
|
+
method: "POST",
|
|
436
|
+
bodyContent: common.ObjectSerializer.serialize(configureDistributedAutonomousDatabaseGsmWalletRequest.configureDistributedAutonomousDatabaseGsmWalletDetails, "ConfigureDistributedAutonomousDatabaseGsmWalletDetails", model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails.getJsonObj),
|
|
437
|
+
pathParams: pathParams,
|
|
438
|
+
headerParams: headerParams,
|
|
439
|
+
queryParams: queryParams
|
|
440
|
+
});
|
|
441
|
+
try {
|
|
442
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
443
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
444
|
+
responseObject: {},
|
|
445
|
+
responseHeaders: [
|
|
446
|
+
{
|
|
447
|
+
value: response.headers.get("opc-work-request-id"),
|
|
448
|
+
key: "opcWorkRequestId",
|
|
449
|
+
dataType: "string"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
value: response.headers.get("opc-request-id"),
|
|
453
|
+
key: "opcRequestId",
|
|
454
|
+
dataType: "string"
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
});
|
|
458
|
+
return sdkResponse;
|
|
459
|
+
}
|
|
460
|
+
catch (err) {
|
|
461
|
+
throw err;
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
}
|
|
402
465
|
/**
|
|
403
466
|
* Configure new Global Service Manager(GSM aka shard manager) instances for the Globally distributed autonomous database.
|
|
404
467
|
*
|
|
@@ -463,7 +526,7 @@ class DistributedAutonomousDbServiceClient {
|
|
|
463
526
|
});
|
|
464
527
|
}
|
|
465
528
|
/**
|
|
466
|
-
* Once all components of Globally distributed autonomous database are provisioned,
|
|
529
|
+
* Once all components of Globally distributed autonomous database are provisioned, this
|
|
467
530
|
* api shall be invoked to configure sharding on the Globally distributed autonomous database. Note that this 'ConfigureSharding' API also needs to be
|
|
468
531
|
* invoked after successfully adding a new shard to the Globally distributed autonomous database using PATCH api. If this API is not
|
|
469
532
|
* invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of
|
|
@@ -485,7 +548,9 @@ class DistributedAutonomousDbServiceClient {
|
|
|
485
548
|
"{distributedAutonomousDatabaseId}": configureDistributedAutonomousDatabaseShardingRequest.distributedAutonomousDatabaseId
|
|
486
549
|
};
|
|
487
550
|
const queryParams = {
|
|
488
|
-
"isRebalanceRequired": configureDistributedAutonomousDatabaseShardingRequest.isRebalanceRequired
|
|
551
|
+
"isRebalanceRequired": configureDistributedAutonomousDatabaseShardingRequest.isRebalanceRequired,
|
|
552
|
+
"certificateId": configureDistributedAutonomousDatabaseShardingRequest.certificateId,
|
|
553
|
+
"caBundleId": configureDistributedAutonomousDatabaseShardingRequest.caBundleId
|
|
489
554
|
};
|
|
490
555
|
let headerParams = {
|
|
491
556
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -948,6 +1013,66 @@ class DistributedAutonomousDbServiceClient {
|
|
|
948
1013
|
}
|
|
949
1014
|
});
|
|
950
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Operation to retrieve RAFT metrics for the Globally distributed autonomous database. If the Globally distributed
|
|
1018
|
+
* autonomous database is not RAFT based then empty response is returned from the API.
|
|
1019
|
+
*
|
|
1020
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1021
|
+
* @param GetDistributedAutonomousDatabaseRaftMetricRequest
|
|
1022
|
+
* @return GetDistributedAutonomousDatabaseRaftMetricResponse
|
|
1023
|
+
* @throws OciError when an error occurs
|
|
1024
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetDistributedAutonomousDatabaseRaftMetric.ts.html |here} to see how to use GetDistributedAutonomousDatabaseRaftMetric API.
|
|
1025
|
+
*/
|
|
1026
|
+
getDistributedAutonomousDatabaseRaftMetric(getDistributedAutonomousDatabaseRaftMetricRequest) {
|
|
1027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1028
|
+
if (this.logger)
|
|
1029
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#getDistributedAutonomousDatabaseRaftMetric.");
|
|
1030
|
+
const operationName = "getDistributedAutonomousDatabaseRaftMetric";
|
|
1031
|
+
const apiReferenceLink = "";
|
|
1032
|
+
const pathParams = {
|
|
1033
|
+
"{distributedAutonomousDatabaseId}": getDistributedAutonomousDatabaseRaftMetricRequest.distributedAutonomousDatabaseId
|
|
1034
|
+
};
|
|
1035
|
+
const queryParams = {};
|
|
1036
|
+
let headerParams = {
|
|
1037
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1038
|
+
"opc-request-id": getDistributedAutonomousDatabaseRaftMetricRequest.opcRequestId
|
|
1039
|
+
};
|
|
1040
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1041
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDistributedAutonomousDatabaseRaftMetricRequest.retryConfiguration, specRetryConfiguration);
|
|
1042
|
+
if (this.logger)
|
|
1043
|
+
retrier.logger = this.logger;
|
|
1044
|
+
const request = yield oci_common_1.composeRequest({
|
|
1045
|
+
baseEndpoint: this._endpoint,
|
|
1046
|
+
defaultHeaders: this._defaultHeaders,
|
|
1047
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/raftMetrics",
|
|
1048
|
+
method: "GET",
|
|
1049
|
+
pathParams: pathParams,
|
|
1050
|
+
headerParams: headerParams,
|
|
1051
|
+
queryParams: queryParams
|
|
1052
|
+
});
|
|
1053
|
+
try {
|
|
1054
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1055
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1056
|
+
responseObject: {},
|
|
1057
|
+
body: yield response.json(),
|
|
1058
|
+
bodyKey: "distributedAutonomousDatabaseRaftMetric",
|
|
1059
|
+
bodyModel: model.DistributedAutonomousDatabaseRaftMetric,
|
|
1060
|
+
type: "model.DistributedAutonomousDatabaseRaftMetric",
|
|
1061
|
+
responseHeaders: [
|
|
1062
|
+
{
|
|
1063
|
+
value: response.headers.get("opc-request-id"),
|
|
1064
|
+
key: "opcRequestId",
|
|
1065
|
+
dataType: "string"
|
|
1066
|
+
}
|
|
1067
|
+
]
|
|
1068
|
+
});
|
|
1069
|
+
return sdkResponse;
|
|
1070
|
+
}
|
|
1071
|
+
catch (err) {
|
|
1072
|
+
throw err;
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
951
1076
|
/**
|
|
952
1077
|
* List of Globally distributed autonomous databases.
|
|
953
1078
|
*
|
|
@@ -966,6 +1091,7 @@ class DistributedAutonomousDbServiceClient {
|
|
|
966
1091
|
const pathParams = {};
|
|
967
1092
|
const queryParams = {
|
|
968
1093
|
"compartmentId": listDistributedAutonomousDatabasesRequest.compartmentId,
|
|
1094
|
+
"privateEndpointId": listDistributedAutonomousDatabasesRequest.privateEndpointId,
|
|
969
1095
|
"lifecycleState": listDistributedAutonomousDatabasesRequest.lifecycleState,
|
|
970
1096
|
"limit": listDistributedAutonomousDatabasesRequest.limit,
|
|
971
1097
|
"page": listDistributedAutonomousDatabasesRequest.page,
|
|
@@ -1020,6 +1146,69 @@ class DistributedAutonomousDbServiceClient {
|
|
|
1020
1146
|
}
|
|
1021
1147
|
});
|
|
1022
1148
|
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Move the replication units for RAFT based globally distributed autonomous database from source shard to destination shard.
|
|
1151
|
+
*
|
|
1152
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1153
|
+
* @param MoveDistributedAutonomousDatabaseReplicationUnitRequest
|
|
1154
|
+
* @return MoveDistributedAutonomousDatabaseReplicationUnitResponse
|
|
1155
|
+
* @throws OciError when an error occurs
|
|
1156
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/MoveDistributedAutonomousDatabaseReplicationUnit.ts.html |here} to see how to use MoveDistributedAutonomousDatabaseReplicationUnit API.
|
|
1157
|
+
*/
|
|
1158
|
+
moveDistributedAutonomousDatabaseReplicationUnit(moveDistributedAutonomousDatabaseReplicationUnitRequest) {
|
|
1159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1160
|
+
if (this.logger)
|
|
1161
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#moveDistributedAutonomousDatabaseReplicationUnit.");
|
|
1162
|
+
const operationName = "moveDistributedAutonomousDatabaseReplicationUnit";
|
|
1163
|
+
const apiReferenceLink = "";
|
|
1164
|
+
const pathParams = {
|
|
1165
|
+
"{distributedAutonomousDatabaseId}": moveDistributedAutonomousDatabaseReplicationUnitRequest.distributedAutonomousDatabaseId
|
|
1166
|
+
};
|
|
1167
|
+
const queryParams = {};
|
|
1168
|
+
let headerParams = {
|
|
1169
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1170
|
+
"if-match": moveDistributedAutonomousDatabaseReplicationUnitRequest.ifMatch,
|
|
1171
|
+
"opc-retry-token": moveDistributedAutonomousDatabaseReplicationUnitRequest.opcRetryToken,
|
|
1172
|
+
"opc-request-id": moveDistributedAutonomousDatabaseReplicationUnitRequest.opcRequestId
|
|
1173
|
+
};
|
|
1174
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1175
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, moveDistributedAutonomousDatabaseReplicationUnitRequest.retryConfiguration, specRetryConfiguration);
|
|
1176
|
+
if (this.logger)
|
|
1177
|
+
retrier.logger = this.logger;
|
|
1178
|
+
const request = yield oci_common_1.composeRequest({
|
|
1179
|
+
baseEndpoint: this._endpoint,
|
|
1180
|
+
defaultHeaders: this._defaultHeaders,
|
|
1181
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/moveReplicationUnit",
|
|
1182
|
+
method: "POST",
|
|
1183
|
+
bodyContent: common.ObjectSerializer.serialize(moveDistributedAutonomousDatabaseReplicationUnitRequest.moveDistributedAutonomousDatabaseReplicationUnitDetails, "MoveDistributedAutonomousDatabaseReplicationUnitDetails", model.MoveDistributedAutonomousDatabaseReplicationUnitDetails.getJsonObj),
|
|
1184
|
+
pathParams: pathParams,
|
|
1185
|
+
headerParams: headerParams,
|
|
1186
|
+
queryParams: queryParams
|
|
1187
|
+
});
|
|
1188
|
+
try {
|
|
1189
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1190
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1191
|
+
responseObject: {},
|
|
1192
|
+
responseHeaders: [
|
|
1193
|
+
{
|
|
1194
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1195
|
+
key: "opcWorkRequestId",
|
|
1196
|
+
dataType: "string"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
value: response.headers.get("opc-request-id"),
|
|
1200
|
+
key: "opcRequestId",
|
|
1201
|
+
dataType: "string"
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1204
|
+
});
|
|
1205
|
+
return sdkResponse;
|
|
1206
|
+
}
|
|
1207
|
+
catch (err) {
|
|
1208
|
+
throw err;
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1023
1212
|
/**
|
|
1024
1213
|
* Patch operation to add, remove or update shards to the Globally distributed autonomous database topology. In single patch
|
|
1025
1214
|
* operation, multiple shards can be either added, or removed or updated. Combination of inserts, update
|
|
@@ -1085,6 +1274,71 @@ class DistributedAutonomousDbServiceClient {
|
|
|
1085
1274
|
}
|
|
1086
1275
|
});
|
|
1087
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Recreate the failed resource for the Globally Distributed Autonomous Database.
|
|
1279
|
+
*
|
|
1280
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1281
|
+
* @param RecreateFailedDistributedAutonomousDatabaseResourceRequest
|
|
1282
|
+
* @return RecreateFailedDistributedAutonomousDatabaseResourceResponse
|
|
1283
|
+
* @throws OciError when an error occurs
|
|
1284
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/RecreateFailedDistributedAutonomousDatabaseResource.ts.html |here} to see how to use RecreateFailedDistributedAutonomousDatabaseResource API.
|
|
1285
|
+
*/
|
|
1286
|
+
recreateFailedDistributedAutonomousDatabaseResource(recreateFailedDistributedAutonomousDatabaseResourceRequest) {
|
|
1287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1288
|
+
if (this.logger)
|
|
1289
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#recreateFailedDistributedAutonomousDatabaseResource.");
|
|
1290
|
+
const operationName = "recreateFailedDistributedAutonomousDatabaseResource";
|
|
1291
|
+
const apiReferenceLink = "";
|
|
1292
|
+
const pathParams = {
|
|
1293
|
+
"{distributedAutonomousDatabaseId}": recreateFailedDistributedAutonomousDatabaseResourceRequest.distributedAutonomousDatabaseId
|
|
1294
|
+
};
|
|
1295
|
+
const queryParams = {
|
|
1296
|
+
"resourceName": recreateFailedDistributedAutonomousDatabaseResourceRequest.resourceName,
|
|
1297
|
+
"shardGroup": recreateFailedDistributedAutonomousDatabaseResourceRequest.shardGroup
|
|
1298
|
+
};
|
|
1299
|
+
let headerParams = {
|
|
1300
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1301
|
+
"opc-request-id": recreateFailedDistributedAutonomousDatabaseResourceRequest.opcRequestId,
|
|
1302
|
+
"if-match": recreateFailedDistributedAutonomousDatabaseResourceRequest.ifMatch,
|
|
1303
|
+
"opc-retry-token": recreateFailedDistributedAutonomousDatabaseResourceRequest.opcRetryToken
|
|
1304
|
+
};
|
|
1305
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, recreateFailedDistributedAutonomousDatabaseResourceRequest.retryConfiguration, specRetryConfiguration);
|
|
1307
|
+
if (this.logger)
|
|
1308
|
+
retrier.logger = this.logger;
|
|
1309
|
+
const request = yield oci_common_1.composeRequest({
|
|
1310
|
+
baseEndpoint: this._endpoint,
|
|
1311
|
+
defaultHeaders: this._defaultHeaders,
|
|
1312
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/recreateFailedResource",
|
|
1313
|
+
method: "POST",
|
|
1314
|
+
pathParams: pathParams,
|
|
1315
|
+
headerParams: headerParams,
|
|
1316
|
+
queryParams: queryParams
|
|
1317
|
+
});
|
|
1318
|
+
try {
|
|
1319
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1320
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1321
|
+
responseObject: {},
|
|
1322
|
+
responseHeaders: [
|
|
1323
|
+
{
|
|
1324
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1325
|
+
key: "opcWorkRequestId",
|
|
1326
|
+
dataType: "string"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
value: response.headers.get("opc-request-id"),
|
|
1330
|
+
key: "opcRequestId",
|
|
1331
|
+
dataType: "string"
|
|
1332
|
+
}
|
|
1333
|
+
]
|
|
1334
|
+
});
|
|
1335
|
+
return sdkResponse;
|
|
1336
|
+
}
|
|
1337
|
+
catch (err) {
|
|
1338
|
+
throw err;
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1088
1342
|
/**
|
|
1089
1343
|
* Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally distributed autonomous database. This operation will also remove GdsCtlNodes if present.
|
|
1090
1344
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1400,6 +1654,68 @@ class DistributedAutonomousDbServiceClient {
|
|
|
1400
1654
|
}
|
|
1401
1655
|
});
|
|
1402
1656
|
}
|
|
1657
|
+
/**
|
|
1658
|
+
* Validate the CA Bundles consistency of the globally distributed autonomous database.
|
|
1659
|
+
*
|
|
1660
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1661
|
+
* @param ValidateDistributedAutonomousDatabaseCaBundleRequest
|
|
1662
|
+
* @return ValidateDistributedAutonomousDatabaseCaBundleResponse
|
|
1663
|
+
* @throws OciError when an error occurs
|
|
1664
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ValidateDistributedAutonomousDatabaseCaBundle.ts.html |here} to see how to use ValidateDistributedAutonomousDatabaseCaBundle API.
|
|
1665
|
+
*/
|
|
1666
|
+
validateDistributedAutonomousDatabaseCaBundle(validateDistributedAutonomousDatabaseCaBundleRequest) {
|
|
1667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1668
|
+
if (this.logger)
|
|
1669
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#validateDistributedAutonomousDatabaseCaBundle.");
|
|
1670
|
+
const operationName = "validateDistributedAutonomousDatabaseCaBundle";
|
|
1671
|
+
const apiReferenceLink = "";
|
|
1672
|
+
const pathParams = {
|
|
1673
|
+
"{distributedAutonomousDatabaseId}": validateDistributedAutonomousDatabaseCaBundleRequest.distributedAutonomousDatabaseId
|
|
1674
|
+
};
|
|
1675
|
+
const queryParams = {};
|
|
1676
|
+
let headerParams = {
|
|
1677
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1678
|
+
"if-match": validateDistributedAutonomousDatabaseCaBundleRequest.ifMatch,
|
|
1679
|
+
"opc-retry-token": validateDistributedAutonomousDatabaseCaBundleRequest.opcRetryToken,
|
|
1680
|
+
"opc-request-id": validateDistributedAutonomousDatabaseCaBundleRequest.opcRequestId
|
|
1681
|
+
};
|
|
1682
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1683
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateDistributedAutonomousDatabaseCaBundleRequest.retryConfiguration, specRetryConfiguration);
|
|
1684
|
+
if (this.logger)
|
|
1685
|
+
retrier.logger = this.logger;
|
|
1686
|
+
const request = yield oci_common_1.composeRequest({
|
|
1687
|
+
baseEndpoint: this._endpoint,
|
|
1688
|
+
defaultHeaders: this._defaultHeaders,
|
|
1689
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/validateCaBundle",
|
|
1690
|
+
method: "POST",
|
|
1691
|
+
pathParams: pathParams,
|
|
1692
|
+
headerParams: headerParams,
|
|
1693
|
+
queryParams: queryParams
|
|
1694
|
+
});
|
|
1695
|
+
try {
|
|
1696
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1697
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1698
|
+
responseObject: {},
|
|
1699
|
+
responseHeaders: [
|
|
1700
|
+
{
|
|
1701
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1702
|
+
key: "opcWorkRequestId",
|
|
1703
|
+
dataType: "string"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
value: response.headers.get("opc-request-id"),
|
|
1707
|
+
key: "opcRequestId",
|
|
1708
|
+
dataType: "string"
|
|
1709
|
+
}
|
|
1710
|
+
]
|
|
1711
|
+
});
|
|
1712
|
+
return sdkResponse;
|
|
1713
|
+
}
|
|
1714
|
+
catch (err) {
|
|
1715
|
+
throw err;
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1403
1719
|
/**
|
|
1404
1720
|
* Validate the network connectivity between components of the globally distributed autonomous database.
|
|
1405
1721
|
*
|
|
@@ -2639,6 +2955,8 @@ class DistributedDbServiceClient {
|
|
|
2639
2955
|
}
|
|
2640
2956
|
/**
|
|
2641
2957
|
* Terminate the given Globally distributed databases.
|
|
2958
|
+
* For an EXADB_XS based distributed database, if the parameter mustDeleteInfra is set to true,
|
|
2959
|
+
* then the VmCluster and DbStorageVault associated with each shard and catalog will also be deleted.
|
|
2642
2960
|
*
|
|
2643
2961
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2644
2962
|
* @param DeleteDistributedDatabaseRequest
|
|
@@ -2655,7 +2973,9 @@ class DistributedDbServiceClient {
|
|
|
2655
2973
|
const pathParams = {
|
|
2656
2974
|
"{distributedDatabaseId}": deleteDistributedDatabaseRequest.distributedDatabaseId
|
|
2657
2975
|
};
|
|
2658
|
-
const queryParams = {
|
|
2976
|
+
const queryParams = {
|
|
2977
|
+
"mustDeleteInfra": deleteDistributedDatabaseRequest.mustDeleteInfra
|
|
2978
|
+
};
|
|
2659
2979
|
let headerParams = {
|
|
2660
2980
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2661
2981
|
"opc-request-id": deleteDistributedDatabaseRequest.opcRequestId,
|
|
@@ -2986,6 +3306,66 @@ class DistributedDbServiceClient {
|
|
|
2986
3306
|
}
|
|
2987
3307
|
});
|
|
2988
3308
|
}
|
|
3309
|
+
/**
|
|
3310
|
+
* Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally distributed database is not
|
|
3311
|
+
* RAFT based then empty response is returned from the API.
|
|
3312
|
+
*
|
|
3313
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3314
|
+
* @param GetDistributedDatabaseRaftMetricRequest
|
|
3315
|
+
* @return GetDistributedDatabaseRaftMetricResponse
|
|
3316
|
+
* @throws OciError when an error occurs
|
|
3317
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetDistributedDatabaseRaftMetric.ts.html |here} to see how to use GetDistributedDatabaseRaftMetric API.
|
|
3318
|
+
*/
|
|
3319
|
+
getDistributedDatabaseRaftMetric(getDistributedDatabaseRaftMetricRequest) {
|
|
3320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3321
|
+
if (this.logger)
|
|
3322
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#getDistributedDatabaseRaftMetric.");
|
|
3323
|
+
const operationName = "getDistributedDatabaseRaftMetric";
|
|
3324
|
+
const apiReferenceLink = "";
|
|
3325
|
+
const pathParams = {
|
|
3326
|
+
"{distributedDatabaseId}": getDistributedDatabaseRaftMetricRequest.distributedDatabaseId
|
|
3327
|
+
};
|
|
3328
|
+
const queryParams = {};
|
|
3329
|
+
let headerParams = {
|
|
3330
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3331
|
+
"opc-request-id": getDistributedDatabaseRaftMetricRequest.opcRequestId
|
|
3332
|
+
};
|
|
3333
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3334
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDistributedDatabaseRaftMetricRequest.retryConfiguration, specRetryConfiguration);
|
|
3335
|
+
if (this.logger)
|
|
3336
|
+
retrier.logger = this.logger;
|
|
3337
|
+
const request = yield oci_common_1.composeRequest({
|
|
3338
|
+
baseEndpoint: this._endpoint,
|
|
3339
|
+
defaultHeaders: this._defaultHeaders,
|
|
3340
|
+
path: "/distributedDatabases/{distributedDatabaseId}/raftMetrics",
|
|
3341
|
+
method: "GET",
|
|
3342
|
+
pathParams: pathParams,
|
|
3343
|
+
headerParams: headerParams,
|
|
3344
|
+
queryParams: queryParams
|
|
3345
|
+
});
|
|
3346
|
+
try {
|
|
3347
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3348
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3349
|
+
responseObject: {},
|
|
3350
|
+
body: yield response.json(),
|
|
3351
|
+
bodyKey: "distributedDatabaseRaftMetric",
|
|
3352
|
+
bodyModel: model.DistributedDatabaseRaftMetric,
|
|
3353
|
+
type: "model.DistributedDatabaseRaftMetric",
|
|
3354
|
+
responseHeaders: [
|
|
3355
|
+
{
|
|
3356
|
+
value: response.headers.get("opc-request-id"),
|
|
3357
|
+
key: "opcRequestId",
|
|
3358
|
+
dataType: "string"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
});
|
|
3362
|
+
return sdkResponse;
|
|
3363
|
+
}
|
|
3364
|
+
catch (err) {
|
|
3365
|
+
throw err;
|
|
3366
|
+
}
|
|
3367
|
+
});
|
|
3368
|
+
}
|
|
2989
3369
|
/**
|
|
2990
3370
|
* List of Globally distributed databases.
|
|
2991
3371
|
*
|
|
@@ -3004,6 +3384,7 @@ class DistributedDbServiceClient {
|
|
|
3004
3384
|
const pathParams = {};
|
|
3005
3385
|
const queryParams = {
|
|
3006
3386
|
"compartmentId": listDistributedDatabasesRequest.compartmentId,
|
|
3387
|
+
"privateEndpointId": listDistributedDatabasesRequest.privateEndpointId,
|
|
3007
3388
|
"lifecycleState": listDistributedDatabasesRequest.lifecycleState,
|
|
3008
3389
|
"limit": listDistributedDatabasesRequest.limit,
|
|
3009
3390
|
"page": listDistributedDatabasesRequest.page,
|
|
@@ -3058,10 +3439,75 @@ class DistributedDbServiceClient {
|
|
|
3058
3439
|
}
|
|
3059
3440
|
});
|
|
3060
3441
|
}
|
|
3442
|
+
/**
|
|
3443
|
+
* Move the replication units for RAFT based globally distributed database from source shard to destination shard.
|
|
3444
|
+
*
|
|
3445
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3446
|
+
* @param MoveDistributedDatabaseReplicationUnitRequest
|
|
3447
|
+
* @return MoveDistributedDatabaseReplicationUnitResponse
|
|
3448
|
+
* @throws OciError when an error occurs
|
|
3449
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/MoveDistributedDatabaseReplicationUnit.ts.html |here} to see how to use MoveDistributedDatabaseReplicationUnit API.
|
|
3450
|
+
*/
|
|
3451
|
+
moveDistributedDatabaseReplicationUnit(moveDistributedDatabaseReplicationUnitRequest) {
|
|
3452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3453
|
+
if (this.logger)
|
|
3454
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#moveDistributedDatabaseReplicationUnit.");
|
|
3455
|
+
const operationName = "moveDistributedDatabaseReplicationUnit";
|
|
3456
|
+
const apiReferenceLink = "";
|
|
3457
|
+
const pathParams = {
|
|
3458
|
+
"{distributedDatabaseId}": moveDistributedDatabaseReplicationUnitRequest.distributedDatabaseId
|
|
3459
|
+
};
|
|
3460
|
+
const queryParams = {};
|
|
3461
|
+
let headerParams = {
|
|
3462
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3463
|
+
"if-match": moveDistributedDatabaseReplicationUnitRequest.ifMatch,
|
|
3464
|
+
"opc-retry-token": moveDistributedDatabaseReplicationUnitRequest.opcRetryToken,
|
|
3465
|
+
"opc-request-id": moveDistributedDatabaseReplicationUnitRequest.opcRequestId
|
|
3466
|
+
};
|
|
3467
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3468
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, moveDistributedDatabaseReplicationUnitRequest.retryConfiguration, specRetryConfiguration);
|
|
3469
|
+
if (this.logger)
|
|
3470
|
+
retrier.logger = this.logger;
|
|
3471
|
+
const request = yield oci_common_1.composeRequest({
|
|
3472
|
+
baseEndpoint: this._endpoint,
|
|
3473
|
+
defaultHeaders: this._defaultHeaders,
|
|
3474
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/moveReplicationUnit",
|
|
3475
|
+
method: "POST",
|
|
3476
|
+
bodyContent: common.ObjectSerializer.serialize(moveDistributedDatabaseReplicationUnitRequest.moveDistributedDatabaseReplicationUnitDetails, "MoveDistributedDatabaseReplicationUnitDetails", model.MoveDistributedDatabaseReplicationUnitDetails.getJsonObj),
|
|
3477
|
+
pathParams: pathParams,
|
|
3478
|
+
headerParams: headerParams,
|
|
3479
|
+
queryParams: queryParams
|
|
3480
|
+
});
|
|
3481
|
+
try {
|
|
3482
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3483
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3484
|
+
responseObject: {},
|
|
3485
|
+
responseHeaders: [
|
|
3486
|
+
{
|
|
3487
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3488
|
+
key: "opcWorkRequestId",
|
|
3489
|
+
dataType: "string"
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
value: response.headers.get("opc-request-id"),
|
|
3493
|
+
key: "opcRequestId",
|
|
3494
|
+
dataType: "string"
|
|
3495
|
+
}
|
|
3496
|
+
]
|
|
3497
|
+
});
|
|
3498
|
+
return sdkResponse;
|
|
3499
|
+
}
|
|
3500
|
+
catch (err) {
|
|
3501
|
+
throw err;
|
|
3502
|
+
}
|
|
3503
|
+
});
|
|
3504
|
+
}
|
|
3061
3505
|
/**
|
|
3062
3506
|
* Patch operation to add, remove or update shards to the Globally distributed database topology. In single patch
|
|
3063
3507
|
* operation, multiple shards can be either added, or removed or updated. Combination of inserts, update
|
|
3064
3508
|
* and remove in single operation is not allowed.
|
|
3509
|
+
* For an EXADB_XS based distributed database, removing a shard with the parameter mustDeleteInfra set to true
|
|
3510
|
+
* will also delete the associated VmCluster and DbStorageVault.
|
|
3065
3511
|
*
|
|
3066
3512
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3067
3513
|
* @param PatchDistributedDatabaseRequest
|
|
@@ -3123,6 +3569,71 @@ class DistributedDbServiceClient {
|
|
|
3123
3569
|
}
|
|
3124
3570
|
});
|
|
3125
3571
|
}
|
|
3572
|
+
/**
|
|
3573
|
+
* Recreate the failed resource for the Globally Distributed Database.
|
|
3574
|
+
*
|
|
3575
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3576
|
+
* @param RecreateFailedDistributedDatabaseResourceRequest
|
|
3577
|
+
* @return RecreateFailedDistributedDatabaseResourceResponse
|
|
3578
|
+
* @throws OciError when an error occurs
|
|
3579
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/RecreateFailedDistributedDatabaseResource.ts.html |here} to see how to use RecreateFailedDistributedDatabaseResource API.
|
|
3580
|
+
*/
|
|
3581
|
+
recreateFailedDistributedDatabaseResource(recreateFailedDistributedDatabaseResourceRequest) {
|
|
3582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3583
|
+
if (this.logger)
|
|
3584
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#recreateFailedDistributedDatabaseResource.");
|
|
3585
|
+
const operationName = "recreateFailedDistributedDatabaseResource";
|
|
3586
|
+
const apiReferenceLink = "";
|
|
3587
|
+
const pathParams = {
|
|
3588
|
+
"{distributedDatabaseId}": recreateFailedDistributedDatabaseResourceRequest.distributedDatabaseId
|
|
3589
|
+
};
|
|
3590
|
+
const queryParams = {
|
|
3591
|
+
"resourceName": recreateFailedDistributedDatabaseResourceRequest.resourceName,
|
|
3592
|
+
"shardGroup": recreateFailedDistributedDatabaseResourceRequest.shardGroup
|
|
3593
|
+
};
|
|
3594
|
+
let headerParams = {
|
|
3595
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3596
|
+
"if-match": recreateFailedDistributedDatabaseResourceRequest.ifMatch,
|
|
3597
|
+
"opc-retry-token": recreateFailedDistributedDatabaseResourceRequest.opcRetryToken,
|
|
3598
|
+
"opc-request-id": recreateFailedDistributedDatabaseResourceRequest.opcRequestId
|
|
3599
|
+
};
|
|
3600
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3601
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, recreateFailedDistributedDatabaseResourceRequest.retryConfiguration, specRetryConfiguration);
|
|
3602
|
+
if (this.logger)
|
|
3603
|
+
retrier.logger = this.logger;
|
|
3604
|
+
const request = yield oci_common_1.composeRequest({
|
|
3605
|
+
baseEndpoint: this._endpoint,
|
|
3606
|
+
defaultHeaders: this._defaultHeaders,
|
|
3607
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/recreateFailedResource",
|
|
3608
|
+
method: "POST",
|
|
3609
|
+
pathParams: pathParams,
|
|
3610
|
+
headerParams: headerParams,
|
|
3611
|
+
queryParams: queryParams
|
|
3612
|
+
});
|
|
3613
|
+
try {
|
|
3614
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3615
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3616
|
+
responseObject: {},
|
|
3617
|
+
responseHeaders: [
|
|
3618
|
+
{
|
|
3619
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3620
|
+
key: "opcWorkRequestId",
|
|
3621
|
+
dataType: "string"
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
value: response.headers.get("opc-request-id"),
|
|
3625
|
+
key: "opcRequestId",
|
|
3626
|
+
dataType: "string"
|
|
3627
|
+
}
|
|
3628
|
+
]
|
|
3629
|
+
});
|
|
3630
|
+
return sdkResponse;
|
|
3631
|
+
}
|
|
3632
|
+
catch (err) {
|
|
3633
|
+
throw err;
|
|
3634
|
+
}
|
|
3635
|
+
});
|
|
3636
|
+
}
|
|
3126
3637
|
/**
|
|
3127
3638
|
* Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally distributed database. This operation will also remove GdsCtlNodes if present.
|
|
3128
3639
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|