oci-database 2.103.0 → 2.105.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 +105 -0
- package/lib/client.js +732 -22
- package/lib/client.js.map +1 -1
- package/lib/database-waiter.d.ts +100 -0
- package/lib/database-waiter.js +204 -0
- package/lib/database-waiter.js.map +1 -1
- package/lib/model/add-standby-autonomous-container-database-details.d.ts +74 -0
- package/lib/model/add-standby-autonomous-container-database-details.js +63 -0
- package/lib/model/add-standby-autonomous-container-database-details.js.map +1 -0
- package/lib/model/application-vip-summary.d.ts +5 -1
- package/lib/model/application-vip-summary.js.map +1 -1
- package/lib/model/application-vip.d.ts +5 -1
- package/lib/model/application-vip.js.map +1 -1
- package/lib/model/autonomous-container-database-dataguard.d.ts +145 -0
- package/lib/model/autonomous-container-database-dataguard.js +69 -0
- package/lib/model/autonomous-container-database-dataguard.js.map +1 -0
- package/lib/model/autonomous-container-database-summary.d.ts +15 -0
- package/lib/model/autonomous-container-database-summary.js +16 -0
- package/lib/model/autonomous-container-database-summary.js.map +1 -1
- package/lib/model/autonomous-container-database.d.ts +15 -0
- package/lib/model/autonomous-container-database.js +16 -0
- package/lib/model/autonomous-container-database.js.map +1 -1
- package/lib/model/backup-summary.d.ts +34 -0
- package/lib/model/backup-summary.js +11 -0
- package/lib/model/backup-summary.js.map +1 -1
- package/lib/model/backup.d.ts +34 -0
- package/lib/model/backup.js +11 -0
- package/lib/model/backup.js.map +1 -1
- package/lib/model/change-exadb-vm-cluster-subscription-details.d.ts +32 -0
- package/lib/model/change-exadb-vm-cluster-subscription-details.js +30 -0
- package/lib/model/change-exadb-vm-cluster-subscription-details.js.map +1 -0
- package/lib/model/change-exascale-db-storage-vault-subscription-details.d.ts +32 -0
- package/lib/model/change-exascale-db-storage-vault-subscription-details.js +30 -0
- package/lib/model/change-exascale-db-storage-vault-subscription-details.js.map +1 -0
- package/lib/model/cloud-vm-cluster-summary.d.ts +35 -4
- 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 +35 -4
- package/lib/model/cloud-vm-cluster.js +10 -0
- package/lib/model/cloud-vm-cluster.js.map +1 -1
- package/lib/model/convert-standby-autonomous-container-database-details.d.ts +43 -0
- package/lib/model/convert-standby-autonomous-container-database-details.js +43 -0
- package/lib/model/convert-standby-autonomous-container-database-details.js.map +1 -0
- package/lib/model/create-application-vip-details.d.ts +5 -1
- package/lib/model/create-application-vip-details.js.map +1 -1
- package/lib/model/create-backup-details.d.ts +8 -0
- package/lib/model/create-backup-details.js.map +1 -1
- package/lib/model/create-cloud-vm-cluster-details.d.ts +8 -0
- package/lib/model/create-cloud-vm-cluster-details.js +5 -0
- package/lib/model/create-cloud-vm-cluster-details.js.map +1 -1
- package/lib/model/create-exadb-vm-cluster-details.d.ts +6 -4
- package/lib/model/create-exadb-vm-cluster-details.js.map +1 -1
- package/lib/model/create-exascale-db-storage-vault-details.d.ts +8 -0
- package/lib/model/create-exascale-db-storage-vault-details.js.map +1 -1
- package/lib/model/create-vm-cluster-details.d.ts +8 -0
- package/lib/model/create-vm-cluster-details.js +5 -0
- package/lib/model/create-vm-cluster-details.js.map +1 -1
- package/lib/model/db-node-summary.d.ts +20 -4
- package/lib/model/db-node-summary.js.map +1 -1
- package/lib/model/db-node.d.ts +20 -4
- package/lib/model/db-node.js.map +1 -1
- package/lib/model/edit-autonomous-container-database-dataguard-details.d.ts +43 -0
- package/lib/model/edit-autonomous-container-database-dataguard-details.js +35 -0
- package/lib/model/edit-autonomous-container-database-dataguard-details.js.map +1 -0
- package/lib/model/exadb-vm-cluster-summary.d.ts +10 -4
- package/lib/model/exadb-vm-cluster-summary.js.map +1 -1
- package/lib/model/exadb-vm-cluster.d.ts +10 -4
- package/lib/model/exadb-vm-cluster.js.map +1 -1
- package/lib/model/exascale-db-storage-vault-summary.d.ts +8 -0
- package/lib/model/exascale-db-storage-vault-summary.js.map +1 -1
- package/lib/model/exascale-db-storage-vault.d.ts +8 -0
- package/lib/model/exascale-db-storage-vault.js.map +1 -1
- package/lib/model/index.d.ts +14 -0
- package/lib/model/index.js +24 -10
- package/lib/model/index.js.map +1 -1
- package/lib/model/maintenance-run-summary.d.ts +4 -0
- package/lib/model/maintenance-run-summary.js.map +1 -1
- package/lib/model/maintenance-run.d.ts +4 -0
- package/lib/model/maintenance-run.js.map +1 -1
- package/lib/model/update-backup-details.d.ts +31 -0
- package/lib/model/update-backup-details.js +30 -0
- package/lib/model/update-backup-details.js.map +1 -0
- package/lib/model/update-exadb-vm-cluster-details.d.ts +2 -4
- package/lib/model/update-exadb-vm-cluster-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/add-standby-autonomous-container-database-request.d.ts +48 -0
- package/lib/request/add-standby-autonomous-container-database-request.js +15 -0
- package/lib/request/add-standby-autonomous-container-database-request.js.map +1 -0
- package/lib/request/change-exadb-vm-cluster-subscription-request.d.ts +48 -0
- package/lib/request/change-exadb-vm-cluster-subscription-request.js +15 -0
- package/lib/request/change-exadb-vm-cluster-subscription-request.js.map +1 -0
- package/lib/request/change-exascale-db-storage-vault-subscription-request.d.ts +48 -0
- package/lib/request/change-exascale-db-storage-vault-subscription-request.js +15 -0
- package/lib/request/change-exascale-db-storage-vault-subscription-request.js.map +1 -0
- package/lib/request/convert-standby-autonomous-container-database-request.d.ts +48 -0
- package/lib/request/convert-standby-autonomous-container-database-request.js +15 -0
- package/lib/request/convert-standby-autonomous-container-database-request.js.map +1 -0
- package/lib/request/edit-autonomous-container-database-dataguard-request.d.ts +48 -0
- package/lib/request/edit-autonomous-container-database-dataguard-request.js +15 -0
- package/lib/request/edit-autonomous-container-database-dataguard-request.js.map +1 -0
- package/lib/request/failover-autonomous-container-database-dataguard-request.d.ts +34 -0
- package/lib/request/failover-autonomous-container-database-dataguard-request.js +15 -0
- package/lib/request/failover-autonomous-container-database-dataguard-request.js.map +1 -0
- package/lib/request/index.d.ts +20 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-backups-request.d.ts +24 -0
- package/lib/request/list-backups-request.js.map +1 -1
- package/lib/request/list-cloud-vm-clusters-request.d.ts +4 -0
- package/lib/request/list-cloud-vm-clusters-request.js.map +1 -1
- package/lib/request/list-database-software-images-request.d.ts +4 -0
- package/lib/request/list-database-software-images-request.js.map +1 -1
- package/lib/request/list-exadb-vm-clusters-request.d.ts +4 -0
- package/lib/request/list-exadb-vm-clusters-request.js.map +1 -1
- package/lib/request/list-exascale-db-storage-vaults-request.d.ts +4 -0
- package/lib/request/list-exascale-db-storage-vaults-request.js.map +1 -1
- package/lib/request/list-vm-clusters-request.d.ts +4 -0
- package/lib/request/list-vm-clusters-request.js.map +1 -1
- package/lib/request/migrate-autonomous-container-database-dataguard-association-request.d.ts +38 -0
- package/lib/request/migrate-autonomous-container-database-dataguard-association-request.js +15 -0
- package/lib/request/migrate-autonomous-container-database-dataguard-association-request.js.map +1 -0
- package/lib/request/reinstate-autonomous-container-database-dataguard-request.d.ts +34 -0
- package/lib/request/reinstate-autonomous-container-database-dataguard-request.js +15 -0
- package/lib/request/reinstate-autonomous-container-database-dataguard-request.js.map +1 -0
- package/lib/request/switchover-autonomous-container-database-dataguard-request.d.ts +34 -0
- package/lib/request/switchover-autonomous-container-database-dataguard-request.js +15 -0
- package/lib/request/switchover-autonomous-container-database-dataguard-request.js.map +1 -0
- package/lib/request/update-backup-request.d.ts +39 -0
- package/lib/request/update-backup-request.js +15 -0
- package/lib/request/update-backup-request.js.map +1 -0
- package/lib/response/add-standby-autonomous-container-database-response.d.ts +33 -0
- package/lib/response/add-standby-autonomous-container-database-response.js +15 -0
- package/lib/response/add-standby-autonomous-container-database-response.js.map +1 -0
- package/lib/response/change-exadb-vm-cluster-subscription-response.d.ts +25 -0
- package/lib/response/change-exadb-vm-cluster-subscription-response.js +15 -0
- package/lib/response/change-exadb-vm-cluster-subscription-response.js.map +1 -0
- package/lib/response/change-exascale-db-storage-vault-subscription-response.d.ts +25 -0
- package/lib/response/change-exascale-db-storage-vault-subscription-response.js +15 -0
- package/lib/response/change-exascale-db-storage-vault-subscription-response.js.map +1 -0
- package/lib/response/convert-standby-autonomous-container-database-response.d.ts +33 -0
- package/lib/response/convert-standby-autonomous-container-database-response.js +15 -0
- package/lib/response/convert-standby-autonomous-container-database-response.js.map +1 -0
- package/lib/response/edit-autonomous-container-database-dataguard-response.d.ts +33 -0
- package/lib/response/edit-autonomous-container-database-dataguard-response.js +15 -0
- package/lib/response/edit-autonomous-container-database-dataguard-response.js.map +1 -0
- package/lib/response/failover-autonomous-container-database-dataguard-response.d.ts +34 -0
- package/lib/response/failover-autonomous-container-database-dataguard-response.js +15 -0
- package/lib/response/failover-autonomous-container-database-dataguard-response.js.map +1 -0
- package/lib/response/index.d.ts +20 -0
- package/lib/response/migrate-autonomous-container-database-dataguard-association-response.d.ts +34 -0
- package/lib/response/migrate-autonomous-container-database-dataguard-association-response.js +15 -0
- package/lib/response/migrate-autonomous-container-database-dataguard-association-response.js.map +1 -0
- package/lib/response/reinstate-autonomous-container-database-dataguard-response.d.ts +34 -0
- package/lib/response/reinstate-autonomous-container-database-dataguard-response.js +15 -0
- package/lib/response/reinstate-autonomous-container-database-dataguard-response.js.map +1 -0
- package/lib/response/switchover-autonomous-container-database-dataguard-response.d.ts +34 -0
- package/lib/response/switchover-autonomous-container-database-dataguard-response.js +15 -0
- package/lib/response/switchover-autonomous-container-database-dataguard-response.js.map +1 -0
- package/lib/response/update-backup-response.d.ts +34 -0
- package/lib/response/update-backup-response.js +15 -0
- package/lib/response/update-backup-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -281,6 +281,80 @@ class DatabaseClient {
|
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Create Standby Autonomous Container Database.
|
|
286
|
+
* For more information about changing Autonomous Container Databases Add Standby, see
|
|
287
|
+
* [Create Standby Autonomous Container Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-D3B503F1-0032-4B0D-9F00-ACAE8151AB80) and [Convert Snapshot Standby to Physical Standby](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-E8D7E0EE-8244-467D-B33A-1BC6F969A0A4).
|
|
288
|
+
*
|
|
289
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
290
|
+
* @param AddStandbyAutonomousContainerDatabaseRequest
|
|
291
|
+
* @return AddStandbyAutonomousContainerDatabaseResponse
|
|
292
|
+
* @throws OciError when an error occurs
|
|
293
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/AddStandbyAutonomousContainerDatabase.ts.html |here} to see how to use AddStandbyAutonomousContainerDatabase API.
|
|
294
|
+
*/
|
|
295
|
+
addStandbyAutonomousContainerDatabase(addStandbyAutonomousContainerDatabaseRequest) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
if (this.logger)
|
|
298
|
+
this.logger.debug("Calling operation DatabaseClient#addStandbyAutonomousContainerDatabase.");
|
|
299
|
+
const operationName = "addStandbyAutonomousContainerDatabase";
|
|
300
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/AddStandbyAutonomousContainerDatabase";
|
|
301
|
+
const pathParams = {
|
|
302
|
+
"{autonomousContainerDatabaseId}": addStandbyAutonomousContainerDatabaseRequest.autonomousContainerDatabaseId
|
|
303
|
+
};
|
|
304
|
+
const queryParams = {};
|
|
305
|
+
let headerParams = {
|
|
306
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
307
|
+
"opc-request-id": addStandbyAutonomousContainerDatabaseRequest.opcRequestId,
|
|
308
|
+
"opc-retry-token": addStandbyAutonomousContainerDatabaseRequest.opcRetryToken,
|
|
309
|
+
"if-match": addStandbyAutonomousContainerDatabaseRequest.ifMatch
|
|
310
|
+
};
|
|
311
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
312
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addStandbyAutonomousContainerDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
313
|
+
if (this.logger)
|
|
314
|
+
retrier.logger = this.logger;
|
|
315
|
+
const request = yield oci_common_2.composeRequest({
|
|
316
|
+
baseEndpoint: this._endpoint,
|
|
317
|
+
defaultHeaders: this._defaultHeaders,
|
|
318
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/addStandby",
|
|
319
|
+
method: "POST",
|
|
320
|
+
bodyContent: common.ObjectSerializer.serialize(addStandbyAutonomousContainerDatabaseRequest.addStandbyAutonomousContainerDatabaseDetails, "AddStandbyAutonomousContainerDatabaseDetails", model.AddStandbyAutonomousContainerDatabaseDetails.getJsonObj),
|
|
321
|
+
pathParams: pathParams,
|
|
322
|
+
headerParams: headerParams,
|
|
323
|
+
queryParams: queryParams
|
|
324
|
+
});
|
|
325
|
+
try {
|
|
326
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
327
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
328
|
+
responseObject: {},
|
|
329
|
+
body: yield response.json(),
|
|
330
|
+
bodyKey: "autonomousContainerDatabase",
|
|
331
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
332
|
+
type: "model.AutonomousContainerDatabase",
|
|
333
|
+
responseHeaders: [
|
|
334
|
+
{
|
|
335
|
+
value: response.headers.get("etag"),
|
|
336
|
+
key: "etag",
|
|
337
|
+
dataType: "string"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
value: response.headers.get("opc-work-request-id"),
|
|
341
|
+
key: "opcWorkRequestId",
|
|
342
|
+
dataType: "string"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
value: response.headers.get("opc-request-id"),
|
|
346
|
+
key: "opcRequestId",
|
|
347
|
+
dataType: "string"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
});
|
|
351
|
+
return sdkResponse;
|
|
352
|
+
}
|
|
353
|
+
catch (err) {
|
|
354
|
+
throw err;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}
|
|
284
358
|
/**
|
|
285
359
|
* Makes the storage capacity from additional storage servers available for Cloud VM Cluster consumption. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
|
|
286
360
|
*
|
|
@@ -2096,6 +2170,69 @@ class DatabaseClient {
|
|
|
2096
2170
|
}
|
|
2097
2171
|
});
|
|
2098
2172
|
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Associate a Exadata VM cluster on Exascale Infrastructure with a different subscription.
|
|
2175
|
+
*
|
|
2176
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2177
|
+
* @param ChangeExadbVmClusterSubscriptionRequest
|
|
2178
|
+
* @return ChangeExadbVmClusterSubscriptionResponse
|
|
2179
|
+
* @throws OciError when an error occurs
|
|
2180
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeExadbVmClusterSubscription.ts.html |here} to see how to use ChangeExadbVmClusterSubscription API.
|
|
2181
|
+
*/
|
|
2182
|
+
changeExadbVmClusterSubscription(changeExadbVmClusterSubscriptionRequest) {
|
|
2183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2184
|
+
if (this.logger)
|
|
2185
|
+
this.logger.debug("Calling operation DatabaseClient#changeExadbVmClusterSubscription.");
|
|
2186
|
+
const operationName = "changeExadbVmClusterSubscription";
|
|
2187
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/ChangeExadbVmClusterSubscription";
|
|
2188
|
+
const pathParams = {
|
|
2189
|
+
"{exadbVmClusterId}": changeExadbVmClusterSubscriptionRequest.exadbVmClusterId
|
|
2190
|
+
};
|
|
2191
|
+
const queryParams = {};
|
|
2192
|
+
let headerParams = {
|
|
2193
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2194
|
+
"opc-retry-token": changeExadbVmClusterSubscriptionRequest.opcRetryToken,
|
|
2195
|
+
"opc-request-id": changeExadbVmClusterSubscriptionRequest.opcRequestId,
|
|
2196
|
+
"if-match": changeExadbVmClusterSubscriptionRequest.ifMatch
|
|
2197
|
+
};
|
|
2198
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2199
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeExadbVmClusterSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
2200
|
+
if (this.logger)
|
|
2201
|
+
retrier.logger = this.logger;
|
|
2202
|
+
const request = yield oci_common_2.composeRequest({
|
|
2203
|
+
baseEndpoint: this._endpoint,
|
|
2204
|
+
defaultHeaders: this._defaultHeaders,
|
|
2205
|
+
path: "/exadbVmClusters/{exadbVmClusterId}/actions/changeSubscription",
|
|
2206
|
+
method: "POST",
|
|
2207
|
+
bodyContent: common.ObjectSerializer.serialize(changeExadbVmClusterSubscriptionRequest.changeExadbVmClusterSubscriptionDetails, "ChangeExadbVmClusterSubscriptionDetails", model.ChangeExadbVmClusterSubscriptionDetails.getJsonObj),
|
|
2208
|
+
pathParams: pathParams,
|
|
2209
|
+
headerParams: headerParams,
|
|
2210
|
+
queryParams: queryParams
|
|
2211
|
+
});
|
|
2212
|
+
try {
|
|
2213
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2214
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2215
|
+
responseObject: {},
|
|
2216
|
+
responseHeaders: [
|
|
2217
|
+
{
|
|
2218
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2219
|
+
key: "opcWorkRequestId",
|
|
2220
|
+
dataType: "string"
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
value: response.headers.get("opc-request-id"),
|
|
2224
|
+
key: "opcRequestId",
|
|
2225
|
+
dataType: "string"
|
|
2226
|
+
}
|
|
2227
|
+
]
|
|
2228
|
+
});
|
|
2229
|
+
return sdkResponse;
|
|
2230
|
+
}
|
|
2231
|
+
catch (err) {
|
|
2232
|
+
throw err;
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2099
2236
|
/**
|
|
2100
2237
|
* Moves a Exadata Database Storage Vault to another compartment.
|
|
2101
2238
|
*
|
|
@@ -2159,6 +2296,69 @@ class DatabaseClient {
|
|
|
2159
2296
|
}
|
|
2160
2297
|
});
|
|
2161
2298
|
}
|
|
2299
|
+
/**
|
|
2300
|
+
* Associate a Exadata Database Storage Vault with a different subscription.
|
|
2301
|
+
*
|
|
2302
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2303
|
+
* @param ChangeExascaleDbStorageVaultSubscriptionRequest
|
|
2304
|
+
* @return ChangeExascaleDbStorageVaultSubscriptionResponse
|
|
2305
|
+
* @throws OciError when an error occurs
|
|
2306
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeExascaleDbStorageVaultSubscription.ts.html |here} to see how to use ChangeExascaleDbStorageVaultSubscription API.
|
|
2307
|
+
*/
|
|
2308
|
+
changeExascaleDbStorageVaultSubscription(changeExascaleDbStorageVaultSubscriptionRequest) {
|
|
2309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2310
|
+
if (this.logger)
|
|
2311
|
+
this.logger.debug("Calling operation DatabaseClient#changeExascaleDbStorageVaultSubscription.");
|
|
2312
|
+
const operationName = "changeExascaleDbStorageVaultSubscription";
|
|
2313
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ChangeExascaleDbStorageVaultSubscription";
|
|
2314
|
+
const pathParams = {
|
|
2315
|
+
"{exascaleDbStorageVaultId}": changeExascaleDbStorageVaultSubscriptionRequest.exascaleDbStorageVaultId
|
|
2316
|
+
};
|
|
2317
|
+
const queryParams = {};
|
|
2318
|
+
let headerParams = {
|
|
2319
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2320
|
+
"opc-retry-token": changeExascaleDbStorageVaultSubscriptionRequest.opcRetryToken,
|
|
2321
|
+
"opc-request-id": changeExascaleDbStorageVaultSubscriptionRequest.opcRequestId,
|
|
2322
|
+
"if-match": changeExascaleDbStorageVaultSubscriptionRequest.ifMatch
|
|
2323
|
+
};
|
|
2324
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2325
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeExascaleDbStorageVaultSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
2326
|
+
if (this.logger)
|
|
2327
|
+
retrier.logger = this.logger;
|
|
2328
|
+
const request = yield oci_common_2.composeRequest({
|
|
2329
|
+
baseEndpoint: this._endpoint,
|
|
2330
|
+
defaultHeaders: this._defaultHeaders,
|
|
2331
|
+
path: "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}/actions/changeSubscription",
|
|
2332
|
+
method: "POST",
|
|
2333
|
+
bodyContent: common.ObjectSerializer.serialize(changeExascaleDbStorageVaultSubscriptionRequest.changeExascaleDbStorageVaultSubscriptionDetails, "ChangeExascaleDbStorageVaultSubscriptionDetails", model.ChangeExascaleDbStorageVaultSubscriptionDetails.getJsonObj),
|
|
2334
|
+
pathParams: pathParams,
|
|
2335
|
+
headerParams: headerParams,
|
|
2336
|
+
queryParams: queryParams
|
|
2337
|
+
});
|
|
2338
|
+
try {
|
|
2339
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2340
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2341
|
+
responseObject: {},
|
|
2342
|
+
responseHeaders: [
|
|
2343
|
+
{
|
|
2344
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2345
|
+
key: "opcWorkRequestId",
|
|
2346
|
+
dataType: "string"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
value: response.headers.get("opc-request-id"),
|
|
2350
|
+
key: "opcRequestId",
|
|
2351
|
+
dataType: "string"
|
|
2352
|
+
}
|
|
2353
|
+
]
|
|
2354
|
+
});
|
|
2355
|
+
return sdkResponse;
|
|
2356
|
+
}
|
|
2357
|
+
catch (err) {
|
|
2358
|
+
throw err;
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2162
2362
|
/**
|
|
2163
2363
|
* Move the {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails}
|
|
2164
2364
|
* and its dependent resources to the specified compartment.
|
|
@@ -3160,6 +3360,80 @@ class DatabaseClient {
|
|
|
3160
3360
|
}
|
|
3161
3361
|
});
|
|
3162
3362
|
}
|
|
3363
|
+
/**
|
|
3364
|
+
* Convert between and SnapshotStandby Standby Autonomous Container Database .
|
|
3365
|
+
* For more information about changing Autonomous Container Databases Add Standby, see
|
|
3366
|
+
* [Convert Standby Autonomous Container Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-D3B503F1-0032-4B0D-9F00-ACAE8151AB80) and [Convert Snapshot Standby to Physical Standby](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-E8D7E0EE-8244-467D-B33A-1BC6F969A0A4).
|
|
3367
|
+
*
|
|
3368
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3369
|
+
* @param ConvertStandbyAutonomousContainerDatabaseRequest
|
|
3370
|
+
* @return ConvertStandbyAutonomousContainerDatabaseResponse
|
|
3371
|
+
* @throws OciError when an error occurs
|
|
3372
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConvertStandbyAutonomousContainerDatabase.ts.html |here} to see how to use ConvertStandbyAutonomousContainerDatabase API.
|
|
3373
|
+
*/
|
|
3374
|
+
convertStandbyAutonomousContainerDatabase(convertStandbyAutonomousContainerDatabaseRequest) {
|
|
3375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3376
|
+
if (this.logger)
|
|
3377
|
+
this.logger.debug("Calling operation DatabaseClient#convertStandbyAutonomousContainerDatabase.");
|
|
3378
|
+
const operationName = "convertStandbyAutonomousContainerDatabase";
|
|
3379
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ConvertStandbyAutonomousContainerDatabase";
|
|
3380
|
+
const pathParams = {
|
|
3381
|
+
"{autonomousContainerDatabaseId}": convertStandbyAutonomousContainerDatabaseRequest.autonomousContainerDatabaseId
|
|
3382
|
+
};
|
|
3383
|
+
const queryParams = {};
|
|
3384
|
+
let headerParams = {
|
|
3385
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3386
|
+
"opc-request-id": convertStandbyAutonomousContainerDatabaseRequest.opcRequestId,
|
|
3387
|
+
"opc-retry-token": convertStandbyAutonomousContainerDatabaseRequest.opcRetryToken,
|
|
3388
|
+
"if-match": convertStandbyAutonomousContainerDatabaseRequest.ifMatch
|
|
3389
|
+
};
|
|
3390
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3391
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, convertStandbyAutonomousContainerDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
3392
|
+
if (this.logger)
|
|
3393
|
+
retrier.logger = this.logger;
|
|
3394
|
+
const request = yield oci_common_2.composeRequest({
|
|
3395
|
+
baseEndpoint: this._endpoint,
|
|
3396
|
+
defaultHeaders: this._defaultHeaders,
|
|
3397
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/snapshotStandby",
|
|
3398
|
+
method: "POST",
|
|
3399
|
+
bodyContent: common.ObjectSerializer.serialize(convertStandbyAutonomousContainerDatabaseRequest.convertStandbyAutonomousContainerDatabaseDetails, "ConvertStandbyAutonomousContainerDatabaseDetails", model.ConvertStandbyAutonomousContainerDatabaseDetails.getJsonObj),
|
|
3400
|
+
pathParams: pathParams,
|
|
3401
|
+
headerParams: headerParams,
|
|
3402
|
+
queryParams: queryParams
|
|
3403
|
+
});
|
|
3404
|
+
try {
|
|
3405
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3406
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3407
|
+
responseObject: {},
|
|
3408
|
+
body: yield response.json(),
|
|
3409
|
+
bodyKey: "autonomousContainerDatabase",
|
|
3410
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
3411
|
+
type: "model.AutonomousContainerDatabase",
|
|
3412
|
+
responseHeaders: [
|
|
3413
|
+
{
|
|
3414
|
+
value: response.headers.get("etag"),
|
|
3415
|
+
key: "etag",
|
|
3416
|
+
dataType: "string"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3420
|
+
key: "opcWorkRequestId",
|
|
3421
|
+
dataType: "string"
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
value: response.headers.get("opc-request-id"),
|
|
3425
|
+
key: "opcRequestId",
|
|
3426
|
+
dataType: "string"
|
|
3427
|
+
}
|
|
3428
|
+
]
|
|
3429
|
+
});
|
|
3430
|
+
return sdkResponse;
|
|
3431
|
+
}
|
|
3432
|
+
catch (err) {
|
|
3433
|
+
throw err;
|
|
3434
|
+
}
|
|
3435
|
+
});
|
|
3436
|
+
}
|
|
3163
3437
|
/**
|
|
3164
3438
|
* Converts a non-container database to a pluggable database.
|
|
3165
3439
|
*
|
|
@@ -9235,6 +9509,80 @@ class DatabaseClient {
|
|
|
9235
9509
|
}
|
|
9236
9510
|
});
|
|
9237
9511
|
}
|
|
9512
|
+
/**
|
|
9513
|
+
* Edit Autonomous Container Database Dataguard.
|
|
9514
|
+
* For more information about changing Autonomous Container Databases Add Standby, see
|
|
9515
|
+
* [Update Autonomous Container Database Dataguard](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-D3B503F1-0032-4B0D-9F00-ACAE8151AB80) and [Convert Snapshot Standby to Physical Standby](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-E8D7E0EE-8244-467D-B33A-1BC6F969A0A4).
|
|
9516
|
+
*
|
|
9517
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
9518
|
+
* @param EditAutonomousContainerDatabaseDataguardRequest
|
|
9519
|
+
* @return EditAutonomousContainerDatabaseDataguardResponse
|
|
9520
|
+
* @throws OciError when an error occurs
|
|
9521
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/EditAutonomousContainerDatabaseDataguard.ts.html |here} to see how to use EditAutonomousContainerDatabaseDataguard API.
|
|
9522
|
+
*/
|
|
9523
|
+
editAutonomousContainerDatabaseDataguard(editAutonomousContainerDatabaseDataguardRequest) {
|
|
9524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9525
|
+
if (this.logger)
|
|
9526
|
+
this.logger.debug("Calling operation DatabaseClient#editAutonomousContainerDatabaseDataguard.");
|
|
9527
|
+
const operationName = "editAutonomousContainerDatabaseDataguard";
|
|
9528
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/EditAutonomousContainerDatabaseDataguard";
|
|
9529
|
+
const pathParams = {
|
|
9530
|
+
"{autonomousContainerDatabaseId}": editAutonomousContainerDatabaseDataguardRequest.autonomousContainerDatabaseId
|
|
9531
|
+
};
|
|
9532
|
+
const queryParams = {};
|
|
9533
|
+
let headerParams = {
|
|
9534
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9535
|
+
"opc-request-id": editAutonomousContainerDatabaseDataguardRequest.opcRequestId,
|
|
9536
|
+
"opc-retry-token": editAutonomousContainerDatabaseDataguardRequest.opcRetryToken,
|
|
9537
|
+
"if-match": editAutonomousContainerDatabaseDataguardRequest.ifMatch
|
|
9538
|
+
};
|
|
9539
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
9540
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, editAutonomousContainerDatabaseDataguardRequest.retryConfiguration, specRetryConfiguration);
|
|
9541
|
+
if (this.logger)
|
|
9542
|
+
retrier.logger = this.logger;
|
|
9543
|
+
const request = yield oci_common_2.composeRequest({
|
|
9544
|
+
baseEndpoint: this._endpoint,
|
|
9545
|
+
defaultHeaders: this._defaultHeaders,
|
|
9546
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/editDataguard",
|
|
9547
|
+
method: "POST",
|
|
9548
|
+
bodyContent: common.ObjectSerializer.serialize(editAutonomousContainerDatabaseDataguardRequest.editAutonomousContainerDatabaseDataguardDetails, "EditAutonomousContainerDatabaseDataguardDetails", model.EditAutonomousContainerDatabaseDataguardDetails.getJsonObj),
|
|
9549
|
+
pathParams: pathParams,
|
|
9550
|
+
headerParams: headerParams,
|
|
9551
|
+
queryParams: queryParams
|
|
9552
|
+
});
|
|
9553
|
+
try {
|
|
9554
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
9555
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
9556
|
+
responseObject: {},
|
|
9557
|
+
body: yield response.json(),
|
|
9558
|
+
bodyKey: "autonomousContainerDatabase",
|
|
9559
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
9560
|
+
type: "model.AutonomousContainerDatabase",
|
|
9561
|
+
responseHeaders: [
|
|
9562
|
+
{
|
|
9563
|
+
value: response.headers.get("etag"),
|
|
9564
|
+
key: "etag",
|
|
9565
|
+
dataType: "string"
|
|
9566
|
+
},
|
|
9567
|
+
{
|
|
9568
|
+
value: response.headers.get("opc-work-request-id"),
|
|
9569
|
+
key: "opcWorkRequestId",
|
|
9570
|
+
dataType: "string"
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
value: response.headers.get("opc-request-id"),
|
|
9574
|
+
key: "opcRequestId",
|
|
9575
|
+
dataType: "string"
|
|
9576
|
+
}
|
|
9577
|
+
]
|
|
9578
|
+
});
|
|
9579
|
+
return sdkResponse;
|
|
9580
|
+
}
|
|
9581
|
+
catch (err) {
|
|
9582
|
+
throw err;
|
|
9583
|
+
}
|
|
9584
|
+
});
|
|
9585
|
+
}
|
|
9238
9586
|
/**
|
|
9239
9587
|
* Enables Database Management for Autonomous Database.
|
|
9240
9588
|
*
|
|
@@ -10041,37 +10389,107 @@ class DatabaseClient {
|
|
|
10041
10389
|
* If this parameter is not provided, the failover will happen in the same region.
|
|
10042
10390
|
*
|
|
10043
10391
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
10044
|
-
* @param FailOverAutonomousDatabaseRequest
|
|
10045
|
-
* @return FailOverAutonomousDatabaseResponse
|
|
10392
|
+
* @param FailOverAutonomousDatabaseRequest
|
|
10393
|
+
* @return FailOverAutonomousDatabaseResponse
|
|
10394
|
+
* @throws OciError when an error occurs
|
|
10395
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/FailOverAutonomousDatabase.ts.html |here} to see how to use FailOverAutonomousDatabase API.
|
|
10396
|
+
*/
|
|
10397
|
+
failOverAutonomousDatabase(failOverAutonomousDatabaseRequest) {
|
|
10398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10399
|
+
if (this.logger)
|
|
10400
|
+
this.logger.debug("Calling operation DatabaseClient#failOverAutonomousDatabase.");
|
|
10401
|
+
const operationName = "failOverAutonomousDatabase";
|
|
10402
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/FailOverAutonomousDatabase";
|
|
10403
|
+
const pathParams = {
|
|
10404
|
+
"{autonomousDatabaseId}": failOverAutonomousDatabaseRequest.autonomousDatabaseId
|
|
10405
|
+
};
|
|
10406
|
+
const queryParams = {
|
|
10407
|
+
"peerDbId": failOverAutonomousDatabaseRequest.peerDbId
|
|
10408
|
+
};
|
|
10409
|
+
let headerParams = {
|
|
10410
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10411
|
+
"if-match": failOverAutonomousDatabaseRequest.ifMatch,
|
|
10412
|
+
"opc-retry-token": failOverAutonomousDatabaseRequest.opcRetryToken,
|
|
10413
|
+
"opc-request-id": failOverAutonomousDatabaseRequest.opcRequestId
|
|
10414
|
+
};
|
|
10415
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
10416
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, failOverAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
10417
|
+
if (this.logger)
|
|
10418
|
+
retrier.logger = this.logger;
|
|
10419
|
+
const request = yield oci_common_2.composeRequest({
|
|
10420
|
+
baseEndpoint: this._endpoint,
|
|
10421
|
+
defaultHeaders: this._defaultHeaders,
|
|
10422
|
+
path: "/autonomousDatabases/{autonomousDatabaseId}/actions/failover",
|
|
10423
|
+
method: "POST",
|
|
10424
|
+
pathParams: pathParams,
|
|
10425
|
+
headerParams: headerParams,
|
|
10426
|
+
queryParams: queryParams
|
|
10427
|
+
});
|
|
10428
|
+
try {
|
|
10429
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10430
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10431
|
+
responseObject: {},
|
|
10432
|
+
body: yield response.json(),
|
|
10433
|
+
bodyKey: "autonomousDatabase",
|
|
10434
|
+
bodyModel: model.AutonomousDatabase,
|
|
10435
|
+
type: "model.AutonomousDatabase",
|
|
10436
|
+
responseHeaders: [
|
|
10437
|
+
{
|
|
10438
|
+
value: response.headers.get("etag"),
|
|
10439
|
+
key: "etag",
|
|
10440
|
+
dataType: "string"
|
|
10441
|
+
},
|
|
10442
|
+
{
|
|
10443
|
+
value: response.headers.get("opc-request-id"),
|
|
10444
|
+
key: "opcRequestId",
|
|
10445
|
+
dataType: "string"
|
|
10446
|
+
},
|
|
10447
|
+
{
|
|
10448
|
+
value: response.headers.get("opc-work-request-id"),
|
|
10449
|
+
key: "opcWorkRequestId",
|
|
10450
|
+
dataType: "string"
|
|
10451
|
+
}
|
|
10452
|
+
]
|
|
10453
|
+
});
|
|
10454
|
+
return sdkResponse;
|
|
10455
|
+
}
|
|
10456
|
+
catch (err) {
|
|
10457
|
+
throw err;
|
|
10458
|
+
}
|
|
10459
|
+
});
|
|
10460
|
+
}
|
|
10461
|
+
/**
|
|
10462
|
+
* Failover Autonomous Container Database, identified by the autonomousContainerDatabaseId parameter, to an active standby Autonomous Container Database.
|
|
10463
|
+
*
|
|
10464
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
10465
|
+
* @param FailoverAutonomousContainerDatabaseDataguardRequest
|
|
10466
|
+
* @return FailoverAutonomousContainerDatabaseDataguardResponse
|
|
10046
10467
|
* @throws OciError when an error occurs
|
|
10047
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/
|
|
10468
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/FailoverAutonomousContainerDatabaseDataguard.ts.html |here} to see how to use FailoverAutonomousContainerDatabaseDataguard API.
|
|
10048
10469
|
*/
|
|
10049
|
-
|
|
10470
|
+
failoverAutonomousContainerDatabaseDataguard(failoverAutonomousContainerDatabaseDataguardRequest) {
|
|
10050
10471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10051
10472
|
if (this.logger)
|
|
10052
|
-
this.logger.debug("Calling operation DatabaseClient#
|
|
10053
|
-
const operationName = "
|
|
10054
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/
|
|
10473
|
+
this.logger.debug("Calling operation DatabaseClient#failoverAutonomousContainerDatabaseDataguard.");
|
|
10474
|
+
const operationName = "failoverAutonomousContainerDatabaseDataguard";
|
|
10475
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/FailoverAutonomousContainerDatabaseDataguard";
|
|
10055
10476
|
const pathParams = {
|
|
10056
|
-
"{
|
|
10057
|
-
};
|
|
10058
|
-
const queryParams = {
|
|
10059
|
-
"peerDbId": failOverAutonomousDatabaseRequest.peerDbId
|
|
10477
|
+
"{autonomousContainerDatabaseId}": failoverAutonomousContainerDatabaseDataguardRequest.autonomousContainerDatabaseId
|
|
10060
10478
|
};
|
|
10479
|
+
const queryParams = {};
|
|
10061
10480
|
let headerParams = {
|
|
10062
10481
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10063
|
-
"if-match":
|
|
10064
|
-
"opc-
|
|
10065
|
-
"opc-request-id": failOverAutonomousDatabaseRequest.opcRequestId
|
|
10482
|
+
"if-match": failoverAutonomousContainerDatabaseDataguardRequest.ifMatch,
|
|
10483
|
+
"opc-request-id": failoverAutonomousContainerDatabaseDataguardRequest.opcRequestId
|
|
10066
10484
|
};
|
|
10067
10485
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
10068
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10486
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, failoverAutonomousContainerDatabaseDataguardRequest.retryConfiguration, specRetryConfiguration);
|
|
10069
10487
|
if (this.logger)
|
|
10070
10488
|
retrier.logger = this.logger;
|
|
10071
10489
|
const request = yield oci_common_2.composeRequest({
|
|
10072
10490
|
baseEndpoint: this._endpoint,
|
|
10073
10491
|
defaultHeaders: this._defaultHeaders,
|
|
10074
|
-
path: "/
|
|
10492
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/failover",
|
|
10075
10493
|
method: "POST",
|
|
10076
10494
|
pathParams: pathParams,
|
|
10077
10495
|
headerParams: headerParams,
|
|
@@ -10082,9 +10500,9 @@ class DatabaseClient {
|
|
|
10082
10500
|
const sdkResponse = oci_common_2.composeResponse({
|
|
10083
10501
|
responseObject: {},
|
|
10084
10502
|
body: yield response.json(),
|
|
10085
|
-
bodyKey: "
|
|
10086
|
-
bodyModel: model.
|
|
10087
|
-
type: "model.
|
|
10503
|
+
bodyKey: "autonomousContainerDatabase",
|
|
10504
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
10505
|
+
type: "model.AutonomousContainerDatabase",
|
|
10088
10506
|
responseHeaders: [
|
|
10089
10507
|
{
|
|
10090
10508
|
value: response.headers.get("etag"),
|
|
@@ -17291,7 +17709,13 @@ class DatabaseClient {
|
|
|
17291
17709
|
"compartmentId": listBackupsRequest.compartmentId,
|
|
17292
17710
|
"limit": listBackupsRequest.limit,
|
|
17293
17711
|
"page": listBackupsRequest.page,
|
|
17294
|
-
"shapeFamily": listBackupsRequest.shapeFamily
|
|
17712
|
+
"shapeFamily": listBackupsRequest.shapeFamily,
|
|
17713
|
+
"version": listBackupsRequest.version,
|
|
17714
|
+
"type": listBackupsRequest.type,
|
|
17715
|
+
"lifecycleState": listBackupsRequest.lifecycleState,
|
|
17716
|
+
"timeExpiryScheduledGreaterThanOrEqualTo": listBackupsRequest.timeExpiryScheduledGreaterThanOrEqualTo,
|
|
17717
|
+
"timeExpiryScheduledLessThan": listBackupsRequest.timeExpiryScheduledLessThan,
|
|
17718
|
+
"backupDestinationType": listBackupsRequest.backupDestinationType
|
|
17295
17719
|
};
|
|
17296
17720
|
let headerParams = {
|
|
17297
17721
|
"Content-Type": common.Constants.APPLICATION_JSON
|
|
@@ -17949,7 +18373,8 @@ class DatabaseClient {
|
|
|
17949
18373
|
"sortBy": listCloudVmClustersRequest.sortBy,
|
|
17950
18374
|
"sortOrder": listCloudVmClustersRequest.sortOrder,
|
|
17951
18375
|
"lifecycleState": listCloudVmClustersRequest.lifecycleState,
|
|
17952
|
-
"displayName": listCloudVmClustersRequest.displayName
|
|
18376
|
+
"displayName": listCloudVmClustersRequest.displayName,
|
|
18377
|
+
"vmClusterType": listCloudVmClustersRequest.vmClusterType
|
|
17953
18378
|
};
|
|
17954
18379
|
let headerParams = {
|
|
17955
18380
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -18411,6 +18836,7 @@ class DatabaseClient {
|
|
|
18411
18836
|
"imageType": listDatabaseSoftwareImagesRequest.imageType,
|
|
18412
18837
|
"imageShapeFamily": listDatabaseSoftwareImagesRequest.imageShapeFamily,
|
|
18413
18838
|
"patchSetGreaterThanOrEqualTo": listDatabaseSoftwareImagesRequest.patchSetGreaterThanOrEqualTo,
|
|
18839
|
+
"dbSystemId": listDatabaseSoftwareImagesRequest.dbSystemId,
|
|
18414
18840
|
"isUpgradeSupported": listDatabaseSoftwareImagesRequest.isUpgradeSupported
|
|
18415
18841
|
};
|
|
18416
18842
|
let headerParams = {
|
|
@@ -20400,6 +20826,7 @@ class DatabaseClient {
|
|
|
20400
20826
|
"sortOrder": listExadbVmClustersRequest.sortOrder,
|
|
20401
20827
|
"lifecycleState": listExadbVmClustersRequest.lifecycleState,
|
|
20402
20828
|
"exascaleDbStorageVaultId": listExadbVmClustersRequest.exascaleDbStorageVaultId,
|
|
20829
|
+
"clusterPlacementGroupId": listExadbVmClustersRequest.clusterPlacementGroupId,
|
|
20403
20830
|
"displayName": listExadbVmClustersRequest.displayName
|
|
20404
20831
|
};
|
|
20405
20832
|
let headerParams = {
|
|
@@ -20510,6 +20937,7 @@ class DatabaseClient {
|
|
|
20510
20937
|
"sortBy": listExascaleDbStorageVaultsRequest.sortBy,
|
|
20511
20938
|
"sortOrder": listExascaleDbStorageVaultsRequest.sortOrder,
|
|
20512
20939
|
"lifecycleState": listExascaleDbStorageVaultsRequest.lifecycleState,
|
|
20940
|
+
"clusterPlacementGroupId": listExascaleDbStorageVaultsRequest.clusterPlacementGroupId,
|
|
20513
20941
|
"displayName": listExascaleDbStorageVaultsRequest.displayName,
|
|
20514
20942
|
"exadataInfrastructureId": listExascaleDbStorageVaultsRequest.exadataInfrastructureId
|
|
20515
20943
|
};
|
|
@@ -23353,7 +23781,8 @@ class DatabaseClient {
|
|
|
23353
23781
|
"sortBy": listVmClustersRequest.sortBy,
|
|
23354
23782
|
"sortOrder": listVmClustersRequest.sortOrder,
|
|
23355
23783
|
"lifecycleState": listVmClustersRequest.lifecycleState,
|
|
23356
|
-
"displayName": listVmClustersRequest.displayName
|
|
23784
|
+
"displayName": listVmClustersRequest.displayName,
|
|
23785
|
+
"vmClusterType": listVmClustersRequest.vmClusterType
|
|
23357
23786
|
};
|
|
23358
23787
|
let headerParams = {
|
|
23359
23788
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -23513,6 +23942,77 @@ class DatabaseClient {
|
|
|
23513
23942
|
}
|
|
23514
23943
|
});
|
|
23515
23944
|
}
|
|
23945
|
+
/**
|
|
23946
|
+
* Migrate Autonomous Container Database, identified by the autonomousContainerDatabaseId parameter.
|
|
23947
|
+
*
|
|
23948
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
23949
|
+
* @param MigrateAutonomousContainerDatabaseDataguardAssociationRequest
|
|
23950
|
+
* @return MigrateAutonomousContainerDatabaseDataguardAssociationResponse
|
|
23951
|
+
* @throws OciError when an error occurs
|
|
23952
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/MigrateAutonomousContainerDatabaseDataguardAssociation.ts.html |here} to see how to use MigrateAutonomousContainerDatabaseDataguardAssociation API.
|
|
23953
|
+
*/
|
|
23954
|
+
migrateAutonomousContainerDatabaseDataguardAssociation(migrateAutonomousContainerDatabaseDataguardAssociationRequest) {
|
|
23955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23956
|
+
if (this.logger)
|
|
23957
|
+
this.logger.debug("Calling operation DatabaseClient#migrateAutonomousContainerDatabaseDataguardAssociation.");
|
|
23958
|
+
const operationName = "migrateAutonomousContainerDatabaseDataguardAssociation";
|
|
23959
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseDataguardAssociation/MigrateAutonomousContainerDatabaseDataguardAssociation";
|
|
23960
|
+
const pathParams = {
|
|
23961
|
+
"{autonomousContainerDatabaseId}": migrateAutonomousContainerDatabaseDataguardAssociationRequest.autonomousContainerDatabaseId,
|
|
23962
|
+
"{autonomousContainerDatabaseDataguardAssociationId}": migrateAutonomousContainerDatabaseDataguardAssociationRequest.autonomousContainerDatabaseDataguardAssociationId
|
|
23963
|
+
};
|
|
23964
|
+
const queryParams = {};
|
|
23965
|
+
let headerParams = {
|
|
23966
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
23967
|
+
"if-match": migrateAutonomousContainerDatabaseDataguardAssociationRequest.ifMatch,
|
|
23968
|
+
"opc-request-id": migrateAutonomousContainerDatabaseDataguardAssociationRequest.opcRequestId
|
|
23969
|
+
};
|
|
23970
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
23971
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, migrateAutonomousContainerDatabaseDataguardAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
23972
|
+
if (this.logger)
|
|
23973
|
+
retrier.logger = this.logger;
|
|
23974
|
+
const request = yield oci_common_2.composeRequest({
|
|
23975
|
+
baseEndpoint: this._endpoint,
|
|
23976
|
+
defaultHeaders: this._defaultHeaders,
|
|
23977
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/autonomousContainerDatabaseDataguardAssociations/{autonomousContainerDatabaseDataguardAssociationId}/actions/migrate",
|
|
23978
|
+
method: "POST",
|
|
23979
|
+
pathParams: pathParams,
|
|
23980
|
+
headerParams: headerParams,
|
|
23981
|
+
queryParams: queryParams
|
|
23982
|
+
});
|
|
23983
|
+
try {
|
|
23984
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
23985
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
23986
|
+
responseObject: {},
|
|
23987
|
+
body: yield response.json(),
|
|
23988
|
+
bodyKey: "autonomousContainerDatabaseDataguardAssociation",
|
|
23989
|
+
bodyModel: model.AutonomousContainerDatabaseDataguardAssociation,
|
|
23990
|
+
type: "model.AutonomousContainerDatabaseDataguardAssociation",
|
|
23991
|
+
responseHeaders: [
|
|
23992
|
+
{
|
|
23993
|
+
value: response.headers.get("etag"),
|
|
23994
|
+
key: "etag",
|
|
23995
|
+
dataType: "string"
|
|
23996
|
+
},
|
|
23997
|
+
{
|
|
23998
|
+
value: response.headers.get("opc-request-id"),
|
|
23999
|
+
key: "opcRequestId",
|
|
24000
|
+
dataType: "string"
|
|
24001
|
+
},
|
|
24002
|
+
{
|
|
24003
|
+
value: response.headers.get("opc-work-request-id"),
|
|
24004
|
+
key: "opcWorkRequestId",
|
|
24005
|
+
dataType: "string"
|
|
24006
|
+
}
|
|
24007
|
+
]
|
|
24008
|
+
});
|
|
24009
|
+
return sdkResponse;
|
|
24010
|
+
}
|
|
24011
|
+
catch (err) {
|
|
24012
|
+
throw err;
|
|
24013
|
+
}
|
|
24014
|
+
});
|
|
24015
|
+
}
|
|
23516
24016
|
/**
|
|
23517
24017
|
* Migrates the existing Data Guard association to new Data Guard model to support multiple standby databases functionality.
|
|
23518
24018
|
* <p>
|
|
@@ -24076,6 +24576,76 @@ class DatabaseClient {
|
|
|
24076
24576
|
}
|
|
24077
24577
|
});
|
|
24078
24578
|
}
|
|
24579
|
+
/**
|
|
24580
|
+
* Reinstates a disabled standby Autonomous Container Database, identified by the autonomousContainerDatabaseId parameter, to an active standby Autonomous Container Database.
|
|
24581
|
+
*
|
|
24582
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
24583
|
+
* @param ReinstateAutonomousContainerDatabaseDataguardRequest
|
|
24584
|
+
* @return ReinstateAutonomousContainerDatabaseDataguardResponse
|
|
24585
|
+
* @throws OciError when an error occurs
|
|
24586
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ReinstateAutonomousContainerDatabaseDataguard.ts.html |here} to see how to use ReinstateAutonomousContainerDatabaseDataguard API.
|
|
24587
|
+
*/
|
|
24588
|
+
reinstateAutonomousContainerDatabaseDataguard(reinstateAutonomousContainerDatabaseDataguardRequest) {
|
|
24589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24590
|
+
if (this.logger)
|
|
24591
|
+
this.logger.debug("Calling operation DatabaseClient#reinstateAutonomousContainerDatabaseDataguard.");
|
|
24592
|
+
const operationName = "reinstateAutonomousContainerDatabaseDataguard";
|
|
24593
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ReinstateAutonomousContainerDatabaseDataguard";
|
|
24594
|
+
const pathParams = {
|
|
24595
|
+
"{autonomousContainerDatabaseId}": reinstateAutonomousContainerDatabaseDataguardRequest.autonomousContainerDatabaseId
|
|
24596
|
+
};
|
|
24597
|
+
const queryParams = {};
|
|
24598
|
+
let headerParams = {
|
|
24599
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
24600
|
+
"if-match": reinstateAutonomousContainerDatabaseDataguardRequest.ifMatch,
|
|
24601
|
+
"opc-request-id": reinstateAutonomousContainerDatabaseDataguardRequest.opcRequestId
|
|
24602
|
+
};
|
|
24603
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
24604
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reinstateAutonomousContainerDatabaseDataguardRequest.retryConfiguration, specRetryConfiguration);
|
|
24605
|
+
if (this.logger)
|
|
24606
|
+
retrier.logger = this.logger;
|
|
24607
|
+
const request = yield oci_common_2.composeRequest({
|
|
24608
|
+
baseEndpoint: this._endpoint,
|
|
24609
|
+
defaultHeaders: this._defaultHeaders,
|
|
24610
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/reinstate",
|
|
24611
|
+
method: "POST",
|
|
24612
|
+
pathParams: pathParams,
|
|
24613
|
+
headerParams: headerParams,
|
|
24614
|
+
queryParams: queryParams
|
|
24615
|
+
});
|
|
24616
|
+
try {
|
|
24617
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
24618
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
24619
|
+
responseObject: {},
|
|
24620
|
+
body: yield response.json(),
|
|
24621
|
+
bodyKey: "autonomousContainerDatabase",
|
|
24622
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
24623
|
+
type: "model.AutonomousContainerDatabase",
|
|
24624
|
+
responseHeaders: [
|
|
24625
|
+
{
|
|
24626
|
+
value: response.headers.get("etag"),
|
|
24627
|
+
key: "etag",
|
|
24628
|
+
dataType: "string"
|
|
24629
|
+
},
|
|
24630
|
+
{
|
|
24631
|
+
value: response.headers.get("opc-request-id"),
|
|
24632
|
+
key: "opcRequestId",
|
|
24633
|
+
dataType: "string"
|
|
24634
|
+
},
|
|
24635
|
+
{
|
|
24636
|
+
value: response.headers.get("opc-work-request-id"),
|
|
24637
|
+
key: "opcWorkRequestId",
|
|
24638
|
+
dataType: "string"
|
|
24639
|
+
}
|
|
24640
|
+
]
|
|
24641
|
+
});
|
|
24642
|
+
return sdkResponse;
|
|
24643
|
+
}
|
|
24644
|
+
catch (err) {
|
|
24645
|
+
throw err;
|
|
24646
|
+
}
|
|
24647
|
+
});
|
|
24648
|
+
}
|
|
24079
24649
|
/**
|
|
24080
24650
|
* Reinstates a disabled standby Autonomous Container Database, identified by the autonomousContainerDatabaseId parameter, to an active standby Autonomous Container Database.
|
|
24081
24651
|
*
|
|
@@ -26497,6 +27067,76 @@ class DatabaseClient {
|
|
|
26497
27067
|
}
|
|
26498
27068
|
});
|
|
26499
27069
|
}
|
|
27070
|
+
/**
|
|
27071
|
+
* Switchover Autonomous Container Database, identified by the autonomousContainerDatabaseId parameter, to an active standby Autonomous Container Database.
|
|
27072
|
+
*
|
|
27073
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
27074
|
+
* @param SwitchoverAutonomousContainerDatabaseDataguardRequest
|
|
27075
|
+
* @return SwitchoverAutonomousContainerDatabaseDataguardResponse
|
|
27076
|
+
* @throws OciError when an error occurs
|
|
27077
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SwitchoverAutonomousContainerDatabaseDataguard.ts.html |here} to see how to use SwitchoverAutonomousContainerDatabaseDataguard API.
|
|
27078
|
+
*/
|
|
27079
|
+
switchoverAutonomousContainerDatabaseDataguard(switchoverAutonomousContainerDatabaseDataguardRequest) {
|
|
27080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27081
|
+
if (this.logger)
|
|
27082
|
+
this.logger.debug("Calling operation DatabaseClient#switchoverAutonomousContainerDatabaseDataguard.");
|
|
27083
|
+
const operationName = "switchoverAutonomousContainerDatabaseDataguard";
|
|
27084
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/SwitchoverAutonomousContainerDatabaseDataguard";
|
|
27085
|
+
const pathParams = {
|
|
27086
|
+
"{autonomousContainerDatabaseId}": switchoverAutonomousContainerDatabaseDataguardRequest.autonomousContainerDatabaseId
|
|
27087
|
+
};
|
|
27088
|
+
const queryParams = {};
|
|
27089
|
+
let headerParams = {
|
|
27090
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
27091
|
+
"if-match": switchoverAutonomousContainerDatabaseDataguardRequest.ifMatch,
|
|
27092
|
+
"opc-request-id": switchoverAutonomousContainerDatabaseDataguardRequest.opcRequestId
|
|
27093
|
+
};
|
|
27094
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
27095
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, switchoverAutonomousContainerDatabaseDataguardRequest.retryConfiguration, specRetryConfiguration);
|
|
27096
|
+
if (this.logger)
|
|
27097
|
+
retrier.logger = this.logger;
|
|
27098
|
+
const request = yield oci_common_2.composeRequest({
|
|
27099
|
+
baseEndpoint: this._endpoint,
|
|
27100
|
+
defaultHeaders: this._defaultHeaders,
|
|
27101
|
+
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/switchover",
|
|
27102
|
+
method: "POST",
|
|
27103
|
+
pathParams: pathParams,
|
|
27104
|
+
headerParams: headerParams,
|
|
27105
|
+
queryParams: queryParams
|
|
27106
|
+
});
|
|
27107
|
+
try {
|
|
27108
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
27109
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
27110
|
+
responseObject: {},
|
|
27111
|
+
body: yield response.json(),
|
|
27112
|
+
bodyKey: "autonomousContainerDatabase",
|
|
27113
|
+
bodyModel: model.AutonomousContainerDatabase,
|
|
27114
|
+
type: "model.AutonomousContainerDatabase",
|
|
27115
|
+
responseHeaders: [
|
|
27116
|
+
{
|
|
27117
|
+
value: response.headers.get("etag"),
|
|
27118
|
+
key: "etag",
|
|
27119
|
+
dataType: "string"
|
|
27120
|
+
},
|
|
27121
|
+
{
|
|
27122
|
+
value: response.headers.get("opc-request-id"),
|
|
27123
|
+
key: "opcRequestId",
|
|
27124
|
+
dataType: "string"
|
|
27125
|
+
},
|
|
27126
|
+
{
|
|
27127
|
+
value: response.headers.get("opc-work-request-id"),
|
|
27128
|
+
key: "opcWorkRequestId",
|
|
27129
|
+
dataType: "string"
|
|
27130
|
+
}
|
|
27131
|
+
]
|
|
27132
|
+
});
|
|
27133
|
+
return sdkResponse;
|
|
27134
|
+
}
|
|
27135
|
+
catch (err) {
|
|
27136
|
+
throw err;
|
|
27137
|
+
}
|
|
27138
|
+
});
|
|
27139
|
+
}
|
|
26500
27140
|
/**
|
|
26501
27141
|
* 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.
|
|
26502
27142
|
* <p>
|
|
@@ -27513,6 +28153,76 @@ class DatabaseClient {
|
|
|
27513
28153
|
}
|
|
27514
28154
|
});
|
|
27515
28155
|
}
|
|
28156
|
+
/**
|
|
28157
|
+
* Updates database backup details.
|
|
28158
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
28159
|
+
* @param UpdateBackupRequest
|
|
28160
|
+
* @return UpdateBackupResponse
|
|
28161
|
+
* @throws OciError when an error occurs
|
|
28162
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
|
|
28163
|
+
*/
|
|
28164
|
+
updateBackup(updateBackupRequest) {
|
|
28165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28166
|
+
if (this.logger)
|
|
28167
|
+
this.logger.debug("Calling operation DatabaseClient#updateBackup.");
|
|
28168
|
+
const operationName = "updateBackup";
|
|
28169
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/UpdateBackup";
|
|
28170
|
+
const pathParams = {
|
|
28171
|
+
"{backupId}": updateBackupRequest.backupId
|
|
28172
|
+
};
|
|
28173
|
+
const queryParams = {};
|
|
28174
|
+
let headerParams = {
|
|
28175
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
28176
|
+
"if-match": updateBackupRequest.ifMatch,
|
|
28177
|
+
"opc-request-id": updateBackupRequest.opcRequestId
|
|
28178
|
+
};
|
|
28179
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
28180
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
28181
|
+
if (this.logger)
|
|
28182
|
+
retrier.logger = this.logger;
|
|
28183
|
+
const request = yield oci_common_2.composeRequest({
|
|
28184
|
+
baseEndpoint: this._endpoint,
|
|
28185
|
+
defaultHeaders: this._defaultHeaders,
|
|
28186
|
+
path: "/backups/{backupId}",
|
|
28187
|
+
method: "PUT",
|
|
28188
|
+
bodyContent: common.ObjectSerializer.serialize(updateBackupRequest.updateBackupDetails, "UpdateBackupDetails", model.UpdateBackupDetails.getJsonObj),
|
|
28189
|
+
pathParams: pathParams,
|
|
28190
|
+
headerParams: headerParams,
|
|
28191
|
+
queryParams: queryParams
|
|
28192
|
+
});
|
|
28193
|
+
try {
|
|
28194
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
28195
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
28196
|
+
responseObject: {},
|
|
28197
|
+
body: yield response.json(),
|
|
28198
|
+
bodyKey: "backup",
|
|
28199
|
+
bodyModel: model.Backup,
|
|
28200
|
+
type: "model.Backup",
|
|
28201
|
+
responseHeaders: [
|
|
28202
|
+
{
|
|
28203
|
+
value: response.headers.get("etag"),
|
|
28204
|
+
key: "etag",
|
|
28205
|
+
dataType: "string"
|
|
28206
|
+
},
|
|
28207
|
+
{
|
|
28208
|
+
value: response.headers.get("opc-work-request-id"),
|
|
28209
|
+
key: "opcWorkRequestId",
|
|
28210
|
+
dataType: "string"
|
|
28211
|
+
},
|
|
28212
|
+
{
|
|
28213
|
+
value: response.headers.get("opc-request-id"),
|
|
28214
|
+
key: "opcRequestId",
|
|
28215
|
+
dataType: "string"
|
|
28216
|
+
}
|
|
28217
|
+
]
|
|
28218
|
+
});
|
|
28219
|
+
return sdkResponse;
|
|
28220
|
+
}
|
|
28221
|
+
catch (err) {
|
|
28222
|
+
throw err;
|
|
28223
|
+
}
|
|
28224
|
+
});
|
|
28225
|
+
}
|
|
27516
28226
|
/**
|
|
27517
28227
|
* If no database is associated with the backup destination:
|
|
27518
28228
|
* - For a RECOVERY_APPLIANCE backup destination, updates the connection string and/or the list of VPC users.
|