oci-disasterrecovery 2.119.0 → 2.120.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 (120) hide show
  1. package/lib/client.d.ts +45 -0
  2. package/lib/client.js +323 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/disasterrecovery-waiter.d.ts +8 -0
  5. package/lib/disasterrecovery-waiter.js +12 -0
  6. package/lib/disasterrecovery-waiter.js.map +1 -1
  7. package/lib/model/automatic-dr-configuration-collection.d.ts +31 -0
  8. package/lib/model/automatic-dr-configuration-collection.js +65 -0
  9. package/lib/model/automatic-dr-configuration-collection.js.map +1 -0
  10. package/lib/model/automatic-dr-configuration-lifecycle-state.d.ts +47 -0
  11. package/lib/model/automatic-dr-configuration-lifecycle-state.js +58 -0
  12. package/lib/model/automatic-dr-configuration-lifecycle-state.js.map +1 -0
  13. package/lib/model/automatic-dr-configuration-member-autonomous-container-database.d.ts +42 -0
  14. package/lib/model/automatic-dr-configuration-member-autonomous-container-database.js +58 -0
  15. package/lib/model/automatic-dr-configuration-member-autonomous-container-database.js.map +1 -0
  16. package/lib/model/automatic-dr-configuration-member-autonomous-database.d.ts +42 -0
  17. package/lib/model/automatic-dr-configuration-member-autonomous-database.js +58 -0
  18. package/lib/model/automatic-dr-configuration-member-autonomous-database.js.map +1 -0
  19. package/lib/model/automatic-dr-configuration-member-database.d.ts +42 -0
  20. package/lib/model/automatic-dr-configuration-member-database.js +58 -0
  21. package/lib/model/automatic-dr-configuration-member-database.js.map +1 -0
  22. package/lib/model/automatic-dr-configuration-member-type.d.ts +37 -0
  23. package/lib/model/automatic-dr-configuration-member-type.js +48 -0
  24. package/lib/model/automatic-dr-configuration-member-type.js.map +1 -0
  25. package/lib/model/automatic-dr-configuration-member.d.ts +33 -0
  26. package/lib/model/automatic-dr-configuration-member.js +80 -0
  27. package/lib/model/automatic-dr-configuration-member.js.map +1 -0
  28. package/lib/model/automatic-dr-configuration-summary.d.ts +121 -0
  29. package/lib/model/automatic-dr-configuration-summary.js +33 -0
  30. package/lib/model/automatic-dr-configuration-summary.js.map +1 -0
  31. package/lib/model/automatic-dr-configuration.d.ts +143 -0
  32. package/lib/model/automatic-dr-configuration.js +65 -0
  33. package/lib/model/automatic-dr-configuration.js.map +1 -0
  34. package/lib/model/automatic-dr-plan-execution-submission-status.d.ts +35 -0
  35. package/lib/model/automatic-dr-plan-execution-submission-status.js +46 -0
  36. package/lib/model/automatic-dr-plan-execution-submission-status.js.map +1 -0
  37. package/lib/model/automatic-execution-details.d.ts +39 -0
  38. package/lib/model/automatic-execution-details.js +33 -0
  39. package/lib/model/automatic-execution-details.js.map +1 -0
  40. package/lib/model/create-automatic-dr-configuration-details.d.ts +79 -0
  41. package/lib/model/create-automatic-dr-configuration-details.js +65 -0
  42. package/lib/model/create-automatic-dr-configuration-details.js.map +1 -0
  43. package/lib/model/create-automatic-dr-configuration-member-autonomous-container-database-details.d.ts +42 -0
  44. package/lib/model/create-automatic-dr-configuration-member-autonomous-container-database-details.js +58 -0
  45. package/lib/model/create-automatic-dr-configuration-member-autonomous-container-database-details.js.map +1 -0
  46. package/lib/model/create-automatic-dr-configuration-member-autonomous-database-details.d.ts +42 -0
  47. package/lib/model/create-automatic-dr-configuration-member-autonomous-database-details.js +58 -0
  48. package/lib/model/create-automatic-dr-configuration-member-autonomous-database-details.js.map +1 -0
  49. package/lib/model/create-automatic-dr-configuration-member-database-details.d.ts +42 -0
  50. package/lib/model/create-automatic-dr-configuration-member-database-details.js +58 -0
  51. package/lib/model/create-automatic-dr-configuration-member-database-details.js.map +1 -0
  52. package/lib/model/create-automatic-dr-configuration-member-details.d.ts +33 -0
  53. package/lib/model/create-automatic-dr-configuration-member-details.js +80 -0
  54. package/lib/model/create-automatic-dr-configuration-member-details.js.map +1 -0
  55. package/lib/model/dr-plan-execution.d.ts +8 -0
  56. package/lib/model/dr-plan-execution.js +6 -0
  57. package/lib/model/dr-plan-execution.js.map +1 -1
  58. package/lib/model/dr-protection-group-auth-type.d.ts +30 -0
  59. package/lib/model/dr-protection-group-auth-type.js +41 -0
  60. package/lib/model/dr-protection-group-auth-type.js.map +1 -0
  61. package/lib/model/dr-protection-group-lifecycle-sub-state.d.ts +4 -0
  62. package/lib/model/dr-protection-group-lifecycle-sub-state.js +4 -0
  63. package/lib/model/dr-protection-group-lifecycle-sub-state.js.map +1 -1
  64. package/lib/model/index.d.ts +44 -0
  65. package/lib/model/index.js +49 -5
  66. package/lib/model/index.js.map +1 -1
  67. package/lib/model/operation-type.d.ts +3 -0
  68. package/lib/model/operation-type.js +3 -0
  69. package/lib/model/operation-type.js.map +1 -1
  70. package/lib/model/update-automatic-dr-configuration-details.d.ts +72 -0
  71. package/lib/model/update-automatic-dr-configuration-details.js +65 -0
  72. package/lib/model/update-automatic-dr-configuration-details.js.map +1 -0
  73. package/lib/model/update-automatic-dr-configuration-member-autonomous-container-database-details.d.ts +42 -0
  74. package/lib/model/update-automatic-dr-configuration-member-autonomous-container-database-details.js +58 -0
  75. package/lib/model/update-automatic-dr-configuration-member-autonomous-container-database-details.js.map +1 -0
  76. package/lib/model/update-automatic-dr-configuration-member-autonomous-database-details.d.ts +42 -0
  77. package/lib/model/update-automatic-dr-configuration-member-autonomous-database-details.js +58 -0
  78. package/lib/model/update-automatic-dr-configuration-member-autonomous-database-details.js.map +1 -0
  79. package/lib/model/update-automatic-dr-configuration-member-database-details.d.ts +42 -0
  80. package/lib/model/update-automatic-dr-configuration-member-database-details.js +58 -0
  81. package/lib/model/update-automatic-dr-configuration-member-database-details.js.map +1 -0
  82. package/lib/model/update-automatic-dr-configuration-member-details.d.ts +33 -0
  83. package/lib/model/update-automatic-dr-configuration-member-details.js +80 -0
  84. package/lib/model/update-automatic-dr-configuration-member-details.js.map +1 -0
  85. package/lib/model/update-dr-plan-execution-details.d.ts +1 -1
  86. package/lib/request/create-automatic-dr-configuration-request.d.ts +37 -0
  87. package/lib/request/create-automatic-dr-configuration-request.js +15 -0
  88. package/lib/request/create-automatic-dr-configuration-request.js.map +1 -0
  89. package/lib/request/delete-automatic-dr-configuration-request.d.ts +39 -0
  90. package/lib/request/delete-automatic-dr-configuration-request.js +15 -0
  91. package/lib/request/delete-automatic-dr-configuration-request.js.map +1 -0
  92. package/lib/request/get-automatic-dr-configuration-request.d.ts +30 -0
  93. package/lib/request/get-automatic-dr-configuration-request.js +15 -0
  94. package/lib/request/get-automatic-dr-configuration-request.js.map +1 -0
  95. package/lib/request/index.d.ts +10 -0
  96. package/lib/request/index.js +3 -1
  97. package/lib/request/index.js.map +1 -1
  98. package/lib/request/list-automatic-dr-configurations-request.d.ts +95 -0
  99. package/lib/request/list-automatic-dr-configurations-request.js +24 -0
  100. package/lib/request/list-automatic-dr-configurations-request.js.map +1 -0
  101. package/lib/request/update-automatic-dr-configuration-request.d.ts +44 -0
  102. package/lib/request/update-automatic-dr-configuration-request.js +15 -0
  103. package/lib/request/update-automatic-dr-configuration-request.js.map +1 -0
  104. package/lib/response/create-automatic-dr-configuration-response.d.ts +39 -0
  105. package/lib/response/create-automatic-dr-configuration-response.js +15 -0
  106. package/lib/response/create-automatic-dr-configuration-response.js.map +1 -0
  107. package/lib/response/delete-automatic-dr-configuration-response.d.ts +20 -0
  108. package/lib/response/delete-automatic-dr-configuration-response.js +15 -0
  109. package/lib/response/delete-automatic-dr-configuration-response.js.map +1 -0
  110. package/lib/response/get-automatic-dr-configuration-response.d.ts +30 -0
  111. package/lib/response/get-automatic-dr-configuration-response.js +15 -0
  112. package/lib/response/get-automatic-dr-configuration-response.js.map +1 -0
  113. package/lib/response/index.d.ts +10 -0
  114. package/lib/response/list-automatic-dr-configurations-response.d.ts +32 -0
  115. package/lib/response/list-automatic-dr-configurations-response.js +15 -0
  116. package/lib/response/list-automatic-dr-configurations-response.js.map +1 -0
  117. package/lib/response/update-automatic-dr-configuration-response.d.ts +25 -0
  118. package/lib/response/update-automatic-dr-configuration-response.js +15 -0
  119. package/lib/response/update-automatic-dr-configuration-response.js.map +1 -0
  120. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -136,6 +136,15 @@ export declare class DisasterRecoveryClient {
136
136
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/ChangeDrProtectionGroupCompartment.ts.html |here} to see how to use ChangeDrProtectionGroupCompartment API.
137
137
  */
138
138
  changeDrProtectionGroupCompartment(changeDrProtectionGroupCompartmentRequest: requests.ChangeDrProtectionGroupCompartmentRequest): Promise<responses.ChangeDrProtectionGroupCompartmentResponse>;
139
+ /**
140
+ * Create a Automatic DR configuration.
141
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
142
+ * @param CreateAutomaticDrConfigurationRequest
143
+ * @return CreateAutomaticDrConfigurationResponse
144
+ * @throws OciError when an error occurs
145
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/CreateAutomaticDrConfiguration.ts.html |here} to see how to use CreateAutomaticDrConfiguration API.
146
+ */
147
+ createAutomaticDrConfiguration(createAutomaticDrConfigurationRequest: requests.CreateAutomaticDrConfigurationRequest): Promise<responses.CreateAutomaticDrConfigurationResponse>;
139
148
  /**
140
149
  * Create a DR plan of the specified DR plan type.
141
150
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -163,6 +172,15 @@ export declare class DisasterRecoveryClient {
163
172
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/CreateDrProtectionGroup.ts.html |here} to see how to use CreateDrProtectionGroup API.
164
173
  */
165
174
  createDrProtectionGroup(createDrProtectionGroupRequest: requests.CreateDrProtectionGroupRequest): Promise<responses.CreateDrProtectionGroupResponse>;
175
+ /**
176
+ * Delete the automatic DR configuration identified by *automaticDrConfigurationId*.
177
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
178
+ * @param DeleteAutomaticDrConfigurationRequest
179
+ * @return DeleteAutomaticDrConfigurationResponse
180
+ * @throws OciError when an error occurs
181
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/DeleteAutomaticDrConfiguration.ts.html |here} to see how to use DeleteAutomaticDrConfiguration API.
182
+ */
183
+ deleteAutomaticDrConfiguration(deleteAutomaticDrConfigurationRequest: requests.DeleteAutomaticDrConfigurationRequest): Promise<responses.DeleteAutomaticDrConfigurationResponse>;
166
184
  /**
167
185
  * Delete the DR plan identified by *drPlanId*.
168
186
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -201,6 +219,15 @@ export declare class DisasterRecoveryClient {
201
219
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/DisassociateDrProtectionGroup.ts.html |here} to see how to use DisassociateDrProtectionGroup API.
202
220
  */
203
221
  disassociateDrProtectionGroup(disassociateDrProtectionGroupRequest: requests.DisassociateDrProtectionGroupRequest): Promise<responses.DisassociateDrProtectionGroupResponse>;
222
+ /**
223
+ * Get details for the Automatic DR configuration identified by *automaticDrConfigurationId*.
224
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
225
+ * @param GetAutomaticDrConfigurationRequest
226
+ * @return GetAutomaticDrConfigurationResponse
227
+ * @throws OciError when an error occurs
228
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/GetAutomaticDrConfiguration.ts.html |here} to see how to use GetAutomaticDrConfiguration API.
229
+ */
230
+ getAutomaticDrConfiguration(getAutomaticDrConfigurationRequest: requests.GetAutomaticDrConfigurationRequest): Promise<responses.GetAutomaticDrConfigurationResponse>;
204
231
  /**
205
232
  * Get details for the DR plan identified by *drPlanId*.
206
233
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -246,6 +273,15 @@ export declare class DisasterRecoveryClient {
246
273
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/IgnoreDrPlanExecution.ts.html |here} to see how to use IgnoreDrPlanExecution API.
247
274
  */
248
275
  ignoreDrPlanExecution(ignoreDrPlanExecutionRequest: requests.IgnoreDrPlanExecutionRequest): Promise<responses.IgnoreDrPlanExecutionResponse>;
276
+ /**
277
+ * Get a summary list of automatic DR configurations for a DR protection group.
278
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
279
+ * @param ListAutomaticDrConfigurationsRequest
280
+ * @return ListAutomaticDrConfigurationsResponse
281
+ * @throws OciError when an error occurs
282
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/ListAutomaticDrConfigurations.ts.html |here} to see how to use ListAutomaticDrConfigurations API.
283
+ */
284
+ listAutomaticDrConfigurations(listAutomaticDrConfigurationsRequest: requests.ListAutomaticDrConfigurationsRequest): Promise<responses.ListAutomaticDrConfigurationsResponse>;
249
285
  /**
250
286
  * Get a summary list of all DR plan executions for a DR protection group.
251
287
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -339,6 +375,15 @@ export declare class DisasterRecoveryClient {
339
375
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/RetryDrPlanExecution.ts.html |here} to see how to use RetryDrPlanExecution API.
340
376
  */
341
377
  retryDrPlanExecution(retryDrPlanExecutionRequest: requests.RetryDrPlanExecutionRequest): Promise<responses.RetryDrPlanExecutionResponse>;
378
+ /**
379
+ * Update the Automatic DR configuration identified by *automaticDrConfigurationId*.
380
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
381
+ * @param UpdateAutomaticDrConfigurationRequest
382
+ * @return UpdateAutomaticDrConfigurationResponse
383
+ * @throws OciError when an error occurs
384
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/UpdateAutomaticDrConfiguration.ts.html |here} to see how to use UpdateAutomaticDrConfiguration API.
385
+ */
386
+ updateAutomaticDrConfiguration(updateAutomaticDrConfigurationRequest: requests.UpdateAutomaticDrConfigurationRequest): Promise<responses.UpdateAutomaticDrConfigurationResponse>;
342
387
  /**
343
388
  * Update the DR plan identified by *drPlanId*.
344
389
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
package/lib/client.js CHANGED
@@ -454,6 +454,79 @@ class DisasterRecoveryClient {
454
454
  }
455
455
  });
456
456
  }
457
+ /**
458
+ * Create a Automatic DR configuration.
459
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
460
+ * @param CreateAutomaticDrConfigurationRequest
461
+ * @return CreateAutomaticDrConfigurationResponse
462
+ * @throws OciError when an error occurs
463
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/CreateAutomaticDrConfiguration.ts.html |here} to see how to use CreateAutomaticDrConfiguration API.
464
+ */
465
+ createAutomaticDrConfiguration(createAutomaticDrConfigurationRequest) {
466
+ return __awaiter(this, void 0, void 0, function* () {
467
+ if (this.logger)
468
+ this.logger.debug("Calling operation DisasterRecoveryClient#createAutomaticDrConfiguration.");
469
+ const operationName = "createAutomaticDrConfiguration";
470
+ const apiReferenceLink = "";
471
+ const pathParams = {};
472
+ const queryParams = {};
473
+ let headerParams = {
474
+ "Content-Type": common.Constants.APPLICATION_JSON,
475
+ "opc-retry-token": createAutomaticDrConfigurationRequest.opcRetryToken,
476
+ "opc-request-id": createAutomaticDrConfigurationRequest.opcRequestId
477
+ };
478
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
479
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAutomaticDrConfigurationRequest.retryConfiguration, specRetryConfiguration);
480
+ if (this.logger)
481
+ retrier.logger = this.logger;
482
+ const request = yield oci_common_1.composeRequest({
483
+ baseEndpoint: this._endpoint,
484
+ defaultHeaders: this._defaultHeaders,
485
+ path: "/automaticDrConfigurations",
486
+ method: "POST",
487
+ bodyContent: common.ObjectSerializer.serialize(createAutomaticDrConfigurationRequest.createAutomaticDrConfigurationDetails, "CreateAutomaticDrConfigurationDetails", model.CreateAutomaticDrConfigurationDetails.getJsonObj),
488
+ pathParams: pathParams,
489
+ headerParams: headerParams,
490
+ queryParams: queryParams
491
+ });
492
+ try {
493
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
494
+ const sdkResponse = oci_common_1.composeResponse({
495
+ responseObject: {},
496
+ body: yield response.json(),
497
+ bodyKey: "automaticDrConfiguration",
498
+ bodyModel: model.AutomaticDrConfiguration,
499
+ type: "model.AutomaticDrConfiguration",
500
+ responseHeaders: [
501
+ {
502
+ value: response.headers.get("location"),
503
+ key: "location",
504
+ dataType: "string"
505
+ },
506
+ {
507
+ value: response.headers.get("etag"),
508
+ key: "etag",
509
+ dataType: "string"
510
+ },
511
+ {
512
+ value: response.headers.get("opc-work-request-id"),
513
+ key: "opcWorkRequestId",
514
+ dataType: "string"
515
+ },
516
+ {
517
+ value: response.headers.get("opc-request-id"),
518
+ key: "opcRequestId",
519
+ dataType: "string"
520
+ }
521
+ ]
522
+ });
523
+ return sdkResponse;
524
+ }
525
+ catch (err) {
526
+ throw err;
527
+ }
528
+ });
529
+ }
457
530
  /**
458
531
  * Create a DR plan of the specified DR plan type.
459
532
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -673,6 +746,61 @@ class DisasterRecoveryClient {
673
746
  }
674
747
  });
675
748
  }
749
+ /**
750
+ * Delete the automatic DR configuration identified by *automaticDrConfigurationId*.
751
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
752
+ * @param DeleteAutomaticDrConfigurationRequest
753
+ * @return DeleteAutomaticDrConfigurationResponse
754
+ * @throws OciError when an error occurs
755
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/DeleteAutomaticDrConfiguration.ts.html |here} to see how to use DeleteAutomaticDrConfiguration API.
756
+ */
757
+ deleteAutomaticDrConfiguration(deleteAutomaticDrConfigurationRequest) {
758
+ return __awaiter(this, void 0, void 0, function* () {
759
+ if (this.logger)
760
+ this.logger.debug("Calling operation DisasterRecoveryClient#deleteAutomaticDrConfiguration.");
761
+ const operationName = "deleteAutomaticDrConfiguration";
762
+ const apiReferenceLink = "";
763
+ const pathParams = {
764
+ "{automaticDrConfigurationId}": deleteAutomaticDrConfigurationRequest.automaticDrConfigurationId
765
+ };
766
+ const queryParams = {};
767
+ let headerParams = {
768
+ "Content-Type": common.Constants.APPLICATION_JSON,
769
+ "if-match": deleteAutomaticDrConfigurationRequest.ifMatch,
770
+ "opc-request-id": deleteAutomaticDrConfigurationRequest.opcRequestId
771
+ };
772
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
773
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteAutomaticDrConfigurationRequest.retryConfiguration, specRetryConfiguration);
774
+ if (this.logger)
775
+ retrier.logger = this.logger;
776
+ const request = yield oci_common_1.composeRequest({
777
+ baseEndpoint: this._endpoint,
778
+ defaultHeaders: this._defaultHeaders,
779
+ path: "/automaticDrConfigurations/{automaticDrConfigurationId}",
780
+ method: "DELETE",
781
+ pathParams: pathParams,
782
+ headerParams: headerParams,
783
+ queryParams: queryParams
784
+ });
785
+ try {
786
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
787
+ const sdkResponse = oci_common_1.composeResponse({
788
+ responseObject: {},
789
+ responseHeaders: [
790
+ {
791
+ value: response.headers.get("opc-request-id"),
792
+ key: "opcRequestId",
793
+ dataType: "string"
794
+ }
795
+ ]
796
+ });
797
+ return sdkResponse;
798
+ }
799
+ catch (err) {
800
+ throw err;
801
+ }
802
+ });
803
+ }
676
804
  /**
677
805
  * Delete the DR plan identified by *drPlanId*.
678
806
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -912,6 +1040,69 @@ class DisasterRecoveryClient {
912
1040
  }
913
1041
  });
914
1042
  }
1043
+ /**
1044
+ * Get details for the Automatic DR configuration identified by *automaticDrConfigurationId*.
1045
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1046
+ * @param GetAutomaticDrConfigurationRequest
1047
+ * @return GetAutomaticDrConfigurationResponse
1048
+ * @throws OciError when an error occurs
1049
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/GetAutomaticDrConfiguration.ts.html |here} to see how to use GetAutomaticDrConfiguration API.
1050
+ */
1051
+ getAutomaticDrConfiguration(getAutomaticDrConfigurationRequest) {
1052
+ return __awaiter(this, void 0, void 0, function* () {
1053
+ if (this.logger)
1054
+ this.logger.debug("Calling operation DisasterRecoveryClient#getAutomaticDrConfiguration.");
1055
+ const operationName = "getAutomaticDrConfiguration";
1056
+ const apiReferenceLink = "";
1057
+ const pathParams = {
1058
+ "{automaticDrConfigurationId}": getAutomaticDrConfigurationRequest.automaticDrConfigurationId
1059
+ };
1060
+ const queryParams = {};
1061
+ let headerParams = {
1062
+ "Content-Type": common.Constants.APPLICATION_JSON,
1063
+ "opc-request-id": getAutomaticDrConfigurationRequest.opcRequestId
1064
+ };
1065
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1066
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAutomaticDrConfigurationRequest.retryConfiguration, specRetryConfiguration);
1067
+ if (this.logger)
1068
+ retrier.logger = this.logger;
1069
+ const request = yield oci_common_1.composeRequest({
1070
+ baseEndpoint: this._endpoint,
1071
+ defaultHeaders: this._defaultHeaders,
1072
+ path: "/automaticDrConfigurations/{automaticDrConfigurationId}",
1073
+ method: "GET",
1074
+ pathParams: pathParams,
1075
+ headerParams: headerParams,
1076
+ queryParams: queryParams
1077
+ });
1078
+ try {
1079
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1080
+ const sdkResponse = oci_common_1.composeResponse({
1081
+ responseObject: {},
1082
+ body: yield response.json(),
1083
+ bodyKey: "automaticDrConfiguration",
1084
+ bodyModel: model.AutomaticDrConfiguration,
1085
+ type: "model.AutomaticDrConfiguration",
1086
+ responseHeaders: [
1087
+ {
1088
+ value: response.headers.get("etag"),
1089
+ key: "etag",
1090
+ dataType: "string"
1091
+ },
1092
+ {
1093
+ value: response.headers.get("opc-request-id"),
1094
+ key: "opcRequestId",
1095
+ dataType: "string"
1096
+ }
1097
+ ]
1098
+ });
1099
+ return sdkResponse;
1100
+ }
1101
+ catch (err) {
1102
+ throw err;
1103
+ }
1104
+ });
1105
+ }
915
1106
  /**
916
1107
  * Get details for the DR plan identified by *drPlanId*.
917
1108
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -1231,6 +1422,77 @@ class DisasterRecoveryClient {
1231
1422
  }
1232
1423
  });
1233
1424
  }
1425
+ /**
1426
+ * Get a summary list of automatic DR configurations for a DR protection group.
1427
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1428
+ * @param ListAutomaticDrConfigurationsRequest
1429
+ * @return ListAutomaticDrConfigurationsResponse
1430
+ * @throws OciError when an error occurs
1431
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/ListAutomaticDrConfigurations.ts.html |here} to see how to use ListAutomaticDrConfigurations API.
1432
+ */
1433
+ listAutomaticDrConfigurations(listAutomaticDrConfigurationsRequest) {
1434
+ return __awaiter(this, void 0, void 0, function* () {
1435
+ if (this.logger)
1436
+ this.logger.debug("Calling operation DisasterRecoveryClient#listAutomaticDrConfigurations.");
1437
+ const operationName = "listAutomaticDrConfigurations";
1438
+ const apiReferenceLink = "";
1439
+ const pathParams = {};
1440
+ const queryParams = {
1441
+ "drProtectionGroupId": listAutomaticDrConfigurationsRequest.drProtectionGroupId,
1442
+ "automaticDrConfigurationId": listAutomaticDrConfigurationsRequest.automaticDrConfigurationId,
1443
+ "lifecycleState": listAutomaticDrConfigurationsRequest.lifecycleState,
1444
+ "lifecycleStateNotEqualTo": listAutomaticDrConfigurationsRequest.lifecycleStateNotEqualTo,
1445
+ "displayName": listAutomaticDrConfigurationsRequest.displayName,
1446
+ "limit": listAutomaticDrConfigurationsRequest.limit,
1447
+ "page": listAutomaticDrConfigurationsRequest.page,
1448
+ "sortOrder": listAutomaticDrConfigurationsRequest.sortOrder,
1449
+ "sortBy": listAutomaticDrConfigurationsRequest.sortBy
1450
+ };
1451
+ let headerParams = {
1452
+ "Content-Type": common.Constants.APPLICATION_JSON,
1453
+ "opc-request-id": listAutomaticDrConfigurationsRequest.opcRequestId
1454
+ };
1455
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1456
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAutomaticDrConfigurationsRequest.retryConfiguration, specRetryConfiguration);
1457
+ if (this.logger)
1458
+ retrier.logger = this.logger;
1459
+ const request = yield oci_common_1.composeRequest({
1460
+ baseEndpoint: this._endpoint,
1461
+ defaultHeaders: this._defaultHeaders,
1462
+ path: "/automaticDrConfigurations",
1463
+ method: "GET",
1464
+ pathParams: pathParams,
1465
+ headerParams: headerParams,
1466
+ queryParams: queryParams
1467
+ });
1468
+ try {
1469
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1470
+ const sdkResponse = oci_common_1.composeResponse({
1471
+ responseObject: {},
1472
+ body: yield response.json(),
1473
+ bodyKey: "automaticDrConfigurationCollection",
1474
+ bodyModel: model.AutomaticDrConfigurationCollection,
1475
+ type: "model.AutomaticDrConfigurationCollection",
1476
+ responseHeaders: [
1477
+ {
1478
+ value: response.headers.get("opc-request-id"),
1479
+ key: "opcRequestId",
1480
+ dataType: "string"
1481
+ },
1482
+ {
1483
+ value: response.headers.get("opc-next-page"),
1484
+ key: "opcNextPage",
1485
+ dataType: "string"
1486
+ }
1487
+ ]
1488
+ });
1489
+ return sdkResponse;
1490
+ }
1491
+ catch (err) {
1492
+ throw err;
1493
+ }
1494
+ });
1495
+ }
1234
1496
  /**
1235
1497
  * Get a summary list of all DR plan executions for a DR protection group.
1236
1498
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -1902,6 +2164,67 @@ class DisasterRecoveryClient {
1902
2164
  }
1903
2165
  });
1904
2166
  }
2167
+ /**
2168
+ * Update the Automatic DR configuration identified by *automaticDrConfigurationId*.
2169
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2170
+ * @param UpdateAutomaticDrConfigurationRequest
2171
+ * @return UpdateAutomaticDrConfigurationResponse
2172
+ * @throws OciError when an error occurs
2173
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/disasterrecovery/UpdateAutomaticDrConfiguration.ts.html |here} to see how to use UpdateAutomaticDrConfiguration API.
2174
+ */
2175
+ updateAutomaticDrConfiguration(updateAutomaticDrConfigurationRequest) {
2176
+ return __awaiter(this, void 0, void 0, function* () {
2177
+ if (this.logger)
2178
+ this.logger.debug("Calling operation DisasterRecoveryClient#updateAutomaticDrConfiguration.");
2179
+ const operationName = "updateAutomaticDrConfiguration";
2180
+ const apiReferenceLink = "";
2181
+ const pathParams = {
2182
+ "{automaticDrConfigurationId}": updateAutomaticDrConfigurationRequest.automaticDrConfigurationId
2183
+ };
2184
+ const queryParams = {};
2185
+ let headerParams = {
2186
+ "Content-Type": common.Constants.APPLICATION_JSON,
2187
+ "if-match": updateAutomaticDrConfigurationRequest.ifMatch,
2188
+ "opc-request-id": updateAutomaticDrConfigurationRequest.opcRequestId
2189
+ };
2190
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2191
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAutomaticDrConfigurationRequest.retryConfiguration, specRetryConfiguration);
2192
+ if (this.logger)
2193
+ retrier.logger = this.logger;
2194
+ const request = yield oci_common_1.composeRequest({
2195
+ baseEndpoint: this._endpoint,
2196
+ defaultHeaders: this._defaultHeaders,
2197
+ path: "/automaticDrConfigurations/{automaticDrConfigurationId}",
2198
+ method: "PUT",
2199
+ bodyContent: common.ObjectSerializer.serialize(updateAutomaticDrConfigurationRequest.updateAutomaticDrConfigurationDetails, "UpdateAutomaticDrConfigurationDetails", model.UpdateAutomaticDrConfigurationDetails.getJsonObj),
2200
+ pathParams: pathParams,
2201
+ headerParams: headerParams,
2202
+ queryParams: queryParams
2203
+ });
2204
+ try {
2205
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2206
+ const sdkResponse = oci_common_1.composeResponse({
2207
+ responseObject: {},
2208
+ responseHeaders: [
2209
+ {
2210
+ value: response.headers.get("opc-work-request-id"),
2211
+ key: "opcWorkRequestId",
2212
+ dataType: "string"
2213
+ },
2214
+ {
2215
+ value: response.headers.get("opc-request-id"),
2216
+ key: "opcRequestId",
2217
+ dataType: "string"
2218
+ }
2219
+ ]
2220
+ });
2221
+ return sdkResponse;
2222
+ }
2223
+ catch (err) {
2224
+ throw err;
2225
+ }
2226
+ });
2227
+ }
1905
2228
  /**
1906
2229
  * Update the DR plan identified by *drPlanId*.
1907
2230
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.