oci-database 2.143.0 → 2.145.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 +50 -0
  2. package/lib/client.js +333 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/database-waiter.d.ts +28 -0
  5. package/lib/database-waiter.js +48 -0
  6. package/lib/database-waiter.js.map +1 -1
  7. package/lib/model/clone-database-details.d.ts +98 -0
  8. package/lib/model/clone-database-details.js +82 -0
  9. package/lib/model/clone-database-details.js.map +1 -0
  10. package/lib/model/create-clone-database-from-database.d.ts +29 -0
  11. package/lib/model/create-clone-database-from-database.js +61 -0
  12. package/lib/model/create-clone-database-from-database.js.map +1 -0
  13. package/lib/model/create-database-base.js +8 -0
  14. package/lib/model/create-database-base.js.map +1 -1
  15. package/lib/model/create-database-from-snapshot-details.d.ts +98 -0
  16. package/lib/model/create-database-from-snapshot-details.js +82 -0
  17. package/lib/model/create-database-from-snapshot-details.js.map +1 -0
  18. package/lib/model/create-database-from-snapshot.d.ts +28 -0
  19. package/lib/model/create-database-from-snapshot.js +63 -0
  20. package/lib/model/create-database-from-snapshot.js.map +1 -0
  21. package/lib/model/create-database-snapshot-details.d.ts +51 -0
  22. package/lib/model/create-database-snapshot-details.js +30 -0
  23. package/lib/model/create-database-snapshot-details.js.map +1 -0
  24. package/lib/model/database-snapshot-collection.d.ts +27 -0
  25. package/lib/model/database-snapshot-collection.js +62 -0
  26. package/lib/model/database-snapshot-collection.js.map +1 -0
  27. package/lib/model/database-snapshot-summary.d.ts +86 -0
  28. package/lib/model/database-snapshot-summary.js +30 -0
  29. package/lib/model/database-snapshot-summary.js.map +1 -0
  30. package/lib/model/database-snapshot.d.ts +98 -0
  31. package/lib/model/database-snapshot.js +43 -0
  32. package/lib/model/database-snapshot.js.map +1 -0
  33. package/lib/model/index.d.ts +18 -0
  34. package/lib/model/index.js +28 -10
  35. package/lib/model/index.js.map +1 -1
  36. package/lib/model/update-database-snapshot-details.d.ts +43 -0
  37. package/lib/model/update-database-snapshot-details.js +30 -0
  38. package/lib/model/update-database-snapshot-details.js.map +1 -0
  39. package/lib/request/create-database-request.d.ts +1 -1
  40. package/lib/request/create-database-snapshot-request.d.ts +38 -0
  41. package/lib/request/create-database-snapshot-request.js +15 -0
  42. package/lib/request/create-database-snapshot-request.js.map +1 -0
  43. package/lib/request/delete-database-snapshot-request.d.ts +34 -0
  44. package/lib/request/delete-database-snapshot-request.js +15 -0
  45. package/lib/request/delete-database-snapshot-request.js.map +1 -0
  46. package/lib/request/get-database-snapshot-request.d.ts +27 -0
  47. package/lib/request/get-database-snapshot-request.js +15 -0
  48. package/lib/request/get-database-snapshot-request.js.map +1 -0
  49. package/lib/request/index.d.ts +10 -0
  50. package/lib/request/index.js +4 -2
  51. package/lib/request/index.js.map +1 -1
  52. package/lib/request/list-database-snapshots-request.d.ts +70 -0
  53. package/lib/request/list-database-snapshots-request.js +29 -0
  54. package/lib/request/list-database-snapshots-request.js.map +1 -0
  55. package/lib/request/update-database-snapshot-request.d.ts +49 -0
  56. package/lib/request/update-database-snapshot-request.js +15 -0
  57. package/lib/request/update-database-snapshot-request.js.map +1 -0
  58. package/lib/response/create-database-snapshot-response.d.ts +34 -0
  59. package/lib/response/create-database-snapshot-response.js +15 -0
  60. package/lib/response/create-database-snapshot-response.js.map +1 -0
  61. package/lib/response/delete-database-snapshot-response.d.ts +25 -0
  62. package/lib/response/delete-database-snapshot-response.js +15 -0
  63. package/lib/response/delete-database-snapshot-response.js.map +1 -0
  64. package/lib/response/get-database-snapshot-response.d.ts +29 -0
  65. package/lib/response/get-database-snapshot-response.js +15 -0
  66. package/lib/response/get-database-snapshot-response.js.map +1 -0
  67. package/lib/response/index.d.ts +10 -0
  68. package/lib/response/list-database-snapshots-response.d.ts +33 -0
  69. package/lib/response/list-database-snapshots-response.js +15 -0
  70. package/lib/response/list-database-snapshots-response.js.map +1 -0
  71. package/lib/response/update-database-snapshot-response.d.ts +29 -0
  72. package/lib/response/update-database-snapshot-response.js +15 -0
  73. package/lib/response/update-database-snapshot-response.js.map +1 -0
  74. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -893,6 +893,16 @@ export declare class DatabaseClient {
893
893
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreateDatabase.ts.html |here} to see how to use CreateDatabase API.
894
894
  */
895
895
  createDatabase(createDatabaseRequest: requests.CreateDatabaseRequest): Promise<responses.CreateDatabaseResponse>;
896
+ /**
897
+ * Creates a Database Snapshot
898
+ *
899
+ * This operation does not retry by default if the user has not defined a retry configuration.
900
+ * @param CreateDatabaseSnapshotRequest
901
+ * @return CreateDatabaseSnapshotResponse
902
+ * @throws OciError when an error occurs
903
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreateDatabaseSnapshot.ts.html |here} to see how to use CreateDatabaseSnapshot API.
904
+ */
905
+ createDatabaseSnapshot(createDatabaseSnapshotRequest: requests.CreateDatabaseSnapshotRequest): Promise<responses.CreateDatabaseSnapshotResponse>;
896
906
  /**
897
907
  * create database software image in the specified compartment.
898
908
  *
@@ -1312,6 +1322,16 @@ export declare class DatabaseClient {
1312
1322
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDatabase.ts.html |here} to see how to use DeleteDatabase API.
1313
1323
  */
1314
1324
  deleteDatabase(deleteDatabaseRequest: requests.DeleteDatabaseRequest): Promise<responses.DeleteDatabaseResponse>;
1325
+ /**
1326
+ * Deletes the specified Exadata Database Snapshot.
1327
+ *
1328
+ * This operation does not retry by default if the user has not defined a retry configuration.
1329
+ * @param DeleteDatabaseSnapshotRequest
1330
+ * @return DeleteDatabaseSnapshotResponse
1331
+ * @throws OciError when an error occurs
1332
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDatabaseSnapshot.ts.html |here} to see how to use DeleteDatabaseSnapshot API.
1333
+ */
1334
+ deleteDatabaseSnapshot(deleteDatabaseSnapshotRequest: requests.DeleteDatabaseSnapshotRequest): Promise<responses.DeleteDatabaseSnapshotResponse>;
1315
1335
  /**
1316
1336
  * Delete a database software image
1317
1337
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2309,6 +2329,16 @@ export declare class DatabaseClient {
2309
2329
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDatabase.ts.html |here} to see how to use GetDatabase API.
2310
2330
  */
2311
2331
  getDatabase(getDatabaseRequest: requests.GetDatabaseRequest): Promise<responses.GetDatabaseResponse>;
2332
+ /**
2333
+ * Gets information about the specified Exadata Database Snapshot.
2334
+ *
2335
+ * This operation does not retry by default if the user has not defined a retry configuration.
2336
+ * @param GetDatabaseSnapshotRequest
2337
+ * @return GetDatabaseSnapshotResponse
2338
+ * @throws OciError when an error occurs
2339
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDatabaseSnapshot.ts.html |here} to see how to use GetDatabaseSnapshot API.
2340
+ */
2341
+ getDatabaseSnapshot(getDatabaseSnapshotRequest: requests.GetDatabaseSnapshotRequest): Promise<responses.GetDatabaseSnapshotResponse>;
2312
2342
  /**
2313
2343
  * Gets information about the specified database software image.
2314
2344
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -4110,6 +4140,16 @@ export declare class DatabaseClient {
4110
4140
  * @param request a request which can be sent to the service operation
4111
4141
  */
4112
4142
  listDataGuardAssociationsResponseIterator(request: requests.ListDataGuardAssociationsRequest): AsyncIterableIterator<responses.ListDataGuardAssociationsResponse>;
4143
+ /**
4144
+ * Gets a list of the Exadata Database Snapshots in the specified compartment.
4145
+ *
4146
+ * This operation does not retry by default if the user has not defined a retry configuration.
4147
+ * @param ListDatabaseSnapshotsRequest
4148
+ * @return ListDatabaseSnapshotsResponse
4149
+ * @throws OciError when an error occurs
4150
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListDatabaseSnapshots.ts.html |here} to see how to use ListDatabaseSnapshots API.
4151
+ */
4152
+ listDatabaseSnapshots(listDatabaseSnapshotsRequest: requests.ListDatabaseSnapshotsRequest): Promise<responses.ListDatabaseSnapshotsResponse>;
4113
4153
  /**
4114
4154
  * Gets a list of the database software images in the specified compartment.
4115
4155
  *
@@ -7045,6 +7085,16 @@ export declare class DatabaseClient {
7045
7085
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UpdateDatabase.ts.html |here} to see how to use UpdateDatabase API.
7046
7086
  */
7047
7087
  updateDatabase(updateDatabaseRequest: requests.UpdateDatabaseRequest): Promise<responses.UpdateDatabaseResponse>;
7088
+ /**
7089
+ * Updates a Database Snapshot
7090
+ *
7091
+ * This operation does not retry by default if the user has not defined a retry configuration.
7092
+ * @param UpdateDatabaseSnapshotRequest
7093
+ * @return UpdateDatabaseSnapshotResponse
7094
+ * @throws OciError when an error occurs
7095
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UpdateDatabaseSnapshot.ts.html |here} to see how to use UpdateDatabaseSnapshot API.
7096
+ */
7097
+ updateDatabaseSnapshot(updateDatabaseSnapshotRequest: requests.UpdateDatabaseSnapshotRequest): Promise<responses.UpdateDatabaseSnapshotResponse>;
7048
7098
  /**
7049
7099
  * Updates the properties of a Database Software Image, like Display Nmae
7050
7100
  * This operation does not retry by default if the user has not defined a retry configuration.
package/lib/client.js CHANGED
@@ -5322,6 +5322,75 @@ class DatabaseClient {
5322
5322
  }
5323
5323
  });
5324
5324
  }
5325
+ /**
5326
+ * Creates a Database Snapshot
5327
+ *
5328
+ * This operation does not retry by default if the user has not defined a retry configuration.
5329
+ * @param CreateDatabaseSnapshotRequest
5330
+ * @return CreateDatabaseSnapshotResponse
5331
+ * @throws OciError when an error occurs
5332
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreateDatabaseSnapshot.ts.html |here} to see how to use CreateDatabaseSnapshot API.
5333
+ */
5334
+ createDatabaseSnapshot(createDatabaseSnapshotRequest) {
5335
+ return __awaiter(this, void 0, void 0, function* () {
5336
+ if (this.logger)
5337
+ this.logger.debug("Calling operation DatabaseClient#createDatabaseSnapshot.");
5338
+ const operationName = "createDatabaseSnapshot";
5339
+ const apiReferenceLink = "";
5340
+ const pathParams = {};
5341
+ const queryParams = {};
5342
+ let headerParams = {
5343
+ "Content-Type": common.Constants.APPLICATION_JSON,
5344
+ "opc-retry-token": createDatabaseSnapshotRequest.opcRetryToken,
5345
+ "opc-request-id": createDatabaseSnapshotRequest.opcRequestId
5346
+ };
5347
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
5348
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
5349
+ if (this.logger)
5350
+ retrier.logger = this.logger;
5351
+ const request = yield oci_common_2.composeRequest({
5352
+ baseEndpoint: this._endpoint,
5353
+ defaultHeaders: this._defaultHeaders,
5354
+ path: "/databaseSnapshots",
5355
+ method: "POST",
5356
+ bodyContent: common.ObjectSerializer.serialize(createDatabaseSnapshotRequest.createDatabaseSnapshotDetails, "CreateDatabaseSnapshotDetails", model.CreateDatabaseSnapshotDetails.getJsonObj),
5357
+ pathParams: pathParams,
5358
+ headerParams: headerParams,
5359
+ queryParams: queryParams
5360
+ });
5361
+ try {
5362
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5363
+ const sdkResponse = oci_common_2.composeResponse({
5364
+ responseObject: {},
5365
+ body: yield response.json(),
5366
+ bodyKey: "databaseSnapshot",
5367
+ bodyModel: model.DatabaseSnapshot,
5368
+ type: "model.DatabaseSnapshot",
5369
+ responseHeaders: [
5370
+ {
5371
+ value: response.headers.get("opc-work-request-id"),
5372
+ key: "opcWorkRequestId",
5373
+ dataType: "string"
5374
+ },
5375
+ {
5376
+ value: response.headers.get("etag"),
5377
+ key: "etag",
5378
+ dataType: "string"
5379
+ },
5380
+ {
5381
+ value: response.headers.get("opc-request-id"),
5382
+ key: "opcRequestId",
5383
+ dataType: "string"
5384
+ }
5385
+ ]
5386
+ });
5387
+ return sdkResponse;
5388
+ }
5389
+ catch (err) {
5390
+ throw err;
5391
+ }
5392
+ });
5393
+ }
5325
5394
  /**
5326
5395
  * create database software image in the specified compartment.
5327
5396
  *
@@ -7978,6 +8047,67 @@ class DatabaseClient {
7978
8047
  }
7979
8048
  });
7980
8049
  }
8050
+ /**
8051
+ * Deletes the specified Exadata Database Snapshot.
8052
+ *
8053
+ * This operation does not retry by default if the user has not defined a retry configuration.
8054
+ * @param DeleteDatabaseSnapshotRequest
8055
+ * @return DeleteDatabaseSnapshotResponse
8056
+ * @throws OciError when an error occurs
8057
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeleteDatabaseSnapshot.ts.html |here} to see how to use DeleteDatabaseSnapshot API.
8058
+ */
8059
+ deleteDatabaseSnapshot(deleteDatabaseSnapshotRequest) {
8060
+ return __awaiter(this, void 0, void 0, function* () {
8061
+ if (this.logger)
8062
+ this.logger.debug("Calling operation DatabaseClient#deleteDatabaseSnapshot.");
8063
+ const operationName = "deleteDatabaseSnapshot";
8064
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSnapshot/DeleteDatabaseSnapshot";
8065
+ const pathParams = {
8066
+ "{databaseSnapshotId}": deleteDatabaseSnapshotRequest.databaseSnapshotId
8067
+ };
8068
+ const queryParams = {};
8069
+ let headerParams = {
8070
+ "Content-Type": common.Constants.APPLICATION_JSON,
8071
+ "if-match": deleteDatabaseSnapshotRequest.ifMatch,
8072
+ "opc-request-id": deleteDatabaseSnapshotRequest.opcRequestId
8073
+ };
8074
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
8075
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
8076
+ if (this.logger)
8077
+ retrier.logger = this.logger;
8078
+ const request = yield oci_common_2.composeRequest({
8079
+ baseEndpoint: this._endpoint,
8080
+ defaultHeaders: this._defaultHeaders,
8081
+ path: "/databaseSnapshots/{databaseSnapshotId}",
8082
+ method: "DELETE",
8083
+ pathParams: pathParams,
8084
+ headerParams: headerParams,
8085
+ queryParams: queryParams
8086
+ });
8087
+ try {
8088
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8089
+ const sdkResponse = oci_common_2.composeResponse({
8090
+ responseObject: {},
8091
+ responseHeaders: [
8092
+ {
8093
+ value: response.headers.get("opc-work-request-id"),
8094
+ key: "opcWorkRequestId",
8095
+ dataType: "string"
8096
+ },
8097
+ {
8098
+ value: response.headers.get("opc-request-id"),
8099
+ key: "opcRequestId",
8100
+ dataType: "string"
8101
+ }
8102
+ ]
8103
+ });
8104
+ return sdkResponse;
8105
+ }
8106
+ catch (err) {
8107
+ throw err;
8108
+ }
8109
+ });
8110
+ }
7981
8111
  /**
7982
8112
  * Delete a database software image
7983
8113
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -14258,6 +14388,70 @@ class DatabaseClient {
14258
14388
  }
14259
14389
  });
14260
14390
  }
14391
+ /**
14392
+ * Gets information about the specified Exadata Database Snapshot.
14393
+ *
14394
+ * This operation does not retry by default if the user has not defined a retry configuration.
14395
+ * @param GetDatabaseSnapshotRequest
14396
+ * @return GetDatabaseSnapshotResponse
14397
+ * @throws OciError when an error occurs
14398
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetDatabaseSnapshot.ts.html |here} to see how to use GetDatabaseSnapshot API.
14399
+ */
14400
+ getDatabaseSnapshot(getDatabaseSnapshotRequest) {
14401
+ return __awaiter(this, void 0, void 0, function* () {
14402
+ if (this.logger)
14403
+ this.logger.debug("Calling operation DatabaseClient#getDatabaseSnapshot.");
14404
+ const operationName = "getDatabaseSnapshot";
14405
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSnapshot/GetDatabaseSnapshot";
14406
+ const pathParams = {
14407
+ "{databaseSnapshotId}": getDatabaseSnapshotRequest.databaseSnapshotId
14408
+ };
14409
+ const queryParams = {};
14410
+ let headerParams = {
14411
+ "Content-Type": common.Constants.APPLICATION_JSON,
14412
+ "opc-request-id": getDatabaseSnapshotRequest.opcRequestId
14413
+ };
14414
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
14415
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
14416
+ if (this.logger)
14417
+ retrier.logger = this.logger;
14418
+ const request = yield oci_common_2.composeRequest({
14419
+ baseEndpoint: this._endpoint,
14420
+ defaultHeaders: this._defaultHeaders,
14421
+ path: "/databaseSnapshots/{databaseSnapshotId}",
14422
+ method: "GET",
14423
+ pathParams: pathParams,
14424
+ headerParams: headerParams,
14425
+ queryParams: queryParams
14426
+ });
14427
+ try {
14428
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
14429
+ const sdkResponse = oci_common_2.composeResponse({
14430
+ responseObject: {},
14431
+ body: yield response.json(),
14432
+ bodyKey: "databaseSnapshot",
14433
+ bodyModel: model.DatabaseSnapshot,
14434
+ type: "model.DatabaseSnapshot",
14435
+ responseHeaders: [
14436
+ {
14437
+ value: response.headers.get("etag"),
14438
+ key: "etag",
14439
+ dataType: "string"
14440
+ },
14441
+ {
14442
+ value: response.headers.get("opc-request-id"),
14443
+ key: "opcRequestId",
14444
+ dataType: "string"
14445
+ }
14446
+ ]
14447
+ });
14448
+ return sdkResponse;
14449
+ }
14450
+ catch (err) {
14451
+ throw err;
14452
+ }
14453
+ });
14454
+ }
14261
14455
  /**
14262
14456
  * Gets information about the specified database software image.
14263
14457
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -21278,6 +21472,78 @@ class DatabaseClient {
21278
21472
  listDataGuardAssociationsResponseIterator(request) {
21279
21473
  return oci_common_1.paginateResponses(request, req => this.listDataGuardAssociations(req));
21280
21474
  }
21475
+ /**
21476
+ * Gets a list of the Exadata Database Snapshots in the specified compartment.
21477
+ *
21478
+ * This operation does not retry by default if the user has not defined a retry configuration.
21479
+ * @param ListDatabaseSnapshotsRequest
21480
+ * @return ListDatabaseSnapshotsResponse
21481
+ * @throws OciError when an error occurs
21482
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListDatabaseSnapshots.ts.html |here} to see how to use ListDatabaseSnapshots API.
21483
+ */
21484
+ listDatabaseSnapshots(listDatabaseSnapshotsRequest) {
21485
+ return __awaiter(this, void 0, void 0, function* () {
21486
+ if (this.logger)
21487
+ this.logger.debug("Calling operation DatabaseClient#listDatabaseSnapshots.");
21488
+ const operationName = "listDatabaseSnapshots";
21489
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSnapshot/ListDatabaseSnapshots";
21490
+ const pathParams = {};
21491
+ const queryParams = {
21492
+ "compartmentId": listDatabaseSnapshotsRequest.compartmentId,
21493
+ "limit": listDatabaseSnapshotsRequest.limit,
21494
+ "page": listDatabaseSnapshotsRequest.page,
21495
+ "sortBy": listDatabaseSnapshotsRequest.sortBy,
21496
+ "name": listDatabaseSnapshotsRequest.name,
21497
+ "sortOrder": listDatabaseSnapshotsRequest.sortOrder,
21498
+ "lifecycleState": listDatabaseSnapshotsRequest.lifecycleState,
21499
+ "databaseId": listDatabaseSnapshotsRequest.databaseId,
21500
+ "clusterId": listDatabaseSnapshotsRequest.clusterId
21501
+ };
21502
+ let headerParams = {
21503
+ "Content-Type": common.Constants.APPLICATION_JSON,
21504
+ "opc-request-id": listDatabaseSnapshotsRequest.opcRequestId
21505
+ };
21506
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
21507
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDatabaseSnapshotsRequest.retryConfiguration, specRetryConfiguration);
21508
+ if (this.logger)
21509
+ retrier.logger = this.logger;
21510
+ const request = yield oci_common_2.composeRequest({
21511
+ baseEndpoint: this._endpoint,
21512
+ defaultHeaders: this._defaultHeaders,
21513
+ path: "/databaseSnapshots",
21514
+ method: "GET",
21515
+ pathParams: pathParams,
21516
+ headerParams: headerParams,
21517
+ queryParams: queryParams
21518
+ });
21519
+ try {
21520
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
21521
+ const sdkResponse = oci_common_2.composeResponse({
21522
+ responseObject: {},
21523
+ body: yield response.json(),
21524
+ bodyKey: "databaseSnapshotCollection",
21525
+ bodyModel: model.DatabaseSnapshotCollection,
21526
+ type: "model.DatabaseSnapshotCollection",
21527
+ responseHeaders: [
21528
+ {
21529
+ value: response.headers.get("opc-request-id"),
21530
+ key: "opcRequestId",
21531
+ dataType: "string"
21532
+ },
21533
+ {
21534
+ value: response.headers.get("opc-next-page"),
21535
+ key: "opcNextPage",
21536
+ dataType: "string"
21537
+ }
21538
+ ]
21539
+ });
21540
+ return sdkResponse;
21541
+ }
21542
+ catch (err) {
21543
+ throw err;
21544
+ }
21545
+ });
21546
+ }
21281
21547
  /**
21282
21548
  * Gets a list of the database software images in the specified compartment.
21283
21549
  *
@@ -33375,6 +33641,73 @@ class DatabaseClient {
33375
33641
  }
33376
33642
  });
33377
33643
  }
33644
+ /**
33645
+ * Updates a Database Snapshot
33646
+ *
33647
+ * This operation does not retry by default if the user has not defined a retry configuration.
33648
+ * @param UpdateDatabaseSnapshotRequest
33649
+ * @return UpdateDatabaseSnapshotResponse
33650
+ * @throws OciError when an error occurs
33651
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/UpdateDatabaseSnapshot.ts.html |here} to see how to use UpdateDatabaseSnapshot API.
33652
+ */
33653
+ updateDatabaseSnapshot(updateDatabaseSnapshotRequest) {
33654
+ return __awaiter(this, void 0, void 0, function* () {
33655
+ if (this.logger)
33656
+ this.logger.debug("Calling operation DatabaseClient#updateDatabaseSnapshot.");
33657
+ const operationName = "updateDatabaseSnapshot";
33658
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSnapshot/UpdateDatabaseSnapshot";
33659
+ const pathParams = {
33660
+ "{databaseSnapshotId}": updateDatabaseSnapshotRequest.databaseSnapshotId
33661
+ };
33662
+ const queryParams = {};
33663
+ let headerParams = {
33664
+ "Content-Type": common.Constants.APPLICATION_JSON,
33665
+ "if-match": updateDatabaseSnapshotRequest.ifMatch,
33666
+ "opc-retry-token": updateDatabaseSnapshotRequest.opcRetryToken,
33667
+ "opc-request-id": updateDatabaseSnapshotRequest.opcRequestId
33668
+ };
33669
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
33670
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
33671
+ if (this.logger)
33672
+ retrier.logger = this.logger;
33673
+ const request = yield oci_common_2.composeRequest({
33674
+ baseEndpoint: this._endpoint,
33675
+ defaultHeaders: this._defaultHeaders,
33676
+ path: "/databaseSnapshots/{databaseSnapshotId}",
33677
+ method: "PUT",
33678
+ bodyContent: common.ObjectSerializer.serialize(updateDatabaseSnapshotRequest.updateDatabaseSnapshotDetails, "UpdateDatabaseSnapshotDetails", model.UpdateDatabaseSnapshotDetails.getJsonObj),
33679
+ pathParams: pathParams,
33680
+ headerParams: headerParams,
33681
+ queryParams: queryParams
33682
+ });
33683
+ try {
33684
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
33685
+ const sdkResponse = oci_common_2.composeResponse({
33686
+ responseObject: {},
33687
+ body: yield response.json(),
33688
+ bodyKey: "databaseSnapshot",
33689
+ bodyModel: model.DatabaseSnapshot,
33690
+ type: "model.DatabaseSnapshot",
33691
+ responseHeaders: [
33692
+ {
33693
+ value: response.headers.get("etag"),
33694
+ key: "etag",
33695
+ dataType: "string"
33696
+ },
33697
+ {
33698
+ value: response.headers.get("opc-request-id"),
33699
+ key: "opcRequestId",
33700
+ dataType: "string"
33701
+ }
33702
+ ]
33703
+ });
33704
+ return sdkResponse;
33705
+ }
33706
+ catch (err) {
33707
+ throw err;
33708
+ }
33709
+ });
33710
+ }
33378
33711
  /**
33379
33712
  * Updates the properties of a Database Software Image, like Display Nmae
33380
33713
  * This operation does not retry by default if the user has not defined a retry configuration.