oci-psql 2.134.1 → 2.135.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 (153) hide show
  1. package/lib/client.d.ts +70 -0
  2. package/lib/client.js +448 -1
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/backup-copy-details.d.ts +1 -1
  5. package/lib/model/change-role-to-replica-details.d.ts +28 -0
  6. package/lib/model/change-role-to-replica-details.js +31 -0
  7. package/lib/model/change-role-to-replica-details.js.map +1 -0
  8. package/lib/model/change-role-to-standalone-details.d.ts +34 -0
  9. package/lib/model/change-role-to-standalone-details.js +36 -0
  10. package/lib/model/change-role-to-standalone-details.js.map +1 -0
  11. package/lib/model/create-db-system-details.d.ts +4 -2
  12. package/lib/model/create-db-system-details.js +14 -2
  13. package/lib/model/create-db-system-details.js.map +1 -1
  14. package/lib/model/create-replication-config-details.d.ts +39 -0
  15. package/lib/model/create-replication-config-details.js +31 -0
  16. package/lib/model/create-replication-config-details.js.map +1 -0
  17. package/lib/model/date-time-range-capability.d.ts +27 -0
  18. package/lib/model/date-time-range-capability.js +31 -0
  19. package/lib/model/date-time-range-capability.js.map +1 -0
  20. package/lib/model/db-system-replica-collection.d.ts +28 -0
  21. package/lib/model/db-system-replica-collection.js +63 -0
  22. package/lib/model/db-system-replica-collection.js.map +1 -0
  23. package/lib/model/db-system-replica-summary.d.ts +33 -0
  24. package/lib/model/db-system-replica-summary.js +31 -0
  25. package/lib/model/db-system-replica-summary.js.map +1 -0
  26. package/lib/model/db-system.d.ts +19 -1
  27. package/lib/model/db-system.js +32 -2
  28. package/lib/model/db-system.js.map +1 -1
  29. package/lib/model/disabled-insight-details.d.ts +26 -0
  30. package/lib/model/disabled-insight-details.js +56 -0
  31. package/lib/model/disabled-insight-details.js.map +1 -0
  32. package/lib/model/disabled-kerberos-auth-details.d.ts +26 -0
  33. package/lib/model/disabled-kerberos-auth-details.js +56 -0
  34. package/lib/model/disabled-kerberos-auth-details.js.map +1 -0
  35. package/lib/model/enabled-insight-details.d.ts +30 -0
  36. package/lib/model/enabled-insight-details.js +68 -0
  37. package/lib/model/enabled-insight-details.js.map +1 -0
  38. package/lib/model/enabled-kerberos-auth-details.d.ts +34 -0
  39. package/lib/model/enabled-kerberos-auth-details.js +78 -0
  40. package/lib/model/enabled-kerberos-auth-details.js.map +1 -0
  41. package/lib/model/granularity-capability.d.ts +45 -0
  42. package/lib/model/granularity-capability.js +42 -0
  43. package/lib/model/granularity-capability.js.map +1 -0
  44. package/lib/model/index.d.ts +58 -0
  45. package/lib/model/index.js +61 -2
  46. package/lib/model/index.js.map +1 -1
  47. package/lib/model/insight-capability-collection.d.ts +28 -0
  48. package/lib/model/insight-capability-collection.js +63 -0
  49. package/lib/model/insight-capability-collection.js.map +1 -0
  50. package/lib/model/insight-capability-summary.d.ts +44 -0
  51. package/lib/model/insight-capability-summary.js +72 -0
  52. package/lib/model/insight-capability-summary.js.map +1 -0
  53. package/lib/model/insight-data-contract.d.ts +41 -0
  54. package/lib/model/insight-data-contract.js +42 -0
  55. package/lib/model/insight-data-contract.js.map +1 -0
  56. package/lib/model/insight-data-type-capability.d.ts +51 -0
  57. package/lib/model/insight-data-type-capability.js +103 -0
  58. package/lib/model/insight-data-type-capability.js.map +1 -0
  59. package/lib/model/insight-filter-capability.d.ts +39 -0
  60. package/lib/model/insight-filter-capability.js +31 -0
  61. package/lib/model/insight-filter-capability.js.map +1 -0
  62. package/lib/model/insight-limits.d.ts +31 -0
  63. package/lib/model/insight-limits.js +31 -0
  64. package/lib/model/insight-limits.js.map +1 -0
  65. package/lib/model/kerberos-auth-details.d.ts +24 -0
  66. package/lib/model/kerberos-auth-details.js +74 -0
  67. package/lib/model/kerberos-auth-details.js.map +1 -0
  68. package/lib/model/kerberos-credential.d.ts +42 -0
  69. package/lib/model/kerberos-credential.js +31 -0
  70. package/lib/model/kerberos-credential.js.map +1 -0
  71. package/lib/model/odsp-insight-details.d.ts +24 -0
  72. package/lib/model/odsp-insight-details.js +74 -0
  73. package/lib/model/odsp-insight-details.js.map +1 -0
  74. package/lib/model/odsp-insight.d.ts +39 -0
  75. package/lib/model/odsp-insight.js +40 -0
  76. package/lib/model/odsp-insight.js.map +1 -0
  77. package/lib/model/pagination-capability.d.ts +35 -0
  78. package/lib/model/pagination-capability.js +31 -0
  79. package/lib/model/pagination-capability.js.map +1 -0
  80. package/lib/model/primary-db-system-source-details.d.ts +32 -0
  81. package/lib/model/primary-db-system-source-details.js +56 -0
  82. package/lib/model/primary-db-system-source-details.js.map +1 -0
  83. package/lib/model/replication-config.d.ts +38 -0
  84. package/lib/model/replication-config.js +31 -0
  85. package/lib/model/replication-config.js.map +1 -0
  86. package/lib/model/sorting-capability.d.ts +33 -0
  87. package/lib/model/sorting-capability.js +59 -0
  88. package/lib/model/sorting-capability.js.map +1 -0
  89. package/lib/model/sorting-default.d.ts +40 -0
  90. package/lib/model/sorting-default.js +41 -0
  91. package/lib/model/sorting-default.js.map +1 -0
  92. package/lib/model/source-details.js +4 -0
  93. package/lib/model/source-details.js.map +1 -1
  94. package/lib/model/start-db-system-details.d.ts +41 -0
  95. package/lib/model/start-db-system-details.js +31 -0
  96. package/lib/model/start-db-system-details.js.map +1 -0
  97. package/lib/model/switch-over-details.d.ts +28 -0
  98. package/lib/model/switch-over-details.js +31 -0
  99. package/lib/model/switch-over-details.js.map +1 -0
  100. package/lib/model/update-db-system-details.d.ts +3 -0
  101. package/lib/model/update-db-system-details.js +18 -0
  102. package/lib/model/update-db-system-details.js.map +1 -1
  103. package/lib/model/update-replication-config-details.d.ts +39 -0
  104. package/lib/model/update-replication-config-details.js +31 -0
  105. package/lib/model/update-replication-config-details.js.map +1 -0
  106. package/lib/request/change-role-to-replica-request.d.ts +45 -0
  107. package/lib/request/change-role-to-replica-request.js +15 -0
  108. package/lib/request/change-role-to-replica-request.js.map +1 -0
  109. package/lib/request/change-role-to-standalone-request.d.ts +45 -0
  110. package/lib/request/change-role-to-standalone-request.js +15 -0
  111. package/lib/request/change-role-to-standalone-request.js.map +1 -0
  112. package/lib/request/index.d.ts +14 -0
  113. package/lib/request/index.js.map +1 -1
  114. package/lib/request/list-db-system-replicas-request.d.ts +34 -0
  115. package/lib/request/list-db-system-replicas-request.js +15 -0
  116. package/lib/request/list-db-system-replicas-request.js.map +1 -0
  117. package/lib/request/list-db-systems-request.d.ts +4 -0
  118. package/lib/request/list-db-systems-request.js.map +1 -1
  119. package/lib/request/list-insight-capabilities-request.d.ts +30 -0
  120. package/lib/request/list-insight-capabilities-request.js +15 -0
  121. package/lib/request/list-insight-capabilities-request.js.map +1 -0
  122. package/lib/request/start-db-system-request.d.ts +45 -0
  123. package/lib/request/start-db-system-request.js +15 -0
  124. package/lib/request/start-db-system-request.js.map +1 -0
  125. package/lib/request/stop-db-system-request.d.ts +40 -0
  126. package/lib/request/stop-db-system-request.js +15 -0
  127. package/lib/request/stop-db-system-request.js.map +1 -0
  128. package/lib/request/switch-over-request.d.ts +45 -0
  129. package/lib/request/switch-over-request.js +15 -0
  130. package/lib/request/switch-over-request.js.map +1 -0
  131. package/lib/response/change-role-to-replica-response.d.ts +25 -0
  132. package/lib/response/change-role-to-replica-response.js +15 -0
  133. package/lib/response/change-role-to-replica-response.js.map +1 -0
  134. package/lib/response/change-role-to-standalone-response.d.ts +25 -0
  135. package/lib/response/change-role-to-standalone-response.js +15 -0
  136. package/lib/response/change-role-to-standalone-response.js.map +1 -0
  137. package/lib/response/index.d.ts +14 -0
  138. package/lib/response/list-db-system-replicas-response.d.ts +30 -0
  139. package/lib/response/list-db-system-replicas-response.js +15 -0
  140. package/lib/response/list-db-system-replicas-response.js.map +1 -0
  141. package/lib/response/list-insight-capabilities-response.d.ts +30 -0
  142. package/lib/response/list-insight-capabilities-response.js +15 -0
  143. package/lib/response/list-insight-capabilities-response.js.map +1 -0
  144. package/lib/response/start-db-system-response.d.ts +25 -0
  145. package/lib/response/start-db-system-response.js +15 -0
  146. package/lib/response/start-db-system-response.js.map +1 -0
  147. package/lib/response/stop-db-system-response.d.ts +25 -0
  148. package/lib/response/stop-db-system-response.js +15 -0
  149. package/lib/response/stop-db-system-response.js.map +1 -0
  150. package/lib/response/switch-over-response.d.ts +25 -0
  151. package/lib/response/switch-over-response.js +15 -0
  152. package/lib/response/switch-over-response.js.map +1 -0
  153. package/package.json +7 -6
package/lib/client.d.ts CHANGED
@@ -132,6 +132,24 @@ export declare class PostgresqlClient {
132
132
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ChangeDbSystemCompartment.ts.html |here} to see how to use ChangeDbSystemCompartment API.
133
133
  */
134
134
  changeDbSystemCompartment(changeDbSystemCompartmentRequest: requests.ChangeDbSystemCompartmentRequest): Promise<responses.ChangeDbSystemCompartmentResponse>;
135
+ /**
136
+ * Changes a standalone database system's role to warm-standby replica, converting it into a replica database system that replicates data from the specified primary database system.
137
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
138
+ * @param ChangeRoleToReplicaRequest
139
+ * @return ChangeRoleToReplicaResponse
140
+ * @throws OciError when an error occurs
141
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ChangeRoleToReplica.ts.html |here} to see how to use ChangeRoleToReplica API.
142
+ */
143
+ changeRoleToReplica(changeRoleToReplicaRequest: requests.ChangeRoleToReplicaRequest): Promise<responses.ChangeRoleToReplicaResponse>;
144
+ /**
145
+ * Convert a replica database system into a standalone database system.
146
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
147
+ * @param ChangeRoleToStandaloneRequest
148
+ * @return ChangeRoleToStandaloneResponse
149
+ * @throws OciError when an error occurs
150
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ChangeRoleToStandalone.ts.html |here} to see how to use ChangeRoleToStandalone API.
151
+ */
152
+ changeRoleToStandalone(changeRoleToStandaloneRequest: requests.ChangeRoleToStandaloneRequest): Promise<responses.ChangeRoleToStandaloneResponse>;
135
153
  /**
136
154
  * Creates a new backup.
137
155
  *
@@ -281,6 +299,16 @@ export declare class PostgresqlClient {
281
299
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListConfigurations.ts.html |here} to see how to use ListConfigurations API.
282
300
  */
283
301
  listConfigurations(listConfigurationsRequest: requests.ListConfigurationsRequest): Promise<responses.ListConfigurationsResponse>;
302
+ /**
303
+ * Returns a list of replica database systems.
304
+ *
305
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
306
+ * @param ListDbSystemReplicasRequest
307
+ * @return ListDbSystemReplicasResponse
308
+ * @throws OciError when an error occurs
309
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListDbSystemReplicas.ts.html |here} to see how to use ListDbSystemReplicas API.
310
+ */
311
+ listDbSystemReplicas(listDbSystemReplicasRequest: requests.ListDbSystemReplicasRequest): Promise<responses.ListDbSystemReplicasResponse>;
284
312
  /**
285
313
  * Returns a list of database systems.
286
314
  *
@@ -301,6 +329,21 @@ export declare class PostgresqlClient {
301
329
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListDefaultConfigurations.ts.html |here} to see how to use ListDefaultConfigurations API.
302
330
  */
303
331
  listDefaultConfigurations(listDefaultConfigurationsRequest: requests.ListDefaultConfigurationsRequest): Promise<responses.ListDefaultConfigurationsResponse>;
332
+ /**
333
+ * Returns the supported insight types and their capabilities.
334
+ * This API allows clients to discover:
335
+ * - Supported insight types
336
+ * - Supported insight data types for each insight type
337
+ * - Filters, sorting, pagination, limits, and data contracts
338
+ * required to use the unified insights API.
339
+ *
340
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
341
+ * @param ListInsightCapabilitiesRequest
342
+ * @return ListInsightCapabilitiesResponse
343
+ * @throws OciError when an error occurs
344
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListInsightCapabilities.ts.html |here} to see how to use ListInsightCapabilities API.
345
+ */
346
+ listInsightCapabilities(listInsightCapabilitiesRequest: requests.ListInsightCapabilitiesRequest): Promise<responses.ListInsightCapabilitiesResponse>;
304
347
  /**
305
348
  * Returns the list of shapes allowed in the region.
306
349
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -376,6 +419,33 @@ export declare class PostgresqlClient {
376
419
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/RestoreDbSystem.ts.html |here} to see how to use RestoreDbSystem API.
377
420
  */
378
421
  restoreDbSystem(restoreDbSystemRequest: requests.RestoreDbSystemRequest): Promise<responses.RestoreDbSystemResponse>;
422
+ /**
423
+ * Start the DB System.
424
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
425
+ * @param StartDbSystemRequest
426
+ * @return StartDbSystemResponse
427
+ * @throws OciError when an error occurs
428
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/StartDbSystem.ts.html |here} to see how to use StartDbSystem API.
429
+ */
430
+ startDbSystem(startDbSystemRequest: requests.StartDbSystemRequest): Promise<responses.StartDbSystemResponse>;
431
+ /**
432
+ * Stop the DB System.
433
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
434
+ * @param StopDbSystemRequest
435
+ * @return StopDbSystemResponse
436
+ * @throws OciError when an error occurs
437
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/StopDbSystem.ts.html |here} to see how to use StopDbSystem API.
438
+ */
439
+ stopDbSystem(stopDbSystemRequest: requests.StopDbSystemRequest): Promise<responses.StopDbSystemResponse>;
440
+ /**
441
+ * Switchover the roles between a primary database system and its replica, making the replica the new primary and the original primary become its replica.
442
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
443
+ * @param SwitchOverRequest
444
+ * @return SwitchOverResponse
445
+ * @throws OciError when an error occurs
446
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/SwitchOver.ts.html |here} to see how to use SwitchOver API.
447
+ */
448
+ switchOver(switchOverRequest: requests.SwitchOverRequest): Promise<responses.SwitchOverResponse>;
379
449
  /**
380
450
  * Updates the backup.
381
451
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
package/lib/client.js CHANGED
@@ -452,6 +452,130 @@ class PostgresqlClient {
452
452
  }
453
453
  });
454
454
  }
455
+ /**
456
+ * Changes a standalone database system's role to warm-standby replica, converting it into a replica database system that replicates data from the specified primary database system.
457
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
458
+ * @param ChangeRoleToReplicaRequest
459
+ * @return ChangeRoleToReplicaResponse
460
+ * @throws OciError when an error occurs
461
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ChangeRoleToReplica.ts.html |here} to see how to use ChangeRoleToReplica API.
462
+ */
463
+ changeRoleToReplica(changeRoleToReplicaRequest) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ if (this.logger)
466
+ this.logger.debug("Calling operation PostgresqlClient#changeRoleToReplica.");
467
+ const operationName = "changeRoleToReplica";
468
+ const apiReferenceLink = "";
469
+ const pathParams = {
470
+ "{dbSystemId}": changeRoleToReplicaRequest.dbSystemId
471
+ };
472
+ const queryParams = {};
473
+ let headerParams = {
474
+ "Content-Type": common.Constants.APPLICATION_JSON,
475
+ "if-match": changeRoleToReplicaRequest.ifMatch,
476
+ "opc-request-id": changeRoleToReplicaRequest.opcRequestId,
477
+ "opc-retry-token": changeRoleToReplicaRequest.opcRetryToken
478
+ };
479
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
480
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRoleToReplicaRequest.retryConfiguration, specRetryConfiguration);
481
+ if (this.logger)
482
+ retrier.logger = this.logger;
483
+ const request = yield oci_common_1.composeRequest({
484
+ baseEndpoint: this._endpoint,
485
+ defaultHeaders: this._defaultHeaders,
486
+ path: "/dbSystems/{dbSystemId}/actions/changeRoleToReplica",
487
+ method: "POST",
488
+ bodyContent: common.ObjectSerializer.serialize(changeRoleToReplicaRequest.changeRoleToReplicaDetails, "ChangeRoleToReplicaDetails", model.ChangeRoleToReplicaDetails.getJsonObj),
489
+ pathParams: pathParams,
490
+ headerParams: headerParams,
491
+ queryParams: queryParams
492
+ });
493
+ try {
494
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
495
+ const sdkResponse = oci_common_1.composeResponse({
496
+ responseObject: {},
497
+ responseHeaders: [
498
+ {
499
+ value: response.headers.get("opc-work-request-id"),
500
+ key: "opcWorkRequestId",
501
+ dataType: "string"
502
+ },
503
+ {
504
+ value: response.headers.get("opc-request-id"),
505
+ key: "opcRequestId",
506
+ dataType: "string"
507
+ }
508
+ ]
509
+ });
510
+ return sdkResponse;
511
+ }
512
+ catch (err) {
513
+ throw err;
514
+ }
515
+ });
516
+ }
517
+ /**
518
+ * Convert a replica database system into a standalone database system.
519
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
520
+ * @param ChangeRoleToStandaloneRequest
521
+ * @return ChangeRoleToStandaloneResponse
522
+ * @throws OciError when an error occurs
523
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ChangeRoleToStandalone.ts.html |here} to see how to use ChangeRoleToStandalone API.
524
+ */
525
+ changeRoleToStandalone(changeRoleToStandaloneRequest) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ if (this.logger)
528
+ this.logger.debug("Calling operation PostgresqlClient#changeRoleToStandalone.");
529
+ const operationName = "changeRoleToStandalone";
530
+ const apiReferenceLink = "";
531
+ const pathParams = {
532
+ "{dbSystemId}": changeRoleToStandaloneRequest.dbSystemId
533
+ };
534
+ const queryParams = {};
535
+ let headerParams = {
536
+ "Content-Type": common.Constants.APPLICATION_JSON,
537
+ "if-match": changeRoleToStandaloneRequest.ifMatch,
538
+ "opc-request-id": changeRoleToStandaloneRequest.opcRequestId,
539
+ "opc-retry-token": changeRoleToStandaloneRequest.opcRetryToken
540
+ };
541
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
542
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRoleToStandaloneRequest.retryConfiguration, specRetryConfiguration);
543
+ if (this.logger)
544
+ retrier.logger = this.logger;
545
+ const request = yield oci_common_1.composeRequest({
546
+ baseEndpoint: this._endpoint,
547
+ defaultHeaders: this._defaultHeaders,
548
+ path: "/dbSystems/{dbSystemId}/actions/changeRoleToStandalone",
549
+ method: "POST",
550
+ bodyContent: common.ObjectSerializer.serialize(changeRoleToStandaloneRequest.changeRoleToStandaloneDetails, "ChangeRoleToStandaloneDetails", model.ChangeRoleToStandaloneDetails.getJsonObj),
551
+ pathParams: pathParams,
552
+ headerParams: headerParams,
553
+ queryParams: queryParams
554
+ });
555
+ try {
556
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
557
+ const sdkResponse = oci_common_1.composeResponse({
558
+ responseObject: {},
559
+ responseHeaders: [
560
+ {
561
+ value: response.headers.get("opc-work-request-id"),
562
+ key: "opcWorkRequestId",
563
+ dataType: "string"
564
+ },
565
+ {
566
+ value: response.headers.get("opc-request-id"),
567
+ key: "opcRequestId",
568
+ dataType: "string"
569
+ }
570
+ ]
571
+ });
572
+ return sdkResponse;
573
+ }
574
+ catch (err) {
575
+ throw err;
576
+ }
577
+ });
578
+ }
455
579
  /**
456
580
  * Creates a new backup.
457
581
  *
@@ -1480,6 +1604,73 @@ class PostgresqlClient {
1480
1604
  }
1481
1605
  });
1482
1606
  }
1607
+ /**
1608
+ * Returns a list of replica database systems.
1609
+ *
1610
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1611
+ * @param ListDbSystemReplicasRequest
1612
+ * @return ListDbSystemReplicasResponse
1613
+ * @throws OciError when an error occurs
1614
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListDbSystemReplicas.ts.html |here} to see how to use ListDbSystemReplicas API.
1615
+ */
1616
+ listDbSystemReplicas(listDbSystemReplicasRequest) {
1617
+ return __awaiter(this, void 0, void 0, function* () {
1618
+ if (this.logger)
1619
+ this.logger.debug("Calling operation PostgresqlClient#listDbSystemReplicas.");
1620
+ const operationName = "listDbSystemReplicas";
1621
+ const apiReferenceLink = "";
1622
+ const pathParams = {
1623
+ "{dbSystemId}": listDbSystemReplicasRequest.dbSystemId
1624
+ };
1625
+ const queryParams = {
1626
+ "limit": listDbSystemReplicasRequest.limit,
1627
+ "page": listDbSystemReplicasRequest.page
1628
+ };
1629
+ let headerParams = {
1630
+ "Content-Type": common.Constants.APPLICATION_JSON,
1631
+ "opc-request-id": listDbSystemReplicasRequest.opcRequestId
1632
+ };
1633
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1634
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDbSystemReplicasRequest.retryConfiguration, specRetryConfiguration);
1635
+ if (this.logger)
1636
+ retrier.logger = this.logger;
1637
+ const request = yield oci_common_1.composeRequest({
1638
+ baseEndpoint: this._endpoint,
1639
+ defaultHeaders: this._defaultHeaders,
1640
+ path: "/dbSystems/{dbSystemId}/replicas",
1641
+ method: "GET",
1642
+ pathParams: pathParams,
1643
+ headerParams: headerParams,
1644
+ queryParams: queryParams
1645
+ });
1646
+ try {
1647
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1648
+ const sdkResponse = oci_common_1.composeResponse({
1649
+ responseObject: {},
1650
+ body: yield response.json(),
1651
+ bodyKey: "dbSystemReplicaCollection",
1652
+ bodyModel: model.DbSystemReplicaCollection,
1653
+ type: "model.DbSystemReplicaCollection",
1654
+ responseHeaders: [
1655
+ {
1656
+ value: response.headers.get("opc-request-id"),
1657
+ key: "opcRequestId",
1658
+ dataType: "string"
1659
+ },
1660
+ {
1661
+ value: response.headers.get("opc-next-page"),
1662
+ key: "opcNextPage",
1663
+ dataType: "string"
1664
+ }
1665
+ ]
1666
+ });
1667
+ return sdkResponse;
1668
+ }
1669
+ catch (err) {
1670
+ throw err;
1671
+ }
1672
+ });
1673
+ }
1483
1674
  /**
1484
1675
  * Returns a list of database systems.
1485
1676
  *
@@ -1504,7 +1695,8 @@ class PostgresqlClient {
1504
1695
  "limit": listDbSystemsRequest.limit,
1505
1696
  "page": listDbSystemsRequest.page,
1506
1697
  "sortOrder": listDbSystemsRequest.sortOrder,
1507
- "sortBy": listDbSystemsRequest.sortBy
1698
+ "sortBy": listDbSystemsRequest.sortBy,
1699
+ "systemRole": listDbSystemsRequest.systemRole
1508
1700
  };
1509
1701
  let headerParams = {
1510
1702
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1625,6 +1817,76 @@ class PostgresqlClient {
1625
1817
  }
1626
1818
  });
1627
1819
  }
1820
+ /**
1821
+ * Returns the supported insight types and their capabilities.
1822
+ * This API allows clients to discover:
1823
+ * - Supported insight types
1824
+ * - Supported insight data types for each insight type
1825
+ * - Filters, sorting, pagination, limits, and data contracts
1826
+ * required to use the unified insights API.
1827
+ *
1828
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1829
+ * @param ListInsightCapabilitiesRequest
1830
+ * @return ListInsightCapabilitiesResponse
1831
+ * @throws OciError when an error occurs
1832
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/ListInsightCapabilities.ts.html |here} to see how to use ListInsightCapabilities API.
1833
+ */
1834
+ listInsightCapabilities(listInsightCapabilitiesRequest) {
1835
+ return __awaiter(this, void 0, void 0, function* () {
1836
+ if (this.logger)
1837
+ this.logger.debug("Calling operation PostgresqlClient#listInsightCapabilities.");
1838
+ const operationName = "listInsightCapabilities";
1839
+ const apiReferenceLink = "";
1840
+ const pathParams = {};
1841
+ const queryParams = {
1842
+ "limit": listInsightCapabilitiesRequest.limit,
1843
+ "page": listInsightCapabilitiesRequest.page
1844
+ };
1845
+ let headerParams = {
1846
+ "Content-Type": common.Constants.APPLICATION_JSON,
1847
+ "opc-request-id": listInsightCapabilitiesRequest.opcRequestId
1848
+ };
1849
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1850
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInsightCapabilitiesRequest.retryConfiguration, specRetryConfiguration);
1851
+ if (this.logger)
1852
+ retrier.logger = this.logger;
1853
+ const request = yield oci_common_1.composeRequest({
1854
+ baseEndpoint: this._endpoint,
1855
+ defaultHeaders: this._defaultHeaders,
1856
+ path: "/insightCapabilities",
1857
+ method: "GET",
1858
+ pathParams: pathParams,
1859
+ headerParams: headerParams,
1860
+ queryParams: queryParams
1861
+ });
1862
+ try {
1863
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1864
+ const sdkResponse = oci_common_1.composeResponse({
1865
+ responseObject: {},
1866
+ body: yield response.json(),
1867
+ bodyKey: "insightCapabilityCollection",
1868
+ bodyModel: model.InsightCapabilityCollection,
1869
+ type: "model.InsightCapabilityCollection",
1870
+ responseHeaders: [
1871
+ {
1872
+ value: response.headers.get("opc-request-id"),
1873
+ key: "opcRequestId",
1874
+ dataType: "string"
1875
+ },
1876
+ {
1877
+ value: response.headers.get("opc-next-page"),
1878
+ key: "opcNextPage",
1879
+ dataType: "string"
1880
+ }
1881
+ ]
1882
+ });
1883
+ return sdkResponse;
1884
+ }
1885
+ catch (err) {
1886
+ throw err;
1887
+ }
1888
+ });
1889
+ }
1628
1890
  /**
1629
1891
  * Returns the list of shapes allowed in the region.
1630
1892
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -2149,6 +2411,191 @@ class PostgresqlClient {
2149
2411
  }
2150
2412
  });
2151
2413
  }
2414
+ /**
2415
+ * Start the DB System.
2416
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2417
+ * @param StartDbSystemRequest
2418
+ * @return StartDbSystemResponse
2419
+ * @throws OciError when an error occurs
2420
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/StartDbSystem.ts.html |here} to see how to use StartDbSystem API.
2421
+ */
2422
+ startDbSystem(startDbSystemRequest) {
2423
+ return __awaiter(this, void 0, void 0, function* () {
2424
+ if (this.logger)
2425
+ this.logger.debug("Calling operation PostgresqlClient#startDbSystem.");
2426
+ const operationName = "startDbSystem";
2427
+ const apiReferenceLink = "";
2428
+ const pathParams = {
2429
+ "{dbSystemId}": startDbSystemRequest.dbSystemId
2430
+ };
2431
+ const queryParams = {};
2432
+ let headerParams = {
2433
+ "Content-Type": common.Constants.APPLICATION_JSON,
2434
+ "if-match": startDbSystemRequest.ifMatch,
2435
+ "opc-request-id": startDbSystemRequest.opcRequestId,
2436
+ "opc-retry-token": startDbSystemRequest.opcRetryToken
2437
+ };
2438
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2439
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startDbSystemRequest.retryConfiguration, specRetryConfiguration);
2440
+ if (this.logger)
2441
+ retrier.logger = this.logger;
2442
+ const request = yield oci_common_1.composeRequest({
2443
+ baseEndpoint: this._endpoint,
2444
+ defaultHeaders: this._defaultHeaders,
2445
+ path: "/dbSystems/{dbSystemId}/actions/start",
2446
+ method: "POST",
2447
+ bodyContent: common.ObjectSerializer.serialize(startDbSystemRequest.startDbSystemDetails, "StartDbSystemDetails", model.StartDbSystemDetails.getJsonObj),
2448
+ pathParams: pathParams,
2449
+ headerParams: headerParams,
2450
+ queryParams: queryParams
2451
+ });
2452
+ try {
2453
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2454
+ const sdkResponse = oci_common_1.composeResponse({
2455
+ responseObject: {},
2456
+ responseHeaders: [
2457
+ {
2458
+ value: response.headers.get("opc-work-request-id"),
2459
+ key: "opcWorkRequestId",
2460
+ dataType: "string"
2461
+ },
2462
+ {
2463
+ value: response.headers.get("opc-request-id"),
2464
+ key: "opcRequestId",
2465
+ dataType: "string"
2466
+ }
2467
+ ]
2468
+ });
2469
+ return sdkResponse;
2470
+ }
2471
+ catch (err) {
2472
+ throw err;
2473
+ }
2474
+ });
2475
+ }
2476
+ /**
2477
+ * Stop the DB System.
2478
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2479
+ * @param StopDbSystemRequest
2480
+ * @return StopDbSystemResponse
2481
+ * @throws OciError when an error occurs
2482
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/StopDbSystem.ts.html |here} to see how to use StopDbSystem API.
2483
+ */
2484
+ stopDbSystem(stopDbSystemRequest) {
2485
+ return __awaiter(this, void 0, void 0, function* () {
2486
+ if (this.logger)
2487
+ this.logger.debug("Calling operation PostgresqlClient#stopDbSystem.");
2488
+ const operationName = "stopDbSystem";
2489
+ const apiReferenceLink = "";
2490
+ const pathParams = {
2491
+ "{dbSystemId}": stopDbSystemRequest.dbSystemId
2492
+ };
2493
+ const queryParams = {};
2494
+ let headerParams = {
2495
+ "Content-Type": common.Constants.APPLICATION_JSON,
2496
+ "if-match": stopDbSystemRequest.ifMatch,
2497
+ "opc-request-id": stopDbSystemRequest.opcRequestId,
2498
+ "opc-retry-token": stopDbSystemRequest.opcRetryToken
2499
+ };
2500
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2501
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopDbSystemRequest.retryConfiguration, specRetryConfiguration);
2502
+ if (this.logger)
2503
+ retrier.logger = this.logger;
2504
+ const request = yield oci_common_1.composeRequest({
2505
+ baseEndpoint: this._endpoint,
2506
+ defaultHeaders: this._defaultHeaders,
2507
+ path: "/dbSystems/{dbSystemId}/actions/stop",
2508
+ method: "POST",
2509
+ pathParams: pathParams,
2510
+ headerParams: headerParams,
2511
+ queryParams: queryParams
2512
+ });
2513
+ try {
2514
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2515
+ const sdkResponse = oci_common_1.composeResponse({
2516
+ responseObject: {},
2517
+ responseHeaders: [
2518
+ {
2519
+ value: response.headers.get("opc-work-request-id"),
2520
+ key: "opcWorkRequestId",
2521
+ dataType: "string"
2522
+ },
2523
+ {
2524
+ value: response.headers.get("opc-request-id"),
2525
+ key: "opcRequestId",
2526
+ dataType: "string"
2527
+ }
2528
+ ]
2529
+ });
2530
+ return sdkResponse;
2531
+ }
2532
+ catch (err) {
2533
+ throw err;
2534
+ }
2535
+ });
2536
+ }
2537
+ /**
2538
+ * Switchover the roles between a primary database system and its replica, making the replica the new primary and the original primary become its replica.
2539
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2540
+ * @param SwitchOverRequest
2541
+ * @return SwitchOverResponse
2542
+ * @throws OciError when an error occurs
2543
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psql/SwitchOver.ts.html |here} to see how to use SwitchOver API.
2544
+ */
2545
+ switchOver(switchOverRequest) {
2546
+ return __awaiter(this, void 0, void 0, function* () {
2547
+ if (this.logger)
2548
+ this.logger.debug("Calling operation PostgresqlClient#switchOver.");
2549
+ const operationName = "switchOver";
2550
+ const apiReferenceLink = "";
2551
+ const pathParams = {
2552
+ "{dbSystemId}": switchOverRequest.dbSystemId
2553
+ };
2554
+ const queryParams = {};
2555
+ let headerParams = {
2556
+ "Content-Type": common.Constants.APPLICATION_JSON,
2557
+ "if-match": switchOverRequest.ifMatch,
2558
+ "opc-request-id": switchOverRequest.opcRequestId,
2559
+ "opc-retry-token": switchOverRequest.opcRetryToken
2560
+ };
2561
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2562
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, switchOverRequest.retryConfiguration, specRetryConfiguration);
2563
+ if (this.logger)
2564
+ retrier.logger = this.logger;
2565
+ const request = yield oci_common_1.composeRequest({
2566
+ baseEndpoint: this._endpoint,
2567
+ defaultHeaders: this._defaultHeaders,
2568
+ path: "/dbSystems/{dbSystemId}/actions/switchover",
2569
+ method: "POST",
2570
+ bodyContent: common.ObjectSerializer.serialize(switchOverRequest.switchOverDetails, "SwitchOverDetails", model.SwitchOverDetails.getJsonObj),
2571
+ pathParams: pathParams,
2572
+ headerParams: headerParams,
2573
+ queryParams: queryParams
2574
+ });
2575
+ try {
2576
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2577
+ const sdkResponse = oci_common_1.composeResponse({
2578
+ responseObject: {},
2579
+ responseHeaders: [
2580
+ {
2581
+ value: response.headers.get("opc-work-request-id"),
2582
+ key: "opcWorkRequestId",
2583
+ dataType: "string"
2584
+ },
2585
+ {
2586
+ value: response.headers.get("opc-request-id"),
2587
+ key: "opcRequestId",
2588
+ dataType: "string"
2589
+ }
2590
+ ]
2591
+ });
2592
+ return sdkResponse;
2593
+ }
2594
+ catch (err) {
2595
+ throw err;
2596
+ }
2597
+ });
2598
+ }
2152
2599
  /**
2153
2600
  * Updates the backup.
2154
2601
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.