oci-database 2.93.0 → 2.95.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 (46) hide show
  1. package/lib/client.d.ts +18 -0
  2. package/lib/client.js +143 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/database-waiter.d.ts +20 -0
  5. package/lib/database-waiter.js +30 -0
  6. package/lib/database-waiter.js.map +1 -1
  7. package/lib/model/autonomous-database-summary.d.ts +5 -0
  8. package/lib/model/autonomous-database-summary.js.map +1 -1
  9. package/lib/model/autonomous-database.d.ts +5 -0
  10. package/lib/model/autonomous-database.js.map +1 -1
  11. package/lib/model/create-autonomous-database-base.js +4 -0
  12. package/lib/model/create-autonomous-database-base.js.map +1 -1
  13. package/lib/model/index.d.ts +6 -0
  14. package/lib/model/index.js +9 -3
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/oci-provider-set-key-version-details.d.ts +30 -0
  17. package/lib/model/oci-provider-set-key-version-details.js +55 -0
  18. package/lib/model/oci-provider-set-key-version-details.js.map +1 -0
  19. package/lib/model/pluggable-database-summary.d.ts +9 -0
  20. package/lib/model/pluggable-database-summary.js.map +1 -1
  21. package/lib/model/pluggable-database.d.ts +9 -0
  22. package/lib/model/pluggable-database.js.map +1 -1
  23. package/lib/model/set-key-version-details.d.ts +24 -0
  24. package/lib/model/set-key-version-details.js +69 -0
  25. package/lib/model/set-key-version-details.js.map +1 -0
  26. package/lib/model/undelete-autonomous-database-details.d.ts +30 -0
  27. package/lib/model/undelete-autonomous-database-details.js +55 -0
  28. package/lib/model/undelete-autonomous-database-details.js.map +1 -0
  29. package/lib/request/create-autonomous-database-request.d.ts +1 -1
  30. package/lib/request/index.d.ts +4 -0
  31. package/lib/request/list-autonomous-databases-request.d.ts +4 -0
  32. package/lib/request/list-autonomous-databases-request.js.map +1 -1
  33. package/lib/request/set-db-key-version-request.d.ts +48 -0
  34. package/lib/request/set-db-key-version-request.js +15 -0
  35. package/lib/request/set-db-key-version-request.js.map +1 -0
  36. package/lib/request/set-pdb-key-version-request.d.ts +48 -0
  37. package/lib/request/set-pdb-key-version-request.js +15 -0
  38. package/lib/request/set-pdb-key-version-request.js.map +1 -0
  39. package/lib/response/index.d.ts +4 -0
  40. package/lib/response/set-db-key-version-response.d.ts +34 -0
  41. package/lib/response/set-db-key-version-response.js +15 -0
  42. package/lib/response/set-db-key-version-response.js.map +1 -0
  43. package/lib/response/set-pdb-key-version-response.d.ts +34 -0
  44. package/lib/response/set-pdb-key-version-response.js +15 -0
  45. package/lib/response/set-pdb-key-version-response.js.map +1 -0
  46. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -5690,6 +5690,24 @@ export declare class DatabaseClient {
5690
5690
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ScanExternalContainerDatabasePluggableDatabases.ts.html |here} to see how to use ScanExternalContainerDatabasePluggableDatabases API.
5691
5691
  */
5692
5692
  scanExternalContainerDatabasePluggableDatabases(scanExternalContainerDatabasePluggableDatabasesRequest: requests.ScanExternalContainerDatabasePluggableDatabasesRequest): Promise<responses.ScanExternalContainerDatabasePluggableDatabasesResponse>;
5693
+ /**
5694
+ * Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
5695
+ * This operation does not retry by default if the user has not defined a retry configuration.
5696
+ * @param SetDbKeyVersionRequest
5697
+ * @return SetDbKeyVersionResponse
5698
+ * @throws OciError when an error occurs
5699
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SetDbKeyVersion.ts.html |here} to see how to use SetDbKeyVersion API.
5700
+ */
5701
+ setDbKeyVersion(setDbKeyVersionRequest: requests.SetDbKeyVersionRequest): Promise<responses.SetDbKeyVersionResponse>;
5702
+ /**
5703
+ * Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
5704
+ * This operation does not retry by default if the user has not defined a retry configuration.
5705
+ * @param SetPdbKeyVersionRequest
5706
+ * @return SetPdbKeyVersionResponse
5707
+ * @throws OciError when an error occurs
5708
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SetPdbKeyVersion.ts.html |here} to see how to use SetPdbKeyVersion API.
5709
+ */
5710
+ setPdbKeyVersion(setPdbKeyVersionRequest: requests.SetPdbKeyVersionRequest): Promise<responses.SetPdbKeyVersionResponse>;
5693
5711
  /**
5694
5712
  * This operation shrinks the current allocated storage down to the current actual used data storage (actualUsedDataStorageSizeInTBs). The if the base storage value for the database (dataStorageSizeInTBs) is larger than the actualUsedDataStorageSizeInTBs value, you are billed for the base storage value.
5695
5713
  *
package/lib/client.js CHANGED
@@ -16004,6 +16004,7 @@ class DatabaseClient {
16004
16004
  "sortOrder": listAutonomousDatabasesRequest.sortOrder,
16005
16005
  "infrastructureType": listAutonomousDatabasesRequest.infrastructureType,
16006
16006
  "lifecycleState": listAutonomousDatabasesRequest.lifecycleState,
16007
+ "lifecycleStateNotEqualTo": listAutonomousDatabasesRequest.lifecycleStateNotEqualTo,
16007
16008
  "dbWorkload": listAutonomousDatabasesRequest.dbWorkload,
16008
16009
  "dbVersion": listAutonomousDatabasesRequest.dbVersion,
16009
16010
  "isFreeTier": listAutonomousDatabasesRequest.isFreeTier,
@@ -25477,6 +25478,148 @@ class DatabaseClient {
25477
25478
  }
25478
25479
  });
25479
25480
  }
25481
+ /**
25482
+ * Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
25483
+ * This operation does not retry by default if the user has not defined a retry configuration.
25484
+ * @param SetDbKeyVersionRequest
25485
+ * @return SetDbKeyVersionResponse
25486
+ * @throws OciError when an error occurs
25487
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SetDbKeyVersion.ts.html |here} to see how to use SetDbKeyVersion API.
25488
+ */
25489
+ setDbKeyVersion(setDbKeyVersionRequest) {
25490
+ return __awaiter(this, void 0, void 0, function* () {
25491
+ if (this.logger)
25492
+ this.logger.debug("Calling operation DatabaseClient#setDbKeyVersion.");
25493
+ const operationName = "setDbKeyVersion";
25494
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/SetDbKeyVersion";
25495
+ const pathParams = {
25496
+ "{databaseId}": setDbKeyVersionRequest.databaseId
25497
+ };
25498
+ const queryParams = {};
25499
+ let headerParams = {
25500
+ "Content-Type": common.Constants.APPLICATION_JSON,
25501
+ "if-match": setDbKeyVersionRequest.ifMatch,
25502
+ "opc-retry-token": setDbKeyVersionRequest.opcRetryToken,
25503
+ "opc-request-id": setDbKeyVersionRequest.opcRequestId
25504
+ };
25505
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
25506
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setDbKeyVersionRequest.retryConfiguration, specRetryConfiguration);
25507
+ if (this.logger)
25508
+ retrier.logger = this.logger;
25509
+ const request = yield oci_common_2.composeRequest({
25510
+ baseEndpoint: this._endpoint,
25511
+ defaultHeaders: this._defaultHeaders,
25512
+ path: "/databases/{databaseId}/actions/setKeyVersion",
25513
+ method: "POST",
25514
+ bodyContent: common.ObjectSerializer.serialize(setDbKeyVersionRequest.setKeyVersionDetails, "SetKeyVersionDetails", model.SetKeyVersionDetails.getJsonObj),
25515
+ pathParams: pathParams,
25516
+ headerParams: headerParams,
25517
+ queryParams: queryParams
25518
+ });
25519
+ try {
25520
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
25521
+ const sdkResponse = oci_common_2.composeResponse({
25522
+ responseObject: {},
25523
+ body: yield response.json(),
25524
+ bodyKey: "database",
25525
+ bodyModel: model.Database,
25526
+ type: "model.Database",
25527
+ responseHeaders: [
25528
+ {
25529
+ value: response.headers.get("etag"),
25530
+ key: "etag",
25531
+ dataType: "string"
25532
+ },
25533
+ {
25534
+ value: response.headers.get("opc-work-request-id"),
25535
+ key: "opcWorkRequestId",
25536
+ dataType: "string"
25537
+ },
25538
+ {
25539
+ value: response.headers.get("opc-request-id"),
25540
+ key: "opcRequestId",
25541
+ dataType: "string"
25542
+ }
25543
+ ]
25544
+ });
25545
+ return sdkResponse;
25546
+ }
25547
+ catch (err) {
25548
+ throw err;
25549
+ }
25550
+ });
25551
+ }
25552
+ /**
25553
+ * Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
25554
+ * This operation does not retry by default if the user has not defined a retry configuration.
25555
+ * @param SetPdbKeyVersionRequest
25556
+ * @return SetPdbKeyVersionResponse
25557
+ * @throws OciError when an error occurs
25558
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/SetPdbKeyVersion.ts.html |here} to see how to use SetPdbKeyVersion API.
25559
+ */
25560
+ setPdbKeyVersion(setPdbKeyVersionRequest) {
25561
+ return __awaiter(this, void 0, void 0, function* () {
25562
+ if (this.logger)
25563
+ this.logger.debug("Calling operation DatabaseClient#setPdbKeyVersion.");
25564
+ const operationName = "setPdbKeyVersion";
25565
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/SetPdbKeyVersion";
25566
+ const pathParams = {
25567
+ "{pluggableDatabaseId}": setPdbKeyVersionRequest.pluggableDatabaseId
25568
+ };
25569
+ const queryParams = {};
25570
+ let headerParams = {
25571
+ "Content-Type": common.Constants.APPLICATION_JSON,
25572
+ "if-match": setPdbKeyVersionRequest.ifMatch,
25573
+ "opc-retry-token": setPdbKeyVersionRequest.opcRetryToken,
25574
+ "opc-request-id": setPdbKeyVersionRequest.opcRequestId
25575
+ };
25576
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
25577
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setPdbKeyVersionRequest.retryConfiguration, specRetryConfiguration);
25578
+ if (this.logger)
25579
+ retrier.logger = this.logger;
25580
+ const request = yield oci_common_2.composeRequest({
25581
+ baseEndpoint: this._endpoint,
25582
+ defaultHeaders: this._defaultHeaders,
25583
+ path: "/pluggableDatabases/{pluggableDatabaseId}/actions/setKeyVersion",
25584
+ method: "POST",
25585
+ bodyContent: common.ObjectSerializer.serialize(setPdbKeyVersionRequest.setKeyVersionDetails, "SetKeyVersionDetails", model.SetKeyVersionDetails.getJsonObj),
25586
+ pathParams: pathParams,
25587
+ headerParams: headerParams,
25588
+ queryParams: queryParams
25589
+ });
25590
+ try {
25591
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
25592
+ const sdkResponse = oci_common_2.composeResponse({
25593
+ responseObject: {},
25594
+ body: yield response.json(),
25595
+ bodyKey: "pluggableDatabase",
25596
+ bodyModel: model.PluggableDatabase,
25597
+ type: "model.PluggableDatabase",
25598
+ responseHeaders: [
25599
+ {
25600
+ value: response.headers.get("etag"),
25601
+ key: "etag",
25602
+ dataType: "string"
25603
+ },
25604
+ {
25605
+ value: response.headers.get("opc-work-request-id"),
25606
+ key: "opcWorkRequestId",
25607
+ dataType: "string"
25608
+ },
25609
+ {
25610
+ value: response.headers.get("opc-request-id"),
25611
+ key: "opcRequestId",
25612
+ dataType: "string"
25613
+ }
25614
+ ]
25615
+ });
25616
+ return sdkResponse;
25617
+ }
25618
+ catch (err) {
25619
+ throw err;
25620
+ }
25621
+ });
25622
+ }
25480
25623
  /**
25481
25624
  * This operation shrinks the current allocated storage down to the current actual used data storage (actualUsedDataStorageSizeInTBs). The if the base storage value for the database (dataStorageSizeInTBs) is larger than the actualUsedDataStorageSizeInTBs value, you are billed for the base storage value.
25482
25625
  *