oci-database 2.117.0 → 2.117.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/client.d.ts +10 -0
  2. package/lib/client.js +67 -2
  3. package/lib/client.js.map +1 -1
  4. package/lib/database-waiter.d.ts +10 -0
  5. package/lib/database-waiter.js +21 -0
  6. package/lib/database-waiter.js.map +1 -1
  7. package/lib/model/autonomous-database-summary.d.ts +14 -0
  8. package/lib/model/autonomous-database-summary.js +11 -0
  9. package/lib/model/autonomous-database-summary.js.map +1 -1
  10. package/lib/model/autonomous-database.d.ts +14 -0
  11. package/lib/model/autonomous-database.js +11 -0
  12. package/lib/model/autonomous-database.js.map +1 -1
  13. package/lib/model/autonomous-dw-database.d.ts +9 -0
  14. package/lib/model/autonomous-dw-database.js +6 -0
  15. package/lib/model/autonomous-dw-database.js.map +1 -1
  16. package/lib/model/change-cloud-db-system-subscription-details.d.ts +32 -0
  17. package/lib/model/change-cloud-db-system-subscription-details.js +30 -0
  18. package/lib/model/change-cloud-db-system-subscription-details.js.map +1 -0
  19. package/lib/model/cloud-exadata-infrastructure-summary.d.ts +1 -1
  20. package/lib/model/cloud-exadata-infrastructure.d.ts +1 -1
  21. package/lib/model/create-cloud-exadata-infrastructure-details.d.ts +1 -1
  22. package/lib/model/create-data-guard-association-with-new-db-system-details.d.ts +8 -0
  23. package/lib/model/create-data-guard-association-with-new-db-system-details.js.map +1 -1
  24. package/lib/model/create-exascale-db-storage-vault-details.d.ts +1 -1
  25. package/lib/model/create-refreshable-autonomous-database-clone-details.d.ts +9 -0
  26. package/lib/model/create-refreshable-autonomous-database-clone-details.js +6 -0
  27. package/lib/model/create-refreshable-autonomous-database-clone-details.js.map +1 -1
  28. package/lib/model/db-system-summary.d.ts +8 -0
  29. package/lib/model/db-system-summary.js.map +1 -1
  30. package/lib/model/db-system.d.ts +8 -0
  31. package/lib/model/db-system.js.map +1 -1
  32. package/lib/model/exadb-vm-cluster-summary.d.ts +1 -1
  33. package/lib/model/exadb-vm-cluster.d.ts +1 -1
  34. package/lib/model/exascale-db-storage-vault-summary.d.ts +1 -1
  35. package/lib/model/exascale-db-storage-vault.d.ts +1 -1
  36. package/lib/model/index.d.ts +2 -0
  37. package/lib/model/index.js +12 -10
  38. package/lib/model/index.js.map +1 -1
  39. package/lib/model/launch-db-system-base.d.ts +8 -0
  40. package/lib/model/launch-db-system-base.js.map +1 -1
  41. package/lib/request/change-cloud-db-system-subscription-request.d.ts +48 -0
  42. package/lib/request/change-cloud-db-system-subscription-request.js +15 -0
  43. package/lib/request/change-cloud-db-system-subscription-request.js.map +1 -0
  44. package/lib/request/index.d.ts +2 -0
  45. package/lib/request/index.js.map +1 -1
  46. package/lib/request/launch-db-system-request.d.ts +6 -0
  47. package/lib/request/update-db-system-request.d.ts +6 -0
  48. package/lib/response/change-cloud-db-system-subscription-response.d.ts +25 -0
  49. package/lib/response/change-cloud-db-system-subscription-response.js +15 -0
  50. package/lib/response/change-cloud-db-system-subscription-response.js.map +1 -0
  51. package/lib/response/index.d.ts +2 -0
  52. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -296,6 +296,16 @@ export declare class DatabaseClient {
296
296
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeCloudAutonomousVmClusterSubscription.ts.html |here} to see how to use ChangeCloudAutonomousVmClusterSubscription API.
297
297
  */
298
298
  changeCloudAutonomousVmClusterSubscription(changeCloudAutonomousVmClusterSubscriptionRequest: requests.ChangeCloudAutonomousVmClusterSubscriptionRequest): Promise<responses.ChangeCloudAutonomousVmClusterSubscriptionResponse>;
299
+ /**
300
+ * Associate a cloud DB system with a different subscription.
301
+ *
302
+ * This operation does not retry by default if the user has not defined a retry configuration.
303
+ * @param ChangeCloudDbSystemSubscriptionRequest
304
+ * @return ChangeCloudDbSystemSubscriptionResponse
305
+ * @throws OciError when an error occurs
306
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeCloudDbSystemSubscription.ts.html |here} to see how to use ChangeCloudDbSystemSubscription API.
307
+ */
308
+ changeCloudDbSystemSubscription(changeCloudDbSystemSubscriptionRequest: requests.ChangeCloudDbSystemSubscriptionRequest): Promise<responses.ChangeCloudDbSystemSubscriptionResponse>;
299
309
  /**
300
310
  * Moves a cloud Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.For more information about moving resources to a different compartment, see [Moving Database Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm#moveRes).
301
311
  *
package/lib/client.js CHANGED
@@ -1510,6 +1510,69 @@ class DatabaseClient {
1510
1510
  }
1511
1511
  });
1512
1512
  }
1513
+ /**
1514
+ * Associate a cloud DB system with a different subscription.
1515
+ *
1516
+ * This operation does not retry by default if the user has not defined a retry configuration.
1517
+ * @param ChangeCloudDbSystemSubscriptionRequest
1518
+ * @return ChangeCloudDbSystemSubscriptionResponse
1519
+ * @throws OciError when an error occurs
1520
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ChangeCloudDbSystemSubscription.ts.html |here} to see how to use ChangeCloudDbSystemSubscription API.
1521
+ */
1522
+ changeCloudDbSystemSubscription(changeCloudDbSystemSubscriptionRequest) {
1523
+ return __awaiter(this, void 0, void 0, function* () {
1524
+ if (this.logger)
1525
+ this.logger.debug("Calling operation DatabaseClient#changeCloudDbSystemSubscription.");
1526
+ const operationName = "changeCloudDbSystemSubscription";
1527
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ChangeCloudDbSystemSubscription";
1528
+ const pathParams = {
1529
+ "{dbSystemId}": changeCloudDbSystemSubscriptionRequest.dbSystemId
1530
+ };
1531
+ const queryParams = {};
1532
+ let headerParams = {
1533
+ "Content-Type": common.Constants.APPLICATION_JSON,
1534
+ "opc-retry-token": changeCloudDbSystemSubscriptionRequest.opcRetryToken,
1535
+ "opc-request-id": changeCloudDbSystemSubscriptionRequest.opcRequestId,
1536
+ "if-match": changeCloudDbSystemSubscriptionRequest.ifMatch
1537
+ };
1538
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1539
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCloudDbSystemSubscriptionRequest.retryConfiguration, specRetryConfiguration);
1540
+ if (this.logger)
1541
+ retrier.logger = this.logger;
1542
+ const request = yield oci_common_2.composeRequest({
1543
+ baseEndpoint: this._endpoint,
1544
+ defaultHeaders: this._defaultHeaders,
1545
+ path: "/dbSystems/{dbSystemId}/actions/changeSubscription",
1546
+ method: "POST",
1547
+ bodyContent: common.ObjectSerializer.serialize(changeCloudDbSystemSubscriptionRequest.changeCloudDbSystemSubscriptionDetails, "ChangeCloudDbSystemSubscriptionDetails", model.ChangeCloudDbSystemSubscriptionDetails.getJsonObj),
1548
+ pathParams: pathParams,
1549
+ headerParams: headerParams,
1550
+ queryParams: queryParams
1551
+ });
1552
+ try {
1553
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1554
+ const sdkResponse = oci_common_2.composeResponse({
1555
+ responseObject: {},
1556
+ responseHeaders: [
1557
+ {
1558
+ value: response.headers.get("opc-work-request-id"),
1559
+ key: "opcWorkRequestId",
1560
+ dataType: "string"
1561
+ },
1562
+ {
1563
+ value: response.headers.get("opc-request-id"),
1564
+ key: "opcRequestId",
1565
+ dataType: "string"
1566
+ }
1567
+ ]
1568
+ });
1569
+ return sdkResponse;
1570
+ }
1571
+ catch (err) {
1572
+ throw err;
1573
+ }
1574
+ });
1575
+ }
1513
1576
  /**
1514
1577
  * Moves a cloud Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.For more information about moving resources to a different compartment, see [Moving Database Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm#moveRes).
1515
1578
  *
@@ -15880,7 +15943,8 @@ class DatabaseClient {
15880
15943
  const queryParams = {};
15881
15944
  let headerParams = {
15882
15945
  "Content-Type": common.Constants.APPLICATION_JSON,
15883
- "opc-retry-token": launchDbSystemRequest.opcRetryToken
15946
+ "opc-retry-token": launchDbSystemRequest.opcRetryToken,
15947
+ "opc-dry-run": launchDbSystemRequest.opcDryRun
15884
15948
  };
15885
15949
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
15886
15950
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, launchDbSystemRequest.retryConfiguration, specRetryConfiguration);
@@ -30018,7 +30082,8 @@ class DatabaseClient {
30018
30082
  const queryParams = {};
30019
30083
  let headerParams = {
30020
30084
  "Content-Type": common.Constants.APPLICATION_JSON,
30021
- "if-match": updateDbSystemRequest.ifMatch
30085
+ "if-match": updateDbSystemRequest.ifMatch,
30086
+ "opc-dry-run": updateDbSystemRequest.opcDryRun
30022
30087
  };
30023
30088
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
30024
30089
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDbSystemRequest.retryConfiguration, specRetryConfiguration);