oci-goldengate 2.106.2 → 2.107.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 (101) hide show
  1. package/lib/client.d.ts +51 -1
  2. package/lib/client.js +324 -1
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/add-deployment-local-peer-details.d.ts +31 -0
  5. package/lib/model/add-deployment-local-peer-details.js +30 -0
  6. package/lib/model/add-deployment-local-peer-details.js.map +1 -0
  7. package/lib/model/collect-pipeline-diagnostic-details.d.ts +35 -0
  8. package/lib/model/collect-pipeline-diagnostic-details.js +30 -0
  9. package/lib/model/collect-pipeline-diagnostic-details.js.map +1 -0
  10. package/lib/model/create-deployment-details.d.ts +22 -4
  11. package/lib/model/create-deployment-details.js +10 -0
  12. package/lib/model/create-deployment-details.js.map +1 -1
  13. package/lib/model/deployment-peer-collection.d.ts +29 -0
  14. package/lib/model/deployment-peer-collection.js +62 -0
  15. package/lib/model/deployment-peer-collection.js.map +1 -0
  16. package/lib/model/deployment-peer-summary.d.ts +92 -0
  17. package/lib/model/deployment-peer-summary.js +43 -0
  18. package/lib/model/deployment-peer-summary.js.map +1 -0
  19. package/lib/model/deployment-peer-type.d.ts +30 -0
  20. package/lib/model/deployment-peer-type.js +41 -0
  21. package/lib/model/deployment-peer-type.js.map +1 -0
  22. package/lib/model/deployment-placement-details.d.ts +33 -0
  23. package/lib/model/deployment-placement-details.js +30 -0
  24. package/lib/model/deployment-placement-details.js.map +1 -0
  25. package/lib/model/deployment-placement-info.d.ts +31 -0
  26. package/lib/model/deployment-placement-info.js +30 -0
  27. package/lib/model/deployment-placement-info.js.map +1 -0
  28. package/lib/model/deployment-role.d.ts +30 -0
  29. package/lib/model/deployment-role.js +41 -0
  30. package/lib/model/deployment-role.js.map +1 -0
  31. package/lib/model/deployment-type-summary.d.ts +19 -0
  32. package/lib/model/deployment-type-summary.js +15 -0
  33. package/lib/model/deployment-type-summary.js.map +1 -1
  34. package/lib/model/deployment.d.ts +29 -0
  35. package/lib/model/deployment.js +10 -0
  36. package/lib/model/deployment.js.map +1 -1
  37. package/lib/model/index.d.ts +26 -0
  38. package/lib/model/index.js +33 -7
  39. package/lib/model/index.js.map +1 -1
  40. package/lib/model/operation-type.d.ts +2 -0
  41. package/lib/model/operation-type.js +2 -0
  42. package/lib/model/operation-type.js.map +1 -1
  43. package/lib/model/pipeline-diagnostic-data.d.ts +47 -0
  44. package/lib/model/pipeline-diagnostic-data.js +30 -0
  45. package/lib/model/pipeline-diagnostic-data.js.map +1 -0
  46. package/lib/model/pipeline-diagnostic-state.d.ts +31 -0
  47. package/lib/model/pipeline-diagnostic-state.js +42 -0
  48. package/lib/model/pipeline-diagnostic-state.js.map +1 -0
  49. package/lib/model/pipeline.d.ts +1 -0
  50. package/lib/model/pipeline.js +6 -0
  51. package/lib/model/pipeline.js.map +1 -1
  52. package/lib/model/process-options.d.ts +14 -0
  53. package/lib/model/process-options.js +10 -0
  54. package/lib/model/process-options.js.map +1 -1
  55. package/lib/model/remove-deployment-local-peer-details.d.ts +31 -0
  56. package/lib/model/remove-deployment-local-peer-details.js +30 -0
  57. package/lib/model/remove-deployment-local-peer-details.js.map +1 -0
  58. package/lib/model/supported-capabilities.d.ts +35 -0
  59. package/lib/model/supported-capabilities.js +46 -0
  60. package/lib/model/supported-capabilities.js.map +1 -0
  61. package/lib/model/switchover-deployment-peer-details.d.ts +31 -0
  62. package/lib/model/switchover-deployment-peer-details.js +30 -0
  63. package/lib/model/switchover-deployment-peer-details.js.map +1 -0
  64. package/lib/model/update-deployment-details.d.ts +5 -0
  65. package/lib/model/update-deployment-details.js +10 -0
  66. package/lib/model/update-deployment-details.js.map +1 -1
  67. package/lib/request/add-deployment-local-peer-request.d.ts +50 -0
  68. package/lib/request/add-deployment-local-peer-request.js +15 -0
  69. package/lib/request/add-deployment-local-peer-request.js.map +1 -0
  70. package/lib/request/collect-pipeline-diagnostic-request.d.ts +50 -0
  71. package/lib/request/collect-pipeline-diagnostic-request.js +15 -0
  72. package/lib/request/collect-pipeline-diagnostic-request.js.map +1 -0
  73. package/lib/request/index.d.ts +10 -0
  74. package/lib/request/index.js +3 -1
  75. package/lib/request/index.js.map +1 -1
  76. package/lib/request/list-deployment-peers-request.d.ts +68 -0
  77. package/lib/request/list-deployment-peers-request.js +24 -0
  78. package/lib/request/list-deployment-peers-request.js.map +1 -0
  79. package/lib/request/remove-deployment-local-peer-request.d.ts +50 -0
  80. package/lib/request/remove-deployment-local-peer-request.js +15 -0
  81. package/lib/request/remove-deployment-local-peer-request.js.map +1 -0
  82. package/lib/request/switchover-deployment-peer-request.d.ts +50 -0
  83. package/lib/request/switchover-deployment-peer-request.js +15 -0
  84. package/lib/request/switchover-deployment-peer-request.js.map +1 -0
  85. package/lib/response/add-deployment-local-peer-response.d.ts +26 -0
  86. package/lib/response/add-deployment-local-peer-response.js +15 -0
  87. package/lib/response/add-deployment-local-peer-response.js.map +1 -0
  88. package/lib/response/collect-pipeline-diagnostic-response.d.ts +26 -0
  89. package/lib/response/collect-pipeline-diagnostic-response.js +15 -0
  90. package/lib/response/collect-pipeline-diagnostic-response.js.map +1 -0
  91. package/lib/response/index.d.ts +10 -0
  92. package/lib/response/list-deployment-peers-response.d.ts +31 -0
  93. package/lib/response/list-deployment-peers-response.js +15 -0
  94. package/lib/response/list-deployment-peers-response.js.map +1 -0
  95. package/lib/response/remove-deployment-local-peer-response.d.ts +26 -0
  96. package/lib/response/remove-deployment-local-peer-response.js +15 -0
  97. package/lib/response/remove-deployment-local-peer-response.js.map +1 -0
  98. package/lib/response/switchover-deployment-peer-response.d.ts +26 -0
  99. package/lib/response/switchover-deployment-peer-response.js +15 -0
  100. package/lib/response/switchover-deployment-peer-response.js.map +1 -0
  101. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -114,6 +114,16 @@ export declare class GoldenGateClient {
114
114
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/AddDeploymentBackupLock.ts.html |here} to see how to use AddDeploymentBackupLock API.
115
115
  */
116
116
  addDeploymentBackupLock(addDeploymentBackupLockRequest: requests.AddDeploymentBackupLockRequest): Promise<responses.AddDeploymentBackupLockResponse>;
117
+ /**
118
+ * Adds a new local peer to the deployment, this will add the given placement to deployment placement attribute. When provided, If-Match is checked against ETag values of the resource.
119
+ *
120
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
121
+ * @param AddDeploymentLocalPeerRequest
122
+ * @return AddDeploymentLocalPeerResponse
123
+ * @throws OciError when an error occurs
124
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/AddDeploymentLocalPeer.ts.html |here} to see how to use AddDeploymentLocalPeer API.
125
+ */
126
+ addDeploymentLocalPeer(addDeploymentLocalPeerRequest: requests.AddDeploymentLocalPeerRequest): Promise<responses.AddDeploymentLocalPeerResponse>;
117
127
  /**
118
128
  * Adds a lock to a Deployment resource.
119
129
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -228,6 +238,16 @@ export declare class GoldenGateClient {
228
238
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/CollectDeploymentDiagnostic.ts.html |here} to see how to use CollectDeploymentDiagnostic API.
229
239
  */
230
240
  collectDeploymentDiagnostic(collectDeploymentDiagnosticRequest: requests.CollectDeploymentDiagnosticRequest): Promise<responses.CollectDeploymentDiagnosticResponse>;
241
+ /**
242
+ * Collects diagnostics for the pipeline
243
+ *
244
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
245
+ * @param CollectPipelineDiagnosticRequest
246
+ * @return CollectPipelineDiagnosticResponse
247
+ * @throws OciError when an error occurs
248
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/CollectPipelineDiagnostic.ts.html |here} to see how to use CollectPipelineDiagnostic API.
249
+ */
250
+ collectPipelineDiagnostic(collectPipelineDiagnosticRequest: requests.CollectPipelineDiagnosticRequest): Promise<responses.CollectPipelineDiagnosticResponse>;
231
251
  /**
232
252
  * Creates a copy of a Deployment Backup.
233
253
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -566,6 +586,16 @@ export declare class GoldenGateClient {
566
586
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/ListDeploymentEnvironments.ts.html |here} to see how to use ListDeploymentEnvironments API.
567
587
  */
568
588
  listDeploymentEnvironments(listDeploymentEnvironmentsRequest: requests.ListDeploymentEnvironmentsRequest): Promise<responses.ListDeploymentEnvironmentsResponse>;
589
+ /**
590
+ * Lists the local and remote peers in a deployment.
591
+ *
592
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
593
+ * @param ListDeploymentPeersRequest
594
+ * @return ListDeploymentPeersResponse
595
+ * @throws OciError when an error occurs
596
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/ListDeploymentPeers.ts.html |here} to see how to use ListDeploymentPeers API.
597
+ */
598
+ listDeploymentPeers(listDeploymentPeersRequest: requests.ListDeploymentPeersRequest): Promise<responses.ListDeploymentPeersResponse>;
569
599
  /**
570
600
  * Returns an array of DeploymentTypeDescriptor
571
601
  *
@@ -637,7 +667,7 @@ export declare class GoldenGateClient {
637
667
  */
638
668
  listPipelineInitializationSteps(listPipelineInitializationStepsRequest: requests.ListPipelineInitializationStepsRequest): Promise<responses.ListPipelineInitializationStepsResponse>;
639
669
  /**
640
- * Retrieves a Pipeline's running replication process's status like extracts/replicats.
670
+ * Retrieves a Pipeline's running replication process's status like Capture/Apply.
641
671
  *
642
672
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
643
673
  * @param ListPipelineRunningProcessesRequest
@@ -862,6 +892,16 @@ export declare class GoldenGateClient {
862
892
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/RemoveDeploymentBackupLock.ts.html |here} to see how to use RemoveDeploymentBackupLock API.
863
893
  */
864
894
  removeDeploymentBackupLock(removeDeploymentBackupLockRequest: requests.RemoveDeploymentBackupLockRequest): Promise<responses.RemoveDeploymentBackupLockResponse>;
895
+ /**
896
+ * Removes a local peer of the deployment, this will remove the given placement entry from the deployment placement attribute. When provided, If-Match is checked against ETag values of the resource.
897
+ *
898
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
899
+ * @param RemoveDeploymentLocalPeerRequest
900
+ * @return RemoveDeploymentLocalPeerResponse
901
+ * @throws OciError when an error occurs
902
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/RemoveDeploymentLocalPeer.ts.html |here} to see how to use RemoveDeploymentLocalPeer API.
903
+ */
904
+ removeDeploymentLocalPeer(removeDeploymentLocalPeerRequest: requests.RemoveDeploymentLocalPeerRequest): Promise<responses.RemoveDeploymentLocalPeerResponse>;
865
905
  /**
866
906
  * Removes a lock from a Deployment resource.
867
907
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -950,6 +990,16 @@ export declare class GoldenGateClient {
950
990
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/StopPipeline.ts.html |here} to see how to use StopPipeline API.
951
991
  */
952
992
  stopPipeline(stopPipelineRequest: requests.StopPipelineRequest): Promise<responses.StopPipelineResponse>;
993
+ /**
994
+ * Switchover to the selected standby peer, which can be a local placement or a standby deployment in different region. When provided, If-Match is checked against ETag values of the resource.
995
+ *
996
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
997
+ * @param SwitchoverDeploymentPeerRequest
998
+ * @return SwitchoverDeploymentPeerResponse
999
+ * @throws OciError when an error occurs
1000
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/SwitchoverDeploymentPeer.ts.html |here} to see how to use SwitchoverDeploymentPeer API.
1001
+ */
1002
+ switchoverDeploymentPeer(switchoverDeploymentPeerRequest: requests.SwitchoverDeploymentPeerRequest): Promise<responses.SwitchoverDeploymentPeerResponse>;
953
1003
  /**
954
1004
  * Tests the connectivity between given GoldenGate deployment and one of the associated database / service.
955
1005
  * When provided, If-Match is checked against ETag values of the resource.
package/lib/client.js CHANGED
@@ -339,6 +339,69 @@ class GoldenGateClient {
339
339
  }
340
340
  });
341
341
  }
342
+ /**
343
+ * Adds a new local peer to the deployment, this will add the given placement to deployment placement attribute. When provided, If-Match is checked against ETag values of the resource.
344
+ *
345
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
346
+ * @param AddDeploymentLocalPeerRequest
347
+ * @return AddDeploymentLocalPeerResponse
348
+ * @throws OciError when an error occurs
349
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/AddDeploymentLocalPeer.ts.html |here} to see how to use AddDeploymentLocalPeer API.
350
+ */
351
+ addDeploymentLocalPeer(addDeploymentLocalPeerRequest) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ if (this.logger)
354
+ this.logger.debug("Calling operation GoldenGateClient#addDeploymentLocalPeer.");
355
+ const operationName = "addDeploymentLocalPeer";
356
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/AddDeploymentLocalPeer";
357
+ const pathParams = {
358
+ "{deploymentId}": addDeploymentLocalPeerRequest.deploymentId
359
+ };
360
+ const queryParams = {};
361
+ let headerParams = {
362
+ "Content-Type": common.Constants.APPLICATION_JSON,
363
+ "if-match": addDeploymentLocalPeerRequest.ifMatch,
364
+ "opc-request-id": addDeploymentLocalPeerRequest.opcRequestId,
365
+ "opc-retry-token": addDeploymentLocalPeerRequest.opcRetryToken
366
+ };
367
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
368
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDeploymentLocalPeerRequest.retryConfiguration, specRetryConfiguration);
369
+ if (this.logger)
370
+ retrier.logger = this.logger;
371
+ const request = yield oci_common_2.composeRequest({
372
+ baseEndpoint: this._endpoint,
373
+ defaultHeaders: this._defaultHeaders,
374
+ path: "/deployments/{deploymentId}/actions/addLocalPeer",
375
+ method: "POST",
376
+ bodyContent: common.ObjectSerializer.serialize(addDeploymentLocalPeerRequest.addDeploymentLocalPeerDetails, "AddDeploymentLocalPeerDetails", model.AddDeploymentLocalPeerDetails.getJsonObj),
377
+ pathParams: pathParams,
378
+ headerParams: headerParams,
379
+ queryParams: queryParams
380
+ });
381
+ try {
382
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
383
+ const sdkResponse = oci_common_2.composeResponse({
384
+ responseObject: {},
385
+ responseHeaders: [
386
+ {
387
+ value: response.headers.get("opc-work-request-id"),
388
+ key: "opcWorkRequestId",
389
+ dataType: "string"
390
+ },
391
+ {
392
+ value: response.headers.get("opc-request-id"),
393
+ key: "opcRequestId",
394
+ dataType: "string"
395
+ }
396
+ ]
397
+ });
398
+ return sdkResponse;
399
+ }
400
+ catch (err) {
401
+ throw err;
402
+ }
403
+ });
404
+ }
342
405
  /**
343
406
  * Adds a lock to a Deployment resource.
344
407
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -994,6 +1057,69 @@ class GoldenGateClient {
994
1057
  }
995
1058
  });
996
1059
  }
1060
+ /**
1061
+ * Collects diagnostics for the pipeline
1062
+ *
1063
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1064
+ * @param CollectPipelineDiagnosticRequest
1065
+ * @return CollectPipelineDiagnosticResponse
1066
+ * @throws OciError when an error occurs
1067
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/CollectPipelineDiagnostic.ts.html |here} to see how to use CollectPipelineDiagnostic API.
1068
+ */
1069
+ collectPipelineDiagnostic(collectPipelineDiagnosticRequest) {
1070
+ return __awaiter(this, void 0, void 0, function* () {
1071
+ if (this.logger)
1072
+ this.logger.debug("Calling operation GoldenGateClient#collectPipelineDiagnostic.");
1073
+ const operationName = "collectPipelineDiagnostic";
1074
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/CollectPipelineDiagnostic";
1075
+ const pathParams = {
1076
+ "{pipelineId}": collectPipelineDiagnosticRequest.pipelineId
1077
+ };
1078
+ const queryParams = {};
1079
+ let headerParams = {
1080
+ "Content-Type": common.Constants.APPLICATION_JSON,
1081
+ "if-match": collectPipelineDiagnosticRequest.ifMatch,
1082
+ "opc-request-id": collectPipelineDiagnosticRequest.opcRequestId,
1083
+ "opc-retry-token": collectPipelineDiagnosticRequest.opcRetryToken
1084
+ };
1085
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1086
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, collectPipelineDiagnosticRequest.retryConfiguration, specRetryConfiguration);
1087
+ if (this.logger)
1088
+ retrier.logger = this.logger;
1089
+ const request = yield oci_common_2.composeRequest({
1090
+ baseEndpoint: this._endpoint,
1091
+ defaultHeaders: this._defaultHeaders,
1092
+ path: "/pipelines/{pipelineId}/actions/collectDiagnostics",
1093
+ method: "POST",
1094
+ bodyContent: common.ObjectSerializer.serialize(collectPipelineDiagnosticRequest.collectPipelineDiagnosticDetails, "CollectPipelineDiagnosticDetails", model.CollectPipelineDiagnosticDetails.getJsonObj),
1095
+ pathParams: pathParams,
1096
+ headerParams: headerParams,
1097
+ queryParams: queryParams
1098
+ });
1099
+ try {
1100
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1101
+ const sdkResponse = oci_common_2.composeResponse({
1102
+ responseObject: {},
1103
+ responseHeaders: [
1104
+ {
1105
+ value: response.headers.get("opc-work-request-id"),
1106
+ key: "opcWorkRequestId",
1107
+ dataType: "string"
1108
+ },
1109
+ {
1110
+ value: response.headers.get("opc-request-id"),
1111
+ key: "opcRequestId",
1112
+ dataType: "string"
1113
+ }
1114
+ ]
1115
+ });
1116
+ return sdkResponse;
1117
+ }
1118
+ catch (err) {
1119
+ throw err;
1120
+ }
1121
+ });
1122
+ }
997
1123
  /**
998
1124
  * Creates a copy of a Deployment Backup.
999
1125
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -3269,6 +3395,77 @@ class GoldenGateClient {
3269
3395
  }
3270
3396
  });
3271
3397
  }
3398
+ /**
3399
+ * Lists the local and remote peers in a deployment.
3400
+ *
3401
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3402
+ * @param ListDeploymentPeersRequest
3403
+ * @return ListDeploymentPeersResponse
3404
+ * @throws OciError when an error occurs
3405
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/ListDeploymentPeers.ts.html |here} to see how to use ListDeploymentPeers API.
3406
+ */
3407
+ listDeploymentPeers(listDeploymentPeersRequest) {
3408
+ return __awaiter(this, void 0, void 0, function* () {
3409
+ if (this.logger)
3410
+ this.logger.debug("Calling operation GoldenGateClient#listDeploymentPeers.");
3411
+ const operationName = "listDeploymentPeers";
3412
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentPeerSummary/ListDeploymentPeers";
3413
+ const pathParams = {
3414
+ "{deploymentId}": listDeploymentPeersRequest.deploymentId
3415
+ };
3416
+ const queryParams = {
3417
+ "lifecycleState": listDeploymentPeersRequest.lifecycleState,
3418
+ "displayName": listDeploymentPeersRequest.displayName,
3419
+ "limit": listDeploymentPeersRequest.limit,
3420
+ "page": listDeploymentPeersRequest.page,
3421
+ "sortOrder": listDeploymentPeersRequest.sortOrder,
3422
+ "sortBy": listDeploymentPeersRequest.sortBy
3423
+ };
3424
+ let headerParams = {
3425
+ "Content-Type": common.Constants.APPLICATION_JSON,
3426
+ "opc-request-id": listDeploymentPeersRequest.opcRequestId
3427
+ };
3428
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3429
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDeploymentPeersRequest.retryConfiguration, specRetryConfiguration);
3430
+ if (this.logger)
3431
+ retrier.logger = this.logger;
3432
+ const request = yield oci_common_2.composeRequest({
3433
+ baseEndpoint: this._endpoint,
3434
+ defaultHeaders: this._defaultHeaders,
3435
+ path: "/deployments/{deploymentId}/peers",
3436
+ method: "GET",
3437
+ pathParams: pathParams,
3438
+ headerParams: headerParams,
3439
+ queryParams: queryParams
3440
+ });
3441
+ try {
3442
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3443
+ const sdkResponse = oci_common_2.composeResponse({
3444
+ responseObject: {},
3445
+ body: yield response.json(),
3446
+ bodyKey: "deploymentPeerCollection",
3447
+ bodyModel: model.DeploymentPeerCollection,
3448
+ type: "model.DeploymentPeerCollection",
3449
+ responseHeaders: [
3450
+ {
3451
+ value: response.headers.get("opc-request-id"),
3452
+ key: "opcRequestId",
3453
+ dataType: "string"
3454
+ },
3455
+ {
3456
+ value: response.headers.get("opc-next-page"),
3457
+ key: "opcNextPage",
3458
+ dataType: "string"
3459
+ }
3460
+ ]
3461
+ });
3462
+ return sdkResponse;
3463
+ }
3464
+ catch (err) {
3465
+ throw err;
3466
+ }
3467
+ });
3468
+ }
3272
3469
  /**
3273
3470
  * Returns an array of DeploymentTypeDescriptor
3274
3471
  *
@@ -3752,7 +3949,7 @@ class GoldenGateClient {
3752
3949
  });
3753
3950
  }
3754
3951
  /**
3755
- * Retrieves a Pipeline's running replication process's status like extracts/replicats.
3952
+ * Retrieves a Pipeline's running replication process's status like Capture/Apply.
3756
3953
  *
3757
3954
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3758
3955
  * @param ListPipelineRunningProcessesRequest
@@ -4761,6 +4958,69 @@ class GoldenGateClient {
4761
4958
  }
4762
4959
  });
4763
4960
  }
4961
+ /**
4962
+ * Removes a local peer of the deployment, this will remove the given placement entry from the deployment placement attribute. When provided, If-Match is checked against ETag values of the resource.
4963
+ *
4964
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
4965
+ * @param RemoveDeploymentLocalPeerRequest
4966
+ * @return RemoveDeploymentLocalPeerResponse
4967
+ * @throws OciError when an error occurs
4968
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/RemoveDeploymentLocalPeer.ts.html |here} to see how to use RemoveDeploymentLocalPeer API.
4969
+ */
4970
+ removeDeploymentLocalPeer(removeDeploymentLocalPeerRequest) {
4971
+ return __awaiter(this, void 0, void 0, function* () {
4972
+ if (this.logger)
4973
+ this.logger.debug("Calling operation GoldenGateClient#removeDeploymentLocalPeer.");
4974
+ const operationName = "removeDeploymentLocalPeer";
4975
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/RemoveDeploymentLocalPeer";
4976
+ const pathParams = {
4977
+ "{deploymentId}": removeDeploymentLocalPeerRequest.deploymentId
4978
+ };
4979
+ const queryParams = {};
4980
+ let headerParams = {
4981
+ "Content-Type": common.Constants.APPLICATION_JSON,
4982
+ "if-match": removeDeploymentLocalPeerRequest.ifMatch,
4983
+ "opc-request-id": removeDeploymentLocalPeerRequest.opcRequestId,
4984
+ "opc-retry-token": removeDeploymentLocalPeerRequest.opcRetryToken
4985
+ };
4986
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4987
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeDeploymentLocalPeerRequest.retryConfiguration, specRetryConfiguration);
4988
+ if (this.logger)
4989
+ retrier.logger = this.logger;
4990
+ const request = yield oci_common_2.composeRequest({
4991
+ baseEndpoint: this._endpoint,
4992
+ defaultHeaders: this._defaultHeaders,
4993
+ path: "/deployments/{deploymentId}/actions/removeLocalPeer",
4994
+ method: "POST",
4995
+ bodyContent: common.ObjectSerializer.serialize(removeDeploymentLocalPeerRequest.removeDeploymentLocalPeerDetails, "RemoveDeploymentLocalPeerDetails", model.RemoveDeploymentLocalPeerDetails.getJsonObj),
4996
+ pathParams: pathParams,
4997
+ headerParams: headerParams,
4998
+ queryParams: queryParams
4999
+ });
5000
+ try {
5001
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5002
+ const sdkResponse = oci_common_2.composeResponse({
5003
+ responseObject: {},
5004
+ responseHeaders: [
5005
+ {
5006
+ value: response.headers.get("opc-work-request-id"),
5007
+ key: "opcWorkRequestId",
5008
+ dataType: "string"
5009
+ },
5010
+ {
5011
+ value: response.headers.get("opc-request-id"),
5012
+ key: "opcRequestId",
5013
+ dataType: "string"
5014
+ }
5015
+ ]
5016
+ });
5017
+ return sdkResponse;
5018
+ }
5019
+ catch (err) {
5020
+ throw err;
5021
+ }
5022
+ });
5023
+ }
4764
5024
  /**
4765
5025
  * Removes a lock from a Deployment resource.
4766
5026
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -5340,6 +5600,69 @@ class GoldenGateClient {
5340
5600
  }
5341
5601
  });
5342
5602
  }
5603
+ /**
5604
+ * Switchover to the selected standby peer, which can be a local placement or a standby deployment in different region. When provided, If-Match is checked against ETag values of the resource.
5605
+ *
5606
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5607
+ * @param SwitchoverDeploymentPeerRequest
5608
+ * @return SwitchoverDeploymentPeerResponse
5609
+ * @throws OciError when an error occurs
5610
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/SwitchoverDeploymentPeer.ts.html |here} to see how to use SwitchoverDeploymentPeer API.
5611
+ */
5612
+ switchoverDeploymentPeer(switchoverDeploymentPeerRequest) {
5613
+ return __awaiter(this, void 0, void 0, function* () {
5614
+ if (this.logger)
5615
+ this.logger.debug("Calling operation GoldenGateClient#switchoverDeploymentPeer.");
5616
+ const operationName = "switchoverDeploymentPeer";
5617
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/SwitchoverDeploymentPeer";
5618
+ const pathParams = {
5619
+ "{deploymentId}": switchoverDeploymentPeerRequest.deploymentId
5620
+ };
5621
+ const queryParams = {};
5622
+ let headerParams = {
5623
+ "Content-Type": common.Constants.APPLICATION_JSON,
5624
+ "if-match": switchoverDeploymentPeerRequest.ifMatch,
5625
+ "opc-request-id": switchoverDeploymentPeerRequest.opcRequestId,
5626
+ "opc-retry-token": switchoverDeploymentPeerRequest.opcRetryToken
5627
+ };
5628
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5629
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, switchoverDeploymentPeerRequest.retryConfiguration, specRetryConfiguration);
5630
+ if (this.logger)
5631
+ retrier.logger = this.logger;
5632
+ const request = yield oci_common_2.composeRequest({
5633
+ baseEndpoint: this._endpoint,
5634
+ defaultHeaders: this._defaultHeaders,
5635
+ path: "/deployments/{deploymentId}/actions/switchover",
5636
+ method: "POST",
5637
+ bodyContent: common.ObjectSerializer.serialize(switchoverDeploymentPeerRequest.switchoverDeploymentPeerDetails, "SwitchoverDeploymentPeerDetails", model.SwitchoverDeploymentPeerDetails.getJsonObj),
5638
+ pathParams: pathParams,
5639
+ headerParams: headerParams,
5640
+ queryParams: queryParams
5641
+ });
5642
+ try {
5643
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5644
+ const sdkResponse = oci_common_2.composeResponse({
5645
+ responseObject: {},
5646
+ responseHeaders: [
5647
+ {
5648
+ value: response.headers.get("opc-work-request-id"),
5649
+ key: "opcWorkRequestId",
5650
+ dataType: "string"
5651
+ },
5652
+ {
5653
+ value: response.headers.get("opc-request-id"),
5654
+ key: "opcRequestId",
5655
+ dataType: "string"
5656
+ }
5657
+ ]
5658
+ });
5659
+ return sdkResponse;
5660
+ }
5661
+ catch (err) {
5662
+ throw err;
5663
+ }
5664
+ });
5665
+ }
5343
5666
  /**
5344
5667
  * Tests the connectivity between given GoldenGate deployment and one of the associated database / service.
5345
5668
  * When provided, If-Match is checked against ETag values of the resource.