oci-disasterrecovery 2.46.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.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +25 -0
- package/index.js +48 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +343 -0
- package/lib/client.js +2032 -0
- package/lib/client.js.map +1 -0
- package/lib/disasterrecovery-waiter.d.ts +55 -0
- package/lib/disasterrecovery-waiter.js +103 -0
- package/lib/disasterrecovery-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +35 -0
- package/lib/model/action-type.js +46 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/associate-dr-protection-group-details.d.ts +44 -0
- package/lib/model/associate-dr-protection-group-details.js +32 -0
- package/lib/model/associate-dr-protection-group-details.js.map +1 -0
- package/lib/model/cancel-dr-plan-execution-details.d.ts +28 -0
- package/lib/model/cancel-dr-plan-execution-details.js +57 -0
- package/lib/model/cancel-dr-plan-execution-details.js.map +1 -0
- package/lib/model/change-dr-protection-group-compartment-details.d.ts +31 -0
- package/lib/model/change-dr-protection-group-compartment-details.js +32 -0
- package/lib/model/change-dr-protection-group-compartment-details.js.map +1 -0
- package/lib/model/compute-instance-vnic-mapping-details.d.ts +45 -0
- package/lib/model/compute-instance-vnic-mapping-details.js +32 -0
- package/lib/model/compute-instance-vnic-mapping-details.js.map +1 -0
- package/lib/model/compute-instance-vnic-mapping.d.ts +45 -0
- package/lib/model/compute-instance-vnic-mapping.js +32 -0
- package/lib/model/compute-instance-vnic-mapping.js.map +1 -0
- package/lib/model/create-dr-plan-details.d.ts +62 -0
- package/lib/model/create-dr-plan-details.js +32 -0
- package/lib/model/create-dr-plan-details.js.map +1 -0
- package/lib/model/create-dr-plan-execution-details.d.ts +58 -0
- package/lib/model/create-dr-plan-execution-details.js +60 -0
- package/lib/model/create-dr-plan-execution-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-details.d.ts +64 -0
- package/lib/model/create-dr-protection-group-details.js +76 -0
- package/lib/model/create-dr-protection-group-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-member-autonomous-database-details.d.ts +27 -0
- package/lib/model/create-dr-protection-group-member-autonomous-database-details.js +57 -0
- package/lib/model/create-dr-protection-group-member-autonomous-database-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-member-compute-instance-details.d.ts +54 -0
- package/lib/model/create-dr-protection-group-member-compute-instance-details.js +69 -0
- package/lib/model/create-dr-protection-group-member-compute-instance-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-member-database-details.d.ts +34 -0
- package/lib/model/create-dr-protection-group-member-database-details.js +57 -0
- package/lib/model/create-dr-protection-group-member-database-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-member-details.d.ts +32 -0
- package/lib/model/create-dr-protection-group-member-details.js +83 -0
- package/lib/model/create-dr-protection-group-member-details.js.map +1 -0
- package/lib/model/create-dr-protection-group-member-volume-group-details.d.ts +27 -0
- package/lib/model/create-dr-protection-group-member-volume-group-details.js +57 -0
- package/lib/model/create-dr-protection-group-member-volume-group-details.js.map +1 -0
- package/lib/model/create-object-storage-log-location-details.d.ts +38 -0
- package/lib/model/create-object-storage-log-location-details.js +32 -0
- package/lib/model/create-object-storage-log-location-details.js.map +1 -0
- package/lib/model/disassociate-dr-protection-group-default-details.d.ts +27 -0
- package/lib/model/disassociate-dr-protection-group-default-details.js +57 -0
- package/lib/model/disassociate-dr-protection-group-default-details.js.map +1 -0
- package/lib/model/disassociate-dr-protection-group-details.d.ts +25 -0
- package/lib/model/disassociate-dr-protection-group-details.js +71 -0
- package/lib/model/disassociate-dr-protection-group-details.js.map +1 -0
- package/lib/model/dr-plan-collection.d.ts +30 -0
- package/lib/model/dr-plan-collection.js +64 -0
- package/lib/model/dr-plan-collection.js.map +1 -0
- package/lib/model/dr-plan-execution-collection.d.ts +32 -0
- package/lib/model/dr-plan-execution-collection.js +64 -0
- package/lib/model/dr-plan-execution-collection.js.map +1 -0
- package/lib/model/dr-plan-execution-control-details.d.ts +25 -0
- package/lib/model/dr-plan-execution-control-details.js +79 -0
- package/lib/model/dr-plan-execution-control-details.js.map +1 -0
- package/lib/model/dr-plan-execution-lifecycle-state.d.ts +54 -0
- package/lib/model/dr-plan-execution-lifecycle-state.js +65 -0
- package/lib/model/dr-plan-execution-lifecycle-state.js.map +1 -0
- package/lib/model/dr-plan-execution-option-details.d.ts +25 -0
- package/lib/model/dr-plan-execution-option-details.js +83 -0
- package/lib/model/dr-plan-execution-option-details.js.map +1 -0
- package/lib/model/dr-plan-execution-options.d.ts +25 -0
- package/lib/model/dr-plan-execution-options.js +83 -0
- package/lib/model/dr-plan-execution-options.js.map +1 -0
- package/lib/model/dr-plan-execution-summary.d.ts +157 -0
- package/lib/model/dr-plan-execution-summary.js +60 -0
- package/lib/model/dr-plan-execution-summary.js.map +1 -0
- package/lib/model/dr-plan-execution-type.d.ts +38 -0
- package/lib/model/dr-plan-execution-type.js +49 -0
- package/lib/model/dr-plan-execution-type.js.map +1 -0
- package/lib/model/dr-plan-execution.d.ts +163 -0
- package/lib/model/dr-plan-execution.js +76 -0
- package/lib/model/dr-plan-execution.js.map +1 -0
- package/lib/model/dr-plan-group-execution-status.d.ts +52 -0
- package/lib/model/dr-plan-group-execution-status.js +63 -0
- package/lib/model/dr-plan-group-execution-status.js.map +1 -0
- package/lib/model/dr-plan-group-execution.d.ts +82 -0
- package/lib/model/dr-plan-group-execution.js +64 -0
- package/lib/model/dr-plan-group-execution.js.map +1 -0
- package/lib/model/dr-plan-group-type.d.ts +36 -0
- package/lib/model/dr-plan-group-type.js +47 -0
- package/lib/model/dr-plan-group-type.js.map +1 -0
- package/lib/model/dr-plan-group.d.ts +49 -0
- package/lib/model/dr-plan-group.js +64 -0
- package/lib/model/dr-plan-group.js.map +1 -0
- package/lib/model/dr-plan-lifecycle-state.d.ts +46 -0
- package/lib/model/dr-plan-lifecycle-state.js +57 -0
- package/lib/model/dr-plan-lifecycle-state.js.map +1 -0
- package/lib/model/dr-plan-step-error-mode.d.ts +34 -0
- package/lib/model/dr-plan-step-error-mode.js +45 -0
- package/lib/model/dr-plan-step-error-mode.js.map +1 -0
- package/lib/model/dr-plan-step-execution-status.d.ts +50 -0
- package/lib/model/dr-plan-step-execution-status.js +61 -0
- package/lib/model/dr-plan-step-execution-status.js.map +1 -0
- package/lib/model/dr-plan-step-execution.d.ts +85 -0
- package/lib/model/dr-plan-step-execution.js +60 -0
- package/lib/model/dr-plan-step-execution.js.map +1 -0
- package/lib/model/dr-plan-step-type.d.ts +56 -0
- package/lib/model/dr-plan-step-type.js +67 -0
- package/lib/model/dr-plan-step-type.js.map +1 -0
- package/lib/model/dr-plan-step.d.ts +78 -0
- package/lib/model/dr-plan-step.js +60 -0
- package/lib/model/dr-plan-step.js.map +1 -0
- package/lib/model/dr-plan-summary.d.ts +125 -0
- package/lib/model/dr-plan-summary.js +32 -0
- package/lib/model/dr-plan-summary.js.map +1 -0
- package/lib/model/dr-plan-type.d.ts +34 -0
- package/lib/model/dr-plan-type.js +45 -0
- package/lib/model/dr-plan-type.js.map +1 -0
- package/lib/model/dr-plan-user-defined-step.d.ts +25 -0
- package/lib/model/dr-plan-user-defined-step.js +91 -0
- package/lib/model/dr-plan-user-defined-step.js.map +1 -0
- package/lib/model/dr-plan.d.ts +131 -0
- package/lib/model/dr-plan.js +64 -0
- package/lib/model/dr-plan.js.map +1 -0
- package/lib/model/dr-protection-group-collection.d.ts +30 -0
- package/lib/model/dr-protection-group-collection.js +64 -0
- package/lib/model/dr-protection-group-collection.js.map +1 -0
- package/lib/model/dr-protection-group-lifecycle-state.d.ts +44 -0
- package/lib/model/dr-protection-group-lifecycle-state.js +55 -0
- package/lib/model/dr-protection-group-lifecycle-state.js.map +1 -0
- package/lib/model/dr-protection-group-member-autonomous-database.d.ts +28 -0
- package/lib/model/dr-protection-group-member-autonomous-database.js +57 -0
- package/lib/model/dr-protection-group-member-autonomous-database.js.map +1 -0
- package/lib/model/dr-protection-group-member-compute-instance.d.ts +53 -0
- package/lib/model/dr-protection-group-member-compute-instance.js +69 -0
- package/lib/model/dr-protection-group-member-compute-instance.js.map +1 -0
- package/lib/model/dr-protection-group-member-database.d.ts +35 -0
- package/lib/model/dr-protection-group-member-database.js +57 -0
- package/lib/model/dr-protection-group-member-database.js.map +1 -0
- package/lib/model/dr-protection-group-member-type.d.ts +38 -0
- package/lib/model/dr-protection-group-member-type.js +49 -0
- package/lib/model/dr-protection-group-member-type.js.map +1 -0
- package/lib/model/dr-protection-group-member-volume-group.d.ts +28 -0
- package/lib/model/dr-protection-group-member-volume-group.js +57 -0
- package/lib/model/dr-protection-group-member-volume-group.js.map +1 -0
- package/lib/model/dr-protection-group-member.d.ts +32 -0
- package/lib/model/dr-protection-group-member.js +83 -0
- package/lib/model/dr-protection-group-member.js.map +1 -0
- package/lib/model/dr-protection-group-role.d.ts +36 -0
- package/lib/model/dr-protection-group-role.js +47 -0
- package/lib/model/dr-protection-group-role.js.map +1 -0
- package/lib/model/dr-protection-group-summary.d.ts +117 -0
- package/lib/model/dr-protection-group-summary.js +32 -0
- package/lib/model/dr-protection-group-summary.js.map +1 -0
- package/lib/model/dr-protection-group.d.ts +123 -0
- package/lib/model/dr-protection-group.js +70 -0
- package/lib/model/dr-protection-group.js.map +1 -0
- package/lib/model/failover-execution-option-details.d.ts +41 -0
- package/lib/model/failover-execution-option-details.js +57 -0
- package/lib/model/failover-execution-option-details.js.map +1 -0
- package/lib/model/failover-execution-options.d.ts +41 -0
- package/lib/model/failover-execution-options.js +57 -0
- package/lib/model/failover-execution-options.js.map +1 -0
- package/lib/model/failover-precheck-execution-option-details.d.ts +34 -0
- package/lib/model/failover-precheck-execution-option-details.js +57 -0
- package/lib/model/failover-precheck-execution-option-details.js.map +1 -0
- package/lib/model/failover-precheck-execution-options.d.ts +34 -0
- package/lib/model/failover-precheck-execution-options.js +57 -0
- package/lib/model/failover-precheck-execution-options.js.map +1 -0
- package/lib/model/ignore-dr-plan-execution-details.d.ts +38 -0
- package/lib/model/ignore-dr-plan-execution-details.js +32 -0
- package/lib/model/ignore-dr-plan-execution-details.js.map +1 -0
- package/lib/model/index.d.ts +219 -0
- package/lib/model/index.js +244 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/invoke-function-precheck-step.d.ts +28 -0
- package/lib/model/invoke-function-precheck-step.js +57 -0
- package/lib/model/invoke-function-precheck-step.js.map +1 -0
- package/lib/model/invoke-function-step.d.ts +49 -0
- package/lib/model/invoke-function-step.js +57 -0
- package/lib/model/invoke-function-step.js.map +1 -0
- package/lib/model/local-script-precheck-step.d.ts +28 -0
- package/lib/model/local-script-precheck-step.js +57 -0
- package/lib/model/local-script-precheck-step.js.map +1 -0
- package/lib/model/object-storage-log-location.d.ts +45 -0
- package/lib/model/object-storage-log-location.js +32 -0
- package/lib/model/object-storage-log-location.js.map +1 -0
- package/lib/model/object-storage-script-location.d.ts +45 -0
- package/lib/model/object-storage-script-location.js +32 -0
- package/lib/model/object-storage-script-location.js.map +1 -0
- package/lib/model/object-store-script-precheck-step.d.ts +28 -0
- package/lib/model/object-store-script-precheck-step.js +57 -0
- package/lib/model/object-store-script-precheck-step.js.map +1 -0
- package/lib/model/operation-status.d.ts +37 -0
- package/lib/model/operation-status.js +48 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +47 -0
- package/lib/model/operation-type.js +58 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/pause-dr-plan-execution-details.d.ts +28 -0
- package/lib/model/pause-dr-plan-execution-details.js +57 -0
- package/lib/model/pause-dr-plan-execution-details.js.map +1 -0
- package/lib/model/resume-dr-plan-execution-details.d.ts +28 -0
- package/lib/model/resume-dr-plan-execution-details.js +57 -0
- package/lib/model/resume-dr-plan-execution-details.js.map +1 -0
- package/lib/model/retry-dr-plan-execution-details.d.ts +38 -0
- package/lib/model/retry-dr-plan-execution-details.js +32 -0
- package/lib/model/retry-dr-plan-execution-details.js.map +1 -0
- package/lib/model/run-local-script-user-defined-step.d.ts +55 -0
- package/lib/model/run-local-script-user-defined-step.js +57 -0
- package/lib/model/run-local-script-user-defined-step.js.map +1 -0
- package/lib/model/run-object-store-script-user-defined-step.d.ts +42 -0
- package/lib/model/run-object-store-script-user-defined-step.js +65 -0
- package/lib/model/run-object-store-script-user-defined-step.js.map +1 -0
- package/lib/model/sort-order.d.ts +26 -0
- package/lib/model/sort-order.js +37 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/switchover-execution-option-details.d.ts +41 -0
- package/lib/model/switchover-execution-option-details.js +57 -0
- package/lib/model/switchover-execution-option-details.js.map +1 -0
- package/lib/model/switchover-execution-options.d.ts +41 -0
- package/lib/model/switchover-execution-options.js +57 -0
- package/lib/model/switchover-execution-options.js.map +1 -0
- package/lib/model/switchover-precheck-execution-option-details.d.ts +34 -0
- package/lib/model/switchover-precheck-execution-option-details.js +57 -0
- package/lib/model/switchover-precheck-execution-option-details.js.map +1 -0
- package/lib/model/switchover-precheck-execution-options.d.ts +34 -0
- package/lib/model/switchover-precheck-execution-options.js +57 -0
- package/lib/model/switchover-precheck-execution-options.js.map +1 -0
- package/lib/model/update-dr-plan-details.d.ts +55 -0
- package/lib/model/update-dr-plan-details.js +64 -0
- package/lib/model/update-dr-plan-details.js.map +1 -0
- package/lib/model/update-dr-plan-execution-details.d.ts +49 -0
- package/lib/model/update-dr-plan-execution-details.js +32 -0
- package/lib/model/update-dr-plan-execution-details.js.map +1 -0
- package/lib/model/update-dr-plan-group-details.d.ts +49 -0
- package/lib/model/update-dr-plan-group-details.js +64 -0
- package/lib/model/update-dr-plan-group-details.js.map +1 -0
- package/lib/model/update-dr-plan-step-details.d.ts +59 -0
- package/lib/model/update-dr-plan-step-details.js +60 -0
- package/lib/model/update-dr-plan-step-details.js.map +1 -0
- package/lib/model/update-dr-plan-user-defined-step-details.d.ts +25 -0
- package/lib/model/update-dr-plan-user-defined-step-details.js +91 -0
- package/lib/model/update-dr-plan-user-defined-step-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-details.d.ts +56 -0
- package/lib/model/update-dr-protection-group-details.js +70 -0
- package/lib/model/update-dr-protection-group-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-member-autonomous-database-details.d.ts +27 -0
- package/lib/model/update-dr-protection-group-member-autonomous-database-details.js +57 -0
- package/lib/model/update-dr-protection-group-member-autonomous-database-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-member-compute-instance-details.d.ts +54 -0
- package/lib/model/update-dr-protection-group-member-compute-instance-details.js +69 -0
- package/lib/model/update-dr-protection-group-member-compute-instance-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-member-database-details.d.ts +34 -0
- package/lib/model/update-dr-protection-group-member-database-details.js +57 -0
- package/lib/model/update-dr-protection-group-member-database-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-member-details.d.ts +32 -0
- package/lib/model/update-dr-protection-group-member-details.js +83 -0
- package/lib/model/update-dr-protection-group-member-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-member-volume-group-details.d.ts +27 -0
- package/lib/model/update-dr-protection-group-member-volume-group-details.js +57 -0
- package/lib/model/update-dr-protection-group-member-volume-group-details.js.map +1 -0
- package/lib/model/update-dr-protection-group-role-details.d.ts +30 -0
- package/lib/model/update-dr-protection-group-role-details.js +32 -0
- package/lib/model/update-dr-protection-group-role-details.js.map +1 -0
- package/lib/model/update-invoke-function-precheck-step-details.d.ts +28 -0
- package/lib/model/update-invoke-function-precheck-step-details.js +57 -0
- package/lib/model/update-invoke-function-precheck-step-details.js.map +1 -0
- package/lib/model/update-invoke-function-user-defined-step-details.d.ts +42 -0
- package/lib/model/update-invoke-function-user-defined-step-details.js +57 -0
- package/lib/model/update-invoke-function-user-defined-step-details.js.map +1 -0
- package/lib/model/update-local-script-precheck-step-details.d.ts +28 -0
- package/lib/model/update-local-script-precheck-step-details.js +57 -0
- package/lib/model/update-local-script-precheck-step-details.js.map +1 -0
- package/lib/model/update-object-storage-log-location-details.d.ts +38 -0
- package/lib/model/update-object-storage-log-location-details.js +32 -0
- package/lib/model/update-object-storage-log-location-details.js.map +1 -0
- package/lib/model/update-object-storage-script-location-details.d.ts +45 -0
- package/lib/model/update-object-storage-script-location-details.js +32 -0
- package/lib/model/update-object-storage-script-location-details.js.map +1 -0
- package/lib/model/update-object-store-script-precheck-step-details.d.ts +28 -0
- package/lib/model/update-object-store-script-precheck-step-details.js +57 -0
- package/lib/model/update-object-store-script-precheck-step-details.js.map +1 -0
- package/lib/model/update-run-local-script-user-defined-step-details.d.ts +49 -0
- package/lib/model/update-run-local-script-user-defined-step-details.js +57 -0
- package/lib/model/update-run-local-script-user-defined-step-details.js.map +1 -0
- package/lib/model/update-run-object-store-script-user-defined-step-details.d.ts +34 -0
- package/lib/model/update-run-object-store-script-user-defined-step-details.js +65 -0
- package/lib/model/update-run-object-store-script-user-defined-step-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +32 -0
- package/lib/model/work-request-error-collection.js +64 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +46 -0
- package/lib/model/work-request-error.js +32 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +32 -0
- package/lib/model/work-request-log-entry-collection.js +64 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +38 -0
- package/lib/model/work-request-log-entry.js +32 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +52 -0
- package/lib/model/work-request-resource.js +32 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +32 -0
- package/lib/model/work-request-summary-collection.js +64 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +85 -0
- package/lib/model/work-request-summary.js +64 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +85 -0
- package/lib/model/work-request.js +64 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/associate-dr-protection-group-request.d.ts +53 -0
- package/lib/request/associate-dr-protection-group-request.js +15 -0
- package/lib/request/associate-dr-protection-group-request.js.map +1 -0
- package/lib/request/cancel-dr-plan-execution-request.d.ts +53 -0
- package/lib/request/cancel-dr-plan-execution-request.js +15 -0
- package/lib/request/cancel-dr-plan-execution-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +39 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-dr-protection-group-compartment-request.d.ts +53 -0
- package/lib/request/change-dr-protection-group-compartment-request.js +15 -0
- package/lib/request/change-dr-protection-group-compartment-request.js.map +1 -0
- package/lib/request/create-dr-plan-execution-request.d.ts +37 -0
- package/lib/request/create-dr-plan-execution-request.js +15 -0
- package/lib/request/create-dr-plan-execution-request.js.map +1 -0
- package/lib/request/create-dr-plan-request.d.ts +37 -0
- package/lib/request/create-dr-plan-request.js +15 -0
- package/lib/request/create-dr-plan-request.js.map +1 -0
- package/lib/request/create-dr-protection-group-request.d.ts +37 -0
- package/lib/request/create-dr-protection-group-request.js +15 -0
- package/lib/request/create-dr-protection-group-request.js.map +1 -0
- package/lib/request/delete-dr-plan-execution-request.d.ts +39 -0
- package/lib/request/delete-dr-plan-execution-request.js +15 -0
- package/lib/request/delete-dr-plan-execution-request.js.map +1 -0
- package/lib/request/delete-dr-plan-request.d.ts +39 -0
- package/lib/request/delete-dr-plan-request.js +15 -0
- package/lib/request/delete-dr-plan-request.js.map +1 -0
- package/lib/request/delete-dr-protection-group-request.d.ts +39 -0
- package/lib/request/delete-dr-protection-group-request.js +15 -0
- package/lib/request/delete-dr-protection-group-request.js.map +1 -0
- package/lib/request/disassociate-dr-protection-group-request.d.ts +53 -0
- package/lib/request/disassociate-dr-protection-group-request.js +15 -0
- package/lib/request/disassociate-dr-protection-group-request.js.map +1 -0
- package/lib/request/get-dr-plan-execution-request.d.ts +30 -0
- package/lib/request/get-dr-plan-execution-request.js +15 -0
- package/lib/request/get-dr-plan-execution-request.js.map +1 -0
- package/lib/request/get-dr-plan-request.d.ts +30 -0
- package/lib/request/get-dr-plan-request.js +15 -0
- package/lib/request/get-dr-plan-request.js.map +1 -0
- package/lib/request/get-dr-protection-group-request.d.ts +30 -0
- package/lib/request/get-dr-protection-group-request.js +15 -0
- package/lib/request/get-dr-protection-group-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +30 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/ignore-dr-plan-execution-request.d.ts +53 -0
- package/lib/request/ignore-dr-plan-execution-request.js +15 -0
- package/lib/request/ignore-dr-plan-execution-request.js.map +1 -0
- package/lib/request/index.d.ts +73 -0
- package/lib/request/index.js +50 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-dr-plan-executions-request.d.ts +94 -0
- package/lib/request/list-dr-plan-executions-request.js +24 -0
- package/lib/request/list-dr-plan-executions-request.js.map +1 -0
- package/lib/request/list-dr-plans-request.d.ts +94 -0
- package/lib/request/list-dr-plans-request.js +24 -0
- package/lib/request/list-dr-plans-request.js.map +1 -0
- package/lib/request/list-dr-protection-groups-request.d.ts +90 -0
- package/lib/request/list-dr-protection-groups-request.js +24 -0
- package/lib/request/list-dr-protection-groups-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +68 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +68 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +86 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/pause-dr-plan-execution-request.d.ts +53 -0
- package/lib/request/pause-dr-plan-execution-request.js +15 -0
- package/lib/request/pause-dr-plan-execution-request.js.map +1 -0
- package/lib/request/resume-dr-plan-execution-request.d.ts +53 -0
- package/lib/request/resume-dr-plan-execution-request.js +15 -0
- package/lib/request/resume-dr-plan-execution-request.js.map +1 -0
- package/lib/request/retry-dr-plan-execution-request.d.ts +53 -0
- package/lib/request/retry-dr-plan-execution-request.js +15 -0
- package/lib/request/retry-dr-plan-execution-request.js.map +1 -0
- package/lib/request/update-dr-plan-execution-request.d.ts +44 -0
- package/lib/request/update-dr-plan-execution-request.js +15 -0
- package/lib/request/update-dr-plan-execution-request.js.map +1 -0
- package/lib/request/update-dr-plan-request.d.ts +44 -0
- package/lib/request/update-dr-plan-request.js +15 -0
- package/lib/request/update-dr-plan-request.js.map +1 -0
- package/lib/request/update-dr-protection-group-request.d.ts +44 -0
- package/lib/request/update-dr-protection-group-request.js +15 -0
- package/lib/request/update-dr-protection-group-request.js.map +1 -0
- package/lib/request/update-dr-protection-group-role-request.d.ts +53 -0
- package/lib/request/update-dr-protection-group-role-request.js +15 -0
- package/lib/request/update-dr-protection-group-role-request.js.map +1 -0
- package/lib/response/associate-dr-protection-group-response.d.ts +25 -0
- package/lib/response/associate-dr-protection-group-response.js +15 -0
- package/lib/response/associate-dr-protection-group-response.js.map +1 -0
- package/lib/response/cancel-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/cancel-dr-plan-execution-response.js +15 -0
- package/lib/response/cancel-dr-plan-execution-response.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-dr-protection-group-compartment-response.d.ts +25 -0
- package/lib/response/change-dr-protection-group-compartment-response.js +15 -0
- package/lib/response/change-dr-protection-group-compartment-response.js.map +1 -0
- package/lib/response/create-dr-plan-execution-response.d.ts +39 -0
- package/lib/response/create-dr-plan-execution-response.js +15 -0
- package/lib/response/create-dr-plan-execution-response.js.map +1 -0
- package/lib/response/create-dr-plan-response.d.ts +39 -0
- package/lib/response/create-dr-plan-response.js +15 -0
- package/lib/response/create-dr-plan-response.js.map +1 -0
- package/lib/response/create-dr-protection-group-response.d.ts +39 -0
- package/lib/response/create-dr-protection-group-response.js +15 -0
- package/lib/response/create-dr-protection-group-response.js.map +1 -0
- package/lib/response/delete-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/delete-dr-plan-execution-response.js +15 -0
- package/lib/response/delete-dr-plan-execution-response.js.map +1 -0
- package/lib/response/delete-dr-plan-response.d.ts +20 -0
- package/lib/response/delete-dr-plan-response.js +15 -0
- package/lib/response/delete-dr-plan-response.js.map +1 -0
- package/lib/response/delete-dr-protection-group-response.d.ts +25 -0
- package/lib/response/delete-dr-protection-group-response.js +15 -0
- package/lib/response/delete-dr-protection-group-response.js.map +1 -0
- package/lib/response/disassociate-dr-protection-group-response.d.ts +25 -0
- package/lib/response/disassociate-dr-protection-group-response.js +15 -0
- package/lib/response/disassociate-dr-protection-group-response.js.map +1 -0
- package/lib/response/get-dr-plan-execution-response.d.ts +30 -0
- package/lib/response/get-dr-plan-execution-response.js +15 -0
- package/lib/response/get-dr-plan-execution-response.js.map +1 -0
- package/lib/response/get-dr-plan-response.d.ts +30 -0
- package/lib/response/get-dr-plan-response.js +15 -0
- package/lib/response/get-dr-plan-response.js.map +1 -0
- package/lib/response/get-dr-protection-group-response.d.ts +30 -0
- package/lib/response/get-dr-protection-group-response.js +15 -0
- package/lib/response/get-dr-protection-group-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/ignore-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/ignore-dr-plan-execution-response.js +15 -0
- package/lib/response/ignore-dr-plan-execution-response.js.map +1 -0
- package/lib/response/index.d.ts +73 -0
- package/lib/response/index.js +18 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-dr-plan-executions-response.d.ts +32 -0
- package/lib/response/list-dr-plan-executions-response.js +15 -0
- package/lib/response/list-dr-plan-executions-response.js.map +1 -0
- package/lib/response/list-dr-plans-response.d.ts +32 -0
- package/lib/response/list-dr-plans-response.js +15 -0
- package/lib/response/list-dr-plans-response.js.map +1 -0
- package/lib/response/list-dr-protection-groups-response.d.ts +32 -0
- package/lib/response/list-dr-protection-groups-response.js +15 -0
- package/lib/response/list-dr-protection-groups-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/pause-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/pause-dr-plan-execution-response.js +15 -0
- package/lib/response/pause-dr-plan-execution-response.js.map +1 -0
- package/lib/response/resume-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/resume-dr-plan-execution-response.js +15 -0
- package/lib/response/resume-dr-plan-execution-response.js.map +1 -0
- package/lib/response/retry-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/retry-dr-plan-execution-response.js +15 -0
- package/lib/response/retry-dr-plan-execution-response.js.map +1 -0
- package/lib/response/update-dr-plan-execution-response.d.ts +25 -0
- package/lib/response/update-dr-plan-execution-response.js +15 -0
- package/lib/response/update-dr-plan-execution-response.js.map +1 -0
- package/lib/response/update-dr-plan-response.d.ts +25 -0
- package/lib/response/update-dr-plan-response.js +15 -0
- package/lib/response/update-dr-plan-response.js.map +1 -0
- package/lib/response/update-dr-protection-group-response.d.ts +25 -0
- package/lib/response/update-dr-protection-group-response.js +15 -0
- package/lib/response/update-dr-protection-group-response.js.map +1 -0
- package/lib/response/update-dr-protection-group-role-response.d.ts +25 -0
- package/lib/response/update-dr-protection-group-role-response.js +15 -0
- package/lib/response/update-dr-protection-group-role-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,2032 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Full Stack Disaster Recovery API
|
|
4
|
+
* Use the Full Stack Disaster Recovery (FSDR) API to manage disaster recovery for business applications.
|
|
5
|
+
FSDR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster recovery
|
|
6
|
+
capabilities for all layers of an application stack, including infrastructure, middleware, database, and application.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20220125
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.DisasterRecoveryClient = exports.DisasterRecoveryApiKeys = void 0;
|
|
47
|
+
const common = require("oci-common");
|
|
48
|
+
const model = __importStar(require("./model"));
|
|
49
|
+
const disasterrecovery_waiter_1 = require("./disasterrecovery-waiter");
|
|
50
|
+
const oci_common_1 = require("oci-common");
|
|
51
|
+
// ===============================================
|
|
52
|
+
// This file is autogenerated - Please do not edit
|
|
53
|
+
// ===============================================
|
|
54
|
+
var DisasterRecoveryApiKeys;
|
|
55
|
+
(function (DisasterRecoveryApiKeys) {
|
|
56
|
+
})(DisasterRecoveryApiKeys = exports.DisasterRecoveryApiKeys || (exports.DisasterRecoveryApiKeys = {}));
|
|
57
|
+
/**
|
|
58
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
59
|
+
*/
|
|
60
|
+
class DisasterRecoveryClient {
|
|
61
|
+
constructor(params, clientConfiguration) {
|
|
62
|
+
this["_endpoint"] = "";
|
|
63
|
+
this["_defaultHeaders"] = {};
|
|
64
|
+
this._circuitBreaker = null;
|
|
65
|
+
this._httpOptions = undefined;
|
|
66
|
+
this.targetService = "DisasterRecovery";
|
|
67
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
68
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
69
|
+
: null;
|
|
70
|
+
if (clientConfiguration) {
|
|
71
|
+
this._clientConfiguration = clientConfiguration;
|
|
72
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
73
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
74
|
+
: null;
|
|
75
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
76
|
+
? clientConfiguration.httpOptions
|
|
77
|
+
: undefined;
|
|
78
|
+
}
|
|
79
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
80
|
+
const specCircuitBreakerEnabled = true;
|
|
81
|
+
if (!this._circuitBreaker &&
|
|
82
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
83
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
84
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
85
|
+
}
|
|
86
|
+
this._httpClient =
|
|
87
|
+
params.httpClient ||
|
|
88
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
89
|
+
if (params.authenticationDetailsProvider &&
|
|
90
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
91
|
+
const provider = params.authenticationDetailsProvider;
|
|
92
|
+
if (provider.getRegion()) {
|
|
93
|
+
this.region = provider.getRegion();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
99
|
+
*/
|
|
100
|
+
get endpoint() {
|
|
101
|
+
return this._endpoint;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
105
|
+
* @param endpoint The endpoint of the service.
|
|
106
|
+
*/
|
|
107
|
+
set endpoint(endpoint) {
|
|
108
|
+
this._endpoint = endpoint;
|
|
109
|
+
this._endpoint = this._endpoint + "/20220125";
|
|
110
|
+
if (this.logger)
|
|
111
|
+
this.logger.info(`DisasterRecoveryClient endpoint set to ${this._endpoint}`);
|
|
112
|
+
}
|
|
113
|
+
get logger() {
|
|
114
|
+
return common.LOG.logger;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
118
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
119
|
+
* @param region The region of the service.
|
|
120
|
+
*/
|
|
121
|
+
set region(region) {
|
|
122
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DisasterRecoveryClient.serviceEndpointTemplate, region, DisasterRecoveryClient.endpointServiceName);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
126
|
+
*
|
|
127
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
128
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
129
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
130
|
+
* @param regionId The public region ID.
|
|
131
|
+
*/
|
|
132
|
+
set regionId(regionId) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DisasterRecoveryClient.serviceEndpointTemplate, regionId, DisasterRecoveryClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new DisasterRecoveryWaiter for resources for this service.
|
|
137
|
+
*
|
|
138
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
139
|
+
* @return The service waiters.
|
|
140
|
+
*/
|
|
141
|
+
createWaiters(config) {
|
|
142
|
+
this._waiters = new disasterrecovery_waiter_1.DisasterRecoveryWaiter(this, config);
|
|
143
|
+
return this._waiters;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Gets the waiters available for resources for this service.
|
|
147
|
+
*
|
|
148
|
+
* @return The service waiters.
|
|
149
|
+
*/
|
|
150
|
+
getWaiters() {
|
|
151
|
+
if (this._waiters) {
|
|
152
|
+
return this._waiters;
|
|
153
|
+
}
|
|
154
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Create an association the DR Protection Group identified by *drProtectionGroupId* and
|
|
158
|
+
* another DR Protection Group in a different region.
|
|
159
|
+
*
|
|
160
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
161
|
+
* @param AssociateDrProtectionGroupRequest
|
|
162
|
+
* @return AssociateDrProtectionGroupResponse
|
|
163
|
+
* @throws OciError when an error occurs
|
|
164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/AssociateDrProtectionGroup.ts.html |here} to see how to use AssociateDrProtectionGroup API.
|
|
165
|
+
*/
|
|
166
|
+
associateDrProtectionGroup(associateDrProtectionGroupRequest) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
if (this.logger)
|
|
169
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#associateDrProtectionGroup.");
|
|
170
|
+
const operationName = "associateDrProtectionGroup";
|
|
171
|
+
const apiReferenceLink = "";
|
|
172
|
+
const pathParams = {
|
|
173
|
+
"{drProtectionGroupId}": associateDrProtectionGroupRequest.drProtectionGroupId
|
|
174
|
+
};
|
|
175
|
+
const queryParams = {};
|
|
176
|
+
let headerParams = {
|
|
177
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
178
|
+
"if-match": associateDrProtectionGroupRequest.ifMatch,
|
|
179
|
+
"opc-retry-token": associateDrProtectionGroupRequest.opcRetryToken,
|
|
180
|
+
"opc-request-id": associateDrProtectionGroupRequest.opcRequestId
|
|
181
|
+
};
|
|
182
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
183
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, associateDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
184
|
+
if (this.logger)
|
|
185
|
+
retrier.logger = this.logger;
|
|
186
|
+
const request = yield oci_common_1.composeRequest({
|
|
187
|
+
baseEndpoint: this._endpoint,
|
|
188
|
+
defaultHeaders: this._defaultHeaders,
|
|
189
|
+
path: "/drProtectionGroups/{drProtectionGroupId}/actions/associate",
|
|
190
|
+
method: "POST",
|
|
191
|
+
bodyContent: common.ObjectSerializer.serialize(associateDrProtectionGroupRequest.associateDrProtectionGroupDetails, "AssociateDrProtectionGroupDetails", model.AssociateDrProtectionGroupDetails.getJsonObj),
|
|
192
|
+
pathParams: pathParams,
|
|
193
|
+
headerParams: headerParams,
|
|
194
|
+
queryParams: queryParams
|
|
195
|
+
});
|
|
196
|
+
try {
|
|
197
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
198
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
199
|
+
responseObject: {},
|
|
200
|
+
responseHeaders: [
|
|
201
|
+
{
|
|
202
|
+
value: response.headers.get("opc-work-request-id"),
|
|
203
|
+
key: "opcWorkRequestId",
|
|
204
|
+
dataType: "string"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
value: response.headers.get("opc-request-id"),
|
|
208
|
+
key: "opcRequestId",
|
|
209
|
+
dataType: "string"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
return sdkResponse;
|
|
214
|
+
}
|
|
215
|
+
catch (err) {
|
|
216
|
+
throw err;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Cancel the DR Plan Execution indentified by *drPlanExecutionId*.
|
|
222
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
223
|
+
* @param CancelDrPlanExecutionRequest
|
|
224
|
+
* @return CancelDrPlanExecutionResponse
|
|
225
|
+
* @throws OciError when an error occurs
|
|
226
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/CancelDrPlanExecution.ts.html |here} to see how to use CancelDrPlanExecution API.
|
|
227
|
+
*/
|
|
228
|
+
cancelDrPlanExecution(cancelDrPlanExecutionRequest) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
if (this.logger)
|
|
231
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#cancelDrPlanExecution.");
|
|
232
|
+
const operationName = "cancelDrPlanExecution";
|
|
233
|
+
const apiReferenceLink = "";
|
|
234
|
+
const pathParams = {
|
|
235
|
+
"{drPlanExecutionId}": cancelDrPlanExecutionRequest.drPlanExecutionId
|
|
236
|
+
};
|
|
237
|
+
const queryParams = {};
|
|
238
|
+
let headerParams = {
|
|
239
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
240
|
+
"if-match": cancelDrPlanExecutionRequest.ifMatch,
|
|
241
|
+
"opc-retry-token": cancelDrPlanExecutionRequest.opcRetryToken,
|
|
242
|
+
"opc-request-id": cancelDrPlanExecutionRequest.opcRequestId
|
|
243
|
+
};
|
|
244
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
245
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
246
|
+
if (this.logger)
|
|
247
|
+
retrier.logger = this.logger;
|
|
248
|
+
const request = yield oci_common_1.composeRequest({
|
|
249
|
+
baseEndpoint: this._endpoint,
|
|
250
|
+
defaultHeaders: this._defaultHeaders,
|
|
251
|
+
path: "/drPlanExecutions/{drPlanExecutionId}/actions/cancel",
|
|
252
|
+
method: "POST",
|
|
253
|
+
bodyContent: common.ObjectSerializer.serialize(cancelDrPlanExecutionRequest.cancelDrPlanExecutionDetails, "CancelDrPlanExecutionDetails", model.CancelDrPlanExecutionDetails.getJsonObj),
|
|
254
|
+
pathParams: pathParams,
|
|
255
|
+
headerParams: headerParams,
|
|
256
|
+
queryParams: queryParams
|
|
257
|
+
});
|
|
258
|
+
try {
|
|
259
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
260
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
261
|
+
responseObject: {},
|
|
262
|
+
responseHeaders: [
|
|
263
|
+
{
|
|
264
|
+
value: response.headers.get("opc-work-request-id"),
|
|
265
|
+
key: "opcWorkRequestId",
|
|
266
|
+
dataType: "string"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
value: response.headers.get("opc-request-id"),
|
|
270
|
+
key: "opcRequestId",
|
|
271
|
+
dataType: "string"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
});
|
|
275
|
+
return sdkResponse;
|
|
276
|
+
}
|
|
277
|
+
catch (err) {
|
|
278
|
+
throw err;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Cancel the work request identified by *workRequestId*.
|
|
284
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
285
|
+
* @param CancelWorkRequestRequest
|
|
286
|
+
* @return CancelWorkRequestResponse
|
|
287
|
+
* @throws OciError when an error occurs
|
|
288
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
289
|
+
*/
|
|
290
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
if (this.logger)
|
|
293
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#cancelWorkRequest.");
|
|
294
|
+
const operationName = "cancelWorkRequest";
|
|
295
|
+
const apiReferenceLink = "";
|
|
296
|
+
const pathParams = {
|
|
297
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
298
|
+
};
|
|
299
|
+
const queryParams = {};
|
|
300
|
+
let headerParams = {
|
|
301
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
302
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
303
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
304
|
+
};
|
|
305
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
307
|
+
if (this.logger)
|
|
308
|
+
retrier.logger = this.logger;
|
|
309
|
+
const request = yield oci_common_1.composeRequest({
|
|
310
|
+
baseEndpoint: this._endpoint,
|
|
311
|
+
defaultHeaders: this._defaultHeaders,
|
|
312
|
+
path: "/workRequests/{workRequestId}",
|
|
313
|
+
method: "DELETE",
|
|
314
|
+
pathParams: pathParams,
|
|
315
|
+
headerParams: headerParams,
|
|
316
|
+
queryParams: queryParams
|
|
317
|
+
});
|
|
318
|
+
try {
|
|
319
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
320
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
321
|
+
responseObject: {},
|
|
322
|
+
responseHeaders: [
|
|
323
|
+
{
|
|
324
|
+
value: response.headers.get("opc-request-id"),
|
|
325
|
+
key: "opcRequestId",
|
|
326
|
+
dataType: "string"
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
});
|
|
330
|
+
return sdkResponse;
|
|
331
|
+
}
|
|
332
|
+
catch (err) {
|
|
333
|
+
throw err;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Move the DR Protection Group identified by *drProtectionGroupId* to a different compartment.
|
|
339
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
340
|
+
* @param ChangeDrProtectionGroupCompartmentRequest
|
|
341
|
+
* @return ChangeDrProtectionGroupCompartmentResponse
|
|
342
|
+
* @throws OciError when an error occurs
|
|
343
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ChangeDrProtectionGroupCompartment.ts.html |here} to see how to use ChangeDrProtectionGroupCompartment API.
|
|
344
|
+
*/
|
|
345
|
+
changeDrProtectionGroupCompartment(changeDrProtectionGroupCompartmentRequest) {
|
|
346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
+
if (this.logger)
|
|
348
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#changeDrProtectionGroupCompartment.");
|
|
349
|
+
const operationName = "changeDrProtectionGroupCompartment";
|
|
350
|
+
const apiReferenceLink = "";
|
|
351
|
+
const pathParams = {
|
|
352
|
+
"{drProtectionGroupId}": changeDrProtectionGroupCompartmentRequest.drProtectionGroupId
|
|
353
|
+
};
|
|
354
|
+
const queryParams = {};
|
|
355
|
+
let headerParams = {
|
|
356
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
357
|
+
"if-match": changeDrProtectionGroupCompartmentRequest.ifMatch,
|
|
358
|
+
"opc-retry-token": changeDrProtectionGroupCompartmentRequest.opcRetryToken,
|
|
359
|
+
"opc-request-id": changeDrProtectionGroupCompartmentRequest.opcRequestId
|
|
360
|
+
};
|
|
361
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
362
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDrProtectionGroupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
363
|
+
if (this.logger)
|
|
364
|
+
retrier.logger = this.logger;
|
|
365
|
+
const request = yield oci_common_1.composeRequest({
|
|
366
|
+
baseEndpoint: this._endpoint,
|
|
367
|
+
defaultHeaders: this._defaultHeaders,
|
|
368
|
+
path: "/drProtectionGroups/{drProtectionGroupId}/actions/changeCompartment",
|
|
369
|
+
method: "POST",
|
|
370
|
+
bodyContent: common.ObjectSerializer.serialize(changeDrProtectionGroupCompartmentRequest.changeDrProtectionGroupCompartmentDetails, "ChangeDrProtectionGroupCompartmentDetails", model.ChangeDrProtectionGroupCompartmentDetails.getJsonObj),
|
|
371
|
+
pathParams: pathParams,
|
|
372
|
+
headerParams: headerParams,
|
|
373
|
+
queryParams: queryParams
|
|
374
|
+
});
|
|
375
|
+
try {
|
|
376
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
377
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
378
|
+
responseObject: {},
|
|
379
|
+
responseHeaders: [
|
|
380
|
+
{
|
|
381
|
+
value: response.headers.get("opc-work-request-id"),
|
|
382
|
+
key: "opcWorkRequestId",
|
|
383
|
+
dataType: "string"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: response.headers.get("opc-request-id"),
|
|
387
|
+
key: "opcRequestId",
|
|
388
|
+
dataType: "string"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
});
|
|
392
|
+
return sdkResponse;
|
|
393
|
+
}
|
|
394
|
+
catch (err) {
|
|
395
|
+
throw err;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Creates a new DR Plan of the specified DR Plan type.
|
|
401
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
402
|
+
* @param CreateDrPlanRequest
|
|
403
|
+
* @return CreateDrPlanResponse
|
|
404
|
+
* @throws OciError when an error occurs
|
|
405
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/CreateDrPlan.ts.html |here} to see how to use CreateDrPlan API.
|
|
406
|
+
*/
|
|
407
|
+
createDrPlan(createDrPlanRequest) {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
if (this.logger)
|
|
410
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#createDrPlan.");
|
|
411
|
+
const operationName = "createDrPlan";
|
|
412
|
+
const apiReferenceLink = "";
|
|
413
|
+
const pathParams = {};
|
|
414
|
+
const queryParams = {};
|
|
415
|
+
let headerParams = {
|
|
416
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
417
|
+
"opc-retry-token": createDrPlanRequest.opcRetryToken,
|
|
418
|
+
"opc-request-id": createDrPlanRequest.opcRequestId
|
|
419
|
+
};
|
|
420
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
421
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDrPlanRequest.retryConfiguration, specRetryConfiguration);
|
|
422
|
+
if (this.logger)
|
|
423
|
+
retrier.logger = this.logger;
|
|
424
|
+
const request = yield oci_common_1.composeRequest({
|
|
425
|
+
baseEndpoint: this._endpoint,
|
|
426
|
+
defaultHeaders: this._defaultHeaders,
|
|
427
|
+
path: "/drPlans",
|
|
428
|
+
method: "POST",
|
|
429
|
+
bodyContent: common.ObjectSerializer.serialize(createDrPlanRequest.createDrPlanDetails, "CreateDrPlanDetails", model.CreateDrPlanDetails.getJsonObj),
|
|
430
|
+
pathParams: pathParams,
|
|
431
|
+
headerParams: headerParams,
|
|
432
|
+
queryParams: queryParams
|
|
433
|
+
});
|
|
434
|
+
try {
|
|
435
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
436
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
437
|
+
responseObject: {},
|
|
438
|
+
body: yield response.json(),
|
|
439
|
+
bodyKey: "drPlan",
|
|
440
|
+
bodyModel: model.DrPlan,
|
|
441
|
+
type: "model.DrPlan",
|
|
442
|
+
responseHeaders: [
|
|
443
|
+
{
|
|
444
|
+
value: response.headers.get("location"),
|
|
445
|
+
key: "location",
|
|
446
|
+
dataType: "string"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
value: response.headers.get("etag"),
|
|
450
|
+
key: "etag",
|
|
451
|
+
dataType: "string"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
value: response.headers.get("opc-work-request-id"),
|
|
455
|
+
key: "opcWorkRequestId",
|
|
456
|
+
dataType: "string"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
value: response.headers.get("opc-request-id"),
|
|
460
|
+
key: "opcRequestId",
|
|
461
|
+
dataType: "string"
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
});
|
|
465
|
+
return sdkResponse;
|
|
466
|
+
}
|
|
467
|
+
catch (err) {
|
|
468
|
+
throw err;
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Execute a DR Plan for a DR Protection Group.
|
|
474
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
475
|
+
* @param CreateDrPlanExecutionRequest
|
|
476
|
+
* @return CreateDrPlanExecutionResponse
|
|
477
|
+
* @throws OciError when an error occurs
|
|
478
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/CreateDrPlanExecution.ts.html |here} to see how to use CreateDrPlanExecution API.
|
|
479
|
+
*/
|
|
480
|
+
createDrPlanExecution(createDrPlanExecutionRequest) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
482
|
+
if (this.logger)
|
|
483
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#createDrPlanExecution.");
|
|
484
|
+
const operationName = "createDrPlanExecution";
|
|
485
|
+
const apiReferenceLink = "";
|
|
486
|
+
const pathParams = {};
|
|
487
|
+
const queryParams = {};
|
|
488
|
+
let headerParams = {
|
|
489
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
490
|
+
"opc-retry-token": createDrPlanExecutionRequest.opcRetryToken,
|
|
491
|
+
"opc-request-id": createDrPlanExecutionRequest.opcRequestId
|
|
492
|
+
};
|
|
493
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
494
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
495
|
+
if (this.logger)
|
|
496
|
+
retrier.logger = this.logger;
|
|
497
|
+
const request = yield oci_common_1.composeRequest({
|
|
498
|
+
baseEndpoint: this._endpoint,
|
|
499
|
+
defaultHeaders: this._defaultHeaders,
|
|
500
|
+
path: "/drPlanExecutions",
|
|
501
|
+
method: "POST",
|
|
502
|
+
bodyContent: common.ObjectSerializer.serialize(createDrPlanExecutionRequest.createDrPlanExecutionDetails, "CreateDrPlanExecutionDetails", model.CreateDrPlanExecutionDetails.getJsonObj),
|
|
503
|
+
pathParams: pathParams,
|
|
504
|
+
headerParams: headerParams,
|
|
505
|
+
queryParams: queryParams
|
|
506
|
+
});
|
|
507
|
+
try {
|
|
508
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
509
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
510
|
+
responseObject: {},
|
|
511
|
+
body: yield response.json(),
|
|
512
|
+
bodyKey: "drPlanExecution",
|
|
513
|
+
bodyModel: model.DrPlanExecution,
|
|
514
|
+
type: "model.DrPlanExecution",
|
|
515
|
+
responseHeaders: [
|
|
516
|
+
{
|
|
517
|
+
value: response.headers.get("location"),
|
|
518
|
+
key: "location",
|
|
519
|
+
dataType: "string"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
value: response.headers.get("etag"),
|
|
523
|
+
key: "etag",
|
|
524
|
+
dataType: "string"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
value: response.headers.get("opc-work-request-id"),
|
|
528
|
+
key: "opcWorkRequestId",
|
|
529
|
+
dataType: "string"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
value: response.headers.get("opc-request-id"),
|
|
533
|
+
key: "opcRequestId",
|
|
534
|
+
dataType: "string"
|
|
535
|
+
}
|
|
536
|
+
]
|
|
537
|
+
});
|
|
538
|
+
return sdkResponse;
|
|
539
|
+
}
|
|
540
|
+
catch (err) {
|
|
541
|
+
throw err;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Create a new DR Protection Group.
|
|
547
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
548
|
+
* @param CreateDrProtectionGroupRequest
|
|
549
|
+
* @return CreateDrProtectionGroupResponse
|
|
550
|
+
* @throws OciError when an error occurs
|
|
551
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/CreateDrProtectionGroup.ts.html |here} to see how to use CreateDrProtectionGroup API.
|
|
552
|
+
*/
|
|
553
|
+
createDrProtectionGroup(createDrProtectionGroupRequest) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
if (this.logger)
|
|
556
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#createDrProtectionGroup.");
|
|
557
|
+
const operationName = "createDrProtectionGroup";
|
|
558
|
+
const apiReferenceLink = "";
|
|
559
|
+
const pathParams = {};
|
|
560
|
+
const queryParams = {};
|
|
561
|
+
let headerParams = {
|
|
562
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
563
|
+
"opc-retry-token": createDrProtectionGroupRequest.opcRetryToken,
|
|
564
|
+
"opc-request-id": createDrProtectionGroupRequest.opcRequestId
|
|
565
|
+
};
|
|
566
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
567
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
568
|
+
if (this.logger)
|
|
569
|
+
retrier.logger = this.logger;
|
|
570
|
+
const request = yield oci_common_1.composeRequest({
|
|
571
|
+
baseEndpoint: this._endpoint,
|
|
572
|
+
defaultHeaders: this._defaultHeaders,
|
|
573
|
+
path: "/drProtectionGroups",
|
|
574
|
+
method: "POST",
|
|
575
|
+
bodyContent: common.ObjectSerializer.serialize(createDrProtectionGroupRequest.createDrProtectionGroupDetails, "CreateDrProtectionGroupDetails", model.CreateDrProtectionGroupDetails.getJsonObj),
|
|
576
|
+
pathParams: pathParams,
|
|
577
|
+
headerParams: headerParams,
|
|
578
|
+
queryParams: queryParams
|
|
579
|
+
});
|
|
580
|
+
try {
|
|
581
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
582
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
583
|
+
responseObject: {},
|
|
584
|
+
body: yield response.json(),
|
|
585
|
+
bodyKey: "drProtectionGroup",
|
|
586
|
+
bodyModel: model.DrProtectionGroup,
|
|
587
|
+
type: "model.DrProtectionGroup",
|
|
588
|
+
responseHeaders: [
|
|
589
|
+
{
|
|
590
|
+
value: response.headers.get("location"),
|
|
591
|
+
key: "location",
|
|
592
|
+
dataType: "string"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
value: response.headers.get("etag"),
|
|
596
|
+
key: "etag",
|
|
597
|
+
dataType: "string"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
value: response.headers.get("opc-work-request-id"),
|
|
601
|
+
key: "opcWorkRequestId",
|
|
602
|
+
dataType: "string"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
value: response.headers.get("opc-request-id"),
|
|
606
|
+
key: "opcRequestId",
|
|
607
|
+
dataType: "string"
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
});
|
|
611
|
+
return sdkResponse;
|
|
612
|
+
}
|
|
613
|
+
catch (err) {
|
|
614
|
+
throw err;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Delete the DR Plan identified by *drPlanId*.
|
|
620
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
621
|
+
* @param DeleteDrPlanRequest
|
|
622
|
+
* @return DeleteDrPlanResponse
|
|
623
|
+
* @throws OciError when an error occurs
|
|
624
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/DeleteDrPlan.ts.html |here} to see how to use DeleteDrPlan API.
|
|
625
|
+
*/
|
|
626
|
+
deleteDrPlan(deleteDrPlanRequest) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
if (this.logger)
|
|
629
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#deleteDrPlan.");
|
|
630
|
+
const operationName = "deleteDrPlan";
|
|
631
|
+
const apiReferenceLink = "";
|
|
632
|
+
const pathParams = {
|
|
633
|
+
"{drPlanId}": deleteDrPlanRequest.drPlanId
|
|
634
|
+
};
|
|
635
|
+
const queryParams = {};
|
|
636
|
+
let headerParams = {
|
|
637
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
638
|
+
"if-match": deleteDrPlanRequest.ifMatch,
|
|
639
|
+
"opc-request-id": deleteDrPlanRequest.opcRequestId
|
|
640
|
+
};
|
|
641
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
642
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDrPlanRequest.retryConfiguration, specRetryConfiguration);
|
|
643
|
+
if (this.logger)
|
|
644
|
+
retrier.logger = this.logger;
|
|
645
|
+
const request = yield oci_common_1.composeRequest({
|
|
646
|
+
baseEndpoint: this._endpoint,
|
|
647
|
+
defaultHeaders: this._defaultHeaders,
|
|
648
|
+
path: "/drPlans/{drPlanId}",
|
|
649
|
+
method: "DELETE",
|
|
650
|
+
pathParams: pathParams,
|
|
651
|
+
headerParams: headerParams,
|
|
652
|
+
queryParams: queryParams
|
|
653
|
+
});
|
|
654
|
+
try {
|
|
655
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
656
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
657
|
+
responseObject: {},
|
|
658
|
+
responseHeaders: [
|
|
659
|
+
{
|
|
660
|
+
value: response.headers.get("opc-request-id"),
|
|
661
|
+
key: "opcRequestId",
|
|
662
|
+
dataType: "string"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
});
|
|
666
|
+
return sdkResponse;
|
|
667
|
+
}
|
|
668
|
+
catch (err) {
|
|
669
|
+
throw err;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Delete the DR Plan Execution identified by *drPlanExecutionId*.
|
|
675
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
676
|
+
* @param DeleteDrPlanExecutionRequest
|
|
677
|
+
* @return DeleteDrPlanExecutionResponse
|
|
678
|
+
* @throws OciError when an error occurs
|
|
679
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/DeleteDrPlanExecution.ts.html |here} to see how to use DeleteDrPlanExecution API.
|
|
680
|
+
*/
|
|
681
|
+
deleteDrPlanExecution(deleteDrPlanExecutionRequest) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
if (this.logger)
|
|
684
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#deleteDrPlanExecution.");
|
|
685
|
+
const operationName = "deleteDrPlanExecution";
|
|
686
|
+
const apiReferenceLink = "";
|
|
687
|
+
const pathParams = {
|
|
688
|
+
"{drPlanExecutionId}": deleteDrPlanExecutionRequest.drPlanExecutionId
|
|
689
|
+
};
|
|
690
|
+
const queryParams = {};
|
|
691
|
+
let headerParams = {
|
|
692
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
693
|
+
"if-match": deleteDrPlanExecutionRequest.ifMatch,
|
|
694
|
+
"opc-request-id": deleteDrPlanExecutionRequest.opcRequestId
|
|
695
|
+
};
|
|
696
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
697
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
698
|
+
if (this.logger)
|
|
699
|
+
retrier.logger = this.logger;
|
|
700
|
+
const request = yield oci_common_1.composeRequest({
|
|
701
|
+
baseEndpoint: this._endpoint,
|
|
702
|
+
defaultHeaders: this._defaultHeaders,
|
|
703
|
+
path: "/drPlanExecutions/{drPlanExecutionId}",
|
|
704
|
+
method: "DELETE",
|
|
705
|
+
pathParams: pathParams,
|
|
706
|
+
headerParams: headerParams,
|
|
707
|
+
queryParams: queryParams
|
|
708
|
+
});
|
|
709
|
+
try {
|
|
710
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
711
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
712
|
+
responseObject: {},
|
|
713
|
+
responseHeaders: [
|
|
714
|
+
{
|
|
715
|
+
value: response.headers.get("opc-work-request-id"),
|
|
716
|
+
key: "opcWorkRequestId",
|
|
717
|
+
dataType: "string"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
value: response.headers.get("opc-request-id"),
|
|
721
|
+
key: "opcRequestId",
|
|
722
|
+
dataType: "string"
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
});
|
|
726
|
+
return sdkResponse;
|
|
727
|
+
}
|
|
728
|
+
catch (err) {
|
|
729
|
+
throw err;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Delete the DR Protection Group identified by *drProtectionGroupId*.
|
|
735
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
736
|
+
* @param DeleteDrProtectionGroupRequest
|
|
737
|
+
* @return DeleteDrProtectionGroupResponse
|
|
738
|
+
* @throws OciError when an error occurs
|
|
739
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/DeleteDrProtectionGroup.ts.html |here} to see how to use DeleteDrProtectionGroup API.
|
|
740
|
+
*/
|
|
741
|
+
deleteDrProtectionGroup(deleteDrProtectionGroupRequest) {
|
|
742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
743
|
+
if (this.logger)
|
|
744
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#deleteDrProtectionGroup.");
|
|
745
|
+
const operationName = "deleteDrProtectionGroup";
|
|
746
|
+
const apiReferenceLink = "";
|
|
747
|
+
const pathParams = {
|
|
748
|
+
"{drProtectionGroupId}": deleteDrProtectionGroupRequest.drProtectionGroupId
|
|
749
|
+
};
|
|
750
|
+
const queryParams = {};
|
|
751
|
+
let headerParams = {
|
|
752
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
753
|
+
"if-match": deleteDrProtectionGroupRequest.ifMatch,
|
|
754
|
+
"opc-request-id": deleteDrProtectionGroupRequest.opcRequestId
|
|
755
|
+
};
|
|
756
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
757
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
758
|
+
if (this.logger)
|
|
759
|
+
retrier.logger = this.logger;
|
|
760
|
+
const request = yield oci_common_1.composeRequest({
|
|
761
|
+
baseEndpoint: this._endpoint,
|
|
762
|
+
defaultHeaders: this._defaultHeaders,
|
|
763
|
+
path: "/drProtectionGroups/{drProtectionGroupId}",
|
|
764
|
+
method: "DELETE",
|
|
765
|
+
pathParams: pathParams,
|
|
766
|
+
headerParams: headerParams,
|
|
767
|
+
queryParams: queryParams
|
|
768
|
+
});
|
|
769
|
+
try {
|
|
770
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
771
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
772
|
+
responseObject: {},
|
|
773
|
+
responseHeaders: [
|
|
774
|
+
{
|
|
775
|
+
value: response.headers.get("opc-work-request-id"),
|
|
776
|
+
key: "opcWorkRequestId",
|
|
777
|
+
dataType: "string"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
value: response.headers.get("opc-request-id"),
|
|
781
|
+
key: "opcRequestId",
|
|
782
|
+
dataType: "string"
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
});
|
|
786
|
+
return sdkResponse;
|
|
787
|
+
}
|
|
788
|
+
catch (err) {
|
|
789
|
+
throw err;
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Delete the association between the DR Protection Group identified by *drProtectionGroupId*.
|
|
795
|
+
* and its peer DR Protection Group.
|
|
796
|
+
*
|
|
797
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
798
|
+
* @param DisassociateDrProtectionGroupRequest
|
|
799
|
+
* @return DisassociateDrProtectionGroupResponse
|
|
800
|
+
* @throws OciError when an error occurs
|
|
801
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/DisassociateDrProtectionGroup.ts.html |here} to see how to use DisassociateDrProtectionGroup API.
|
|
802
|
+
*/
|
|
803
|
+
disassociateDrProtectionGroup(disassociateDrProtectionGroupRequest) {
|
|
804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
805
|
+
if (this.logger)
|
|
806
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#disassociateDrProtectionGroup.");
|
|
807
|
+
const operationName = "disassociateDrProtectionGroup";
|
|
808
|
+
const apiReferenceLink = "";
|
|
809
|
+
const pathParams = {
|
|
810
|
+
"{drProtectionGroupId}": disassociateDrProtectionGroupRequest.drProtectionGroupId
|
|
811
|
+
};
|
|
812
|
+
const queryParams = {};
|
|
813
|
+
let headerParams = {
|
|
814
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
815
|
+
"if-match": disassociateDrProtectionGroupRequest.ifMatch,
|
|
816
|
+
"opc-retry-token": disassociateDrProtectionGroupRequest.opcRetryToken,
|
|
817
|
+
"opc-request-id": disassociateDrProtectionGroupRequest.opcRequestId
|
|
818
|
+
};
|
|
819
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
820
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disassociateDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
821
|
+
if (this.logger)
|
|
822
|
+
retrier.logger = this.logger;
|
|
823
|
+
const request = yield oci_common_1.composeRequest({
|
|
824
|
+
baseEndpoint: this._endpoint,
|
|
825
|
+
defaultHeaders: this._defaultHeaders,
|
|
826
|
+
path: "/drProtectionGroups/{drProtectionGroupId}/actions/disassociate",
|
|
827
|
+
method: "POST",
|
|
828
|
+
bodyContent: common.ObjectSerializer.serialize(disassociateDrProtectionGroupRequest.disassociateDrProtectionGroupDetails, "DisassociateDrProtectionGroupDetails", model.DisassociateDrProtectionGroupDetails.getJsonObj),
|
|
829
|
+
pathParams: pathParams,
|
|
830
|
+
headerParams: headerParams,
|
|
831
|
+
queryParams: queryParams
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
835
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
836
|
+
responseObject: {},
|
|
837
|
+
responseHeaders: [
|
|
838
|
+
{
|
|
839
|
+
value: response.headers.get("opc-work-request-id"),
|
|
840
|
+
key: "opcWorkRequestId",
|
|
841
|
+
dataType: "string"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
value: response.headers.get("opc-request-id"),
|
|
845
|
+
key: "opcRequestId",
|
|
846
|
+
dataType: "string"
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
});
|
|
850
|
+
return sdkResponse;
|
|
851
|
+
}
|
|
852
|
+
catch (err) {
|
|
853
|
+
throw err;
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Get details for the DR Plan identified by *drPlanId*.
|
|
859
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
860
|
+
* @param GetDrPlanRequest
|
|
861
|
+
* @return GetDrPlanResponse
|
|
862
|
+
* @throws OciError when an error occurs
|
|
863
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/GetDrPlan.ts.html |here} to see how to use GetDrPlan API.
|
|
864
|
+
*/
|
|
865
|
+
getDrPlan(getDrPlanRequest) {
|
|
866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
867
|
+
if (this.logger)
|
|
868
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#getDrPlan.");
|
|
869
|
+
const operationName = "getDrPlan";
|
|
870
|
+
const apiReferenceLink = "";
|
|
871
|
+
const pathParams = {
|
|
872
|
+
"{drPlanId}": getDrPlanRequest.drPlanId
|
|
873
|
+
};
|
|
874
|
+
const queryParams = {};
|
|
875
|
+
let headerParams = {
|
|
876
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
877
|
+
"opc-request-id": getDrPlanRequest.opcRequestId
|
|
878
|
+
};
|
|
879
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
880
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDrPlanRequest.retryConfiguration, specRetryConfiguration);
|
|
881
|
+
if (this.logger)
|
|
882
|
+
retrier.logger = this.logger;
|
|
883
|
+
const request = yield oci_common_1.composeRequest({
|
|
884
|
+
baseEndpoint: this._endpoint,
|
|
885
|
+
defaultHeaders: this._defaultHeaders,
|
|
886
|
+
path: "/drPlans/{drPlanId}",
|
|
887
|
+
method: "GET",
|
|
888
|
+
pathParams: pathParams,
|
|
889
|
+
headerParams: headerParams,
|
|
890
|
+
queryParams: queryParams
|
|
891
|
+
});
|
|
892
|
+
try {
|
|
893
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
894
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
895
|
+
responseObject: {},
|
|
896
|
+
body: yield response.json(),
|
|
897
|
+
bodyKey: "drPlan",
|
|
898
|
+
bodyModel: model.DrPlan,
|
|
899
|
+
type: "model.DrPlan",
|
|
900
|
+
responseHeaders: [
|
|
901
|
+
{
|
|
902
|
+
value: response.headers.get("etag"),
|
|
903
|
+
key: "etag",
|
|
904
|
+
dataType: "string"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
value: response.headers.get("opc-request-id"),
|
|
908
|
+
key: "opcRequestId",
|
|
909
|
+
dataType: "string"
|
|
910
|
+
}
|
|
911
|
+
]
|
|
912
|
+
});
|
|
913
|
+
return sdkResponse;
|
|
914
|
+
}
|
|
915
|
+
catch (err) {
|
|
916
|
+
throw err;
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Get details for the DR Plan Execution identified by *drPlanExecutionId*.
|
|
922
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
923
|
+
* @param GetDrPlanExecutionRequest
|
|
924
|
+
* @return GetDrPlanExecutionResponse
|
|
925
|
+
* @throws OciError when an error occurs
|
|
926
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/GetDrPlanExecution.ts.html |here} to see how to use GetDrPlanExecution API.
|
|
927
|
+
*/
|
|
928
|
+
getDrPlanExecution(getDrPlanExecutionRequest) {
|
|
929
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
930
|
+
if (this.logger)
|
|
931
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#getDrPlanExecution.");
|
|
932
|
+
const operationName = "getDrPlanExecution";
|
|
933
|
+
const apiReferenceLink = "";
|
|
934
|
+
const pathParams = {
|
|
935
|
+
"{drPlanExecutionId}": getDrPlanExecutionRequest.drPlanExecutionId
|
|
936
|
+
};
|
|
937
|
+
const queryParams = {};
|
|
938
|
+
let headerParams = {
|
|
939
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
940
|
+
"opc-request-id": getDrPlanExecutionRequest.opcRequestId
|
|
941
|
+
};
|
|
942
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
943
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
944
|
+
if (this.logger)
|
|
945
|
+
retrier.logger = this.logger;
|
|
946
|
+
const request = yield oci_common_1.composeRequest({
|
|
947
|
+
baseEndpoint: this._endpoint,
|
|
948
|
+
defaultHeaders: this._defaultHeaders,
|
|
949
|
+
path: "/drPlanExecutions/{drPlanExecutionId}",
|
|
950
|
+
method: "GET",
|
|
951
|
+
pathParams: pathParams,
|
|
952
|
+
headerParams: headerParams,
|
|
953
|
+
queryParams: queryParams
|
|
954
|
+
});
|
|
955
|
+
try {
|
|
956
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
957
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
958
|
+
responseObject: {},
|
|
959
|
+
body: yield response.json(),
|
|
960
|
+
bodyKey: "drPlanExecution",
|
|
961
|
+
bodyModel: model.DrPlanExecution,
|
|
962
|
+
type: "model.DrPlanExecution",
|
|
963
|
+
responseHeaders: [
|
|
964
|
+
{
|
|
965
|
+
value: response.headers.get("etag"),
|
|
966
|
+
key: "etag",
|
|
967
|
+
dataType: "string"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
value: response.headers.get("opc-request-id"),
|
|
971
|
+
key: "opcRequestId",
|
|
972
|
+
dataType: "string"
|
|
973
|
+
}
|
|
974
|
+
]
|
|
975
|
+
});
|
|
976
|
+
return sdkResponse;
|
|
977
|
+
}
|
|
978
|
+
catch (err) {
|
|
979
|
+
throw err;
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Get the DR Protection Group identified by *drProtectionGroupId*.
|
|
985
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
986
|
+
* @param GetDrProtectionGroupRequest
|
|
987
|
+
* @return GetDrProtectionGroupResponse
|
|
988
|
+
* @throws OciError when an error occurs
|
|
989
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/GetDrProtectionGroup.ts.html |here} to see how to use GetDrProtectionGroup API.
|
|
990
|
+
*/
|
|
991
|
+
getDrProtectionGroup(getDrProtectionGroupRequest) {
|
|
992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
+
if (this.logger)
|
|
994
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#getDrProtectionGroup.");
|
|
995
|
+
const operationName = "getDrProtectionGroup";
|
|
996
|
+
const apiReferenceLink = "";
|
|
997
|
+
const pathParams = {
|
|
998
|
+
"{drProtectionGroupId}": getDrProtectionGroupRequest.drProtectionGroupId
|
|
999
|
+
};
|
|
1000
|
+
const queryParams = {};
|
|
1001
|
+
let headerParams = {
|
|
1002
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1003
|
+
"opc-request-id": getDrProtectionGroupRequest.opcRequestId
|
|
1004
|
+
};
|
|
1005
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1006
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
1007
|
+
if (this.logger)
|
|
1008
|
+
retrier.logger = this.logger;
|
|
1009
|
+
const request = yield oci_common_1.composeRequest({
|
|
1010
|
+
baseEndpoint: this._endpoint,
|
|
1011
|
+
defaultHeaders: this._defaultHeaders,
|
|
1012
|
+
path: "/drProtectionGroups/{drProtectionGroupId}",
|
|
1013
|
+
method: "GET",
|
|
1014
|
+
pathParams: pathParams,
|
|
1015
|
+
headerParams: headerParams,
|
|
1016
|
+
queryParams: queryParams
|
|
1017
|
+
});
|
|
1018
|
+
try {
|
|
1019
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1020
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1021
|
+
responseObject: {},
|
|
1022
|
+
body: yield response.json(),
|
|
1023
|
+
bodyKey: "drProtectionGroup",
|
|
1024
|
+
bodyModel: model.DrProtectionGroup,
|
|
1025
|
+
type: "model.DrProtectionGroup",
|
|
1026
|
+
responseHeaders: [
|
|
1027
|
+
{
|
|
1028
|
+
value: response.headers.get("etag"),
|
|
1029
|
+
key: "etag",
|
|
1030
|
+
dataType: "string"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
value: response.headers.get("opc-request-id"),
|
|
1034
|
+
key: "opcRequestId",
|
|
1035
|
+
dataType: "string"
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
});
|
|
1039
|
+
return sdkResponse;
|
|
1040
|
+
}
|
|
1041
|
+
catch (err) {
|
|
1042
|
+
throw err;
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Get the status of the work request identified by *workRequestId*.
|
|
1048
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1049
|
+
* @param GetWorkRequestRequest
|
|
1050
|
+
* @return GetWorkRequestResponse
|
|
1051
|
+
* @throws OciError when an error occurs
|
|
1052
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1053
|
+
*/
|
|
1054
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
|
+
if (this.logger)
|
|
1057
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#getWorkRequest.");
|
|
1058
|
+
const operationName = "getWorkRequest";
|
|
1059
|
+
const apiReferenceLink = "";
|
|
1060
|
+
const pathParams = {
|
|
1061
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1062
|
+
};
|
|
1063
|
+
const queryParams = {};
|
|
1064
|
+
let headerParams = {
|
|
1065
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1066
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1067
|
+
};
|
|
1068
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1069
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1070
|
+
if (this.logger)
|
|
1071
|
+
retrier.logger = this.logger;
|
|
1072
|
+
const request = yield oci_common_1.composeRequest({
|
|
1073
|
+
baseEndpoint: this._endpoint,
|
|
1074
|
+
defaultHeaders: this._defaultHeaders,
|
|
1075
|
+
path: "/workRequests/{workRequestId}",
|
|
1076
|
+
method: "GET",
|
|
1077
|
+
pathParams: pathParams,
|
|
1078
|
+
headerParams: headerParams,
|
|
1079
|
+
queryParams: queryParams
|
|
1080
|
+
});
|
|
1081
|
+
try {
|
|
1082
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1083
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1084
|
+
responseObject: {},
|
|
1085
|
+
body: yield response.json(),
|
|
1086
|
+
bodyKey: "workRequest",
|
|
1087
|
+
bodyModel: model.WorkRequest,
|
|
1088
|
+
type: "model.WorkRequest",
|
|
1089
|
+
responseHeaders: [
|
|
1090
|
+
{
|
|
1091
|
+
value: response.headers.get("etag"),
|
|
1092
|
+
key: "etag",
|
|
1093
|
+
dataType: "string"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
value: response.headers.get("opc-request-id"),
|
|
1097
|
+
key: "opcRequestId",
|
|
1098
|
+
dataType: "string"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
value: response.headers.get("retry-after"),
|
|
1102
|
+
key: "retryAfter",
|
|
1103
|
+
dataType: "number"
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
});
|
|
1107
|
+
return sdkResponse;
|
|
1108
|
+
}
|
|
1109
|
+
catch (err) {
|
|
1110
|
+
throw err;
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Ignore failed group or step in DR Plan Execution identified by *drPlanExecutionId* and resume execution.
|
|
1116
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1117
|
+
* @param IgnoreDrPlanExecutionRequest
|
|
1118
|
+
* @return IgnoreDrPlanExecutionResponse
|
|
1119
|
+
* @throws OciError when an error occurs
|
|
1120
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/IgnoreDrPlanExecution.ts.html |here} to see how to use IgnoreDrPlanExecution API.
|
|
1121
|
+
*/
|
|
1122
|
+
ignoreDrPlanExecution(ignoreDrPlanExecutionRequest) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
if (this.logger)
|
|
1125
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#ignoreDrPlanExecution.");
|
|
1126
|
+
const operationName = "ignoreDrPlanExecution";
|
|
1127
|
+
const apiReferenceLink = "";
|
|
1128
|
+
const pathParams = {
|
|
1129
|
+
"{drPlanExecutionId}": ignoreDrPlanExecutionRequest.drPlanExecutionId
|
|
1130
|
+
};
|
|
1131
|
+
const queryParams = {};
|
|
1132
|
+
let headerParams = {
|
|
1133
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1134
|
+
"if-match": ignoreDrPlanExecutionRequest.ifMatch,
|
|
1135
|
+
"opc-retry-token": ignoreDrPlanExecutionRequest.opcRetryToken,
|
|
1136
|
+
"opc-request-id": ignoreDrPlanExecutionRequest.opcRequestId
|
|
1137
|
+
};
|
|
1138
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1139
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ignoreDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
1140
|
+
if (this.logger)
|
|
1141
|
+
retrier.logger = this.logger;
|
|
1142
|
+
const request = yield oci_common_1.composeRequest({
|
|
1143
|
+
baseEndpoint: this._endpoint,
|
|
1144
|
+
defaultHeaders: this._defaultHeaders,
|
|
1145
|
+
path: "/drPlanExecutions/{drPlanExecutionId}/actions/ignore",
|
|
1146
|
+
method: "POST",
|
|
1147
|
+
bodyContent: common.ObjectSerializer.serialize(ignoreDrPlanExecutionRequest.ignoreDrPlanExecutionDetails, "IgnoreDrPlanExecutionDetails", model.IgnoreDrPlanExecutionDetails.getJsonObj),
|
|
1148
|
+
pathParams: pathParams,
|
|
1149
|
+
headerParams: headerParams,
|
|
1150
|
+
queryParams: queryParams
|
|
1151
|
+
});
|
|
1152
|
+
try {
|
|
1153
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1154
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1155
|
+
responseObject: {},
|
|
1156
|
+
responseHeaders: [
|
|
1157
|
+
{
|
|
1158
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1159
|
+
key: "opcWorkRequestId",
|
|
1160
|
+
dataType: "string"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
value: response.headers.get("opc-request-id"),
|
|
1164
|
+
key: "opcRequestId",
|
|
1165
|
+
dataType: "string"
|
|
1166
|
+
}
|
|
1167
|
+
]
|
|
1168
|
+
});
|
|
1169
|
+
return sdkResponse;
|
|
1170
|
+
}
|
|
1171
|
+
catch (err) {
|
|
1172
|
+
throw err;
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Get a summary list of all DR Plan Executions for a DR Protection Group.
|
|
1178
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1179
|
+
* @param ListDrPlanExecutionsRequest
|
|
1180
|
+
* @return ListDrPlanExecutionsResponse
|
|
1181
|
+
* @throws OciError when an error occurs
|
|
1182
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListDrPlanExecutions.ts.html |here} to see how to use ListDrPlanExecutions API.
|
|
1183
|
+
*/
|
|
1184
|
+
listDrPlanExecutions(listDrPlanExecutionsRequest) {
|
|
1185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1186
|
+
if (this.logger)
|
|
1187
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listDrPlanExecutions.");
|
|
1188
|
+
const operationName = "listDrPlanExecutions";
|
|
1189
|
+
const apiReferenceLink = "";
|
|
1190
|
+
const pathParams = {};
|
|
1191
|
+
const queryParams = {
|
|
1192
|
+
"drProtectionGroupId": listDrPlanExecutionsRequest.drProtectionGroupId,
|
|
1193
|
+
"lifecycleState": listDrPlanExecutionsRequest.lifecycleState,
|
|
1194
|
+
"drPlanExecutionId": listDrPlanExecutionsRequest.drPlanExecutionId,
|
|
1195
|
+
"drPlanExecutionType": listDrPlanExecutionsRequest.drPlanExecutionType,
|
|
1196
|
+
"displayName": listDrPlanExecutionsRequest.displayName,
|
|
1197
|
+
"limit": listDrPlanExecutionsRequest.limit,
|
|
1198
|
+
"page": listDrPlanExecutionsRequest.page,
|
|
1199
|
+
"sortOrder": listDrPlanExecutionsRequest.sortOrder,
|
|
1200
|
+
"sortBy": listDrPlanExecutionsRequest.sortBy
|
|
1201
|
+
};
|
|
1202
|
+
let headerParams = {
|
|
1203
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1204
|
+
"opc-request-id": listDrPlanExecutionsRequest.opcRequestId
|
|
1205
|
+
};
|
|
1206
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1207
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDrPlanExecutionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1208
|
+
if (this.logger)
|
|
1209
|
+
retrier.logger = this.logger;
|
|
1210
|
+
const request = yield oci_common_1.composeRequest({
|
|
1211
|
+
baseEndpoint: this._endpoint,
|
|
1212
|
+
defaultHeaders: this._defaultHeaders,
|
|
1213
|
+
path: "/drPlanExecutions",
|
|
1214
|
+
method: "GET",
|
|
1215
|
+
pathParams: pathParams,
|
|
1216
|
+
headerParams: headerParams,
|
|
1217
|
+
queryParams: queryParams
|
|
1218
|
+
});
|
|
1219
|
+
try {
|
|
1220
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1221
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1222
|
+
responseObject: {},
|
|
1223
|
+
body: yield response.json(),
|
|
1224
|
+
bodyKey: "drPlanExecutionCollection",
|
|
1225
|
+
bodyModel: model.DrPlanExecutionCollection,
|
|
1226
|
+
type: "model.DrPlanExecutionCollection",
|
|
1227
|
+
responseHeaders: [
|
|
1228
|
+
{
|
|
1229
|
+
value: response.headers.get("opc-request-id"),
|
|
1230
|
+
key: "opcRequestId",
|
|
1231
|
+
dataType: "string"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
value: response.headers.get("opc-next-page"),
|
|
1235
|
+
key: "opcNextPage",
|
|
1236
|
+
dataType: "string"
|
|
1237
|
+
}
|
|
1238
|
+
]
|
|
1239
|
+
});
|
|
1240
|
+
return sdkResponse;
|
|
1241
|
+
}
|
|
1242
|
+
catch (err) {
|
|
1243
|
+
throw err;
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Gets a summary list of all DR Plans for a DR Protection Group.
|
|
1249
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1250
|
+
* @param ListDrPlansRequest
|
|
1251
|
+
* @return ListDrPlansResponse
|
|
1252
|
+
* @throws OciError when an error occurs
|
|
1253
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListDrPlans.ts.html |here} to see how to use ListDrPlans API.
|
|
1254
|
+
*/
|
|
1255
|
+
listDrPlans(listDrPlansRequest) {
|
|
1256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1257
|
+
if (this.logger)
|
|
1258
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listDrPlans.");
|
|
1259
|
+
const operationName = "listDrPlans";
|
|
1260
|
+
const apiReferenceLink = "";
|
|
1261
|
+
const pathParams = {};
|
|
1262
|
+
const queryParams = {
|
|
1263
|
+
"drProtectionGroupId": listDrPlansRequest.drProtectionGroupId,
|
|
1264
|
+
"lifecycleState": listDrPlansRequest.lifecycleState,
|
|
1265
|
+
"drPlanId": listDrPlansRequest.drPlanId,
|
|
1266
|
+
"drPlanType": listDrPlansRequest.drPlanType,
|
|
1267
|
+
"displayName": listDrPlansRequest.displayName,
|
|
1268
|
+
"limit": listDrPlansRequest.limit,
|
|
1269
|
+
"page": listDrPlansRequest.page,
|
|
1270
|
+
"sortOrder": listDrPlansRequest.sortOrder,
|
|
1271
|
+
"sortBy": listDrPlansRequest.sortBy
|
|
1272
|
+
};
|
|
1273
|
+
let headerParams = {
|
|
1274
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1275
|
+
"opc-request-id": listDrPlansRequest.opcRequestId
|
|
1276
|
+
};
|
|
1277
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1278
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDrPlansRequest.retryConfiguration, specRetryConfiguration);
|
|
1279
|
+
if (this.logger)
|
|
1280
|
+
retrier.logger = this.logger;
|
|
1281
|
+
const request = yield oci_common_1.composeRequest({
|
|
1282
|
+
baseEndpoint: this._endpoint,
|
|
1283
|
+
defaultHeaders: this._defaultHeaders,
|
|
1284
|
+
path: "/drPlans",
|
|
1285
|
+
method: "GET",
|
|
1286
|
+
pathParams: pathParams,
|
|
1287
|
+
headerParams: headerParams,
|
|
1288
|
+
queryParams: queryParams
|
|
1289
|
+
});
|
|
1290
|
+
try {
|
|
1291
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1292
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1293
|
+
responseObject: {},
|
|
1294
|
+
body: yield response.json(),
|
|
1295
|
+
bodyKey: "drPlanCollection",
|
|
1296
|
+
bodyModel: model.DrPlanCollection,
|
|
1297
|
+
type: "model.DrPlanCollection",
|
|
1298
|
+
responseHeaders: [
|
|
1299
|
+
{
|
|
1300
|
+
value: response.headers.get("opc-request-id"),
|
|
1301
|
+
key: "opcRequestId",
|
|
1302
|
+
dataType: "string"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
value: response.headers.get("opc-next-page"),
|
|
1306
|
+
key: "opcNextPage",
|
|
1307
|
+
dataType: "string"
|
|
1308
|
+
}
|
|
1309
|
+
]
|
|
1310
|
+
});
|
|
1311
|
+
return sdkResponse;
|
|
1312
|
+
}
|
|
1313
|
+
catch (err) {
|
|
1314
|
+
throw err;
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Gets a summary list of all DR Protection Groups in a compartment.
|
|
1320
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1321
|
+
* @param ListDrProtectionGroupsRequest
|
|
1322
|
+
* @return ListDrProtectionGroupsResponse
|
|
1323
|
+
* @throws OciError when an error occurs
|
|
1324
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListDrProtectionGroups.ts.html |here} to see how to use ListDrProtectionGroups API.
|
|
1325
|
+
*/
|
|
1326
|
+
listDrProtectionGroups(listDrProtectionGroupsRequest) {
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1328
|
+
if (this.logger)
|
|
1329
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listDrProtectionGroups.");
|
|
1330
|
+
const operationName = "listDrProtectionGroups";
|
|
1331
|
+
const apiReferenceLink = "";
|
|
1332
|
+
const pathParams = {};
|
|
1333
|
+
const queryParams = {
|
|
1334
|
+
"compartmentId": listDrProtectionGroupsRequest.compartmentId,
|
|
1335
|
+
"lifecycleState": listDrProtectionGroupsRequest.lifecycleState,
|
|
1336
|
+
"drProtectionGroupId": listDrProtectionGroupsRequest.drProtectionGroupId,
|
|
1337
|
+
"displayName": listDrProtectionGroupsRequest.displayName,
|
|
1338
|
+
"limit": listDrProtectionGroupsRequest.limit,
|
|
1339
|
+
"page": listDrProtectionGroupsRequest.page,
|
|
1340
|
+
"sortOrder": listDrProtectionGroupsRequest.sortOrder,
|
|
1341
|
+
"sortBy": listDrProtectionGroupsRequest.sortBy
|
|
1342
|
+
};
|
|
1343
|
+
let headerParams = {
|
|
1344
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1345
|
+
"opc-request-id": listDrProtectionGroupsRequest.opcRequestId
|
|
1346
|
+
};
|
|
1347
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1348
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDrProtectionGroupsRequest.retryConfiguration, specRetryConfiguration);
|
|
1349
|
+
if (this.logger)
|
|
1350
|
+
retrier.logger = this.logger;
|
|
1351
|
+
const request = yield oci_common_1.composeRequest({
|
|
1352
|
+
baseEndpoint: this._endpoint,
|
|
1353
|
+
defaultHeaders: this._defaultHeaders,
|
|
1354
|
+
path: "/drProtectionGroups",
|
|
1355
|
+
method: "GET",
|
|
1356
|
+
pathParams: pathParams,
|
|
1357
|
+
headerParams: headerParams,
|
|
1358
|
+
queryParams: queryParams
|
|
1359
|
+
});
|
|
1360
|
+
try {
|
|
1361
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1362
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1363
|
+
responseObject: {},
|
|
1364
|
+
body: yield response.json(),
|
|
1365
|
+
bodyKey: "drProtectionGroupCollection",
|
|
1366
|
+
bodyModel: model.DrProtectionGroupCollection,
|
|
1367
|
+
type: "model.DrProtectionGroupCollection",
|
|
1368
|
+
responseHeaders: [
|
|
1369
|
+
{
|
|
1370
|
+
value: response.headers.get("opc-request-id"),
|
|
1371
|
+
key: "opcRequestId",
|
|
1372
|
+
dataType: "string"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
value: response.headers.get("opc-next-page"),
|
|
1376
|
+
key: "opcNextPage",
|
|
1377
|
+
dataType: "string"
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
|
+
});
|
|
1381
|
+
return sdkResponse;
|
|
1382
|
+
}
|
|
1383
|
+
catch (err) {
|
|
1384
|
+
throw err;
|
|
1385
|
+
}
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Return a (paginated) list of errors for a given work request.
|
|
1390
|
+
*
|
|
1391
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1392
|
+
* @param ListWorkRequestErrorsRequest
|
|
1393
|
+
* @return ListWorkRequestErrorsResponse
|
|
1394
|
+
* @throws OciError when an error occurs
|
|
1395
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1396
|
+
*/
|
|
1397
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1399
|
+
if (this.logger)
|
|
1400
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listWorkRequestErrors.");
|
|
1401
|
+
const operationName = "listWorkRequestErrors";
|
|
1402
|
+
const apiReferenceLink = "";
|
|
1403
|
+
const pathParams = {
|
|
1404
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1405
|
+
};
|
|
1406
|
+
const queryParams = {
|
|
1407
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1408
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1409
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1410
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1411
|
+
};
|
|
1412
|
+
let headerParams = {
|
|
1413
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1414
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1415
|
+
};
|
|
1416
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1417
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1418
|
+
if (this.logger)
|
|
1419
|
+
retrier.logger = this.logger;
|
|
1420
|
+
const request = yield oci_common_1.composeRequest({
|
|
1421
|
+
baseEndpoint: this._endpoint,
|
|
1422
|
+
defaultHeaders: this._defaultHeaders,
|
|
1423
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1424
|
+
method: "GET",
|
|
1425
|
+
pathParams: pathParams,
|
|
1426
|
+
headerParams: headerParams,
|
|
1427
|
+
queryParams: queryParams
|
|
1428
|
+
});
|
|
1429
|
+
try {
|
|
1430
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1431
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1432
|
+
responseObject: {},
|
|
1433
|
+
body: yield response.json(),
|
|
1434
|
+
bodyKey: "workRequestErrorCollection",
|
|
1435
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1436
|
+
type: "model.WorkRequestErrorCollection",
|
|
1437
|
+
responseHeaders: [
|
|
1438
|
+
{
|
|
1439
|
+
value: response.headers.get("opc-next-page"),
|
|
1440
|
+
key: "opcNextPage",
|
|
1441
|
+
dataType: "string"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
value: response.headers.get("opc-request-id"),
|
|
1445
|
+
key: "opcRequestId",
|
|
1446
|
+
dataType: "string"
|
|
1447
|
+
}
|
|
1448
|
+
]
|
|
1449
|
+
});
|
|
1450
|
+
return sdkResponse;
|
|
1451
|
+
}
|
|
1452
|
+
catch (err) {
|
|
1453
|
+
throw err;
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Return a (paginated) list of logs for the work request identified by *workRequestId*.
|
|
1459
|
+
*
|
|
1460
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1461
|
+
* @param ListWorkRequestLogsRequest
|
|
1462
|
+
* @return ListWorkRequestLogsResponse
|
|
1463
|
+
* @throws OciError when an error occurs
|
|
1464
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1465
|
+
*/
|
|
1466
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1468
|
+
if (this.logger)
|
|
1469
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listWorkRequestLogs.");
|
|
1470
|
+
const operationName = "listWorkRequestLogs";
|
|
1471
|
+
const apiReferenceLink = "";
|
|
1472
|
+
const pathParams = {
|
|
1473
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1474
|
+
};
|
|
1475
|
+
const queryParams = {
|
|
1476
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1477
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1478
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1479
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1480
|
+
};
|
|
1481
|
+
let headerParams = {
|
|
1482
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1483
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1484
|
+
};
|
|
1485
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1486
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1487
|
+
if (this.logger)
|
|
1488
|
+
retrier.logger = this.logger;
|
|
1489
|
+
const request = yield oci_common_1.composeRequest({
|
|
1490
|
+
baseEndpoint: this._endpoint,
|
|
1491
|
+
defaultHeaders: this._defaultHeaders,
|
|
1492
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1493
|
+
method: "GET",
|
|
1494
|
+
pathParams: pathParams,
|
|
1495
|
+
headerParams: headerParams,
|
|
1496
|
+
queryParams: queryParams
|
|
1497
|
+
});
|
|
1498
|
+
try {
|
|
1499
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1500
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1501
|
+
responseObject: {},
|
|
1502
|
+
body: yield response.json(),
|
|
1503
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1504
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1505
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1506
|
+
responseHeaders: [
|
|
1507
|
+
{
|
|
1508
|
+
value: response.headers.get("opc-next-page"),
|
|
1509
|
+
key: "opcNextPage",
|
|
1510
|
+
dataType: "string"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
value: response.headers.get("opc-request-id"),
|
|
1514
|
+
key: "opcRequestId",
|
|
1515
|
+
dataType: "string"
|
|
1516
|
+
}
|
|
1517
|
+
]
|
|
1518
|
+
});
|
|
1519
|
+
return sdkResponse;
|
|
1520
|
+
}
|
|
1521
|
+
catch (err) {
|
|
1522
|
+
throw err;
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* Lists the work requests in a compartment.
|
|
1528
|
+
*
|
|
1529
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1530
|
+
* @param ListWorkRequestsRequest
|
|
1531
|
+
* @return ListWorkRequestsResponse
|
|
1532
|
+
* @throws OciError when an error occurs
|
|
1533
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1534
|
+
*/
|
|
1535
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1537
|
+
if (this.logger)
|
|
1538
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#listWorkRequests.");
|
|
1539
|
+
const operationName = "listWorkRequests";
|
|
1540
|
+
const apiReferenceLink = "";
|
|
1541
|
+
const pathParams = {};
|
|
1542
|
+
const queryParams = {
|
|
1543
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1544
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1545
|
+
"status": listWorkRequestsRequest.status,
|
|
1546
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1547
|
+
"page": listWorkRequestsRequest.page,
|
|
1548
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1549
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1550
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1551
|
+
};
|
|
1552
|
+
let headerParams = {
|
|
1553
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1554
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1555
|
+
};
|
|
1556
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1557
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1558
|
+
if (this.logger)
|
|
1559
|
+
retrier.logger = this.logger;
|
|
1560
|
+
const request = yield oci_common_1.composeRequest({
|
|
1561
|
+
baseEndpoint: this._endpoint,
|
|
1562
|
+
defaultHeaders: this._defaultHeaders,
|
|
1563
|
+
path: "/workRequests",
|
|
1564
|
+
method: "GET",
|
|
1565
|
+
pathParams: pathParams,
|
|
1566
|
+
headerParams: headerParams,
|
|
1567
|
+
queryParams: queryParams
|
|
1568
|
+
});
|
|
1569
|
+
try {
|
|
1570
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1571
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1572
|
+
responseObject: {},
|
|
1573
|
+
body: yield response.json(),
|
|
1574
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1575
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1576
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1577
|
+
responseHeaders: [
|
|
1578
|
+
{
|
|
1579
|
+
value: response.headers.get("opc-request-id"),
|
|
1580
|
+
key: "opcRequestId",
|
|
1581
|
+
dataType: "string"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
value: response.headers.get("opc-next-page"),
|
|
1585
|
+
key: "opcNextPage",
|
|
1586
|
+
dataType: "string"
|
|
1587
|
+
}
|
|
1588
|
+
]
|
|
1589
|
+
});
|
|
1590
|
+
return sdkResponse;
|
|
1591
|
+
}
|
|
1592
|
+
catch (err) {
|
|
1593
|
+
throw err;
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Pause the DR Plan Execution identified by *drPlanExecutionId*.
|
|
1599
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1600
|
+
* @param PauseDrPlanExecutionRequest
|
|
1601
|
+
* @return PauseDrPlanExecutionResponse
|
|
1602
|
+
* @throws OciError when an error occurs
|
|
1603
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/PauseDrPlanExecution.ts.html |here} to see how to use PauseDrPlanExecution API.
|
|
1604
|
+
*/
|
|
1605
|
+
pauseDrPlanExecution(pauseDrPlanExecutionRequest) {
|
|
1606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1607
|
+
if (this.logger)
|
|
1608
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#pauseDrPlanExecution.");
|
|
1609
|
+
const operationName = "pauseDrPlanExecution";
|
|
1610
|
+
const apiReferenceLink = "";
|
|
1611
|
+
const pathParams = {
|
|
1612
|
+
"{drPlanExecutionId}": pauseDrPlanExecutionRequest.drPlanExecutionId
|
|
1613
|
+
};
|
|
1614
|
+
const queryParams = {};
|
|
1615
|
+
let headerParams = {
|
|
1616
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1617
|
+
"if-match": pauseDrPlanExecutionRequest.ifMatch,
|
|
1618
|
+
"opc-retry-token": pauseDrPlanExecutionRequest.opcRetryToken,
|
|
1619
|
+
"opc-request-id": pauseDrPlanExecutionRequest.opcRequestId
|
|
1620
|
+
};
|
|
1621
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1622
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, pauseDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
1623
|
+
if (this.logger)
|
|
1624
|
+
retrier.logger = this.logger;
|
|
1625
|
+
const request = yield oci_common_1.composeRequest({
|
|
1626
|
+
baseEndpoint: this._endpoint,
|
|
1627
|
+
defaultHeaders: this._defaultHeaders,
|
|
1628
|
+
path: "/drPlanExecutions/{drPlanExecutionId}/actions/pause",
|
|
1629
|
+
method: "POST",
|
|
1630
|
+
bodyContent: common.ObjectSerializer.serialize(pauseDrPlanExecutionRequest.pauseDrPlanExecutionDetails, "PauseDrPlanExecutionDetails", model.PauseDrPlanExecutionDetails.getJsonObj),
|
|
1631
|
+
pathParams: pathParams,
|
|
1632
|
+
headerParams: headerParams,
|
|
1633
|
+
queryParams: queryParams
|
|
1634
|
+
});
|
|
1635
|
+
try {
|
|
1636
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1637
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1638
|
+
responseObject: {},
|
|
1639
|
+
responseHeaders: [
|
|
1640
|
+
{
|
|
1641
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1642
|
+
key: "opcWorkRequestId",
|
|
1643
|
+
dataType: "string"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
value: response.headers.get("opc-request-id"),
|
|
1647
|
+
key: "opcRequestId",
|
|
1648
|
+
dataType: "string"
|
|
1649
|
+
}
|
|
1650
|
+
]
|
|
1651
|
+
});
|
|
1652
|
+
return sdkResponse;
|
|
1653
|
+
}
|
|
1654
|
+
catch (err) {
|
|
1655
|
+
throw err;
|
|
1656
|
+
}
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Resume the DR Plan Execution identified by *drPlanExecutionId*.
|
|
1661
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1662
|
+
* @param ResumeDrPlanExecutionRequest
|
|
1663
|
+
* @return ResumeDrPlanExecutionResponse
|
|
1664
|
+
* @throws OciError when an error occurs
|
|
1665
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/ResumeDrPlanExecution.ts.html |here} to see how to use ResumeDrPlanExecution API.
|
|
1666
|
+
*/
|
|
1667
|
+
resumeDrPlanExecution(resumeDrPlanExecutionRequest) {
|
|
1668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1669
|
+
if (this.logger)
|
|
1670
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#resumeDrPlanExecution.");
|
|
1671
|
+
const operationName = "resumeDrPlanExecution";
|
|
1672
|
+
const apiReferenceLink = "";
|
|
1673
|
+
const pathParams = {
|
|
1674
|
+
"{drPlanExecutionId}": resumeDrPlanExecutionRequest.drPlanExecutionId
|
|
1675
|
+
};
|
|
1676
|
+
const queryParams = {};
|
|
1677
|
+
let headerParams = {
|
|
1678
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1679
|
+
"if-match": resumeDrPlanExecutionRequest.ifMatch,
|
|
1680
|
+
"opc-retry-token": resumeDrPlanExecutionRequest.opcRetryToken,
|
|
1681
|
+
"opc-request-id": resumeDrPlanExecutionRequest.opcRequestId
|
|
1682
|
+
};
|
|
1683
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1684
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resumeDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
1685
|
+
if (this.logger)
|
|
1686
|
+
retrier.logger = this.logger;
|
|
1687
|
+
const request = yield oci_common_1.composeRequest({
|
|
1688
|
+
baseEndpoint: this._endpoint,
|
|
1689
|
+
defaultHeaders: this._defaultHeaders,
|
|
1690
|
+
path: "/drPlanExecutions/{drPlanExecutionId}/actions/resume",
|
|
1691
|
+
method: "POST",
|
|
1692
|
+
bodyContent: common.ObjectSerializer.serialize(resumeDrPlanExecutionRequest.resumeDrPlanExecutionDetails, "ResumeDrPlanExecutionDetails", model.ResumeDrPlanExecutionDetails.getJsonObj),
|
|
1693
|
+
pathParams: pathParams,
|
|
1694
|
+
headerParams: headerParams,
|
|
1695
|
+
queryParams: queryParams
|
|
1696
|
+
});
|
|
1697
|
+
try {
|
|
1698
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1699
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1700
|
+
responseObject: {},
|
|
1701
|
+
responseHeaders: [
|
|
1702
|
+
{
|
|
1703
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1704
|
+
key: "opcWorkRequestId",
|
|
1705
|
+
dataType: "string"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
value: response.headers.get("opc-request-id"),
|
|
1709
|
+
key: "opcRequestId",
|
|
1710
|
+
dataType: "string"
|
|
1711
|
+
}
|
|
1712
|
+
]
|
|
1713
|
+
});
|
|
1714
|
+
return sdkResponse;
|
|
1715
|
+
}
|
|
1716
|
+
catch (err) {
|
|
1717
|
+
throw err;
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Retry failed group or step in DR Plan Execution identified by *drPlanExecutionId* and resume execution.
|
|
1723
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1724
|
+
* @param RetryDrPlanExecutionRequest
|
|
1725
|
+
* @return RetryDrPlanExecutionResponse
|
|
1726
|
+
* @throws OciError when an error occurs
|
|
1727
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/RetryDrPlanExecution.ts.html |here} to see how to use RetryDrPlanExecution API.
|
|
1728
|
+
*/
|
|
1729
|
+
retryDrPlanExecution(retryDrPlanExecutionRequest) {
|
|
1730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1731
|
+
if (this.logger)
|
|
1732
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#retryDrPlanExecution.");
|
|
1733
|
+
const operationName = "retryDrPlanExecution";
|
|
1734
|
+
const apiReferenceLink = "";
|
|
1735
|
+
const pathParams = {
|
|
1736
|
+
"{drPlanExecutionId}": retryDrPlanExecutionRequest.drPlanExecutionId
|
|
1737
|
+
};
|
|
1738
|
+
const queryParams = {};
|
|
1739
|
+
let headerParams = {
|
|
1740
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1741
|
+
"if-match": retryDrPlanExecutionRequest.ifMatch,
|
|
1742
|
+
"opc-retry-token": retryDrPlanExecutionRequest.opcRetryToken,
|
|
1743
|
+
"opc-request-id": retryDrPlanExecutionRequest.opcRequestId
|
|
1744
|
+
};
|
|
1745
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1746
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retryDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
1747
|
+
if (this.logger)
|
|
1748
|
+
retrier.logger = this.logger;
|
|
1749
|
+
const request = yield oci_common_1.composeRequest({
|
|
1750
|
+
baseEndpoint: this._endpoint,
|
|
1751
|
+
defaultHeaders: this._defaultHeaders,
|
|
1752
|
+
path: "/drPlanExecutions/{drPlanExecutionId}/actions/retry",
|
|
1753
|
+
method: "POST",
|
|
1754
|
+
bodyContent: common.ObjectSerializer.serialize(retryDrPlanExecutionRequest.retryDrPlanExecutionDetails, "RetryDrPlanExecutionDetails", model.RetryDrPlanExecutionDetails.getJsonObj),
|
|
1755
|
+
pathParams: pathParams,
|
|
1756
|
+
headerParams: headerParams,
|
|
1757
|
+
queryParams: queryParams
|
|
1758
|
+
});
|
|
1759
|
+
try {
|
|
1760
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1761
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1762
|
+
responseObject: {},
|
|
1763
|
+
responseHeaders: [
|
|
1764
|
+
{
|
|
1765
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1766
|
+
key: "opcWorkRequestId",
|
|
1767
|
+
dataType: "string"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
value: response.headers.get("opc-request-id"),
|
|
1771
|
+
key: "opcRequestId",
|
|
1772
|
+
dataType: "string"
|
|
1773
|
+
}
|
|
1774
|
+
]
|
|
1775
|
+
});
|
|
1776
|
+
return sdkResponse;
|
|
1777
|
+
}
|
|
1778
|
+
catch (err) {
|
|
1779
|
+
throw err;
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* Update the DR Plan identified by *drPlanId*.
|
|
1785
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1786
|
+
* @param UpdateDrPlanRequest
|
|
1787
|
+
* @return UpdateDrPlanResponse
|
|
1788
|
+
* @throws OciError when an error occurs
|
|
1789
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/UpdateDrPlan.ts.html |here} to see how to use UpdateDrPlan API.
|
|
1790
|
+
*/
|
|
1791
|
+
updateDrPlan(updateDrPlanRequest) {
|
|
1792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1793
|
+
if (this.logger)
|
|
1794
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#updateDrPlan.");
|
|
1795
|
+
const operationName = "updateDrPlan";
|
|
1796
|
+
const apiReferenceLink = "";
|
|
1797
|
+
const pathParams = {
|
|
1798
|
+
"{drPlanId}": updateDrPlanRequest.drPlanId
|
|
1799
|
+
};
|
|
1800
|
+
const queryParams = {};
|
|
1801
|
+
let headerParams = {
|
|
1802
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1803
|
+
"if-match": updateDrPlanRequest.ifMatch,
|
|
1804
|
+
"opc-request-id": updateDrPlanRequest.opcRequestId
|
|
1805
|
+
};
|
|
1806
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1807
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrPlanRequest.retryConfiguration, specRetryConfiguration);
|
|
1808
|
+
if (this.logger)
|
|
1809
|
+
retrier.logger = this.logger;
|
|
1810
|
+
const request = yield oci_common_1.composeRequest({
|
|
1811
|
+
baseEndpoint: this._endpoint,
|
|
1812
|
+
defaultHeaders: this._defaultHeaders,
|
|
1813
|
+
path: "/drPlans/{drPlanId}",
|
|
1814
|
+
method: "PUT",
|
|
1815
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrPlanRequest.updateDrPlanDetails, "UpdateDrPlanDetails", model.UpdateDrPlanDetails.getJsonObj),
|
|
1816
|
+
pathParams: pathParams,
|
|
1817
|
+
headerParams: headerParams,
|
|
1818
|
+
queryParams: queryParams
|
|
1819
|
+
});
|
|
1820
|
+
try {
|
|
1821
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1822
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1823
|
+
responseObject: {},
|
|
1824
|
+
responseHeaders: [
|
|
1825
|
+
{
|
|
1826
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1827
|
+
key: "opcWorkRequestId",
|
|
1828
|
+
dataType: "string"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
value: response.headers.get("opc-request-id"),
|
|
1832
|
+
key: "opcRequestId",
|
|
1833
|
+
dataType: "string"
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
});
|
|
1837
|
+
return sdkResponse;
|
|
1838
|
+
}
|
|
1839
|
+
catch (err) {
|
|
1840
|
+
throw err;
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Update the DR Plan Execution identified by *drPlanExecutionId*.
|
|
1846
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1847
|
+
* @param UpdateDrPlanExecutionRequest
|
|
1848
|
+
* @return UpdateDrPlanExecutionResponse
|
|
1849
|
+
* @throws OciError when an error occurs
|
|
1850
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/UpdateDrPlanExecution.ts.html |here} to see how to use UpdateDrPlanExecution API.
|
|
1851
|
+
*/
|
|
1852
|
+
updateDrPlanExecution(updateDrPlanExecutionRequest) {
|
|
1853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1854
|
+
if (this.logger)
|
|
1855
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#updateDrPlanExecution.");
|
|
1856
|
+
const operationName = "updateDrPlanExecution";
|
|
1857
|
+
const apiReferenceLink = "";
|
|
1858
|
+
const pathParams = {
|
|
1859
|
+
"{drPlanExecutionId}": updateDrPlanExecutionRequest.drPlanExecutionId
|
|
1860
|
+
};
|
|
1861
|
+
const queryParams = {};
|
|
1862
|
+
let headerParams = {
|
|
1863
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1864
|
+
"if-match": updateDrPlanExecutionRequest.ifMatch,
|
|
1865
|
+
"opc-request-id": updateDrPlanExecutionRequest.opcRequestId
|
|
1866
|
+
};
|
|
1867
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1868
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrPlanExecutionRequest.retryConfiguration, specRetryConfiguration);
|
|
1869
|
+
if (this.logger)
|
|
1870
|
+
retrier.logger = this.logger;
|
|
1871
|
+
const request = yield oci_common_1.composeRequest({
|
|
1872
|
+
baseEndpoint: this._endpoint,
|
|
1873
|
+
defaultHeaders: this._defaultHeaders,
|
|
1874
|
+
path: "/drPlanExecutions/{drPlanExecutionId}",
|
|
1875
|
+
method: "PUT",
|
|
1876
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrPlanExecutionRequest.updateDrPlanExecutionDetails, "UpdateDrPlanExecutionDetails", model.UpdateDrPlanExecutionDetails.getJsonObj),
|
|
1877
|
+
pathParams: pathParams,
|
|
1878
|
+
headerParams: headerParams,
|
|
1879
|
+
queryParams: queryParams
|
|
1880
|
+
});
|
|
1881
|
+
try {
|
|
1882
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1883
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1884
|
+
responseObject: {},
|
|
1885
|
+
responseHeaders: [
|
|
1886
|
+
{
|
|
1887
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1888
|
+
key: "opcWorkRequestId",
|
|
1889
|
+
dataType: "string"
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
value: response.headers.get("opc-request-id"),
|
|
1893
|
+
key: "opcRequestId",
|
|
1894
|
+
dataType: "string"
|
|
1895
|
+
}
|
|
1896
|
+
]
|
|
1897
|
+
});
|
|
1898
|
+
return sdkResponse;
|
|
1899
|
+
}
|
|
1900
|
+
catch (err) {
|
|
1901
|
+
throw err;
|
|
1902
|
+
}
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* Update the DR Protection Group identified by *drProtectionGroupId*.
|
|
1907
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1908
|
+
* @param UpdateDrProtectionGroupRequest
|
|
1909
|
+
* @return UpdateDrProtectionGroupResponse
|
|
1910
|
+
* @throws OciError when an error occurs
|
|
1911
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/UpdateDrProtectionGroup.ts.html |here} to see how to use UpdateDrProtectionGroup API.
|
|
1912
|
+
*/
|
|
1913
|
+
updateDrProtectionGroup(updateDrProtectionGroupRequest) {
|
|
1914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1915
|
+
if (this.logger)
|
|
1916
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#updateDrProtectionGroup.");
|
|
1917
|
+
const operationName = "updateDrProtectionGroup";
|
|
1918
|
+
const apiReferenceLink = "";
|
|
1919
|
+
const pathParams = {
|
|
1920
|
+
"{drProtectionGroupId}": updateDrProtectionGroupRequest.drProtectionGroupId
|
|
1921
|
+
};
|
|
1922
|
+
const queryParams = {};
|
|
1923
|
+
let headerParams = {
|
|
1924
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1925
|
+
"if-match": updateDrProtectionGroupRequest.ifMatch,
|
|
1926
|
+
"opc-request-id": updateDrProtectionGroupRequest.opcRequestId
|
|
1927
|
+
};
|
|
1928
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1929
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrProtectionGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
1930
|
+
if (this.logger)
|
|
1931
|
+
retrier.logger = this.logger;
|
|
1932
|
+
const request = yield oci_common_1.composeRequest({
|
|
1933
|
+
baseEndpoint: this._endpoint,
|
|
1934
|
+
defaultHeaders: this._defaultHeaders,
|
|
1935
|
+
path: "/drProtectionGroups/{drProtectionGroupId}",
|
|
1936
|
+
method: "PUT",
|
|
1937
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrProtectionGroupRequest.updateDrProtectionGroupDetails, "UpdateDrProtectionGroupDetails", model.UpdateDrProtectionGroupDetails.getJsonObj),
|
|
1938
|
+
pathParams: pathParams,
|
|
1939
|
+
headerParams: headerParams,
|
|
1940
|
+
queryParams: queryParams
|
|
1941
|
+
});
|
|
1942
|
+
try {
|
|
1943
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1944
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1945
|
+
responseObject: {},
|
|
1946
|
+
responseHeaders: [
|
|
1947
|
+
{
|
|
1948
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1949
|
+
key: "opcWorkRequestId",
|
|
1950
|
+
dataType: "string"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
value: response.headers.get("opc-request-id"),
|
|
1954
|
+
key: "opcRequestId",
|
|
1955
|
+
dataType: "string"
|
|
1956
|
+
}
|
|
1957
|
+
]
|
|
1958
|
+
});
|
|
1959
|
+
return sdkResponse;
|
|
1960
|
+
}
|
|
1961
|
+
catch (err) {
|
|
1962
|
+
throw err;
|
|
1963
|
+
}
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Update the role of the DR Protection Group identified by *drProtectionGroupId*.
|
|
1968
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1969
|
+
* @param UpdateDrProtectionGroupRoleRequest
|
|
1970
|
+
* @return UpdateDrProtectionGroupRoleResponse
|
|
1971
|
+
* @throws OciError when an error occurs
|
|
1972
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/disasterrecovery/UpdateDrProtectionGroupRole.ts.html |here} to see how to use UpdateDrProtectionGroupRole API.
|
|
1973
|
+
*/
|
|
1974
|
+
updateDrProtectionGroupRole(updateDrProtectionGroupRoleRequest) {
|
|
1975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1976
|
+
if (this.logger)
|
|
1977
|
+
this.logger.debug("Calling operation DisasterRecoveryClient#updateDrProtectionGroupRole.");
|
|
1978
|
+
const operationName = "updateDrProtectionGroupRole";
|
|
1979
|
+
const apiReferenceLink = "";
|
|
1980
|
+
const pathParams = {
|
|
1981
|
+
"{drProtectionGroupId}": updateDrProtectionGroupRoleRequest.drProtectionGroupId
|
|
1982
|
+
};
|
|
1983
|
+
const queryParams = {};
|
|
1984
|
+
let headerParams = {
|
|
1985
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1986
|
+
"if-match": updateDrProtectionGroupRoleRequest.ifMatch,
|
|
1987
|
+
"opc-retry-token": updateDrProtectionGroupRoleRequest.opcRetryToken,
|
|
1988
|
+
"opc-request-id": updateDrProtectionGroupRoleRequest.opcRequestId
|
|
1989
|
+
};
|
|
1990
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1991
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDrProtectionGroupRoleRequest.retryConfiguration, specRetryConfiguration);
|
|
1992
|
+
if (this.logger)
|
|
1993
|
+
retrier.logger = this.logger;
|
|
1994
|
+
const request = yield oci_common_1.composeRequest({
|
|
1995
|
+
baseEndpoint: this._endpoint,
|
|
1996
|
+
defaultHeaders: this._defaultHeaders,
|
|
1997
|
+
path: "/drProtectionGroups/{drProtectionGroupId}/actions/updateRole",
|
|
1998
|
+
method: "POST",
|
|
1999
|
+
bodyContent: common.ObjectSerializer.serialize(updateDrProtectionGroupRoleRequest.updateDrProtectionGroupRoleDetails, "UpdateDrProtectionGroupRoleDetails", model.UpdateDrProtectionGroupRoleDetails.getJsonObj),
|
|
2000
|
+
pathParams: pathParams,
|
|
2001
|
+
headerParams: headerParams,
|
|
2002
|
+
queryParams: queryParams
|
|
2003
|
+
});
|
|
2004
|
+
try {
|
|
2005
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2006
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2007
|
+
responseObject: {},
|
|
2008
|
+
responseHeaders: [
|
|
2009
|
+
{
|
|
2010
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2011
|
+
key: "opcWorkRequestId",
|
|
2012
|
+
dataType: "string"
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
value: response.headers.get("opc-request-id"),
|
|
2016
|
+
key: "opcRequestId",
|
|
2017
|
+
dataType: "string"
|
|
2018
|
+
}
|
|
2019
|
+
]
|
|
2020
|
+
});
|
|
2021
|
+
return sdkResponse;
|
|
2022
|
+
}
|
|
2023
|
+
catch (err) {
|
|
2024
|
+
throw err;
|
|
2025
|
+
}
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
exports.DisasterRecoveryClient = DisasterRecoveryClient;
|
|
2030
|
+
DisasterRecoveryClient.serviceEndpointTemplate = "https://disaster-recovery.{region}.oci.{secondLevelDomain}";
|
|
2031
|
+
DisasterRecoveryClient.endpointServiceName = "";
|
|
2032
|
+
//# sourceMappingURL=client.js.map
|