oci-database 2.120.0 → 2.121.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.
Files changed (74) hide show
  1. package/lib/client.d.ts +92 -0
  2. package/lib/client.js +453 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/database-waiter.d.ts +48 -0
  5. package/lib/database-waiter.js +78 -0
  6. package/lib/database-waiter.js.map +1 -1
  7. package/lib/model/add-dbnode-snapshots-for-exadb-vm-cluster-details.d.ts +51 -0
  8. package/lib/model/add-dbnode-snapshots-for-exadb-vm-cluster-details.js +30 -0
  9. package/lib/model/add-dbnode-snapshots-for-exadb-vm-cluster-details.js.map +1 -0
  10. package/lib/model/dbnode-snapshot-summary.d.ts +94 -0
  11. package/lib/model/dbnode-snapshot-summary.js +72 -0
  12. package/lib/model/dbnode-snapshot-summary.js.map +1 -0
  13. package/lib/model/dbnode-snapshot.d.ts +109 -0
  14. package/lib/model/dbnode-snapshot.js +88 -0
  15. package/lib/model/dbnode-snapshot.js.map +1 -0
  16. package/lib/model/dbnode-snapshots.d.ts +33 -0
  17. package/lib/model/dbnode-snapshots.js +62 -0
  18. package/lib/model/dbnode-snapshots.js.map +1 -0
  19. package/lib/model/index.d.ts +16 -0
  20. package/lib/model/index.js +27 -11
  21. package/lib/model/index.js.map +1 -1
  22. package/lib/model/mount-dbnode-snapshot-details.d.ts +27 -0
  23. package/lib/model/mount-dbnode-snapshot-details.js +30 -0
  24. package/lib/model/mount-dbnode-snapshot-details.js.map +1 -0
  25. package/lib/model/mount-point-details.d.ts +31 -0
  26. package/lib/model/mount-point-details.js +30 -0
  27. package/lib/model/mount-point-details.js.map +1 -0
  28. package/lib/model/unmount-dbnode-snapshot-details.d.ts +27 -0
  29. package/lib/model/unmount-dbnode-snapshot-details.js +30 -0
  30. package/lib/model/unmount-dbnode-snapshot-details.js.map +1 -0
  31. package/lib/model/volume-details.d.ts +31 -0
  32. package/lib/model/volume-details.js +30 -0
  33. package/lib/model/volume-details.js.map +1 -0
  34. package/lib/request/add-dbnode-snapshots-for-exadb-vm-cluster-request.d.ts +49 -0
  35. package/lib/request/add-dbnode-snapshots-for-exadb-vm-cluster-request.js +15 -0
  36. package/lib/request/add-dbnode-snapshots-for-exadb-vm-cluster-request.js.map +1 -0
  37. package/lib/request/delete-dbnode-snapshot-request.d.ts +34 -0
  38. package/lib/request/delete-dbnode-snapshot-request.js +15 -0
  39. package/lib/request/delete-dbnode-snapshot-request.js.map +1 -0
  40. package/lib/request/get-dbnode-snapshot-request.d.ts +27 -0
  41. package/lib/request/get-dbnode-snapshot-request.js +15 -0
  42. package/lib/request/get-dbnode-snapshot-request.js.map +1 -0
  43. package/lib/request/index.d.ts +12 -0
  44. package/lib/request/index.js +4 -2
  45. package/lib/request/index.js.map +1 -1
  46. package/lib/request/list-dbnode-snapshots-request.d.ts +70 -0
  47. package/lib/request/list-dbnode-snapshots-request.js +29 -0
  48. package/lib/request/list-dbnode-snapshots-request.js.map +1 -0
  49. package/lib/request/mount-dbnode-snapshot-request.d.ts +48 -0
  50. package/lib/request/mount-dbnode-snapshot-request.js +15 -0
  51. package/lib/request/mount-dbnode-snapshot-request.js.map +1 -0
  52. package/lib/request/unmount-dbnode-snapshot-request.d.ts +48 -0
  53. package/lib/request/unmount-dbnode-snapshot-request.js +15 -0
  54. package/lib/request/unmount-dbnode-snapshot-request.js.map +1 -0
  55. package/lib/response/add-dbnode-snapshots-for-exadb-vm-cluster-response.d.ts +34 -0
  56. package/lib/response/add-dbnode-snapshots-for-exadb-vm-cluster-response.js +15 -0
  57. package/lib/response/add-dbnode-snapshots-for-exadb-vm-cluster-response.js.map +1 -0
  58. package/lib/response/delete-dbnode-snapshot-response.d.ts +25 -0
  59. package/lib/response/delete-dbnode-snapshot-response.js +15 -0
  60. package/lib/response/delete-dbnode-snapshot-response.js.map +1 -0
  61. package/lib/response/get-dbnode-snapshot-response.d.ts +29 -0
  62. package/lib/response/get-dbnode-snapshot-response.js +15 -0
  63. package/lib/response/get-dbnode-snapshot-response.js.map +1 -0
  64. package/lib/response/index.d.ts +12 -0
  65. package/lib/response/list-dbnode-snapshots-response.d.ts +33 -0
  66. package/lib/response/list-dbnode-snapshots-response.js +15 -0
  67. package/lib/response/list-dbnode-snapshots-response.js.map +1 -0
  68. package/lib/response/mount-dbnode-snapshot-response.d.ts +34 -0
  69. package/lib/response/mount-dbnode-snapshot-response.js +15 -0
  70. package/lib/response/mount-dbnode-snapshot-response.js.map +1 -0
  71. package/lib/response/unmount-dbnode-snapshot-response.d.ts +34 -0
  72. package/lib/response/unmount-dbnode-snapshot-response.js +15 -0
  73. package/lib/response/unmount-dbnode-snapshot-response.js.map +1 -0
  74. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -108,6 +108,16 @@ export declare class DatabaseClient {
108
108
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ActivateExadataInfrastructure.ts.html |here} to see how to use ActivateExadataInfrastructure API.
109
109
  */
110
110
  activateExadataInfrastructure(activateExadataInfrastructureRequest: requests.ActivateExadataInfrastructureRequest): Promise<responses.ActivateExadataInfrastructureResponse>;
111
+ /**
112
+ * Add a database node snapshots to the Exadb VM cluster..
113
+ *
114
+ * This operation does not retry by default if the user has not defined a retry configuration.
115
+ * @param AddDbnodeSnapshotsForExadbVmClusterRequest
116
+ * @return AddDbnodeSnapshotsForExadbVmClusterResponse
117
+ * @throws OciError when an error occurs
118
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/AddDbnodeSnapshotsForExadbVmCluster.ts.html |here} to see how to use AddDbnodeSnapshotsForExadbVmCluster API.
119
+ */
120
+ addDbnodeSnapshotsForExadbVmCluster(addDbnodeSnapshotsForExadbVmClusterRequest: requests.AddDbnodeSnapshotsForExadbVmClusterRequest): Promise<responses.AddDbnodeSnapshotsForExadbVmClusterResponse>;
111
121
  /**
112
122
  * Add a standby Autonomous Container Database. For more information about Autonomous Data Guard,see
113
123
  * [Protect Critical Databases from Failures and Disasters Using Autonomous Data Guard](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbau/GUID-C57B9A6E-7471-4CDC-8F10-B8386538E31C).
@@ -1262,6 +1272,16 @@ export declare class DatabaseClient {
1262
1272
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDbHome.ts.html |here} to see how to use DeleteDbHome API.
1263
1273
  */
1264
1274
  deleteDbHome(deleteDbHomeRequest: requests.DeleteDbHomeRequest): Promise<responses.DeleteDbHomeResponse>;
1275
+ /**
1276
+ * Deletes the specified Exadata Database Node Snapshot.
1277
+ *
1278
+ * This operation does not retry by default if the user has not defined a retry configuration.
1279
+ * @param DeleteDbnodeSnapshotRequest
1280
+ * @return DeleteDbnodeSnapshotResponse
1281
+ * @throws OciError when an error occurs
1282
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDbnodeSnapshot.ts.html |here} to see how to use DeleteDbnodeSnapshot API.
1283
+ */
1284
+ deleteDbnodeSnapshot(deleteDbnodeSnapshotRequest: requests.DeleteDbnodeSnapshotRequest): Promise<responses.DeleteDbnodeSnapshotResponse>;
1265
1285
  /**
1266
1286
  * Deletes the Exadata Cloud@Customer infrastructure.
1267
1287
  *
@@ -2258,6 +2278,16 @@ export declare class DatabaseClient {
2258
2278
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDbSystemUpgradeHistoryEntry.ts.html |here} to see how to use GetDbSystemUpgradeHistoryEntry API.
2259
2279
  */
2260
2280
  getDbSystemUpgradeHistoryEntry(getDbSystemUpgradeHistoryEntryRequest: requests.GetDbSystemUpgradeHistoryEntryRequest): Promise<responses.GetDbSystemUpgradeHistoryEntryResponse>;
2281
+ /**
2282
+ * Gets information about the specified Exadata Database Node Snapshot in the specified compartment.
2283
+ *
2284
+ * This operation does not retry by default if the user has not defined a retry configuration.
2285
+ * @param GetDbnodeSnapshotRequest
2286
+ * @return GetDbnodeSnapshotResponse
2287
+ * @throws OciError when an error occurs
2288
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDbnodeSnapshot.ts.html |here} to see how to use GetDbnodeSnapshot API.
2289
+ */
2290
+ getDbnodeSnapshot(getDbnodeSnapshotRequest: requests.GetDbnodeSnapshotRequest): Promise<responses.GetDbnodeSnapshotResponse>;
2261
2291
  /**
2262
2292
  * Gets information about the specified Exadata infrastructure. Applies to Exadata Cloud@Customer instances only.
2263
2293
  * To get information on an Exadata Cloud Service infrastructure resource, use the {@link #getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest) getCloudExadataInfrastructure} operation.
@@ -4397,6 +4427,48 @@ export declare class DatabaseClient {
4397
4427
  * @param request a request which can be sent to the service operation
4398
4428
  */
4399
4429
  listDbVersionsResponseIterator(request: requests.ListDbVersionsRequest): AsyncIterableIterator<responses.ListDbVersionsResponse>;
4430
+ /**
4431
+ * Gets a list of the Exadata Database Node Snapshots in the specified compartment.
4432
+ *
4433
+ * This operation does not retry by default if the user has not defined a retry configuration.
4434
+ * @param ListDbnodeSnapshotsRequest
4435
+ * @return ListDbnodeSnapshotsResponse
4436
+ * @throws OciError when an error occurs
4437
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListDbnodeSnapshots.ts.html |here} to see how to use ListDbnodeSnapshots API.
4438
+ */
4439
+ listDbnodeSnapshots(listDbnodeSnapshotsRequest: requests.ListDbnodeSnapshotsRequest): Promise<responses.ListDbnodeSnapshotsResponse>;
4440
+ /**
4441
+ * NOTE: This function is deprecated in favor of listDbnodeSnapshotsRecordIterator function.
4442
+ * Creates a new async iterator which will iterate over the models.DbnodeSnapshotSummary objects
4443
+ * contained in responses from the listDbnodeSnapshots operation. This iterator will fetch more data from the
4444
+ * server as needed.
4445
+ *
4446
+ * @param request a request which can be sent to the service operation
4447
+ */
4448
+ listAllDbnodeSnapshots(request: requests.ListDbnodeSnapshotsRequest): AsyncIterableIterator<model.DbnodeSnapshotSummary>;
4449
+ /**
4450
+ * NOTE: This function is deprecated in favor of listDbnodeSnapshotsResponseIterator function.
4451
+ * Creates a new async iterator which will iterate over the responses received from the listDbnodeSnapshots operation. This iterator
4452
+ * will fetch more data from the server as needed.
4453
+ *
4454
+ * @param request a request which can be sent to the service operation
4455
+ */
4456
+ listAllDbnodeSnapshotsResponses(request: requests.ListDbnodeSnapshotsRequest): AsyncIterableIterator<responses.ListDbnodeSnapshotsResponse>;
4457
+ /**
4458
+ * Creates a new async iterator which will iterate over the models.DbnodeSnapshotSummary objects
4459
+ * contained in responses from the listDbnodeSnapshots operation. This iterator will fetch more data from the
4460
+ * server as needed.
4461
+ *
4462
+ * @param request a request which can be sent to the service operation
4463
+ */
4464
+ listDbnodeSnapshotsRecordIterator(request: requests.ListDbnodeSnapshotsRequest): AsyncIterableIterator<model.DbnodeSnapshotSummary>;
4465
+ /**
4466
+ * Creates a new async iterator which will iterate over the responses received from the listDbnodeSnapshots operation. This iterator
4467
+ * will fetch more data from the server as needed.
4468
+ *
4469
+ * @param request a request which can be sent to the service operation
4470
+ */
4471
+ listDbnodeSnapshotsResponseIterator(request: requests.ListDbnodeSnapshotsRequest): AsyncIterableIterator<responses.ListDbnodeSnapshotsResponse>;
4400
4472
  /**
4401
4473
  * Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only.
4402
4474
  * To list the Exadata Cloud Service infrastructure resources in a compartment, use the {@link #listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest) listCloudExadataInfrastructures} operation.
@@ -5722,6 +5794,16 @@ export declare class DatabaseClient {
5722
5794
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ModifyPluggableDatabaseManagement.ts.html |here} to see how to use ModifyPluggableDatabaseManagement API.
5723
5795
  */
5724
5796
  modifyPluggableDatabaseManagement(modifyPluggableDatabaseManagementRequest: requests.ModifyPluggableDatabaseManagementRequest): Promise<responses.ModifyPluggableDatabaseManagementResponse>;
5797
+ /**
5798
+ * Mounts the snapshot for the provided dbNode.
5799
+ *
5800
+ * This operation does not retry by default if the user has not defined a retry configuration.
5801
+ * @param MountDbnodeSnapshotRequest
5802
+ * @return MountDbnodeSnapshotResponse
5803
+ * @throws OciError when an error occurs
5804
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/MountDbnodeSnapshot.ts.html |here} to see how to use MountDbnodeSnapshot API.
5805
+ */
5806
+ mountDbnodeSnapshot(mountDbnodeSnapshotRequest: requests.MountDbnodeSnapshotRequest): Promise<responses.MountDbnodeSnapshotResponse>;
5725
5807
  /**
5726
5808
  * Moves an execution action member to this execution action resource from another.
5727
5809
  *
@@ -6208,6 +6290,16 @@ export declare class DatabaseClient {
6208
6290
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/TerminateDbSystem.ts.html |here} to see how to use TerminateDbSystem API.
6209
6291
  */
6210
6292
  terminateDbSystem(terminateDbSystemRequest: requests.TerminateDbSystemRequest): Promise<responses.TerminateDbSystemResponse>;
6293
+ /**
6294
+ * Unmounts the snapshot for the provided dbNode.
6295
+ *
6296
+ * This operation does not retry by default if the user has not defined a retry configuration.
6297
+ * @param UnmountDbnodeSnapshotRequest
6298
+ * @return UnmountDbnodeSnapshotResponse
6299
+ * @throws OciError when an error occurs
6300
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UnmountDbnodeSnapshot.ts.html |here} to see how to use UnmountDbnodeSnapshot API.
6301
+ */
6302
+ unmountDbnodeSnapshot(unmountDbnodeSnapshotRequest: requests.UnmountDbnodeSnapshotRequest): Promise<responses.UnmountDbnodeSnapshotResponse>;
6211
6303
  /**
6212
6304
  * Uninstall the PKCS11 driver for given keystore type
6213
6305
  *
package/lib/client.js CHANGED
@@ -281,6 +281,78 @@ class DatabaseClient {
281
281
  }
282
282
  });
283
283
  }
284
+ /**
285
+ * Add a database node snapshots to the Exadb VM cluster..
286
+ *
287
+ * This operation does not retry by default if the user has not defined a retry configuration.
288
+ * @param AddDbnodeSnapshotsForExadbVmClusterRequest
289
+ * @return AddDbnodeSnapshotsForExadbVmClusterResponse
290
+ * @throws OciError when an error occurs
291
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/AddDbnodeSnapshotsForExadbVmCluster.ts.html |here} to see how to use AddDbnodeSnapshotsForExadbVmCluster API.
292
+ */
293
+ addDbnodeSnapshotsForExadbVmCluster(addDbnodeSnapshotsForExadbVmClusterRequest) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ if (this.logger)
296
+ this.logger.debug("Calling operation DatabaseClient#addDbnodeSnapshotsForExadbVmCluster.");
297
+ const operationName = "addDbnodeSnapshotsForExadbVmCluster";
298
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/AddDbnodeSnapshotsForExadbVmCluster";
299
+ const pathParams = {
300
+ "{exadbVmClusterId}": addDbnodeSnapshotsForExadbVmClusterRequest.exadbVmClusterId
301
+ };
302
+ const queryParams = {};
303
+ let headerParams = {
304
+ "Content-Type": common.Constants.APPLICATION_JSON,
305
+ "opc-retry-token": addDbnodeSnapshotsForExadbVmClusterRequest.opcRetryToken,
306
+ "opc-request-id": addDbnodeSnapshotsForExadbVmClusterRequest.opcRequestId,
307
+ "if-match": addDbnodeSnapshotsForExadbVmClusterRequest.ifMatch
308
+ };
309
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
310
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDbnodeSnapshotsForExadbVmClusterRequest.retryConfiguration, specRetryConfiguration);
311
+ if (this.logger)
312
+ retrier.logger = this.logger;
313
+ const request = yield oci_common_2.composeRequest({
314
+ baseEndpoint: this._endpoint,
315
+ defaultHeaders: this._defaultHeaders,
316
+ path: "/exadbVmClusters/{exadbVmClusterId}/actions/addDbNodeSnapshots",
317
+ method: "POST",
318
+ bodyContent: common.ObjectSerializer.serialize(addDbnodeSnapshotsForExadbVmClusterRequest.addDbnodeSnapshotsForExadbVmClusterDetails, "AddDbnodeSnapshotsForExadbVmClusterDetails", model.AddDbnodeSnapshotsForExadbVmClusterDetails.getJsonObj),
319
+ pathParams: pathParams,
320
+ headerParams: headerParams,
321
+ queryParams: queryParams
322
+ });
323
+ try {
324
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
325
+ const sdkResponse = oci_common_2.composeResponse({
326
+ responseObject: {},
327
+ body: yield response.json(),
328
+ bodyKey: "dbnodeSnapshots",
329
+ bodyModel: model.DbnodeSnapshots,
330
+ type: "model.DbnodeSnapshots",
331
+ responseHeaders: [
332
+ {
333
+ value: response.headers.get("opc-work-request-id"),
334
+ key: "opcWorkRequestId",
335
+ dataType: "string"
336
+ },
337
+ {
338
+ value: response.headers.get("etag"),
339
+ key: "etag",
340
+ dataType: "string"
341
+ },
342
+ {
343
+ value: response.headers.get("opc-request-id"),
344
+ key: "opcRequestId",
345
+ dataType: "string"
346
+ }
347
+ ]
348
+ });
349
+ return sdkResponse;
350
+ }
351
+ catch (err) {
352
+ throw err;
353
+ }
354
+ });
355
+ }
284
356
  /**
285
357
  * Add a standby Autonomous Container Database. For more information about Autonomous Data Guard,see
286
358
  * [Protect Critical Databases from Failures and Disasters Using Autonomous Data Guard](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbau/GUID-C57B9A6E-7471-4CDC-8F10-B8386538E31C).
@@ -7636,6 +7708,67 @@ class DatabaseClient {
7636
7708
  }
7637
7709
  });
7638
7710
  }
7711
+ /**
7712
+ * Deletes the specified Exadata Database Node Snapshot.
7713
+ *
7714
+ * This operation does not retry by default if the user has not defined a retry configuration.
7715
+ * @param DeleteDbnodeSnapshotRequest
7716
+ * @return DeleteDbnodeSnapshotResponse
7717
+ * @throws OciError when an error occurs
7718
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDbnodeSnapshot.ts.html |here} to see how to use DeleteDbnodeSnapshot API.
7719
+ */
7720
+ deleteDbnodeSnapshot(deleteDbnodeSnapshotRequest) {
7721
+ return __awaiter(this, void 0, void 0, function* () {
7722
+ if (this.logger)
7723
+ this.logger.debug("Calling operation DatabaseClient#deleteDbnodeSnapshot.");
7724
+ const operationName = "deleteDbnodeSnapshot";
7725
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbnodeSnapshot/DeleteDbnodeSnapshot";
7726
+ const pathParams = {
7727
+ "{dbnodeSnapshotId}": deleteDbnodeSnapshotRequest.dbnodeSnapshotId
7728
+ };
7729
+ const queryParams = {};
7730
+ let headerParams = {
7731
+ "Content-Type": common.Constants.APPLICATION_JSON,
7732
+ "if-match": deleteDbnodeSnapshotRequest.ifMatch,
7733
+ "opc-request-id": deleteDbnodeSnapshotRequest.opcRequestId
7734
+ };
7735
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7736
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDbnodeSnapshotRequest.retryConfiguration, specRetryConfiguration);
7737
+ if (this.logger)
7738
+ retrier.logger = this.logger;
7739
+ const request = yield oci_common_2.composeRequest({
7740
+ baseEndpoint: this._endpoint,
7741
+ defaultHeaders: this._defaultHeaders,
7742
+ path: "/dbnodeSnapshots/{dbnodeSnapshotId}",
7743
+ method: "DELETE",
7744
+ pathParams: pathParams,
7745
+ headerParams: headerParams,
7746
+ queryParams: queryParams
7747
+ });
7748
+ try {
7749
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7750
+ const sdkResponse = oci_common_2.composeResponse({
7751
+ responseObject: {},
7752
+ responseHeaders: [
7753
+ {
7754
+ value: response.headers.get("opc-work-request-id"),
7755
+ key: "opcWorkRequestId",
7756
+ dataType: "string"
7757
+ },
7758
+ {
7759
+ value: response.headers.get("opc-request-id"),
7760
+ key: "opcRequestId",
7761
+ dataType: "string"
7762
+ }
7763
+ ]
7764
+ });
7765
+ return sdkResponse;
7766
+ }
7767
+ catch (err) {
7768
+ throw err;
7769
+ }
7770
+ });
7771
+ }
7639
7772
  /**
7640
7773
  * Deletes the Exadata Cloud@Customer infrastructure.
7641
7774
  *
@@ -13894,6 +14027,70 @@ class DatabaseClient {
13894
14027
  }
13895
14028
  });
13896
14029
  }
14030
+ /**
14031
+ * Gets information about the specified Exadata Database Node Snapshot in the specified compartment.
14032
+ *
14033
+ * This operation does not retry by default if the user has not defined a retry configuration.
14034
+ * @param GetDbnodeSnapshotRequest
14035
+ * @return GetDbnodeSnapshotResponse
14036
+ * @throws OciError when an error occurs
14037
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDbnodeSnapshot.ts.html |here} to see how to use GetDbnodeSnapshot API.
14038
+ */
14039
+ getDbnodeSnapshot(getDbnodeSnapshotRequest) {
14040
+ return __awaiter(this, void 0, void 0, function* () {
14041
+ if (this.logger)
14042
+ this.logger.debug("Calling operation DatabaseClient#getDbnodeSnapshot.");
14043
+ const operationName = "getDbnodeSnapshot";
14044
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbnodeSnapshot/GetDbnodeSnapshot";
14045
+ const pathParams = {
14046
+ "{dbnodeSnapshotId}": getDbnodeSnapshotRequest.dbnodeSnapshotId
14047
+ };
14048
+ const queryParams = {};
14049
+ let headerParams = {
14050
+ "Content-Type": common.Constants.APPLICATION_JSON,
14051
+ "opc-request-id": getDbnodeSnapshotRequest.opcRequestId
14052
+ };
14053
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
14054
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDbnodeSnapshotRequest.retryConfiguration, specRetryConfiguration);
14055
+ if (this.logger)
14056
+ retrier.logger = this.logger;
14057
+ const request = yield oci_common_2.composeRequest({
14058
+ baseEndpoint: this._endpoint,
14059
+ defaultHeaders: this._defaultHeaders,
14060
+ path: "/dbnodeSnapshots/{dbnodeSnapshotId}",
14061
+ method: "GET",
14062
+ pathParams: pathParams,
14063
+ headerParams: headerParams,
14064
+ queryParams: queryParams
14065
+ });
14066
+ try {
14067
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
14068
+ const sdkResponse = oci_common_2.composeResponse({
14069
+ responseObject: {},
14070
+ body: yield response.json(),
14071
+ bodyKey: "dbnodeSnapshot",
14072
+ bodyModel: model.DbnodeSnapshot,
14073
+ type: "model.DbnodeSnapshot",
14074
+ responseHeaders: [
14075
+ {
14076
+ value: response.headers.get("etag"),
14077
+ key: "etag",
14078
+ dataType: "string"
14079
+ },
14080
+ {
14081
+ value: response.headers.get("opc-request-id"),
14082
+ key: "opcRequestId",
14083
+ dataType: "string"
14084
+ }
14085
+ ]
14086
+ });
14087
+ return sdkResponse;
14088
+ }
14089
+ catch (err) {
14090
+ throw err;
14091
+ }
14092
+ });
14093
+ }
13897
14094
  /**
13898
14095
  * Gets information about the specified Exadata infrastructure. Applies to Exadata Cloud@Customer instances only.
13899
14096
  * To get information on an Exadata Cloud Service infrastructure resource, use the {@link #getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest) getCloudExadataInfrastructure} operation.
@@ -21142,6 +21339,118 @@ class DatabaseClient {
21142
21339
  listDbVersionsResponseIterator(request) {
21143
21340
  return oci_common_1.paginateResponses(request, req => this.listDbVersions(req));
21144
21341
  }
21342
+ /**
21343
+ * Gets a list of the Exadata Database Node Snapshots in the specified compartment.
21344
+ *
21345
+ * This operation does not retry by default if the user has not defined a retry configuration.
21346
+ * @param ListDbnodeSnapshotsRequest
21347
+ * @return ListDbnodeSnapshotsResponse
21348
+ * @throws OciError when an error occurs
21349
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListDbnodeSnapshots.ts.html |here} to see how to use ListDbnodeSnapshots API.
21350
+ */
21351
+ listDbnodeSnapshots(listDbnodeSnapshotsRequest) {
21352
+ return __awaiter(this, void 0, void 0, function* () {
21353
+ if (this.logger)
21354
+ this.logger.debug("Calling operation DatabaseClient#listDbnodeSnapshots.");
21355
+ const operationName = "listDbnodeSnapshots";
21356
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbnodeSnapshot/ListDbnodeSnapshots";
21357
+ const pathParams = {};
21358
+ const queryParams = {
21359
+ "compartmentId": listDbnodeSnapshotsRequest.compartmentId,
21360
+ "limit": listDbnodeSnapshotsRequest.limit,
21361
+ "page": listDbnodeSnapshotsRequest.page,
21362
+ "sortBy": listDbnodeSnapshotsRequest.sortBy,
21363
+ "name": listDbnodeSnapshotsRequest.name,
21364
+ "sortOrder": listDbnodeSnapshotsRequest.sortOrder,
21365
+ "lifecycleState": listDbnodeSnapshotsRequest.lifecycleState,
21366
+ "clusterId": listDbnodeSnapshotsRequest.clusterId,
21367
+ "sourceDbnodeId": listDbnodeSnapshotsRequest.sourceDbnodeId
21368
+ };
21369
+ let headerParams = {
21370
+ "Content-Type": common.Constants.APPLICATION_JSON,
21371
+ "opc-request-id": listDbnodeSnapshotsRequest.opcRequestId
21372
+ };
21373
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
21374
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDbnodeSnapshotsRequest.retryConfiguration, specRetryConfiguration);
21375
+ if (this.logger)
21376
+ retrier.logger = this.logger;
21377
+ const request = yield oci_common_2.composeRequest({
21378
+ baseEndpoint: this._endpoint,
21379
+ defaultHeaders: this._defaultHeaders,
21380
+ path: "/dbnodeSnapshots",
21381
+ method: "GET",
21382
+ pathParams: pathParams,
21383
+ headerParams: headerParams,
21384
+ queryParams: queryParams
21385
+ });
21386
+ try {
21387
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
21388
+ const sdkResponse = oci_common_2.composeResponse({
21389
+ responseObject: {},
21390
+ body: yield response.json(),
21391
+ bodyKey: "items",
21392
+ bodyModel: model.DbnodeSnapshotSummary,
21393
+ type: "Array<model.DbnodeSnapshotSummary>",
21394
+ responseHeaders: [
21395
+ {
21396
+ value: response.headers.get("opc-request-id"),
21397
+ key: "opcRequestId",
21398
+ dataType: "string"
21399
+ },
21400
+ {
21401
+ value: response.headers.get("opc-next-page"),
21402
+ key: "opcNextPage",
21403
+ dataType: "string"
21404
+ }
21405
+ ]
21406
+ });
21407
+ return sdkResponse;
21408
+ }
21409
+ catch (err) {
21410
+ throw err;
21411
+ }
21412
+ });
21413
+ }
21414
+ /**
21415
+ * NOTE: This function is deprecated in favor of listDbnodeSnapshotsRecordIterator function.
21416
+ * Creates a new async iterator which will iterate over the models.DbnodeSnapshotSummary objects
21417
+ * contained in responses from the listDbnodeSnapshots operation. This iterator will fetch more data from the
21418
+ * server as needed.
21419
+ *
21420
+ * @param request a request which can be sent to the service operation
21421
+ */
21422
+ listAllDbnodeSnapshots(request) {
21423
+ return oci_common_1.paginateRecords(request, req => this.listDbnodeSnapshots(req));
21424
+ }
21425
+ /**
21426
+ * NOTE: This function is deprecated in favor of listDbnodeSnapshotsResponseIterator function.
21427
+ * Creates a new async iterator which will iterate over the responses received from the listDbnodeSnapshots operation. This iterator
21428
+ * will fetch more data from the server as needed.
21429
+ *
21430
+ * @param request a request which can be sent to the service operation
21431
+ */
21432
+ listAllDbnodeSnapshotsResponses(request) {
21433
+ return oci_common_1.paginateResponses(request, req => this.listDbnodeSnapshots(req));
21434
+ }
21435
+ /**
21436
+ * Creates a new async iterator which will iterate over the models.DbnodeSnapshotSummary objects
21437
+ * contained in responses from the listDbnodeSnapshots operation. This iterator will fetch more data from the
21438
+ * server as needed.
21439
+ *
21440
+ * @param request a request which can be sent to the service operation
21441
+ */
21442
+ listDbnodeSnapshotsRecordIterator(request) {
21443
+ return oci_common_1.paginateRecords(request, req => this.listDbnodeSnapshots(req));
21444
+ }
21445
+ /**
21446
+ * Creates a new async iterator which will iterate over the responses received from the listDbnodeSnapshots operation. This iterator
21447
+ * will fetch more data from the server as needed.
21448
+ *
21449
+ * @param request a request which can be sent to the service operation
21450
+ */
21451
+ listDbnodeSnapshotsResponseIterator(request) {
21452
+ return oci_common_1.paginateResponses(request, req => this.listDbnodeSnapshots(req));
21453
+ }
21145
21454
  /**
21146
21455
  * Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only.
21147
21456
  * To list the Exadata Cloud Service infrastructure resources in a compartment, use the {@link #listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest) listCloudExadataInfrastructures} operation.
@@ -25300,6 +25609,78 @@ class DatabaseClient {
25300
25609
  }
25301
25610
  });
25302
25611
  }
25612
+ /**
25613
+ * Mounts the snapshot for the provided dbNode.
25614
+ *
25615
+ * This operation does not retry by default if the user has not defined a retry configuration.
25616
+ * @param MountDbnodeSnapshotRequest
25617
+ * @return MountDbnodeSnapshotResponse
25618
+ * @throws OciError when an error occurs
25619
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/MountDbnodeSnapshot.ts.html |here} to see how to use MountDbnodeSnapshot API.
25620
+ */
25621
+ mountDbnodeSnapshot(mountDbnodeSnapshotRequest) {
25622
+ return __awaiter(this, void 0, void 0, function* () {
25623
+ if (this.logger)
25624
+ this.logger.debug("Calling operation DatabaseClient#mountDbnodeSnapshot.");
25625
+ const operationName = "mountDbnodeSnapshot";
25626
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbnodeSnapshot/MountDbnodeSnapshot";
25627
+ const pathParams = {
25628
+ "{dbnodeSnapshotId}": mountDbnodeSnapshotRequest.dbnodeSnapshotId
25629
+ };
25630
+ const queryParams = {};
25631
+ let headerParams = {
25632
+ "Content-Type": common.Constants.APPLICATION_JSON,
25633
+ "opc-retry-token": mountDbnodeSnapshotRequest.opcRetryToken,
25634
+ "opc-request-id": mountDbnodeSnapshotRequest.opcRequestId,
25635
+ "if-match": mountDbnodeSnapshotRequest.ifMatch
25636
+ };
25637
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
25638
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, mountDbnodeSnapshotRequest.retryConfiguration, specRetryConfiguration);
25639
+ if (this.logger)
25640
+ retrier.logger = this.logger;
25641
+ const request = yield oci_common_2.composeRequest({
25642
+ baseEndpoint: this._endpoint,
25643
+ defaultHeaders: this._defaultHeaders,
25644
+ path: "/dbnodeSnapshots/{dbnodeSnapshotId}/actions/mount",
25645
+ method: "POST",
25646
+ bodyContent: common.ObjectSerializer.serialize(mountDbnodeSnapshotRequest.mountDbnodeSnapshotDetails, "MountDbnodeSnapshotDetails", model.MountDbnodeSnapshotDetails.getJsonObj),
25647
+ pathParams: pathParams,
25648
+ headerParams: headerParams,
25649
+ queryParams: queryParams
25650
+ });
25651
+ try {
25652
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
25653
+ const sdkResponse = oci_common_2.composeResponse({
25654
+ responseObject: {},
25655
+ body: yield response.json(),
25656
+ bodyKey: "dbnodeSnapshot",
25657
+ bodyModel: model.DbnodeSnapshot,
25658
+ type: "model.DbnodeSnapshot",
25659
+ responseHeaders: [
25660
+ {
25661
+ value: response.headers.get("opc-work-request-id"),
25662
+ key: "opcWorkRequestId",
25663
+ dataType: "string"
25664
+ },
25665
+ {
25666
+ value: response.headers.get("opc-request-id"),
25667
+ key: "opcRequestId",
25668
+ dataType: "string"
25669
+ },
25670
+ {
25671
+ value: response.headers.get("etag"),
25672
+ key: "etag",
25673
+ dataType: "string"
25674
+ }
25675
+ ]
25676
+ });
25677
+ return sdkResponse;
25678
+ }
25679
+ catch (err) {
25680
+ throw err;
25681
+ }
25682
+ });
25683
+ }
25303
25684
  /**
25304
25685
  * Moves an execution action member to this execution action resource from another.
25305
25686
  *
@@ -28544,6 +28925,78 @@ class DatabaseClient {
28544
28925
  }
28545
28926
  });
28546
28927
  }
28928
+ /**
28929
+ * Unmounts the snapshot for the provided dbNode.
28930
+ *
28931
+ * This operation does not retry by default if the user has not defined a retry configuration.
28932
+ * @param UnmountDbnodeSnapshotRequest
28933
+ * @return UnmountDbnodeSnapshotResponse
28934
+ * @throws OciError when an error occurs
28935
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UnmountDbnodeSnapshot.ts.html |here} to see how to use UnmountDbnodeSnapshot API.
28936
+ */
28937
+ unmountDbnodeSnapshot(unmountDbnodeSnapshotRequest) {
28938
+ return __awaiter(this, void 0, void 0, function* () {
28939
+ if (this.logger)
28940
+ this.logger.debug("Calling operation DatabaseClient#unmountDbnodeSnapshot.");
28941
+ const operationName = "unmountDbnodeSnapshot";
28942
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbnodeSnapshot/UnmountDbnodeSnapshot";
28943
+ const pathParams = {
28944
+ "{dbnodeSnapshotId}": unmountDbnodeSnapshotRequest.dbnodeSnapshotId
28945
+ };
28946
+ const queryParams = {};
28947
+ let headerParams = {
28948
+ "Content-Type": common.Constants.APPLICATION_JSON,
28949
+ "opc-retry-token": unmountDbnodeSnapshotRequest.opcRetryToken,
28950
+ "opc-request-id": unmountDbnodeSnapshotRequest.opcRequestId,
28951
+ "if-match": unmountDbnodeSnapshotRequest.ifMatch
28952
+ };
28953
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
28954
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, unmountDbnodeSnapshotRequest.retryConfiguration, specRetryConfiguration);
28955
+ if (this.logger)
28956
+ retrier.logger = this.logger;
28957
+ const request = yield oci_common_2.composeRequest({
28958
+ baseEndpoint: this._endpoint,
28959
+ defaultHeaders: this._defaultHeaders,
28960
+ path: "/dbnodeSnapshots/{dbnodeSnapshotId}/actions/unmount",
28961
+ method: "POST",
28962
+ bodyContent: common.ObjectSerializer.serialize(unmountDbnodeSnapshotRequest.unmountDbnodeSnapshotDetails, "UnmountDbnodeSnapshotDetails", model.UnmountDbnodeSnapshotDetails.getJsonObj),
28963
+ pathParams: pathParams,
28964
+ headerParams: headerParams,
28965
+ queryParams: queryParams
28966
+ });
28967
+ try {
28968
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
28969
+ const sdkResponse = oci_common_2.composeResponse({
28970
+ responseObject: {},
28971
+ body: yield response.json(),
28972
+ bodyKey: "dbnodeSnapshot",
28973
+ bodyModel: model.DbnodeSnapshot,
28974
+ type: "model.DbnodeSnapshot",
28975
+ responseHeaders: [
28976
+ {
28977
+ value: response.headers.get("opc-work-request-id"),
28978
+ key: "opcWorkRequestId",
28979
+ dataType: "string"
28980
+ },
28981
+ {
28982
+ value: response.headers.get("opc-request-id"),
28983
+ key: "opcRequestId",
28984
+ dataType: "string"
28985
+ },
28986
+ {
28987
+ value: response.headers.get("etag"),
28988
+ key: "etag",
28989
+ dataType: "string"
28990
+ }
28991
+ ]
28992
+ });
28993
+ return sdkResponse;
28994
+ }
28995
+ catch (err) {
28996
+ throw err;
28997
+ }
28998
+ });
28999
+ }
28547
29000
  /**
28548
29001
  * Uninstall the PKCS11 driver for given keystore type
28549
29002
  *