oci-cloudmigrations 2.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (587) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +479 -0
  9. package/lib/client.js +2961 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/migration-waiter.d.ts +68 -0
  12. package/lib/migration-waiter.js +124 -0
  13. package/lib/migration-waiter.js.map +1 -0
  14. package/lib/model/access-level.d.ts +23 -0
  15. package/lib/model/access-level.js +34 -0
  16. package/lib/model/access-level.js.map +1 -0
  17. package/lib/model/action-type.d.ts +32 -0
  18. package/lib/model/action-type.js +43 -0
  19. package/lib/model/action-type.js.map +1 -0
  20. package/lib/model/as-is-resource-assessment-strategy.d.ts +28 -0
  21. package/lib/model/as-is-resource-assessment-strategy.js +54 -0
  22. package/lib/model/as-is-resource-assessment-strategy.js.map +1 -0
  23. package/lib/model/asset-source-collection.d.ts +26 -0
  24. package/lib/model/asset-source-collection.js +61 -0
  25. package/lib/model/asset-source-collection.js.map +1 -0
  26. package/lib/model/asset-source-connection-collection.d.ts +26 -0
  27. package/lib/model/asset-source-connection-collection.js +61 -0
  28. package/lib/model/asset-source-connection-collection.js.map +1 -0
  29. package/lib/model/asset-source-connection-lifecycle-state.d.ts +26 -0
  30. package/lib/model/asset-source-connection-lifecycle-state.js +37 -0
  31. package/lib/model/asset-source-connection-lifecycle-state.js.map +1 -0
  32. package/lib/model/asset-source-connection-type.d.ts +23 -0
  33. package/lib/model/asset-source-connection-type.js +34 -0
  34. package/lib/model/asset-source-connection-type.js.map +1 -0
  35. package/lib/model/asset-source-connection.d.ts +42 -0
  36. package/lib/model/asset-source-connection.js +29 -0
  37. package/lib/model/asset-source-connection.js.map +1 -0
  38. package/lib/model/asset-source-credentials-type.d.ts +22 -0
  39. package/lib/model/asset-source-credentials-type.js +33 -0
  40. package/lib/model/asset-source-credentials-type.js.map +1 -0
  41. package/lib/model/asset-source-credentials.d.ts +33 -0
  42. package/lib/model/asset-source-credentials.js +29 -0
  43. package/lib/model/asset-source-credentials.js.map +1 -0
  44. package/lib/model/asset-source-lifecycle-state.d.ts +28 -0
  45. package/lib/model/asset-source-lifecycle-state.js +39 -0
  46. package/lib/model/asset-source-lifecycle-state.js.map +1 -0
  47. package/lib/model/asset-source-summary.d.ts +93 -0
  48. package/lib/model/asset-source-summary.js +68 -0
  49. package/lib/model/asset-source-summary.js.map +1 -0
  50. package/lib/model/asset-source-type.d.ts +22 -0
  51. package/lib/model/asset-source-type.js +33 -0
  52. package/lib/model/asset-source-type.js.map +1 -0
  53. package/lib/model/asset-source.d.ts +97 -0
  54. package/lib/model/asset-source.js +68 -0
  55. package/lib/model/asset-source.js.map +1 -0
  56. package/lib/model/available-shape-summary.d.ts +105 -0
  57. package/lib/model/available-shape-summary.js +29 -0
  58. package/lib/model/available-shape-summary.js.map +1 -0
  59. package/lib/model/available-shapes-collection.d.ts +26 -0
  60. package/lib/model/available-shapes-collection.js +61 -0
  61. package/lib/model/available-shapes-collection.js.map +1 -0
  62. package/lib/model/average-resource-assessment-strategy.d.ts +36 -0
  63. package/lib/model/average-resource-assessment-strategy.js +54 -0
  64. package/lib/model/average-resource-assessment-strategy.js.map +1 -0
  65. package/lib/model/change-asset-source-compartment-details.d.ts +26 -0
  66. package/lib/model/change-asset-source-compartment-details.js +29 -0
  67. package/lib/model/change-asset-source-compartment-details.js.map +1 -0
  68. package/lib/model/change-discovery-schedule-compartment-details.d.ts +26 -0
  69. package/lib/model/change-discovery-schedule-compartment-details.js +29 -0
  70. package/lib/model/change-discovery-schedule-compartment-details.js.map +1 -0
  71. package/lib/model/change-migration-compartment-details.d.ts +27 -0
  72. package/lib/model/change-migration-compartment-details.js +29 -0
  73. package/lib/model/change-migration-compartment-details.js.map +1 -0
  74. package/lib/model/change-migration-plan-compartment-details.d.ts +27 -0
  75. package/lib/model/change-migration-plan-compartment-details.js +29 -0
  76. package/lib/model/change-migration-plan-compartment-details.js.map +1 -0
  77. package/lib/model/change-replication-schedule-compartment-details.d.ts +26 -0
  78. package/lib/model/change-replication-schedule-compartment-details.js +29 -0
  79. package/lib/model/change-replication-schedule-compartment-details.js.map +1 -0
  80. package/lib/model/compatibility-message.d.ts +60 -0
  81. package/lib/model/compatibility-message.js +58 -0
  82. package/lib/model/compatibility-message.js.map +1 -0
  83. package/lib/model/compute-cost-estimation.d.ts +65 -0
  84. package/lib/model/compute-cost-estimation.js +29 -0
  85. package/lib/model/compute-cost-estimation.js.map +1 -0
  86. package/lib/model/cost-estimation.d.ts +41 -0
  87. package/lib/model/cost-estimation.js +63 -0
  88. package/lib/model/cost-estimation.js.map +1 -0
  89. package/lib/model/create-asset-source-details.d.ts +77 -0
  90. package/lib/model/create-asset-source-details.js +68 -0
  91. package/lib/model/create-asset-source-details.js.map +1 -0
  92. package/lib/model/create-discovery-schedule-details.d.ts +54 -0
  93. package/lib/model/create-discovery-schedule-details.js +29 -0
  94. package/lib/model/create-discovery-schedule-details.js.map +1 -0
  95. package/lib/model/create-migration-asset-details.d.ts +53 -0
  96. package/lib/model/create-migration-asset-details.js +29 -0
  97. package/lib/model/create-migration-asset-details.js.map +1 -0
  98. package/lib/model/create-migration-details.d.ts +55 -0
  99. package/lib/model/create-migration-details.js +29 -0
  100. package/lib/model/create-migration-details.js.map +1 -0
  101. package/lib/model/create-migration-plan-details.d.ts +64 -0
  102. package/lib/model/create-migration-plan-details.js +71 -0
  103. package/lib/model/create-migration-plan-details.js.map +1 -0
  104. package/lib/model/create-replication-schedule-details.d.ts +51 -0
  105. package/lib/model/create-replication-schedule-details.js +29 -0
  106. package/lib/model/create-replication-schedule-details.js.map +1 -0
  107. package/lib/model/create-target-asset-details.d.ts +30 -0
  108. package/lib/model/create-target-asset-details.js +68 -0
  109. package/lib/model/create-target-asset-details.js.map +1 -0
  110. package/lib/model/create-vm-target-asset-details.d.ts +37 -0
  111. package/lib/model/create-vm-target-asset-details.js +60 -0
  112. package/lib/model/create-vm-target-asset-details.js.map +1 -0
  113. package/lib/model/create-vm-ware-asset-source-details.d.ts +38 -0
  114. package/lib/model/create-vm-ware-asset-source-details.js +68 -0
  115. package/lib/model/create-vm-ware-asset-source-details.js.map +1 -0
  116. package/lib/model/create-vnic-details.d.ts +179 -0
  117. package/lib/model/create-vnic-details.js +29 -0
  118. package/lib/model/create-vnic-details.js.map +1 -0
  119. package/lib/model/discovery-schedule-collection.d.ts +26 -0
  120. package/lib/model/discovery-schedule-collection.js +61 -0
  121. package/lib/model/discovery-schedule-collection.js.map +1 -0
  122. package/lib/model/discovery-schedule-lifecycle-state.d.ts +23 -0
  123. package/lib/model/discovery-schedule-lifecycle-state.js +34 -0
  124. package/lib/model/discovery-schedule-lifecycle-state.js.map +1 -0
  125. package/lib/model/discovery-schedule-summary.d.ts +80 -0
  126. package/lib/model/discovery-schedule-summary.js +29 -0
  127. package/lib/model/discovery-schedule-summary.js.map +1 -0
  128. package/lib/model/discovery-schedule.d.ts +84 -0
  129. package/lib/model/discovery-schedule.js +29 -0
  130. package/lib/model/discovery-schedule.js.map +1 -0
  131. package/lib/model/hydrated-volume.d.ts +46 -0
  132. package/lib/model/hydrated-volume.js +39 -0
  133. package/lib/model/hydrated-volume.js.map +1 -0
  134. package/lib/model/index.d.ts +216 -0
  135. package/lib/model/index.js +241 -0
  136. package/lib/model/index.js.map +1 -0
  137. package/lib/model/instance-agent-plugin-config-details.d.ts +46 -0
  138. package/lib/model/instance-agent-plugin-config-details.js +39 -0
  139. package/lib/model/instance-agent-plugin-config-details.js.map +1 -0
  140. package/lib/model/instance-options.d.ts +28 -0
  141. package/lib/model/instance-options.js +29 -0
  142. package/lib/model/instance-options.js.map +1 -0
  143. package/lib/model/instance-source-details.d.ts +19 -0
  144. package/lib/model/instance-source-details.js +72 -0
  145. package/lib/model/instance-source-details.js.map +1 -0
  146. package/lib/model/instance-source-via-boot-volume-details.d.ts +25 -0
  147. package/lib/model/instance-source-via-boot-volume-details.js +54 -0
  148. package/lib/model/instance-source-via-boot-volume-details.js.map +1 -0
  149. package/lib/model/instance-source-via-image-details.d.ts +51 -0
  150. package/lib/model/instance-source-via-image-details.js +54 -0
  151. package/lib/model/instance-source-via-image-details.js.map +1 -0
  152. package/lib/model/launch-instance-agent-config-details.d.ts +73 -0
  153. package/lib/model/launch-instance-agent-config-details.js +61 -0
  154. package/lib/model/launch-instance-agent-config-details.js.map +1 -0
  155. package/lib/model/launch-instance-details.d.ts +148 -0
  156. package/lib/model/launch-instance-details.js +87 -0
  157. package/lib/model/launch-instance-details.js.map +1 -0
  158. package/lib/model/launch-instance-shape-config-details.d.ts +60 -0
  159. package/lib/model/launch-instance-shape-config-details.js +40 -0
  160. package/lib/model/launch-instance-shape-config-details.js.map +1 -0
  161. package/lib/model/metric-time-window.d.ts +29 -0
  162. package/lib/model/metric-time-window.js +40 -0
  163. package/lib/model/metric-time-window.js.map +1 -0
  164. package/lib/model/metric-type.d.ts +29 -0
  165. package/lib/model/metric-type.js +40 -0
  166. package/lib/model/metric-type.js.map +1 -0
  167. package/lib/model/migration-asset-collection.d.ts +26 -0
  168. package/lib/model/migration-asset-collection.js +61 -0
  169. package/lib/model/migration-asset-collection.js.map +1 -0
  170. package/lib/model/migration-asset-summary.d.ts +115 -0
  171. package/lib/model/migration-asset-summary.js +68 -0
  172. package/lib/model/migration-asset-summary.js.map +1 -0
  173. package/lib/model/migration-asset.d.ts +137 -0
  174. package/lib/model/migration-asset.js +83 -0
  175. package/lib/model/migration-asset.js.map +1 -0
  176. package/lib/model/migration-collection.d.ts +26 -0
  177. package/lib/model/migration-collection.js +61 -0
  178. package/lib/model/migration-collection.js.map +1 -0
  179. package/lib/model/migration-plan-collection.d.ts +26 -0
  180. package/lib/model/migration-plan-collection.js +61 -0
  181. package/lib/model/migration-plan-collection.js.map +1 -0
  182. package/lib/model/migration-plan-stats.d.ts +31 -0
  183. package/lib/model/migration-plan-stats.js +57 -0
  184. package/lib/model/migration-plan-stats.js.map +1 -0
  185. package/lib/model/migration-plan-summary.d.ts +105 -0
  186. package/lib/model/migration-plan-summary.js +77 -0
  187. package/lib/model/migration-plan-summary.js.map +1 -0
  188. package/lib/model/migration-plan.d.ts +119 -0
  189. package/lib/model/migration-plan.js +92 -0
  190. package/lib/model/migration-plan.js.map +1 -0
  191. package/lib/model/migration-summary.d.ts +85 -0
  192. package/lib/model/migration-summary.js +29 -0
  193. package/lib/model/migration-summary.js.map +1 -0
  194. package/lib/model/migration.d.ts +99 -0
  195. package/lib/model/migration.js +44 -0
  196. package/lib/model/migration.js.map +1 -0
  197. package/lib/model/operation-status.d.ts +34 -0
  198. package/lib/model/operation-status.js +45 -0
  199. package/lib/model/operation-status.js.map +1 -0
  200. package/lib/model/operation-type.d.ts +49 -0
  201. package/lib/model/operation-type.js +60 -0
  202. package/lib/model/operation-type.js.map +1 -0
  203. package/lib/model/os-image-estimation.d.ts +29 -0
  204. package/lib/model/os-image-estimation.js +29 -0
  205. package/lib/model/os-image-estimation.js.map +1 -0
  206. package/lib/model/peak-resource-assessment-strategy.d.ts +36 -0
  207. package/lib/model/peak-resource-assessment-strategy.js +54 -0
  208. package/lib/model/peak-resource-assessment-strategy.js.map +1 -0
  209. package/lib/model/percentile-resource-assessment-strategy.d.ts +47 -0
  210. package/lib/model/percentile-resource-assessment-strategy.js +66 -0
  211. package/lib/model/percentile-resource-assessment-strategy.js.map +1 -0
  212. package/lib/model/preemptible-instance-config-details.d.ts +24 -0
  213. package/lib/model/preemptible-instance-config-details.js +57 -0
  214. package/lib/model/preemptible-instance-config-details.js.map +1 -0
  215. package/lib/model/preemption-action.d.ts +23 -0
  216. package/lib/model/preemption-action.js +68 -0
  217. package/lib/model/preemption-action.js.map +1 -0
  218. package/lib/model/replication-progress.d.ts +72 -0
  219. package/lib/model/replication-progress.js +50 -0
  220. package/lib/model/replication-progress.js.map +1 -0
  221. package/lib/model/replication-schedule-collection.d.ts +26 -0
  222. package/lib/model/replication-schedule-collection.js +61 -0
  223. package/lib/model/replication-schedule-collection.js.map +1 -0
  224. package/lib/model/replication-schedule-summary.d.ts +81 -0
  225. package/lib/model/replication-schedule-summary.js +29 -0
  226. package/lib/model/replication-schedule-summary.js.map +1 -0
  227. package/lib/model/replication-schedule.d.ts +95 -0
  228. package/lib/model/replication-schedule.js +44 -0
  229. package/lib/model/replication-schedule.js.map +1 -0
  230. package/lib/model/resource-assessment-strategy.d.ts +36 -0
  231. package/lib/model/resource-assessment-strategy.js +91 -0
  232. package/lib/model/resource-assessment-strategy.js.map +1 -0
  233. package/lib/model/sort-order.d.ts +23 -0
  234. package/lib/model/sort-order.js +34 -0
  235. package/lib/model/sort-order.js.map +1 -0
  236. package/lib/model/storage-cost-estimation.d.ts +34 -0
  237. package/lib/model/storage-cost-estimation.js +61 -0
  238. package/lib/model/storage-cost-estimation.js.map +1 -0
  239. package/lib/model/target-asset-collection.d.ts +26 -0
  240. package/lib/model/target-asset-collection.js +61 -0
  241. package/lib/model/target-asset-collection.js.map +1 -0
  242. package/lib/model/target-asset-summary.d.ts +73 -0
  243. package/lib/model/target-asset-summary.js +92 -0
  244. package/lib/model/target-asset-summary.js.map +1 -0
  245. package/lib/model/target-asset.d.ts +87 -0
  246. package/lib/model/target-asset.js +107 -0
  247. package/lib/model/target-asset.js.map +1 -0
  248. package/lib/model/target-environment.d.ts +26 -0
  249. package/lib/model/target-environment.js +68 -0
  250. package/lib/model/target-environment.js.map +1 -0
  251. package/lib/model/terminate-preemption-action.d.ts +30 -0
  252. package/lib/model/terminate-preemption-action.js +54 -0
  253. package/lib/model/terminate-preemption-action.js.map +1 -0
  254. package/lib/model/update-asset-source-details.d.ts +60 -0
  255. package/lib/model/update-asset-source-details.js +68 -0
  256. package/lib/model/update-asset-source-details.js.map +1 -0
  257. package/lib/model/update-discovery-schedule-details.d.ts +49 -0
  258. package/lib/model/update-discovery-schedule-details.js +29 -0
  259. package/lib/model/update-discovery-schedule-details.js.map +1 -0
  260. package/lib/model/update-migration-asset-details.d.ts +33 -0
  261. package/lib/model/update-migration-asset-details.js +29 -0
  262. package/lib/model/update-migration-asset-details.js.map +1 -0
  263. package/lib/model/update-migration-details.d.ts +51 -0
  264. package/lib/model/update-migration-details.js +29 -0
  265. package/lib/model/update-migration-details.js.map +1 -0
  266. package/lib/model/update-migration-plan-details.d.ts +52 -0
  267. package/lib/model/update-migration-plan-details.js +71 -0
  268. package/lib/model/update-migration-plan-details.js.map +1 -0
  269. package/lib/model/update-replication-schedule-details.d.ts +47 -0
  270. package/lib/model/update-replication-schedule-details.js +29 -0
  271. package/lib/model/update-replication-schedule-details.js.map +1 -0
  272. package/lib/model/update-target-asset-details.d.ts +26 -0
  273. package/lib/model/update-target-asset-details.js +68 -0
  274. package/lib/model/update-target-asset-details.js.map +1 -0
  275. package/lib/model/update-vm-target-asset-details.d.ts +37 -0
  276. package/lib/model/update-vm-target-asset-details.js +60 -0
  277. package/lib/model/update-vm-target-asset-details.js.map +1 -0
  278. package/lib/model/update-vm-ware-asset-source-details.d.ts +42 -0
  279. package/lib/model/update-vm-ware-asset-source-details.js +68 -0
  280. package/lib/model/update-vm-ware-asset-source-details.js.map +1 -0
  281. package/lib/model/vm-target-asset-summary.d.ts +38 -0
  282. package/lib/model/vm-target-asset-summary.js +66 -0
  283. package/lib/model/vm-target-asset-summary.js.map +1 -0
  284. package/lib/model/vm-target-asset.d.ts +54 -0
  285. package/lib/model/vm-target-asset.js +82 -0
  286. package/lib/model/vm-target-asset.js.map +1 -0
  287. package/lib/model/vm-target-environment.d.ts +52 -0
  288. package/lib/model/vm-target-environment.js +52 -0
  289. package/lib/model/vm-target-environment.js.map +1 -0
  290. package/lib/model/vm-ware-asset-source-summary.d.ts +28 -0
  291. package/lib/model/vm-ware-asset-source-summary.js +54 -0
  292. package/lib/model/vm-ware-asset-source-summary.js.map +1 -0
  293. package/lib/model/vm-ware-asset-source.d.ts +38 -0
  294. package/lib/model/vm-ware-asset-source.js +66 -0
  295. package/lib/model/vm-ware-asset-source.js.map +1 -0
  296. package/lib/model/volume-cost-estimation.d.ts +37 -0
  297. package/lib/model/volume-cost-estimation.js +29 -0
  298. package/lib/model/volume-cost-estimation.js.map +1 -0
  299. package/lib/model/work-request-error-collection.d.ts +26 -0
  300. package/lib/model/work-request-error-collection.js +61 -0
  301. package/lib/model/work-request-error-collection.js.map +1 -0
  302. package/lib/model/work-request-error.d.ts +35 -0
  303. package/lib/model/work-request-error.js +29 -0
  304. package/lib/model/work-request-error.js.map +1 -0
  305. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  306. package/lib/model/work-request-log-entry-collection.js +61 -0
  307. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  308. package/lib/model/work-request-log-entry.d.ts +29 -0
  309. package/lib/model/work-request-log-entry.js +29 -0
  310. package/lib/model/work-request-log-entry.js.map +1 -0
  311. package/lib/model/work-request-resource.d.ts +42 -0
  312. package/lib/model/work-request-resource.js +29 -0
  313. package/lib/model/work-request-resource.js.map +1 -0
  314. package/lib/model/work-request-summary-collection.d.ts +26 -0
  315. package/lib/model/work-request-summary-collection.js +61 -0
  316. package/lib/model/work-request-summary-collection.js.map +1 -0
  317. package/lib/model/work-request-summary.d.ts +95 -0
  318. package/lib/model/work-request-summary.js +61 -0
  319. package/lib/model/work-request-summary.js.map +1 -0
  320. package/lib/model/work-request.d.ts +67 -0
  321. package/lib/model/work-request.js +61 -0
  322. package/lib/model/work-request.js.map +1 -0
  323. package/lib/request/cancel-work-request-request.d.ts +35 -0
  324. package/lib/request/cancel-work-request-request.js +15 -0
  325. package/lib/request/cancel-work-request-request.js.map +1 -0
  326. package/lib/request/change-migration-compartment-request.d.ts +40 -0
  327. package/lib/request/change-migration-compartment-request.js +15 -0
  328. package/lib/request/change-migration-compartment-request.js.map +1 -0
  329. package/lib/request/change-migration-plan-compartment-request.d.ts +49 -0
  330. package/lib/request/change-migration-plan-compartment-request.js +15 -0
  331. package/lib/request/change-migration-plan-compartment-request.js.map +1 -0
  332. package/lib/request/change-replication-schedule-compartment-request.d.ts +49 -0
  333. package/lib/request/change-replication-schedule-compartment-request.js +15 -0
  334. package/lib/request/change-replication-schedule-compartment-request.js.map +1 -0
  335. package/lib/request/create-migration-asset-request.d.ts +36 -0
  336. package/lib/request/create-migration-asset-request.js +15 -0
  337. package/lib/request/create-migration-asset-request.js.map +1 -0
  338. package/lib/request/create-migration-plan-request.d.ts +36 -0
  339. package/lib/request/create-migration-plan-request.js +15 -0
  340. package/lib/request/create-migration-plan-request.js.map +1 -0
  341. package/lib/request/create-migration-request.d.ts +36 -0
  342. package/lib/request/create-migration-request.js +15 -0
  343. package/lib/request/create-migration-request.js.map +1 -0
  344. package/lib/request/create-replication-schedule-request.d.ts +36 -0
  345. package/lib/request/create-replication-schedule-request.js +15 -0
  346. package/lib/request/create-replication-schedule-request.js.map +1 -0
  347. package/lib/request/create-target-asset-request.d.ts +36 -0
  348. package/lib/request/create-target-asset-request.js +15 -0
  349. package/lib/request/create-target-asset-request.js.map +1 -0
  350. package/lib/request/delete-migration-asset-request.d.ts +35 -0
  351. package/lib/request/delete-migration-asset-request.js +15 -0
  352. package/lib/request/delete-migration-asset-request.js.map +1 -0
  353. package/lib/request/delete-migration-plan-request.d.ts +35 -0
  354. package/lib/request/delete-migration-plan-request.js +15 -0
  355. package/lib/request/delete-migration-plan-request.js.map +1 -0
  356. package/lib/request/delete-migration-request.d.ts +35 -0
  357. package/lib/request/delete-migration-request.js +15 -0
  358. package/lib/request/delete-migration-request.js.map +1 -0
  359. package/lib/request/delete-replication-schedule-request.d.ts +35 -0
  360. package/lib/request/delete-replication-schedule-request.js +15 -0
  361. package/lib/request/delete-replication-schedule-request.js.map +1 -0
  362. package/lib/request/delete-target-asset-request.d.ts +35 -0
  363. package/lib/request/delete-target-asset-request.js +15 -0
  364. package/lib/request/delete-target-asset-request.js.map +1 -0
  365. package/lib/request/execute-migration-plan-request.d.ts +44 -0
  366. package/lib/request/execute-migration-plan-request.js +15 -0
  367. package/lib/request/execute-migration-plan-request.js.map +1 -0
  368. package/lib/request/export-migration-plan-request.d.ts +26 -0
  369. package/lib/request/export-migration-plan-request.js +15 -0
  370. package/lib/request/export-migration-plan-request.js.map +1 -0
  371. package/lib/request/get-migration-asset-request.d.ts +26 -0
  372. package/lib/request/get-migration-asset-request.js +15 -0
  373. package/lib/request/get-migration-asset-request.js.map +1 -0
  374. package/lib/request/get-migration-plan-request.d.ts +26 -0
  375. package/lib/request/get-migration-plan-request.js +15 -0
  376. package/lib/request/get-migration-plan-request.js.map +1 -0
  377. package/lib/request/get-migration-request.d.ts +26 -0
  378. package/lib/request/get-migration-request.js +15 -0
  379. package/lib/request/get-migration-request.js.map +1 -0
  380. package/lib/request/get-replication-progress-request.d.ts +26 -0
  381. package/lib/request/get-replication-progress-request.js +15 -0
  382. package/lib/request/get-replication-progress-request.js.map +1 -0
  383. package/lib/request/get-replication-schedule-request.d.ts +26 -0
  384. package/lib/request/get-replication-schedule-request.js +15 -0
  385. package/lib/request/get-replication-schedule-request.js.map +1 -0
  386. package/lib/request/get-target-asset-request.d.ts +26 -0
  387. package/lib/request/get-target-asset-request.js +15 -0
  388. package/lib/request/get-target-asset-request.js.map +1 -0
  389. package/lib/request/get-work-request-request.d.ts +26 -0
  390. package/lib/request/get-work-request-request.js +15 -0
  391. package/lib/request/get-work-request-request.js.map +1 -0
  392. package/lib/request/import-migration-plan-request.d.ts +50 -0
  393. package/lib/request/import-migration-plan-request.js +15 -0
  394. package/lib/request/import-migration-plan-request.js.map +1 -0
  395. package/lib/request/index.d.ts +98 -0
  396. package/lib/request/index.js +53 -0
  397. package/lib/request/index.js.map +1 -0
  398. package/lib/request/list-available-shapes-request.d.ts +66 -0
  399. package/lib/request/list-available-shapes-request.js +24 -0
  400. package/lib/request/list-available-shapes-request.js.map +1 -0
  401. package/lib/request/list-migration-assets-request.d.ts +62 -0
  402. package/lib/request/list-migration-assets-request.js +24 -0
  403. package/lib/request/list-migration-assets-request.js.map +1 -0
  404. package/lib/request/list-migration-plans-request.d.ts +66 -0
  405. package/lib/request/list-migration-plans-request.js +24 -0
  406. package/lib/request/list-migration-plans-request.js.map +1 -0
  407. package/lib/request/list-migrations-request.d.ts +62 -0
  408. package/lib/request/list-migrations-request.js +24 -0
  409. package/lib/request/list-migrations-request.js.map +1 -0
  410. package/lib/request/list-replication-schedules-request.d.ts +62 -0
  411. package/lib/request/list-replication-schedules-request.js +24 -0
  412. package/lib/request/list-replication-schedules-request.js.map +1 -0
  413. package/lib/request/list-target-assets-request.d.ts +62 -0
  414. package/lib/request/list-target-assets-request.js +24 -0
  415. package/lib/request/list-target-assets-request.js.map +1 -0
  416. package/lib/request/list-work-request-errors-request.d.ts +49 -0
  417. package/lib/request/list-work-request-errors-request.js +23 -0
  418. package/lib/request/list-work-request-errors-request.js.map +1 -0
  419. package/lib/request/list-work-request-logs-request.d.ts +49 -0
  420. package/lib/request/list-work-request-logs-request.js +23 -0
  421. package/lib/request/list-work-request-logs-request.js.map +1 -0
  422. package/lib/request/list-work-requests-request.d.ts +65 -0
  423. package/lib/request/list-work-requests-request.js +23 -0
  424. package/lib/request/list-work-requests-request.js.map +1 -0
  425. package/lib/request/refresh-migration-asset-request.d.ts +44 -0
  426. package/lib/request/refresh-migration-asset-request.js +15 -0
  427. package/lib/request/refresh-migration-asset-request.js.map +1 -0
  428. package/lib/request/refresh-migration-plan-request.d.ts +44 -0
  429. package/lib/request/refresh-migration-plan-request.js +15 -0
  430. package/lib/request/refresh-migration-plan-request.js.map +1 -0
  431. package/lib/request/refresh-migration-request.d.ts +44 -0
  432. package/lib/request/refresh-migration-request.js +15 -0
  433. package/lib/request/refresh-migration-request.js.map +1 -0
  434. package/lib/request/start-asset-replication-request.d.ts +44 -0
  435. package/lib/request/start-asset-replication-request.js +15 -0
  436. package/lib/request/start-asset-replication-request.js.map +1 -0
  437. package/lib/request/start-migration-replication-request.d.ts +44 -0
  438. package/lib/request/start-migration-replication-request.js +15 -0
  439. package/lib/request/start-migration-replication-request.js.map +1 -0
  440. package/lib/request/update-migration-asset-request.d.ts +40 -0
  441. package/lib/request/update-migration-asset-request.js +15 -0
  442. package/lib/request/update-migration-asset-request.js.map +1 -0
  443. package/lib/request/update-migration-plan-request.d.ts +40 -0
  444. package/lib/request/update-migration-plan-request.js +15 -0
  445. package/lib/request/update-migration-plan-request.js.map +1 -0
  446. package/lib/request/update-migration-request.d.ts +40 -0
  447. package/lib/request/update-migration-request.js +15 -0
  448. package/lib/request/update-migration-request.js.map +1 -0
  449. package/lib/request/update-replication-schedule-request.d.ts +40 -0
  450. package/lib/request/update-replication-schedule-request.js +15 -0
  451. package/lib/request/update-replication-schedule-request.js.map +1 -0
  452. package/lib/request/update-target-asset-request.d.ts +40 -0
  453. package/lib/request/update-target-asset-request.js +15 -0
  454. package/lib/request/update-target-asset-request.js.map +1 -0
  455. package/lib/response/cancel-work-request-response.d.ts +20 -0
  456. package/lib/response/cancel-work-request-response.js +15 -0
  457. package/lib/response/cancel-work-request-response.js.map +1 -0
  458. package/lib/response/change-migration-compartment-response.d.ts +25 -0
  459. package/lib/response/change-migration-compartment-response.js +15 -0
  460. package/lib/response/change-migration-compartment-response.js.map +1 -0
  461. package/lib/response/change-migration-plan-compartment-response.d.ts +25 -0
  462. package/lib/response/change-migration-plan-compartment-response.js +15 -0
  463. package/lib/response/change-migration-plan-compartment-response.js.map +1 -0
  464. package/lib/response/change-replication-schedule-compartment-response.d.ts +25 -0
  465. package/lib/response/change-replication-schedule-compartment-response.js +15 -0
  466. package/lib/response/change-replication-schedule-compartment-response.js.map +1 -0
  467. package/lib/response/create-migration-asset-response.d.ts +45 -0
  468. package/lib/response/create-migration-asset-response.js +15 -0
  469. package/lib/response/create-migration-asset-response.js.map +1 -0
  470. package/lib/response/create-migration-plan-response.d.ts +45 -0
  471. package/lib/response/create-migration-plan-response.js +15 -0
  472. package/lib/response/create-migration-plan-response.js.map +1 -0
  473. package/lib/response/create-migration-response.d.ts +30 -0
  474. package/lib/response/create-migration-response.js +15 -0
  475. package/lib/response/create-migration-response.js.map +1 -0
  476. package/lib/response/create-replication-schedule-response.d.ts +45 -0
  477. package/lib/response/create-replication-schedule-response.js +15 -0
  478. package/lib/response/create-replication-schedule-response.js.map +1 -0
  479. package/lib/response/create-target-asset-response.d.ts +45 -0
  480. package/lib/response/create-target-asset-response.js +15 -0
  481. package/lib/response/create-target-asset-response.js.map +1 -0
  482. package/lib/response/delete-migration-asset-response.d.ts +25 -0
  483. package/lib/response/delete-migration-asset-response.js +15 -0
  484. package/lib/response/delete-migration-asset-response.js.map +1 -0
  485. package/lib/response/delete-migration-plan-response.d.ts +25 -0
  486. package/lib/response/delete-migration-plan-response.js +15 -0
  487. package/lib/response/delete-migration-plan-response.js.map +1 -0
  488. package/lib/response/delete-migration-response.d.ts +25 -0
  489. package/lib/response/delete-migration-response.js +15 -0
  490. package/lib/response/delete-migration-response.js.map +1 -0
  491. package/lib/response/delete-replication-schedule-response.d.ts +25 -0
  492. package/lib/response/delete-replication-schedule-response.js +15 -0
  493. package/lib/response/delete-replication-schedule-response.js.map +1 -0
  494. package/lib/response/delete-target-asset-response.d.ts +25 -0
  495. package/lib/response/delete-target-asset-response.js +15 -0
  496. package/lib/response/delete-target-asset-response.js.map +1 -0
  497. package/lib/response/execute-migration-plan-response.d.ts +25 -0
  498. package/lib/response/execute-migration-plan-response.js +15 -0
  499. package/lib/response/execute-migration-plan-response.js.map +1 -0
  500. package/lib/response/export-migration-plan-response.d.ts +26 -0
  501. package/lib/response/export-migration-plan-response.js +15 -0
  502. package/lib/response/export-migration-plan-response.js.map +1 -0
  503. package/lib/response/get-migration-asset-response.d.ts +30 -0
  504. package/lib/response/get-migration-asset-response.js +15 -0
  505. package/lib/response/get-migration-asset-response.js.map +1 -0
  506. package/lib/response/get-migration-plan-response.d.ts +30 -0
  507. package/lib/response/get-migration-plan-response.js +15 -0
  508. package/lib/response/get-migration-plan-response.js.map +1 -0
  509. package/lib/response/get-migration-response.d.ts +30 -0
  510. package/lib/response/get-migration-response.js +15 -0
  511. package/lib/response/get-migration-response.js.map +1 -0
  512. package/lib/response/get-replication-progress-response.d.ts +25 -0
  513. package/lib/response/get-replication-progress-response.js +15 -0
  514. package/lib/response/get-replication-progress-response.js.map +1 -0
  515. package/lib/response/get-replication-schedule-response.d.ts +30 -0
  516. package/lib/response/get-replication-schedule-response.js +15 -0
  517. package/lib/response/get-replication-schedule-response.js.map +1 -0
  518. package/lib/response/get-target-asset-response.d.ts +30 -0
  519. package/lib/response/get-target-asset-response.js +15 -0
  520. package/lib/response/get-target-asset-response.js.map +1 -0
  521. package/lib/response/get-work-request-response.d.ts +34 -0
  522. package/lib/response/get-work-request-response.js +15 -0
  523. package/lib/response/get-work-request-response.js.map +1 -0
  524. package/lib/response/import-migration-plan-response.d.ts +25 -0
  525. package/lib/response/import-migration-plan-response.js +15 -0
  526. package/lib/response/import-migration-plan-response.js.map +1 -0
  527. package/lib/response/index.d.ts +98 -0
  528. package/lib/response/index.js +15 -0
  529. package/lib/response/index.js.map +1 -0
  530. package/lib/response/list-available-shapes-response.d.ts +32 -0
  531. package/lib/response/list-available-shapes-response.js +15 -0
  532. package/lib/response/list-available-shapes-response.js.map +1 -0
  533. package/lib/response/list-migration-assets-response.d.ts +32 -0
  534. package/lib/response/list-migration-assets-response.js +15 -0
  535. package/lib/response/list-migration-assets-response.js.map +1 -0
  536. package/lib/response/list-migration-plans-response.d.ts +32 -0
  537. package/lib/response/list-migration-plans-response.js +15 -0
  538. package/lib/response/list-migration-plans-response.js.map +1 -0
  539. package/lib/response/list-migrations-response.d.ts +32 -0
  540. package/lib/response/list-migrations-response.js +15 -0
  541. package/lib/response/list-migrations-response.js.map +1 -0
  542. package/lib/response/list-replication-schedules-response.d.ts +32 -0
  543. package/lib/response/list-replication-schedules-response.js +15 -0
  544. package/lib/response/list-replication-schedules-response.js.map +1 -0
  545. package/lib/response/list-target-assets-response.d.ts +32 -0
  546. package/lib/response/list-target-assets-response.js +15 -0
  547. package/lib/response/list-target-assets-response.js.map +1 -0
  548. package/lib/response/list-work-request-errors-response.d.ts +32 -0
  549. package/lib/response/list-work-request-errors-response.js +15 -0
  550. package/lib/response/list-work-request-errors-response.js.map +1 -0
  551. package/lib/response/list-work-request-logs-response.d.ts +32 -0
  552. package/lib/response/list-work-request-logs-response.js +15 -0
  553. package/lib/response/list-work-request-logs-response.js.map +1 -0
  554. package/lib/response/list-work-requests-response.d.ts +32 -0
  555. package/lib/response/list-work-requests-response.js +15 -0
  556. package/lib/response/list-work-requests-response.js.map +1 -0
  557. package/lib/response/refresh-migration-asset-response.d.ts +25 -0
  558. package/lib/response/refresh-migration-asset-response.js +15 -0
  559. package/lib/response/refresh-migration-asset-response.js.map +1 -0
  560. package/lib/response/refresh-migration-plan-response.d.ts +25 -0
  561. package/lib/response/refresh-migration-plan-response.js +15 -0
  562. package/lib/response/refresh-migration-plan-response.js.map +1 -0
  563. package/lib/response/refresh-migration-response.d.ts +25 -0
  564. package/lib/response/refresh-migration-response.js +15 -0
  565. package/lib/response/refresh-migration-response.js.map +1 -0
  566. package/lib/response/start-asset-replication-response.d.ts +25 -0
  567. package/lib/response/start-asset-replication-response.js +15 -0
  568. package/lib/response/start-asset-replication-response.js.map +1 -0
  569. package/lib/response/start-migration-replication-response.d.ts +25 -0
  570. package/lib/response/start-migration-replication-response.js +15 -0
  571. package/lib/response/start-migration-replication-response.js.map +1 -0
  572. package/lib/response/update-migration-asset-response.d.ts +30 -0
  573. package/lib/response/update-migration-asset-response.js +15 -0
  574. package/lib/response/update-migration-asset-response.js.map +1 -0
  575. package/lib/response/update-migration-plan-response.d.ts +25 -0
  576. package/lib/response/update-migration-plan-response.js +15 -0
  577. package/lib/response/update-migration-plan-response.js.map +1 -0
  578. package/lib/response/update-migration-response.d.ts +30 -0
  579. package/lib/response/update-migration-response.js +15 -0
  580. package/lib/response/update-migration-response.js.map +1 -0
  581. package/lib/response/update-replication-schedule-response.d.ts +25 -0
  582. package/lib/response/update-replication-schedule-response.js +15 -0
  583. package/lib/response/update-replication-schedule-response.js.map +1 -0
  584. package/lib/response/update-target-asset-response.d.ts +25 -0
  585. package/lib/response/update-target-asset-response.js +15 -0
  586. package/lib/response/update-target-asset-response.js.map +1 -0
  587. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,2961 @@
1
+ "use strict";
2
+ /**
3
+ * Oracle Cloud Migrations API
4
+ * A description of the Oracle Cloud Migrations API.
5
+ * OpenAPI spec version: 20220919
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * 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.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.MigrationClient = exports.MigrationApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const migration_waiter_1 = require("./migration-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ // ===============================================
49
+ // This file is autogenerated - Please do not edit
50
+ // ===============================================
51
+ var MigrationApiKeys;
52
+ (function (MigrationApiKeys) {
53
+ })(MigrationApiKeys = exports.MigrationApiKeys || (exports.MigrationApiKeys = {}));
54
+ /**
55
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
56
+ */
57
+ class MigrationClient {
58
+ constructor(params, clientConfiguration) {
59
+ this["_endpoint"] = "";
60
+ this["_defaultHeaders"] = {};
61
+ this._circuitBreaker = null;
62
+ this._httpOptions = undefined;
63
+ this.targetService = "Migration";
64
+ const requestSigner = params.authenticationDetailsProvider
65
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
66
+ : null;
67
+ if (clientConfiguration) {
68
+ this._clientConfiguration = clientConfiguration;
69
+ this._circuitBreaker = clientConfiguration.circuitBreaker
70
+ ? clientConfiguration.circuitBreaker.circuit
71
+ : null;
72
+ this._httpOptions = clientConfiguration.httpOptions
73
+ ? clientConfiguration.httpOptions
74
+ : undefined;
75
+ }
76
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
77
+ const specCircuitBreakerEnabled = true;
78
+ if (!this._circuitBreaker &&
79
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
80
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
81
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
82
+ }
83
+ this._httpClient =
84
+ params.httpClient ||
85
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
86
+ if (params.authenticationDetailsProvider &&
87
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
88
+ const provider = params.authenticationDetailsProvider;
89
+ if (provider.getRegion()) {
90
+ this.region = provider.getRegion();
91
+ }
92
+ }
93
+ }
94
+ /**
95
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
96
+ */
97
+ get endpoint() {
98
+ return this._endpoint;
99
+ }
100
+ /**
101
+ * Sets the endpoint to call (ex, https://www.example.com).
102
+ * @param endpoint The endpoint of the service.
103
+ */
104
+ set endpoint(endpoint) {
105
+ this._endpoint = endpoint;
106
+ this._endpoint = this._endpoint + "/20220919";
107
+ if (this.logger)
108
+ this.logger.info(`MigrationClient endpoint set to ${this._endpoint}`);
109
+ }
110
+ get logger() {
111
+ return common.LOG.logger;
112
+ }
113
+ /**
114
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
115
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
116
+ * @param region The region of the service.
117
+ */
118
+ set region(region) {
119
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MigrationClient.serviceEndpointTemplate, region, MigrationClient.endpointServiceName);
120
+ }
121
+ /**
122
+ * Sets the regionId to call (ex, 'us-phoenix-1').
123
+ *
124
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
125
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
126
+ * and then call {@link #endpoint(String) endpoint}.
127
+ * @param regionId The public region ID.
128
+ */
129
+ set regionId(regionId) {
130
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MigrationClient.serviceEndpointTemplate, regionId, MigrationClient.endpointServiceName);
131
+ }
132
+ /**
133
+ * Creates a new MigrationWaiter for resources for this service.
134
+ *
135
+ * @param config The waiter configuration for termination and delay strategy
136
+ * @return The service waiters.
137
+ */
138
+ createWaiters(config) {
139
+ this._waiters = new migration_waiter_1.MigrationWaiter(this, config);
140
+ return this._waiters;
141
+ }
142
+ /**
143
+ * Gets the waiters available for resources for this service.
144
+ *
145
+ * @return The service waiters.
146
+ */
147
+ getWaiters() {
148
+ if (this._waiters) {
149
+ return this._waiters;
150
+ }
151
+ throw Error("Waiters do not exist. Please create waiters.");
152
+ }
153
+ /**
154
+ * Cancels work request with the given ID.
155
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
156
+ * @param CancelWorkRequestRequest
157
+ * @return CancelWorkRequestResponse
158
+ * @throws OciError when an error occurs
159
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
160
+ */
161
+ cancelWorkRequest(cancelWorkRequestRequest) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (this.logger)
164
+ this.logger.debug("Calling operation MigrationClient#cancelWorkRequest.");
165
+ const operationName = "cancelWorkRequest";
166
+ const apiReferenceLink = "";
167
+ const pathParams = {
168
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
169
+ };
170
+ const queryParams = {};
171
+ let headerParams = {
172
+ "Content-Type": common.Constants.APPLICATION_JSON,
173
+ "if-match": cancelWorkRequestRequest.ifMatch,
174
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
175
+ };
176
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
177
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
178
+ if (this.logger)
179
+ retrier.logger = this.logger;
180
+ const request = yield oci_common_1.composeRequest({
181
+ baseEndpoint: this._endpoint,
182
+ defaultHeaders: this._defaultHeaders,
183
+ path: "/workRequests/{workRequestId}",
184
+ method: "DELETE",
185
+ pathParams: pathParams,
186
+ headerParams: headerParams,
187
+ queryParams: queryParams
188
+ });
189
+ try {
190
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
191
+ const sdkResponse = oci_common_1.composeResponse({
192
+ responseObject: {},
193
+ responseHeaders: [
194
+ {
195
+ value: response.headers.get("opc-request-id"),
196
+ key: "opcRequestId",
197
+ dataType: "string"
198
+ }
199
+ ]
200
+ });
201
+ return sdkResponse;
202
+ }
203
+ catch (err) {
204
+ throw err;
205
+ }
206
+ });
207
+ }
208
+ /**
209
+ * Moves a migration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
210
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
211
+ * @param ChangeMigrationCompartmentRequest
212
+ * @return ChangeMigrationCompartmentResponse
213
+ * @throws OciError when an error occurs
214
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ChangeMigrationCompartment.ts.html |here} to see how to use ChangeMigrationCompartment API.
215
+ */
216
+ changeMigrationCompartment(changeMigrationCompartmentRequest) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ if (this.logger)
219
+ this.logger.debug("Calling operation MigrationClient#changeMigrationCompartment.");
220
+ const operationName = "changeMigrationCompartment";
221
+ const apiReferenceLink = "";
222
+ const pathParams = {
223
+ "{migrationId}": changeMigrationCompartmentRequest.migrationId
224
+ };
225
+ const queryParams = {};
226
+ let headerParams = {
227
+ "Content-Type": common.Constants.APPLICATION_JSON,
228
+ "if-match": changeMigrationCompartmentRequest.ifMatch,
229
+ "opc-request-id": changeMigrationCompartmentRequest.opcRequestId
230
+ };
231
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
232
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMigrationCompartmentRequest.retryConfiguration, specRetryConfiguration);
233
+ if (this.logger)
234
+ retrier.logger = this.logger;
235
+ const request = yield oci_common_1.composeRequest({
236
+ baseEndpoint: this._endpoint,
237
+ defaultHeaders: this._defaultHeaders,
238
+ path: "/migrations/{migrationId}/actions/changeCompartment",
239
+ method: "POST",
240
+ bodyContent: common.ObjectSerializer.serialize(changeMigrationCompartmentRequest.changeMigrationCompartmentDetails, "ChangeMigrationCompartmentDetails", model.ChangeMigrationCompartmentDetails.getJsonObj),
241
+ pathParams: pathParams,
242
+ headerParams: headerParams,
243
+ queryParams: queryParams
244
+ });
245
+ try {
246
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
247
+ const sdkResponse = oci_common_1.composeResponse({
248
+ responseObject: {},
249
+ responseHeaders: [
250
+ {
251
+ value: response.headers.get("opc-work-request-id"),
252
+ key: "opcWorkRequestId",
253
+ dataType: "string"
254
+ },
255
+ {
256
+ value: response.headers.get("opc-request-id"),
257
+ key: "opcRequestId",
258
+ dataType: "string"
259
+ }
260
+ ]
261
+ });
262
+ return sdkResponse;
263
+ }
264
+ catch (err) {
265
+ throw err;
266
+ }
267
+ });
268
+ }
269
+ /**
270
+ * Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
271
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
272
+ * @param ChangeMigrationPlanCompartmentRequest
273
+ * @return ChangeMigrationPlanCompartmentResponse
274
+ * @throws OciError when an error occurs
275
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ChangeMigrationPlanCompartment.ts.html |here} to see how to use ChangeMigrationPlanCompartment API.
276
+ */
277
+ changeMigrationPlanCompartment(changeMigrationPlanCompartmentRequest) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ if (this.logger)
280
+ this.logger.debug("Calling operation MigrationClient#changeMigrationPlanCompartment.");
281
+ const operationName = "changeMigrationPlanCompartment";
282
+ const apiReferenceLink = "";
283
+ const pathParams = {
284
+ "{migrationPlanId}": changeMigrationPlanCompartmentRequest.migrationPlanId
285
+ };
286
+ const queryParams = {};
287
+ let headerParams = {
288
+ "Content-Type": common.Constants.APPLICATION_JSON,
289
+ "if-match": changeMigrationPlanCompartmentRequest.ifMatch,
290
+ "opc-request-id": changeMigrationPlanCompartmentRequest.opcRequestId,
291
+ "opc-retry-token": changeMigrationPlanCompartmentRequest.opcRetryToken
292
+ };
293
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
294
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMigrationPlanCompartmentRequest.retryConfiguration, specRetryConfiguration);
295
+ if (this.logger)
296
+ retrier.logger = this.logger;
297
+ const request = yield oci_common_1.composeRequest({
298
+ baseEndpoint: this._endpoint,
299
+ defaultHeaders: this._defaultHeaders,
300
+ path: "/migrationPlans/{migrationPlanId}/actions/changeCompartment",
301
+ method: "POST",
302
+ bodyContent: common.ObjectSerializer.serialize(changeMigrationPlanCompartmentRequest.changeMigrationPlanCompartmentDetails, "ChangeMigrationPlanCompartmentDetails", model.ChangeMigrationPlanCompartmentDetails.getJsonObj),
303
+ pathParams: pathParams,
304
+ headerParams: headerParams,
305
+ queryParams: queryParams
306
+ });
307
+ try {
308
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
309
+ const sdkResponse = oci_common_1.composeResponse({
310
+ responseObject: {},
311
+ responseHeaders: [
312
+ {
313
+ value: response.headers.get("opc-request-id"),
314
+ key: "opcRequestId",
315
+ dataType: "string"
316
+ },
317
+ {
318
+ value: response.headers.get("opc-work-request-id"),
319
+ key: "opcWorkRequestId",
320
+ dataType: "string"
321
+ }
322
+ ]
323
+ });
324
+ return sdkResponse;
325
+ }
326
+ catch (err) {
327
+ throw err;
328
+ }
329
+ });
330
+ }
331
+ /**
332
+ * Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
333
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
334
+ * @param ChangeReplicationScheduleCompartmentRequest
335
+ * @return ChangeReplicationScheduleCompartmentResponse
336
+ * @throws OciError when an error occurs
337
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ChangeReplicationScheduleCompartment.ts.html |here} to see how to use ChangeReplicationScheduleCompartment API.
338
+ */
339
+ changeReplicationScheduleCompartment(changeReplicationScheduleCompartmentRequest) {
340
+ return __awaiter(this, void 0, void 0, function* () {
341
+ if (this.logger)
342
+ this.logger.debug("Calling operation MigrationClient#changeReplicationScheduleCompartment.");
343
+ const operationName = "changeReplicationScheduleCompartment";
344
+ const apiReferenceLink = "";
345
+ const pathParams = {
346
+ "{replicationScheduleId}": changeReplicationScheduleCompartmentRequest.replicationScheduleId
347
+ };
348
+ const queryParams = {};
349
+ let headerParams = {
350
+ "Content-Type": common.Constants.APPLICATION_JSON,
351
+ "if-match": changeReplicationScheduleCompartmentRequest.ifMatch,
352
+ "opc-request-id": changeReplicationScheduleCompartmentRequest.opcRequestId,
353
+ "opc-retry-token": changeReplicationScheduleCompartmentRequest.opcRetryToken
354
+ };
355
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
356
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeReplicationScheduleCompartmentRequest.retryConfiguration, specRetryConfiguration);
357
+ if (this.logger)
358
+ retrier.logger = this.logger;
359
+ const request = yield oci_common_1.composeRequest({
360
+ baseEndpoint: this._endpoint,
361
+ defaultHeaders: this._defaultHeaders,
362
+ path: "/replicationSchedules/{replicationScheduleId}/actions/changeCompartment",
363
+ method: "POST",
364
+ bodyContent: common.ObjectSerializer.serialize(changeReplicationScheduleCompartmentRequest.changeReplicationScheduleCompartmentDetails, "ChangeReplicationScheduleCompartmentDetails", model.ChangeReplicationScheduleCompartmentDetails.getJsonObj),
365
+ pathParams: pathParams,
366
+ headerParams: headerParams,
367
+ queryParams: queryParams
368
+ });
369
+ try {
370
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
371
+ const sdkResponse = oci_common_1.composeResponse({
372
+ responseObject: {},
373
+ responseHeaders: [
374
+ {
375
+ value: response.headers.get("opc-request-id"),
376
+ key: "opcRequestId",
377
+ dataType: "string"
378
+ },
379
+ {
380
+ value: response.headers.get("opc-work-request-id"),
381
+ key: "opcWorkRequestId",
382
+ dataType: "string"
383
+ }
384
+ ]
385
+ });
386
+ return sdkResponse;
387
+ }
388
+ catch (err) {
389
+ throw err;
390
+ }
391
+ });
392
+ }
393
+ /**
394
+ * Creates a migration.
395
+ *
396
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
397
+ * @param CreateMigrationRequest
398
+ * @return CreateMigrationResponse
399
+ * @throws OciError when an error occurs
400
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CreateMigration.ts.html |here} to see how to use CreateMigration API.
401
+ */
402
+ createMigration(createMigrationRequest) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ if (this.logger)
405
+ this.logger.debug("Calling operation MigrationClient#createMigration.");
406
+ const operationName = "createMigration";
407
+ const apiReferenceLink = "";
408
+ const pathParams = {};
409
+ const queryParams = {};
410
+ let headerParams = {
411
+ "Content-Type": common.Constants.APPLICATION_JSON,
412
+ "opc-retry-token": createMigrationRequest.opcRetryToken,
413
+ "opc-request-id": createMigrationRequest.opcRequestId
414
+ };
415
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
416
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMigrationRequest.retryConfiguration, specRetryConfiguration);
417
+ if (this.logger)
418
+ retrier.logger = this.logger;
419
+ const request = yield oci_common_1.composeRequest({
420
+ baseEndpoint: this._endpoint,
421
+ defaultHeaders: this._defaultHeaders,
422
+ path: "/migrations",
423
+ method: "POST",
424
+ bodyContent: common.ObjectSerializer.serialize(createMigrationRequest.createMigrationDetails, "CreateMigrationDetails", model.CreateMigrationDetails.getJsonObj),
425
+ pathParams: pathParams,
426
+ headerParams: headerParams,
427
+ queryParams: queryParams
428
+ });
429
+ try {
430
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
431
+ const sdkResponse = oci_common_1.composeResponse({
432
+ responseObject: {},
433
+ body: yield response.json(),
434
+ bodyKey: "migration",
435
+ bodyModel: model.Migration,
436
+ type: "model.Migration",
437
+ responseHeaders: [
438
+ {
439
+ value: response.headers.get("etag"),
440
+ key: "etag",
441
+ dataType: "string"
442
+ },
443
+ {
444
+ value: response.headers.get("opc-request-id"),
445
+ key: "opcRequestId",
446
+ dataType: "string"
447
+ }
448
+ ]
449
+ });
450
+ return sdkResponse;
451
+ }
452
+ catch (err) {
453
+ throw err;
454
+ }
455
+ });
456
+ }
457
+ /**
458
+ * Creates a migration asset.
459
+ *
460
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
461
+ * @param CreateMigrationAssetRequest
462
+ * @return CreateMigrationAssetResponse
463
+ * @throws OciError when an error occurs
464
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CreateMigrationAsset.ts.html |here} to see how to use CreateMigrationAsset API.
465
+ */
466
+ createMigrationAsset(createMigrationAssetRequest) {
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ if (this.logger)
469
+ this.logger.debug("Calling operation MigrationClient#createMigrationAsset.");
470
+ const operationName = "createMigrationAsset";
471
+ const apiReferenceLink = "";
472
+ const pathParams = {};
473
+ const queryParams = {};
474
+ let headerParams = {
475
+ "Content-Type": common.Constants.APPLICATION_JSON,
476
+ "opc-retry-token": createMigrationAssetRequest.opcRetryToken,
477
+ "opc-request-id": createMigrationAssetRequest.opcRequestId
478
+ };
479
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
480
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMigrationAssetRequest.retryConfiguration, specRetryConfiguration);
481
+ if (this.logger)
482
+ retrier.logger = this.logger;
483
+ const request = yield oci_common_1.composeRequest({
484
+ baseEndpoint: this._endpoint,
485
+ defaultHeaders: this._defaultHeaders,
486
+ path: "/migrationAssets",
487
+ method: "POST",
488
+ bodyContent: common.ObjectSerializer.serialize(createMigrationAssetRequest.createMigrationAssetDetails, "CreateMigrationAssetDetails", model.CreateMigrationAssetDetails.getJsonObj),
489
+ pathParams: pathParams,
490
+ headerParams: headerParams,
491
+ queryParams: queryParams
492
+ });
493
+ try {
494
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
495
+ const sdkResponse = oci_common_1.composeResponse({
496
+ responseObject: {},
497
+ body: yield response.json(),
498
+ bodyKey: "migrationAsset",
499
+ bodyModel: model.MigrationAsset,
500
+ type: "model.MigrationAsset",
501
+ responseHeaders: [
502
+ {
503
+ value: response.headers.get("etag"),
504
+ key: "etag",
505
+ dataType: "string"
506
+ },
507
+ {
508
+ value: response.headers.get("opc-request-id"),
509
+ key: "opcRequestId",
510
+ dataType: "string"
511
+ },
512
+ {
513
+ value: response.headers.get("opc-work-request-id"),
514
+ key: "opcWorkRequestId",
515
+ dataType: "string"
516
+ },
517
+ {
518
+ value: response.headers.get("location"),
519
+ key: "location",
520
+ dataType: "string"
521
+ },
522
+ {
523
+ value: response.headers.get("content-location"),
524
+ key: "contentLocation",
525
+ dataType: "string"
526
+ }
527
+ ]
528
+ });
529
+ return sdkResponse;
530
+ }
531
+ catch (err) {
532
+ throw err;
533
+ }
534
+ });
535
+ }
536
+ /**
537
+ * Creates a migration plan.
538
+ *
539
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
540
+ * @param CreateMigrationPlanRequest
541
+ * @return CreateMigrationPlanResponse
542
+ * @throws OciError when an error occurs
543
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CreateMigrationPlan.ts.html |here} to see how to use CreateMigrationPlan API.
544
+ */
545
+ createMigrationPlan(createMigrationPlanRequest) {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ if (this.logger)
548
+ this.logger.debug("Calling operation MigrationClient#createMigrationPlan.");
549
+ const operationName = "createMigrationPlan";
550
+ const apiReferenceLink = "";
551
+ const pathParams = {};
552
+ const queryParams = {};
553
+ let headerParams = {
554
+ "Content-Type": common.Constants.APPLICATION_JSON,
555
+ "opc-retry-token": createMigrationPlanRequest.opcRetryToken,
556
+ "opc-request-id": createMigrationPlanRequest.opcRequestId
557
+ };
558
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
559
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
560
+ if (this.logger)
561
+ retrier.logger = this.logger;
562
+ const request = yield oci_common_1.composeRequest({
563
+ baseEndpoint: this._endpoint,
564
+ defaultHeaders: this._defaultHeaders,
565
+ path: "/migrationPlans",
566
+ method: "POST",
567
+ bodyContent: common.ObjectSerializer.serialize(createMigrationPlanRequest.createMigrationPlanDetails, "CreateMigrationPlanDetails", model.CreateMigrationPlanDetails.getJsonObj),
568
+ pathParams: pathParams,
569
+ headerParams: headerParams,
570
+ queryParams: queryParams
571
+ });
572
+ try {
573
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
574
+ const sdkResponse = oci_common_1.composeResponse({
575
+ responseObject: {},
576
+ body: yield response.json(),
577
+ bodyKey: "migrationPlan",
578
+ bodyModel: model.MigrationPlan,
579
+ type: "model.MigrationPlan",
580
+ responseHeaders: [
581
+ {
582
+ value: response.headers.get("etag"),
583
+ key: "etag",
584
+ dataType: "string"
585
+ },
586
+ {
587
+ value: response.headers.get("opc-request-id"),
588
+ key: "opcRequestId",
589
+ dataType: "string"
590
+ },
591
+ {
592
+ value: response.headers.get("opc-work-request-id"),
593
+ key: "opcWorkRequestId",
594
+ dataType: "string"
595
+ },
596
+ {
597
+ value: response.headers.get("location"),
598
+ key: "location",
599
+ dataType: "string"
600
+ },
601
+ {
602
+ value: response.headers.get("content-location"),
603
+ key: "contentLocation",
604
+ dataType: "string"
605
+ }
606
+ ]
607
+ });
608
+ return sdkResponse;
609
+ }
610
+ catch (err) {
611
+ throw err;
612
+ }
613
+ });
614
+ }
615
+ /**
616
+ * Creates a replication schedule.
617
+ *
618
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
619
+ * @param CreateReplicationScheduleRequest
620
+ * @return CreateReplicationScheduleResponse
621
+ * @throws OciError when an error occurs
622
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CreateReplicationSchedule.ts.html |here} to see how to use CreateReplicationSchedule API.
623
+ */
624
+ createReplicationSchedule(createReplicationScheduleRequest) {
625
+ return __awaiter(this, void 0, void 0, function* () {
626
+ if (this.logger)
627
+ this.logger.debug("Calling operation MigrationClient#createReplicationSchedule.");
628
+ const operationName = "createReplicationSchedule";
629
+ const apiReferenceLink = "";
630
+ const pathParams = {};
631
+ const queryParams = {};
632
+ let headerParams = {
633
+ "Content-Type": common.Constants.APPLICATION_JSON,
634
+ "opc-retry-token": createReplicationScheduleRequest.opcRetryToken,
635
+ "opc-request-id": createReplicationScheduleRequest.opcRequestId
636
+ };
637
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
638
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationScheduleRequest.retryConfiguration, specRetryConfiguration);
639
+ if (this.logger)
640
+ retrier.logger = this.logger;
641
+ const request = yield oci_common_1.composeRequest({
642
+ baseEndpoint: this._endpoint,
643
+ defaultHeaders: this._defaultHeaders,
644
+ path: "/replicationSchedules",
645
+ method: "POST",
646
+ bodyContent: common.ObjectSerializer.serialize(createReplicationScheduleRequest.createReplicationScheduleDetails, "CreateReplicationScheduleDetails", model.CreateReplicationScheduleDetails.getJsonObj),
647
+ pathParams: pathParams,
648
+ headerParams: headerParams,
649
+ queryParams: queryParams
650
+ });
651
+ try {
652
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
653
+ const sdkResponse = oci_common_1.composeResponse({
654
+ responseObject: {},
655
+ body: yield response.json(),
656
+ bodyKey: "replicationSchedule",
657
+ bodyModel: model.ReplicationSchedule,
658
+ type: "model.ReplicationSchedule",
659
+ responseHeaders: [
660
+ {
661
+ value: response.headers.get("etag"),
662
+ key: "etag",
663
+ dataType: "string"
664
+ },
665
+ {
666
+ value: response.headers.get("opc-request-id"),
667
+ key: "opcRequestId",
668
+ dataType: "string"
669
+ },
670
+ {
671
+ value: response.headers.get("opc-work-request-id"),
672
+ key: "opcWorkRequestId",
673
+ dataType: "string"
674
+ },
675
+ {
676
+ value: response.headers.get("location"),
677
+ key: "location",
678
+ dataType: "string"
679
+ },
680
+ {
681
+ value: response.headers.get("content-location"),
682
+ key: "contentLocation",
683
+ dataType: "string"
684
+ }
685
+ ]
686
+ });
687
+ return sdkResponse;
688
+ }
689
+ catch (err) {
690
+ throw err;
691
+ }
692
+ });
693
+ }
694
+ /**
695
+ * Creates a target asset.
696
+ *
697
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
698
+ * @param CreateTargetAssetRequest
699
+ * @return CreateTargetAssetResponse
700
+ * @throws OciError when an error occurs
701
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/CreateTargetAsset.ts.html |here} to see how to use CreateTargetAsset API.
702
+ */
703
+ createTargetAsset(createTargetAssetRequest) {
704
+ return __awaiter(this, void 0, void 0, function* () {
705
+ if (this.logger)
706
+ this.logger.debug("Calling operation MigrationClient#createTargetAsset.");
707
+ const operationName = "createTargetAsset";
708
+ const apiReferenceLink = "";
709
+ const pathParams = {};
710
+ const queryParams = {};
711
+ let headerParams = {
712
+ "Content-Type": common.Constants.APPLICATION_JSON,
713
+ "opc-retry-token": createTargetAssetRequest.opcRetryToken,
714
+ "opc-request-id": createTargetAssetRequest.opcRequestId
715
+ };
716
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
717
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createTargetAssetRequest.retryConfiguration, specRetryConfiguration);
718
+ if (this.logger)
719
+ retrier.logger = this.logger;
720
+ const request = yield oci_common_1.composeRequest({
721
+ baseEndpoint: this._endpoint,
722
+ defaultHeaders: this._defaultHeaders,
723
+ path: "/targetAssets",
724
+ method: "POST",
725
+ bodyContent: common.ObjectSerializer.serialize(createTargetAssetRequest.createTargetAssetDetails, "CreateTargetAssetDetails", model.CreateTargetAssetDetails.getJsonObj),
726
+ pathParams: pathParams,
727
+ headerParams: headerParams,
728
+ queryParams: queryParams
729
+ });
730
+ try {
731
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
732
+ const sdkResponse = oci_common_1.composeResponse({
733
+ responseObject: {},
734
+ body: yield response.json(),
735
+ bodyKey: "targetAsset",
736
+ bodyModel: model.TargetAsset,
737
+ type: "model.TargetAsset",
738
+ responseHeaders: [
739
+ {
740
+ value: response.headers.get("etag"),
741
+ key: "etag",
742
+ dataType: "string"
743
+ },
744
+ {
745
+ value: response.headers.get("opc-request-id"),
746
+ key: "opcRequestId",
747
+ dataType: "string"
748
+ },
749
+ {
750
+ value: response.headers.get("opc-work-request-id"),
751
+ key: "opcWorkRequestId",
752
+ dataType: "string"
753
+ },
754
+ {
755
+ value: response.headers.get("location"),
756
+ key: "location",
757
+ dataType: "string"
758
+ },
759
+ {
760
+ value: response.headers.get("content-location"),
761
+ key: "contentLocation",
762
+ dataType: "string"
763
+ }
764
+ ]
765
+ });
766
+ return sdkResponse;
767
+ }
768
+ catch (err) {
769
+ throw err;
770
+ }
771
+ });
772
+ }
773
+ /**
774
+ * Deletes a migration resource by identifier.
775
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
776
+ * @param DeleteMigrationRequest
777
+ * @return DeleteMigrationResponse
778
+ * @throws OciError when an error occurs
779
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/DeleteMigration.ts.html |here} to see how to use DeleteMigration API.
780
+ */
781
+ deleteMigration(deleteMigrationRequest) {
782
+ return __awaiter(this, void 0, void 0, function* () {
783
+ if (this.logger)
784
+ this.logger.debug("Calling operation MigrationClient#deleteMigration.");
785
+ const operationName = "deleteMigration";
786
+ const apiReferenceLink = "";
787
+ const pathParams = {
788
+ "{migrationId}": deleteMigrationRequest.migrationId
789
+ };
790
+ const queryParams = {};
791
+ let headerParams = {
792
+ "Content-Type": common.Constants.APPLICATION_JSON,
793
+ "if-match": deleteMigrationRequest.ifMatch,
794
+ "opc-request-id": deleteMigrationRequest.opcRequestId
795
+ };
796
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
797
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMigrationRequest.retryConfiguration, specRetryConfiguration);
798
+ if (this.logger)
799
+ retrier.logger = this.logger;
800
+ const request = yield oci_common_1.composeRequest({
801
+ baseEndpoint: this._endpoint,
802
+ defaultHeaders: this._defaultHeaders,
803
+ path: "/migrations/{migrationId}",
804
+ method: "DELETE",
805
+ pathParams: pathParams,
806
+ headerParams: headerParams,
807
+ queryParams: queryParams
808
+ });
809
+ try {
810
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
811
+ const sdkResponse = oci_common_1.composeResponse({
812
+ responseObject: {},
813
+ responseHeaders: [
814
+ {
815
+ value: response.headers.get("opc-work-request-id"),
816
+ key: "opcWorkRequestId",
817
+ dataType: "string"
818
+ },
819
+ {
820
+ value: response.headers.get("opc-request-id"),
821
+ key: "opcRequestId",
822
+ dataType: "string"
823
+ }
824
+ ]
825
+ });
826
+ return sdkResponse;
827
+ }
828
+ catch (err) {
829
+ throw err;
830
+ }
831
+ });
832
+ }
833
+ /**
834
+ * Deletes a migration asset resource by an identifier.
835
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
836
+ * @param DeleteMigrationAssetRequest
837
+ * @return DeleteMigrationAssetResponse
838
+ * @throws OciError when an error occurs
839
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/DeleteMigrationAsset.ts.html |here} to see how to use DeleteMigrationAsset API.
840
+ */
841
+ deleteMigrationAsset(deleteMigrationAssetRequest) {
842
+ return __awaiter(this, void 0, void 0, function* () {
843
+ if (this.logger)
844
+ this.logger.debug("Calling operation MigrationClient#deleteMigrationAsset.");
845
+ const operationName = "deleteMigrationAsset";
846
+ const apiReferenceLink = "";
847
+ const pathParams = {
848
+ "{migrationAssetId}": deleteMigrationAssetRequest.migrationAssetId
849
+ };
850
+ const queryParams = {};
851
+ let headerParams = {
852
+ "Content-Type": common.Constants.APPLICATION_JSON,
853
+ "if-match": deleteMigrationAssetRequest.ifMatch,
854
+ "opc-request-id": deleteMigrationAssetRequest.opcRequestId
855
+ };
856
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
857
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMigrationAssetRequest.retryConfiguration, specRetryConfiguration);
858
+ if (this.logger)
859
+ retrier.logger = this.logger;
860
+ const request = yield oci_common_1.composeRequest({
861
+ baseEndpoint: this._endpoint,
862
+ defaultHeaders: this._defaultHeaders,
863
+ path: "/migrationAssets/{migrationAssetId}",
864
+ method: "DELETE",
865
+ pathParams: pathParams,
866
+ headerParams: headerParams,
867
+ queryParams: queryParams
868
+ });
869
+ try {
870
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
871
+ const sdkResponse = oci_common_1.composeResponse({
872
+ responseObject: {},
873
+ responseHeaders: [
874
+ {
875
+ value: response.headers.get("opc-request-id"),
876
+ key: "opcRequestId",
877
+ dataType: "string"
878
+ },
879
+ {
880
+ value: response.headers.get("opc-work-request-id"),
881
+ key: "opcWorkRequestId",
882
+ dataType: "string"
883
+ }
884
+ ]
885
+ });
886
+ return sdkResponse;
887
+ }
888
+ catch (err) {
889
+ throw err;
890
+ }
891
+ });
892
+ }
893
+ /**
894
+ * Deletes a migration plan resource by an identifier.
895
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
896
+ * @param DeleteMigrationPlanRequest
897
+ * @return DeleteMigrationPlanResponse
898
+ * @throws OciError when an error occurs
899
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/DeleteMigrationPlan.ts.html |here} to see how to use DeleteMigrationPlan API.
900
+ */
901
+ deleteMigrationPlan(deleteMigrationPlanRequest) {
902
+ return __awaiter(this, void 0, void 0, function* () {
903
+ if (this.logger)
904
+ this.logger.debug("Calling operation MigrationClient#deleteMigrationPlan.");
905
+ const operationName = "deleteMigrationPlan";
906
+ const apiReferenceLink = "";
907
+ const pathParams = {
908
+ "{migrationPlanId}": deleteMigrationPlanRequest.migrationPlanId
909
+ };
910
+ const queryParams = {};
911
+ let headerParams = {
912
+ "Content-Type": common.Constants.APPLICATION_JSON,
913
+ "if-match": deleteMigrationPlanRequest.ifMatch,
914
+ "opc-request-id": deleteMigrationPlanRequest.opcRequestId
915
+ };
916
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
917
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
918
+ if (this.logger)
919
+ retrier.logger = this.logger;
920
+ const request = yield oci_common_1.composeRequest({
921
+ baseEndpoint: this._endpoint,
922
+ defaultHeaders: this._defaultHeaders,
923
+ path: "/migrationPlans/{migrationPlanId}",
924
+ method: "DELETE",
925
+ pathParams: pathParams,
926
+ headerParams: headerParams,
927
+ queryParams: queryParams
928
+ });
929
+ try {
930
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
931
+ const sdkResponse = oci_common_1.composeResponse({
932
+ responseObject: {},
933
+ responseHeaders: [
934
+ {
935
+ value: response.headers.get("opc-request-id"),
936
+ key: "opcRequestId",
937
+ dataType: "string"
938
+ },
939
+ {
940
+ value: response.headers.get("opc-work-request-id"),
941
+ key: "opcWorkRequestId",
942
+ dataType: "string"
943
+ }
944
+ ]
945
+ });
946
+ return sdkResponse;
947
+ }
948
+ catch (err) {
949
+ throw err;
950
+ }
951
+ });
952
+ }
953
+ /**
954
+ * Deletes a replication schedule resource by identifier.
955
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
956
+ * @param DeleteReplicationScheduleRequest
957
+ * @return DeleteReplicationScheduleResponse
958
+ * @throws OciError when an error occurs
959
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/DeleteReplicationSchedule.ts.html |here} to see how to use DeleteReplicationSchedule API.
960
+ */
961
+ deleteReplicationSchedule(deleteReplicationScheduleRequest) {
962
+ return __awaiter(this, void 0, void 0, function* () {
963
+ if (this.logger)
964
+ this.logger.debug("Calling operation MigrationClient#deleteReplicationSchedule.");
965
+ const operationName = "deleteReplicationSchedule";
966
+ const apiReferenceLink = "";
967
+ const pathParams = {
968
+ "{replicationScheduleId}": deleteReplicationScheduleRequest.replicationScheduleId
969
+ };
970
+ const queryParams = {};
971
+ let headerParams = {
972
+ "Content-Type": common.Constants.APPLICATION_JSON,
973
+ "if-match": deleteReplicationScheduleRequest.ifMatch,
974
+ "opc-request-id": deleteReplicationScheduleRequest.opcRequestId
975
+ };
976
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
977
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationScheduleRequest.retryConfiguration, specRetryConfiguration);
978
+ if (this.logger)
979
+ retrier.logger = this.logger;
980
+ const request = yield oci_common_1.composeRequest({
981
+ baseEndpoint: this._endpoint,
982
+ defaultHeaders: this._defaultHeaders,
983
+ path: "/replicationSchedules/{replicationScheduleId}",
984
+ method: "DELETE",
985
+ pathParams: pathParams,
986
+ headerParams: headerParams,
987
+ queryParams: queryParams
988
+ });
989
+ try {
990
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
991
+ const sdkResponse = oci_common_1.composeResponse({
992
+ responseObject: {},
993
+ responseHeaders: [
994
+ {
995
+ value: response.headers.get("opc-request-id"),
996
+ key: "opcRequestId",
997
+ dataType: "string"
998
+ },
999
+ {
1000
+ value: response.headers.get("opc-work-request-id"),
1001
+ key: "opcWorkRequestId",
1002
+ dataType: "string"
1003
+ }
1004
+ ]
1005
+ });
1006
+ return sdkResponse;
1007
+ }
1008
+ catch (err) {
1009
+ throw err;
1010
+ }
1011
+ });
1012
+ }
1013
+ /**
1014
+ * Deletes a target asset resource by identifier.
1015
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1016
+ * @param DeleteTargetAssetRequest
1017
+ * @return DeleteTargetAssetResponse
1018
+ * @throws OciError when an error occurs
1019
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/DeleteTargetAsset.ts.html |here} to see how to use DeleteTargetAsset API.
1020
+ */
1021
+ deleteTargetAsset(deleteTargetAssetRequest) {
1022
+ return __awaiter(this, void 0, void 0, function* () {
1023
+ if (this.logger)
1024
+ this.logger.debug("Calling operation MigrationClient#deleteTargetAsset.");
1025
+ const operationName = "deleteTargetAsset";
1026
+ const apiReferenceLink = "";
1027
+ const pathParams = {
1028
+ "{targetAssetId}": deleteTargetAssetRequest.targetAssetId
1029
+ };
1030
+ const queryParams = {};
1031
+ let headerParams = {
1032
+ "Content-Type": common.Constants.APPLICATION_JSON,
1033
+ "if-match": deleteTargetAssetRequest.ifMatch,
1034
+ "opc-request-id": deleteTargetAssetRequest.opcRequestId
1035
+ };
1036
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1037
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteTargetAssetRequest.retryConfiguration, specRetryConfiguration);
1038
+ if (this.logger)
1039
+ retrier.logger = this.logger;
1040
+ const request = yield oci_common_1.composeRequest({
1041
+ baseEndpoint: this._endpoint,
1042
+ defaultHeaders: this._defaultHeaders,
1043
+ path: "/targetAssets/{targetAssetId}",
1044
+ method: "DELETE",
1045
+ pathParams: pathParams,
1046
+ headerParams: headerParams,
1047
+ queryParams: queryParams
1048
+ });
1049
+ try {
1050
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1051
+ const sdkResponse = oci_common_1.composeResponse({
1052
+ responseObject: {},
1053
+ responseHeaders: [
1054
+ {
1055
+ value: response.headers.get("opc-request-id"),
1056
+ key: "opcRequestId",
1057
+ dataType: "string"
1058
+ },
1059
+ {
1060
+ value: response.headers.get("opc-work-request-id"),
1061
+ key: "opcWorkRequestId",
1062
+ dataType: "string"
1063
+ }
1064
+ ]
1065
+ });
1066
+ return sdkResponse;
1067
+ }
1068
+ catch (err) {
1069
+ throw err;
1070
+ }
1071
+ });
1072
+ }
1073
+ /**
1074
+ * Executes the migration plan with the migration plan ID.
1075
+ *
1076
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1077
+ * @param ExecuteMigrationPlanRequest
1078
+ * @return ExecuteMigrationPlanResponse
1079
+ * @throws OciError when an error occurs
1080
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ExecuteMigrationPlan.ts.html |here} to see how to use ExecuteMigrationPlan API.
1081
+ */
1082
+ executeMigrationPlan(executeMigrationPlanRequest) {
1083
+ return __awaiter(this, void 0, void 0, function* () {
1084
+ if (this.logger)
1085
+ this.logger.debug("Calling operation MigrationClient#executeMigrationPlan.");
1086
+ const operationName = "executeMigrationPlan";
1087
+ const apiReferenceLink = "";
1088
+ const pathParams = {
1089
+ "{migrationPlanId}": executeMigrationPlanRequest.migrationPlanId
1090
+ };
1091
+ const queryParams = {};
1092
+ let headerParams = {
1093
+ "Content-Type": common.Constants.APPLICATION_JSON,
1094
+ "if-match": executeMigrationPlanRequest.ifMatch,
1095
+ "opc-request-id": executeMigrationPlanRequest.opcRequestId,
1096
+ "opc-retry-token": executeMigrationPlanRequest.opcRetryToken
1097
+ };
1098
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1099
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, executeMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
1100
+ if (this.logger)
1101
+ retrier.logger = this.logger;
1102
+ const request = yield oci_common_1.composeRequest({
1103
+ baseEndpoint: this._endpoint,
1104
+ defaultHeaders: this._defaultHeaders,
1105
+ path: "/migrationPlans/{migrationPlanId}/actions/execute",
1106
+ method: "POST",
1107
+ pathParams: pathParams,
1108
+ headerParams: headerParams,
1109
+ queryParams: queryParams
1110
+ });
1111
+ try {
1112
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1113
+ const sdkResponse = oci_common_1.composeResponse({
1114
+ responseObject: {},
1115
+ responseHeaders: [
1116
+ {
1117
+ value: response.headers.get("opc-work-request-id"),
1118
+ key: "opcWorkRequestId",
1119
+ dataType: "string"
1120
+ },
1121
+ {
1122
+ value: response.headers.get("opc-request-id"),
1123
+ key: "opcRequestId",
1124
+ dataType: "string"
1125
+ }
1126
+ ]
1127
+ });
1128
+ return sdkResponse;
1129
+ }
1130
+ catch (err) {
1131
+ throw err;
1132
+ }
1133
+ });
1134
+ }
1135
+ /**
1136
+ * Exports the migration plan to a csv file.
1137
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1138
+ * @param ExportMigrationPlanRequest
1139
+ * @return ExportMigrationPlanResponse
1140
+ * @throws OciError when an error occurs
1141
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ExportMigrationPlan.ts.html |here} to see how to use ExportMigrationPlan API.
1142
+ */
1143
+ exportMigrationPlan(exportMigrationPlanRequest) {
1144
+ return __awaiter(this, void 0, void 0, function* () {
1145
+ if (this.logger)
1146
+ this.logger.debug("Calling operation MigrationClient#exportMigrationPlan.");
1147
+ const operationName = "exportMigrationPlan";
1148
+ const apiReferenceLink = "";
1149
+ const pathParams = {
1150
+ "{migrationPlanId}": exportMigrationPlanRequest.migrationPlanId
1151
+ };
1152
+ const queryParams = {};
1153
+ let headerParams = {
1154
+ "Content-Type": common.Constants.APPLICATION_JSON,
1155
+ "opc-request-id": exportMigrationPlanRequest.opcRequestId
1156
+ };
1157
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1158
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
1159
+ if (this.logger)
1160
+ retrier.logger = this.logger;
1161
+ const request = yield oci_common_1.composeRequest({
1162
+ baseEndpoint: this._endpoint,
1163
+ defaultHeaders: this._defaultHeaders,
1164
+ path: "/migrationPlans/{migrationPlanId}/actions/export",
1165
+ method: "GET",
1166
+ pathParams: pathParams,
1167
+ headerParams: headerParams,
1168
+ queryParams: queryParams
1169
+ });
1170
+ try {
1171
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1172
+ const sdkResponse = oci_common_1.composeResponse({
1173
+ responseObject: {},
1174
+ body: response.body,
1175
+ bodyKey: "value",
1176
+ bodyModel: "string",
1177
+ responseHeaders: [
1178
+ {
1179
+ value: response.headers.get("opc-request-id"),
1180
+ key: "opcRequestId",
1181
+ dataType: "string"
1182
+ }
1183
+ ]
1184
+ });
1185
+ return sdkResponse;
1186
+ }
1187
+ catch (err) {
1188
+ throw err;
1189
+ }
1190
+ });
1191
+ }
1192
+ /**
1193
+ * Gets a migration by identifier.
1194
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1195
+ * @param GetMigrationRequest
1196
+ * @return GetMigrationResponse
1197
+ * @throws OciError when an error occurs
1198
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetMigration.ts.html |here} to see how to use GetMigration API.
1199
+ */
1200
+ getMigration(getMigrationRequest) {
1201
+ return __awaiter(this, void 0, void 0, function* () {
1202
+ if (this.logger)
1203
+ this.logger.debug("Calling operation MigrationClient#getMigration.");
1204
+ const operationName = "getMigration";
1205
+ const apiReferenceLink = "";
1206
+ const pathParams = {
1207
+ "{migrationId}": getMigrationRequest.migrationId
1208
+ };
1209
+ const queryParams = {};
1210
+ let headerParams = {
1211
+ "Content-Type": common.Constants.APPLICATION_JSON,
1212
+ "opc-request-id": getMigrationRequest.opcRequestId
1213
+ };
1214
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1215
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMigrationRequest.retryConfiguration, specRetryConfiguration);
1216
+ if (this.logger)
1217
+ retrier.logger = this.logger;
1218
+ const request = yield oci_common_1.composeRequest({
1219
+ baseEndpoint: this._endpoint,
1220
+ defaultHeaders: this._defaultHeaders,
1221
+ path: "/migrations/{migrationId}",
1222
+ method: "GET",
1223
+ pathParams: pathParams,
1224
+ headerParams: headerParams,
1225
+ queryParams: queryParams
1226
+ });
1227
+ try {
1228
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1229
+ const sdkResponse = oci_common_1.composeResponse({
1230
+ responseObject: {},
1231
+ body: yield response.json(),
1232
+ bodyKey: "migration",
1233
+ bodyModel: model.Migration,
1234
+ type: "model.Migration",
1235
+ responseHeaders: [
1236
+ {
1237
+ value: response.headers.get("etag"),
1238
+ key: "etag",
1239
+ dataType: "string"
1240
+ },
1241
+ {
1242
+ value: response.headers.get("opc-request-id"),
1243
+ key: "opcRequestId",
1244
+ dataType: "string"
1245
+ }
1246
+ ]
1247
+ });
1248
+ return sdkResponse;
1249
+ }
1250
+ catch (err) {
1251
+ throw err;
1252
+ }
1253
+ });
1254
+ }
1255
+ /**
1256
+ * Gets a migration asset by identifier.
1257
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1258
+ * @param GetMigrationAssetRequest
1259
+ * @return GetMigrationAssetResponse
1260
+ * @throws OciError when an error occurs
1261
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetMigrationAsset.ts.html |here} to see how to use GetMigrationAsset API.
1262
+ */
1263
+ getMigrationAsset(getMigrationAssetRequest) {
1264
+ return __awaiter(this, void 0, void 0, function* () {
1265
+ if (this.logger)
1266
+ this.logger.debug("Calling operation MigrationClient#getMigrationAsset.");
1267
+ const operationName = "getMigrationAsset";
1268
+ const apiReferenceLink = "";
1269
+ const pathParams = {
1270
+ "{migrationAssetId}": getMigrationAssetRequest.migrationAssetId
1271
+ };
1272
+ const queryParams = {};
1273
+ let headerParams = {
1274
+ "Content-Type": common.Constants.APPLICATION_JSON,
1275
+ "opc-request-id": getMigrationAssetRequest.opcRequestId
1276
+ };
1277
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1278
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMigrationAssetRequest.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: "/migrationAssets/{migrationAssetId}",
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: "migrationAsset",
1296
+ bodyModel: model.MigrationAsset,
1297
+ type: "model.MigrationAsset",
1298
+ responseHeaders: [
1299
+ {
1300
+ value: response.headers.get("etag"),
1301
+ key: "etag",
1302
+ dataType: "string"
1303
+ },
1304
+ {
1305
+ value: response.headers.get("opc-request-id"),
1306
+ key: "opcRequestId",
1307
+ dataType: "string"
1308
+ }
1309
+ ]
1310
+ });
1311
+ return sdkResponse;
1312
+ }
1313
+ catch (err) {
1314
+ throw err;
1315
+ }
1316
+ });
1317
+ }
1318
+ /**
1319
+ * Gets a migration plan by identifier.
1320
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1321
+ * @param GetMigrationPlanRequest
1322
+ * @return GetMigrationPlanResponse
1323
+ * @throws OciError when an error occurs
1324
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetMigrationPlan.ts.html |here} to see how to use GetMigrationPlan API.
1325
+ */
1326
+ getMigrationPlan(getMigrationPlanRequest) {
1327
+ return __awaiter(this, void 0, void 0, function* () {
1328
+ if (this.logger)
1329
+ this.logger.debug("Calling operation MigrationClient#getMigrationPlan.");
1330
+ const operationName = "getMigrationPlan";
1331
+ const apiReferenceLink = "";
1332
+ const pathParams = {
1333
+ "{migrationPlanId}": getMigrationPlanRequest.migrationPlanId
1334
+ };
1335
+ const queryParams = {};
1336
+ let headerParams = {
1337
+ "Content-Type": common.Constants.APPLICATION_JSON,
1338
+ "opc-request-id": getMigrationPlanRequest.opcRequestId
1339
+ };
1340
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1341
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
1342
+ if (this.logger)
1343
+ retrier.logger = this.logger;
1344
+ const request = yield oci_common_1.composeRequest({
1345
+ baseEndpoint: this._endpoint,
1346
+ defaultHeaders: this._defaultHeaders,
1347
+ path: "/migrationPlans/{migrationPlanId}",
1348
+ method: "GET",
1349
+ pathParams: pathParams,
1350
+ headerParams: headerParams,
1351
+ queryParams: queryParams
1352
+ });
1353
+ try {
1354
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1355
+ const sdkResponse = oci_common_1.composeResponse({
1356
+ responseObject: {},
1357
+ body: yield response.json(),
1358
+ bodyKey: "migrationPlan",
1359
+ bodyModel: model.MigrationPlan,
1360
+ type: "model.MigrationPlan",
1361
+ responseHeaders: [
1362
+ {
1363
+ value: response.headers.get("etag"),
1364
+ key: "etag",
1365
+ dataType: "string"
1366
+ },
1367
+ {
1368
+ value: response.headers.get("opc-request-id"),
1369
+ key: "opcRequestId",
1370
+ dataType: "string"
1371
+ }
1372
+ ]
1373
+ });
1374
+ return sdkResponse;
1375
+ }
1376
+ catch (err) {
1377
+ throw err;
1378
+ }
1379
+ });
1380
+ }
1381
+ /**
1382
+ * Gets the progress percentage of a migration asset's replication process.
1383
+ *
1384
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1385
+ * @param GetReplicationProgressRequest
1386
+ * @return GetReplicationProgressResponse
1387
+ * @throws OciError when an error occurs
1388
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetReplicationProgress.ts.html |here} to see how to use GetReplicationProgress API.
1389
+ */
1390
+ getReplicationProgress(getReplicationProgressRequest) {
1391
+ return __awaiter(this, void 0, void 0, function* () {
1392
+ if (this.logger)
1393
+ this.logger.debug("Calling operation MigrationClient#getReplicationProgress.");
1394
+ const operationName = "getReplicationProgress";
1395
+ const apiReferenceLink = "";
1396
+ const pathParams = {
1397
+ "{migrationAssetId}": getReplicationProgressRequest.migrationAssetId
1398
+ };
1399
+ const queryParams = {};
1400
+ let headerParams = {
1401
+ "Content-Type": common.Constants.APPLICATION_JSON,
1402
+ "opc-request-id": getReplicationProgressRequest.opcRequestId
1403
+ };
1404
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1405
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationProgressRequest.retryConfiguration, specRetryConfiguration);
1406
+ if (this.logger)
1407
+ retrier.logger = this.logger;
1408
+ const request = yield oci_common_1.composeRequest({
1409
+ baseEndpoint: this._endpoint,
1410
+ defaultHeaders: this._defaultHeaders,
1411
+ path: "/migrationAssets/{migrationAssetId}/actions/replicationProgress",
1412
+ method: "GET",
1413
+ pathParams: pathParams,
1414
+ headerParams: headerParams,
1415
+ queryParams: queryParams
1416
+ });
1417
+ try {
1418
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1419
+ const sdkResponse = oci_common_1.composeResponse({
1420
+ responseObject: {},
1421
+ body: yield response.json(),
1422
+ bodyKey: "replicationProgress",
1423
+ bodyModel: model.ReplicationProgress,
1424
+ type: "model.ReplicationProgress",
1425
+ responseHeaders: [
1426
+ {
1427
+ value: response.headers.get("opc-request-id"),
1428
+ key: "opcRequestId",
1429
+ dataType: "string"
1430
+ }
1431
+ ]
1432
+ });
1433
+ return sdkResponse;
1434
+ }
1435
+ catch (err) {
1436
+ throw err;
1437
+ }
1438
+ });
1439
+ }
1440
+ /**
1441
+ * Gets a replication schedule by identifier.
1442
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1443
+ * @param GetReplicationScheduleRequest
1444
+ * @return GetReplicationScheduleResponse
1445
+ * @throws OciError when an error occurs
1446
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetReplicationSchedule.ts.html |here} to see how to use GetReplicationSchedule API.
1447
+ */
1448
+ getReplicationSchedule(getReplicationScheduleRequest) {
1449
+ return __awaiter(this, void 0, void 0, function* () {
1450
+ if (this.logger)
1451
+ this.logger.debug("Calling operation MigrationClient#getReplicationSchedule.");
1452
+ const operationName = "getReplicationSchedule";
1453
+ const apiReferenceLink = "";
1454
+ const pathParams = {
1455
+ "{replicationScheduleId}": getReplicationScheduleRequest.replicationScheduleId
1456
+ };
1457
+ const queryParams = {};
1458
+ let headerParams = {
1459
+ "Content-Type": common.Constants.APPLICATION_JSON,
1460
+ "opc-request-id": getReplicationScheduleRequest.opcRequestId
1461
+ };
1462
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1463
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationScheduleRequest.retryConfiguration, specRetryConfiguration);
1464
+ if (this.logger)
1465
+ retrier.logger = this.logger;
1466
+ const request = yield oci_common_1.composeRequest({
1467
+ baseEndpoint: this._endpoint,
1468
+ defaultHeaders: this._defaultHeaders,
1469
+ path: "/replicationSchedules/{replicationScheduleId}",
1470
+ method: "GET",
1471
+ pathParams: pathParams,
1472
+ headerParams: headerParams,
1473
+ queryParams: queryParams
1474
+ });
1475
+ try {
1476
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1477
+ const sdkResponse = oci_common_1.composeResponse({
1478
+ responseObject: {},
1479
+ body: yield response.json(),
1480
+ bodyKey: "replicationSchedule",
1481
+ bodyModel: model.ReplicationSchedule,
1482
+ type: "model.ReplicationSchedule",
1483
+ responseHeaders: [
1484
+ {
1485
+ value: response.headers.get("etag"),
1486
+ key: "etag",
1487
+ dataType: "string"
1488
+ },
1489
+ {
1490
+ value: response.headers.get("opc-request-id"),
1491
+ key: "opcRequestId",
1492
+ dataType: "string"
1493
+ }
1494
+ ]
1495
+ });
1496
+ return sdkResponse;
1497
+ }
1498
+ catch (err) {
1499
+ throw err;
1500
+ }
1501
+ });
1502
+ }
1503
+ /**
1504
+ * Gets a target asset by identifier.
1505
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1506
+ * @param GetTargetAssetRequest
1507
+ * @return GetTargetAssetResponse
1508
+ * @throws OciError when an error occurs
1509
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetTargetAsset.ts.html |here} to see how to use GetTargetAsset API.
1510
+ */
1511
+ getTargetAsset(getTargetAssetRequest) {
1512
+ return __awaiter(this, void 0, void 0, function* () {
1513
+ if (this.logger)
1514
+ this.logger.debug("Calling operation MigrationClient#getTargetAsset.");
1515
+ const operationName = "getTargetAsset";
1516
+ const apiReferenceLink = "";
1517
+ const pathParams = {
1518
+ "{targetAssetId}": getTargetAssetRequest.targetAssetId
1519
+ };
1520
+ const queryParams = {};
1521
+ let headerParams = {
1522
+ "Content-Type": common.Constants.APPLICATION_JSON,
1523
+ "opc-request-id": getTargetAssetRequest.opcRequestId
1524
+ };
1525
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1526
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTargetAssetRequest.retryConfiguration, specRetryConfiguration);
1527
+ if (this.logger)
1528
+ retrier.logger = this.logger;
1529
+ const request = yield oci_common_1.composeRequest({
1530
+ baseEndpoint: this._endpoint,
1531
+ defaultHeaders: this._defaultHeaders,
1532
+ path: "/targetAssets/{targetAssetId}",
1533
+ method: "GET",
1534
+ pathParams: pathParams,
1535
+ headerParams: headerParams,
1536
+ queryParams: queryParams
1537
+ });
1538
+ try {
1539
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1540
+ const sdkResponse = oci_common_1.composeResponse({
1541
+ responseObject: {},
1542
+ body: yield response.json(),
1543
+ bodyKey: "targetAsset",
1544
+ bodyModel: model.TargetAsset,
1545
+ type: "model.TargetAsset",
1546
+ responseHeaders: [
1547
+ {
1548
+ value: response.headers.get("etag"),
1549
+ key: "etag",
1550
+ dataType: "string"
1551
+ },
1552
+ {
1553
+ value: response.headers.get("opc-request-id"),
1554
+ key: "opcRequestId",
1555
+ dataType: "string"
1556
+ }
1557
+ ]
1558
+ });
1559
+ return sdkResponse;
1560
+ }
1561
+ catch (err) {
1562
+ throw err;
1563
+ }
1564
+ });
1565
+ }
1566
+ /**
1567
+ * Gets the status of the work request with the given ID.
1568
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1569
+ * @param GetWorkRequestRequest
1570
+ * @return GetWorkRequestResponse
1571
+ * @throws OciError when an error occurs
1572
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1573
+ */
1574
+ getWorkRequest(getWorkRequestRequest) {
1575
+ return __awaiter(this, void 0, void 0, function* () {
1576
+ if (this.logger)
1577
+ this.logger.debug("Calling operation MigrationClient#getWorkRequest.");
1578
+ const operationName = "getWorkRequest";
1579
+ const apiReferenceLink = "";
1580
+ const pathParams = {
1581
+ "{workRequestId}": getWorkRequestRequest.workRequestId
1582
+ };
1583
+ const queryParams = {};
1584
+ let headerParams = {
1585
+ "Content-Type": common.Constants.APPLICATION_JSON,
1586
+ "opc-request-id": getWorkRequestRequest.opcRequestId
1587
+ };
1588
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1589
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1590
+ if (this.logger)
1591
+ retrier.logger = this.logger;
1592
+ const request = yield oci_common_1.composeRequest({
1593
+ baseEndpoint: this._endpoint,
1594
+ defaultHeaders: this._defaultHeaders,
1595
+ path: "/workRequests/{workRequestId}",
1596
+ method: "GET",
1597
+ pathParams: pathParams,
1598
+ headerParams: headerParams,
1599
+ queryParams: queryParams
1600
+ });
1601
+ try {
1602
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1603
+ const sdkResponse = oci_common_1.composeResponse({
1604
+ responseObject: {},
1605
+ body: yield response.json(),
1606
+ bodyKey: "workRequest",
1607
+ bodyModel: model.WorkRequest,
1608
+ type: "model.WorkRequest",
1609
+ responseHeaders: [
1610
+ {
1611
+ value: response.headers.get("etag"),
1612
+ key: "etag",
1613
+ dataType: "string"
1614
+ },
1615
+ {
1616
+ value: response.headers.get("opc-request-id"),
1617
+ key: "opcRequestId",
1618
+ dataType: "string"
1619
+ },
1620
+ {
1621
+ value: response.headers.get("retry-after"),
1622
+ key: "retryAfter",
1623
+ dataType: "number"
1624
+ }
1625
+ ]
1626
+ });
1627
+ return sdkResponse;
1628
+ }
1629
+ catch (err) {
1630
+ throw err;
1631
+ }
1632
+ });
1633
+ }
1634
+ /**
1635
+ * Imports a migration plan from a csv file.
1636
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1637
+ * @param ImportMigrationPlanRequest
1638
+ * @return ImportMigrationPlanResponse
1639
+ * @throws OciError when an error occurs
1640
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ImportMigrationPlan.ts.html |here} to see how to use ImportMigrationPlan API.
1641
+ */
1642
+ importMigrationPlan(importMigrationPlanRequest) {
1643
+ return __awaiter(this, void 0, void 0, function* () {
1644
+ if (this.logger)
1645
+ this.logger.debug("Calling operation MigrationClient#importMigrationPlan.");
1646
+ const operationName = "importMigrationPlan";
1647
+ const apiReferenceLink = "";
1648
+ const pathParams = {
1649
+ "{migrationPlanId}": importMigrationPlanRequest.migrationPlanId
1650
+ };
1651
+ const queryParams = {};
1652
+ let headerParams = {
1653
+ "if-match": importMigrationPlanRequest.ifMatch,
1654
+ "opc-request-id": importMigrationPlanRequest.opcRequestId,
1655
+ "opc-retry-token": importMigrationPlanRequest.opcRetryToken
1656
+ };
1657
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1658
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
1659
+ if (this.logger)
1660
+ retrier.logger = this.logger;
1661
+ const request = yield oci_common_1.composeRequest({
1662
+ baseEndpoint: this._endpoint,
1663
+ defaultHeaders: this._defaultHeaders,
1664
+ path: "/migrationPlans/{migrationPlanId}/actions/import",
1665
+ method: "POST",
1666
+ bodyContent: importMigrationPlanRequest.importMigrationPlanDetails,
1667
+ pathParams: pathParams,
1668
+ headerParams: headerParams,
1669
+ backupBinaryBody: retrier.backUpBinaryBody,
1670
+ queryParams: queryParams
1671
+ });
1672
+ try {
1673
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1674
+ const sdkResponse = oci_common_1.composeResponse({
1675
+ responseObject: {},
1676
+ responseHeaders: [
1677
+ {
1678
+ value: response.headers.get("opc-work-request-id"),
1679
+ key: "opcWorkRequestId",
1680
+ dataType: "string"
1681
+ },
1682
+ {
1683
+ value: response.headers.get("opc-request-id"),
1684
+ key: "opcRequestId",
1685
+ dataType: "string"
1686
+ }
1687
+ ]
1688
+ });
1689
+ return sdkResponse;
1690
+ }
1691
+ catch (err) {
1692
+ throw err;
1693
+ }
1694
+ });
1695
+ }
1696
+ /**
1697
+ * List of shapes by parameters.
1698
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1699
+ * @param ListAvailableShapesRequest
1700
+ * @return ListAvailableShapesResponse
1701
+ * @throws OciError when an error occurs
1702
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListAvailableShapes.ts.html |here} to see how to use ListAvailableShapes API.
1703
+ */
1704
+ listAvailableShapes(listAvailableShapesRequest) {
1705
+ return __awaiter(this, void 0, void 0, function* () {
1706
+ if (this.logger)
1707
+ this.logger.debug("Calling operation MigrationClient#listAvailableShapes.");
1708
+ const operationName = "listAvailableShapes";
1709
+ const apiReferenceLink = "";
1710
+ const pathParams = {
1711
+ "{migrationPlanId}": listAvailableShapesRequest.migrationPlanId
1712
+ };
1713
+ const queryParams = {
1714
+ "compartmentId": listAvailableShapesRequest.compartmentId,
1715
+ "dvhHostId": listAvailableShapesRequest.dvhHostId,
1716
+ "availabilityDomain": listAvailableShapesRequest.availabilityDomain,
1717
+ "reservedCapacityId": listAvailableShapesRequest.reservedCapacityId,
1718
+ "limit": listAvailableShapesRequest.limit,
1719
+ "page": listAvailableShapesRequest.page,
1720
+ "sortOrder": listAvailableShapesRequest.sortOrder,
1721
+ "sortBy": listAvailableShapesRequest.sortBy
1722
+ };
1723
+ let headerParams = {
1724
+ "Content-Type": common.Constants.APPLICATION_JSON,
1725
+ "opc-request-id": listAvailableShapesRequest.opcRequestId
1726
+ };
1727
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1728
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAvailableShapesRequest.retryConfiguration, specRetryConfiguration);
1729
+ if (this.logger)
1730
+ retrier.logger = this.logger;
1731
+ const request = yield oci_common_1.composeRequest({
1732
+ baseEndpoint: this._endpoint,
1733
+ defaultHeaders: this._defaultHeaders,
1734
+ path: "/migrationPlans/{migrationPlanId}/availableShapes",
1735
+ method: "GET",
1736
+ pathParams: pathParams,
1737
+ headerParams: headerParams,
1738
+ queryParams: queryParams
1739
+ });
1740
+ try {
1741
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1742
+ const sdkResponse = oci_common_1.composeResponse({
1743
+ responseObject: {},
1744
+ body: yield response.json(),
1745
+ bodyKey: "availableShapesCollection",
1746
+ bodyModel: model.AvailableShapesCollection,
1747
+ type: "model.AvailableShapesCollection",
1748
+ responseHeaders: [
1749
+ {
1750
+ value: response.headers.get("opc-request-id"),
1751
+ key: "opcRequestId",
1752
+ dataType: "string"
1753
+ },
1754
+ {
1755
+ value: response.headers.get("opc-next-page"),
1756
+ key: "opcNextPage",
1757
+ dataType: "string"
1758
+ }
1759
+ ]
1760
+ });
1761
+ return sdkResponse;
1762
+ }
1763
+ catch (err) {
1764
+ throw err;
1765
+ }
1766
+ });
1767
+ }
1768
+ /**
1769
+ * Returns a list of migration assets.
1770
+ *
1771
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1772
+ * @param ListMigrationAssetsRequest
1773
+ * @return ListMigrationAssetsResponse
1774
+ * @throws OciError when an error occurs
1775
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListMigrationAssets.ts.html |here} to see how to use ListMigrationAssets API.
1776
+ */
1777
+ listMigrationAssets(listMigrationAssetsRequest) {
1778
+ return __awaiter(this, void 0, void 0, function* () {
1779
+ if (this.logger)
1780
+ this.logger.debug("Calling operation MigrationClient#listMigrationAssets.");
1781
+ const operationName = "listMigrationAssets";
1782
+ const apiReferenceLink = "";
1783
+ const pathParams = {};
1784
+ const queryParams = {
1785
+ "migrationId": listMigrationAssetsRequest.migrationId,
1786
+ "displayName": listMigrationAssetsRequest.displayName,
1787
+ "migrationAssetId": listMigrationAssetsRequest.migrationAssetId,
1788
+ "limit": listMigrationAssetsRequest.limit,
1789
+ "page": listMigrationAssetsRequest.page,
1790
+ "lifecycleState": listMigrationAssetsRequest.lifecycleState,
1791
+ "sortOrder": listMigrationAssetsRequest.sortOrder,
1792
+ "sortBy": listMigrationAssetsRequest.sortBy
1793
+ };
1794
+ let headerParams = {
1795
+ "Content-Type": common.Constants.APPLICATION_JSON,
1796
+ "opc-request-id": listMigrationAssetsRequest.opcRequestId
1797
+ };
1798
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1799
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMigrationAssetsRequest.retryConfiguration, specRetryConfiguration);
1800
+ if (this.logger)
1801
+ retrier.logger = this.logger;
1802
+ const request = yield oci_common_1.composeRequest({
1803
+ baseEndpoint: this._endpoint,
1804
+ defaultHeaders: this._defaultHeaders,
1805
+ path: "/migrationAssets",
1806
+ method: "GET",
1807
+ pathParams: pathParams,
1808
+ headerParams: headerParams,
1809
+ queryParams: queryParams
1810
+ });
1811
+ try {
1812
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1813
+ const sdkResponse = oci_common_1.composeResponse({
1814
+ responseObject: {},
1815
+ body: yield response.json(),
1816
+ bodyKey: "migrationAssetCollection",
1817
+ bodyModel: model.MigrationAssetCollection,
1818
+ type: "model.MigrationAssetCollection",
1819
+ responseHeaders: [
1820
+ {
1821
+ value: response.headers.get("opc-request-id"),
1822
+ key: "opcRequestId",
1823
+ dataType: "string"
1824
+ },
1825
+ {
1826
+ value: response.headers.get("opc-next-page"),
1827
+ key: "opcNextPage",
1828
+ dataType: "string"
1829
+ }
1830
+ ]
1831
+ });
1832
+ return sdkResponse;
1833
+ }
1834
+ catch (err) {
1835
+ throw err;
1836
+ }
1837
+ });
1838
+ }
1839
+ /**
1840
+ * Returns a list of migration plans.
1841
+ *
1842
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1843
+ * @param ListMigrationPlansRequest
1844
+ * @return ListMigrationPlansResponse
1845
+ * @throws OciError when an error occurs
1846
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListMigrationPlans.ts.html |here} to see how to use ListMigrationPlans API.
1847
+ */
1848
+ listMigrationPlans(listMigrationPlansRequest) {
1849
+ return __awaiter(this, void 0, void 0, function* () {
1850
+ if (this.logger)
1851
+ this.logger.debug("Calling operation MigrationClient#listMigrationPlans.");
1852
+ const operationName = "listMigrationPlans";
1853
+ const apiReferenceLink = "";
1854
+ const pathParams = {};
1855
+ const queryParams = {
1856
+ "compartmentId": listMigrationPlansRequest.compartmentId,
1857
+ "migrationId": listMigrationPlansRequest.migrationId,
1858
+ "displayName": listMigrationPlansRequest.displayName,
1859
+ "migrationPlanId": listMigrationPlansRequest.migrationPlanId,
1860
+ "limit": listMigrationPlansRequest.limit,
1861
+ "page": listMigrationPlansRequest.page,
1862
+ "lifecycleState": listMigrationPlansRequest.lifecycleState,
1863
+ "sortOrder": listMigrationPlansRequest.sortOrder,
1864
+ "sortBy": listMigrationPlansRequest.sortBy
1865
+ };
1866
+ let headerParams = {
1867
+ "Content-Type": common.Constants.APPLICATION_JSON,
1868
+ "opc-request-id": listMigrationPlansRequest.opcRequestId
1869
+ };
1870
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1871
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMigrationPlansRequest.retryConfiguration, specRetryConfiguration);
1872
+ if (this.logger)
1873
+ retrier.logger = this.logger;
1874
+ const request = yield oci_common_1.composeRequest({
1875
+ baseEndpoint: this._endpoint,
1876
+ defaultHeaders: this._defaultHeaders,
1877
+ path: "/migrationPlans",
1878
+ method: "GET",
1879
+ pathParams: pathParams,
1880
+ headerParams: headerParams,
1881
+ queryParams: queryParams
1882
+ });
1883
+ try {
1884
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1885
+ const sdkResponse = oci_common_1.composeResponse({
1886
+ responseObject: {},
1887
+ body: yield response.json(),
1888
+ bodyKey: "migrationPlanCollection",
1889
+ bodyModel: model.MigrationPlanCollection,
1890
+ type: "model.MigrationPlanCollection",
1891
+ responseHeaders: [
1892
+ {
1893
+ value: response.headers.get("opc-request-id"),
1894
+ key: "opcRequestId",
1895
+ dataType: "string"
1896
+ },
1897
+ {
1898
+ value: response.headers.get("opc-next-page"),
1899
+ key: "opcNextPage",
1900
+ dataType: "string"
1901
+ }
1902
+ ]
1903
+ });
1904
+ return sdkResponse;
1905
+ }
1906
+ catch (err) {
1907
+ throw err;
1908
+ }
1909
+ });
1910
+ }
1911
+ /**
1912
+ * Returns a list of migrations.
1913
+ *
1914
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1915
+ * @param ListMigrationsRequest
1916
+ * @return ListMigrationsResponse
1917
+ * @throws OciError when an error occurs
1918
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListMigrations.ts.html |here} to see how to use ListMigrations API.
1919
+ */
1920
+ listMigrations(listMigrationsRequest) {
1921
+ return __awaiter(this, void 0, void 0, function* () {
1922
+ if (this.logger)
1923
+ this.logger.debug("Calling operation MigrationClient#listMigrations.");
1924
+ const operationName = "listMigrations";
1925
+ const apiReferenceLink = "";
1926
+ const pathParams = {};
1927
+ const queryParams = {
1928
+ "compartmentId": listMigrationsRequest.compartmentId,
1929
+ "lifecycleState": listMigrationsRequest.lifecycleState,
1930
+ "displayName": listMigrationsRequest.displayName,
1931
+ "migrationId": listMigrationsRequest.migrationId,
1932
+ "limit": listMigrationsRequest.limit,
1933
+ "page": listMigrationsRequest.page,
1934
+ "sortOrder": listMigrationsRequest.sortOrder,
1935
+ "sortBy": listMigrationsRequest.sortBy
1936
+ };
1937
+ let headerParams = {
1938
+ "Content-Type": common.Constants.APPLICATION_JSON,
1939
+ "opc-request-id": listMigrationsRequest.opcRequestId
1940
+ };
1941
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1942
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMigrationsRequest.retryConfiguration, specRetryConfiguration);
1943
+ if (this.logger)
1944
+ retrier.logger = this.logger;
1945
+ const request = yield oci_common_1.composeRequest({
1946
+ baseEndpoint: this._endpoint,
1947
+ defaultHeaders: this._defaultHeaders,
1948
+ path: "/migrations",
1949
+ method: "GET",
1950
+ pathParams: pathParams,
1951
+ headerParams: headerParams,
1952
+ queryParams: queryParams
1953
+ });
1954
+ try {
1955
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1956
+ const sdkResponse = oci_common_1.composeResponse({
1957
+ responseObject: {},
1958
+ body: yield response.json(),
1959
+ bodyKey: "migrationCollection",
1960
+ bodyModel: model.MigrationCollection,
1961
+ type: "model.MigrationCollection",
1962
+ responseHeaders: [
1963
+ {
1964
+ value: response.headers.get("opc-request-id"),
1965
+ key: "opcRequestId",
1966
+ dataType: "string"
1967
+ },
1968
+ {
1969
+ value: response.headers.get("opc-next-page"),
1970
+ key: "opcNextPage",
1971
+ dataType: "string"
1972
+ }
1973
+ ]
1974
+ });
1975
+ return sdkResponse;
1976
+ }
1977
+ catch (err) {
1978
+ throw err;
1979
+ }
1980
+ });
1981
+ }
1982
+ /**
1983
+ * Returns a list of replication schedules.
1984
+ *
1985
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1986
+ * @param ListReplicationSchedulesRequest
1987
+ * @return ListReplicationSchedulesResponse
1988
+ * @throws OciError when an error occurs
1989
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListReplicationSchedules.ts.html |here} to see how to use ListReplicationSchedules API.
1990
+ */
1991
+ listReplicationSchedules(listReplicationSchedulesRequest) {
1992
+ return __awaiter(this, void 0, void 0, function* () {
1993
+ if (this.logger)
1994
+ this.logger.debug("Calling operation MigrationClient#listReplicationSchedules.");
1995
+ const operationName = "listReplicationSchedules";
1996
+ const apiReferenceLink = "";
1997
+ const pathParams = {};
1998
+ const queryParams = {
1999
+ "compartmentId": listReplicationSchedulesRequest.compartmentId,
2000
+ "lifecycleState": listReplicationSchedulesRequest.lifecycleState,
2001
+ "displayName": listReplicationSchedulesRequest.displayName,
2002
+ "replicationScheduleId": listReplicationSchedulesRequest.replicationScheduleId,
2003
+ "limit": listReplicationSchedulesRequest.limit,
2004
+ "page": listReplicationSchedulesRequest.page,
2005
+ "sortOrder": listReplicationSchedulesRequest.sortOrder,
2006
+ "sortBy": listReplicationSchedulesRequest.sortBy
2007
+ };
2008
+ let headerParams = {
2009
+ "Content-Type": common.Constants.APPLICATION_JSON,
2010
+ "opc-request-id": listReplicationSchedulesRequest.opcRequestId
2011
+ };
2012
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2013
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationSchedulesRequest.retryConfiguration, specRetryConfiguration);
2014
+ if (this.logger)
2015
+ retrier.logger = this.logger;
2016
+ const request = yield oci_common_1.composeRequest({
2017
+ baseEndpoint: this._endpoint,
2018
+ defaultHeaders: this._defaultHeaders,
2019
+ path: "/replicationSchedules",
2020
+ method: "GET",
2021
+ pathParams: pathParams,
2022
+ headerParams: headerParams,
2023
+ queryParams: queryParams
2024
+ });
2025
+ try {
2026
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2027
+ const sdkResponse = oci_common_1.composeResponse({
2028
+ responseObject: {},
2029
+ body: yield response.json(),
2030
+ bodyKey: "replicationScheduleCollection",
2031
+ bodyModel: model.ReplicationScheduleCollection,
2032
+ type: "model.ReplicationScheduleCollection",
2033
+ responseHeaders: [
2034
+ {
2035
+ value: response.headers.get("opc-request-id"),
2036
+ key: "opcRequestId",
2037
+ dataType: "string"
2038
+ },
2039
+ {
2040
+ value: response.headers.get("opc-next-page"),
2041
+ key: "opcNextPage",
2042
+ dataType: "string"
2043
+ }
2044
+ ]
2045
+ });
2046
+ return sdkResponse;
2047
+ }
2048
+ catch (err) {
2049
+ throw err;
2050
+ }
2051
+ });
2052
+ }
2053
+ /**
2054
+ * Returns a list of target assets.
2055
+ *
2056
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2057
+ * @param ListTargetAssetsRequest
2058
+ * @return ListTargetAssetsResponse
2059
+ * @throws OciError when an error occurs
2060
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListTargetAssets.ts.html |here} to see how to use ListTargetAssets API.
2061
+ */
2062
+ listTargetAssets(listTargetAssetsRequest) {
2063
+ return __awaiter(this, void 0, void 0, function* () {
2064
+ if (this.logger)
2065
+ this.logger.debug("Calling operation MigrationClient#listTargetAssets.");
2066
+ const operationName = "listTargetAssets";
2067
+ const apiReferenceLink = "";
2068
+ const pathParams = {};
2069
+ const queryParams = {
2070
+ "migrationPlanId": listTargetAssetsRequest.migrationPlanId,
2071
+ "displayName": listTargetAssetsRequest.displayName,
2072
+ "targetAssetId": listTargetAssetsRequest.targetAssetId,
2073
+ "limit": listTargetAssetsRequest.limit,
2074
+ "page": listTargetAssetsRequest.page,
2075
+ "lifecycleState": listTargetAssetsRequest.lifecycleState,
2076
+ "sortOrder": listTargetAssetsRequest.sortOrder,
2077
+ "sortBy": listTargetAssetsRequest.sortBy
2078
+ };
2079
+ let headerParams = {
2080
+ "Content-Type": common.Constants.APPLICATION_JSON,
2081
+ "opc-request-id": listTargetAssetsRequest.opcRequestId
2082
+ };
2083
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2084
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTargetAssetsRequest.retryConfiguration, specRetryConfiguration);
2085
+ if (this.logger)
2086
+ retrier.logger = this.logger;
2087
+ const request = yield oci_common_1.composeRequest({
2088
+ baseEndpoint: this._endpoint,
2089
+ defaultHeaders: this._defaultHeaders,
2090
+ path: "/targetAssets",
2091
+ method: "GET",
2092
+ pathParams: pathParams,
2093
+ headerParams: headerParams,
2094
+ queryParams: queryParams
2095
+ });
2096
+ try {
2097
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2098
+ const sdkResponse = oci_common_1.composeResponse({
2099
+ responseObject: {},
2100
+ body: yield response.json(),
2101
+ bodyKey: "targetAssetCollection",
2102
+ bodyModel: model.TargetAssetCollection,
2103
+ type: "model.TargetAssetCollection",
2104
+ responseHeaders: [
2105
+ {
2106
+ value: response.headers.get("opc-request-id"),
2107
+ key: "opcRequestId",
2108
+ dataType: "string"
2109
+ },
2110
+ {
2111
+ value: response.headers.get("opc-next-page"),
2112
+ key: "opcNextPage",
2113
+ dataType: "string"
2114
+ }
2115
+ ]
2116
+ });
2117
+ return sdkResponse;
2118
+ }
2119
+ catch (err) {
2120
+ throw err;
2121
+ }
2122
+ });
2123
+ }
2124
+ /**
2125
+ * Returns a paginated list of errors for a given work request.
2126
+ *
2127
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2128
+ * @param ListWorkRequestErrorsRequest
2129
+ * @return ListWorkRequestErrorsResponse
2130
+ * @throws OciError when an error occurs
2131
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2132
+ */
2133
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
2134
+ return __awaiter(this, void 0, void 0, function* () {
2135
+ if (this.logger)
2136
+ this.logger.debug("Calling operation MigrationClient#listWorkRequestErrors.");
2137
+ const operationName = "listWorkRequestErrors";
2138
+ const apiReferenceLink = "";
2139
+ const pathParams = {
2140
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
2141
+ };
2142
+ const queryParams = {
2143
+ "page": listWorkRequestErrorsRequest.page,
2144
+ "limit": listWorkRequestErrorsRequest.limit,
2145
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
2146
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
2147
+ };
2148
+ let headerParams = {
2149
+ "Content-Type": common.Constants.APPLICATION_JSON,
2150
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
2151
+ };
2152
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2153
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2154
+ if (this.logger)
2155
+ retrier.logger = this.logger;
2156
+ const request = yield oci_common_1.composeRequest({
2157
+ baseEndpoint: this._endpoint,
2158
+ defaultHeaders: this._defaultHeaders,
2159
+ path: "/workRequests/{workRequestId}/errors",
2160
+ method: "GET",
2161
+ pathParams: pathParams,
2162
+ headerParams: headerParams,
2163
+ queryParams: queryParams
2164
+ });
2165
+ try {
2166
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2167
+ const sdkResponse = oci_common_1.composeResponse({
2168
+ responseObject: {},
2169
+ body: yield response.json(),
2170
+ bodyKey: "workRequestErrorCollection",
2171
+ bodyModel: model.WorkRequestErrorCollection,
2172
+ type: "model.WorkRequestErrorCollection",
2173
+ responseHeaders: [
2174
+ {
2175
+ value: response.headers.get("opc-next-page"),
2176
+ key: "opcNextPage",
2177
+ dataType: "string"
2178
+ },
2179
+ {
2180
+ value: response.headers.get("opc-request-id"),
2181
+ key: "opcRequestId",
2182
+ dataType: "string"
2183
+ }
2184
+ ]
2185
+ });
2186
+ return sdkResponse;
2187
+ }
2188
+ catch (err) {
2189
+ throw err;
2190
+ }
2191
+ });
2192
+ }
2193
+ /**
2194
+ * Returns a paginated list of logs for a given work request.
2195
+ *
2196
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2197
+ * @param ListWorkRequestLogsRequest
2198
+ * @return ListWorkRequestLogsResponse
2199
+ * @throws OciError when an error occurs
2200
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2201
+ */
2202
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
2203
+ return __awaiter(this, void 0, void 0, function* () {
2204
+ if (this.logger)
2205
+ this.logger.debug("Calling operation MigrationClient#listWorkRequestLogs.");
2206
+ const operationName = "listWorkRequestLogs";
2207
+ const apiReferenceLink = "";
2208
+ const pathParams = {
2209
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
2210
+ };
2211
+ const queryParams = {
2212
+ "page": listWorkRequestLogsRequest.page,
2213
+ "limit": listWorkRequestLogsRequest.limit,
2214
+ "sortBy": listWorkRequestLogsRequest.sortBy,
2215
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
2216
+ };
2217
+ let headerParams = {
2218
+ "Content-Type": common.Constants.APPLICATION_JSON,
2219
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
2220
+ };
2221
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2222
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2223
+ if (this.logger)
2224
+ retrier.logger = this.logger;
2225
+ const request = yield oci_common_1.composeRequest({
2226
+ baseEndpoint: this._endpoint,
2227
+ defaultHeaders: this._defaultHeaders,
2228
+ path: "/workRequests/{workRequestId}/logs",
2229
+ method: "GET",
2230
+ pathParams: pathParams,
2231
+ headerParams: headerParams,
2232
+ queryParams: queryParams
2233
+ });
2234
+ try {
2235
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2236
+ const sdkResponse = oci_common_1.composeResponse({
2237
+ responseObject: {},
2238
+ body: yield response.json(),
2239
+ bodyKey: "workRequestLogEntryCollection",
2240
+ bodyModel: model.WorkRequestLogEntryCollection,
2241
+ type: "model.WorkRequestLogEntryCollection",
2242
+ responseHeaders: [
2243
+ {
2244
+ value: response.headers.get("opc-next-page"),
2245
+ key: "opcNextPage",
2246
+ dataType: "string"
2247
+ },
2248
+ {
2249
+ value: response.headers.get("opc-request-id"),
2250
+ key: "opcRequestId",
2251
+ dataType: "string"
2252
+ }
2253
+ ]
2254
+ });
2255
+ return sdkResponse;
2256
+ }
2257
+ catch (err) {
2258
+ throw err;
2259
+ }
2260
+ });
2261
+ }
2262
+ /**
2263
+ * List of work requests in a compartment.
2264
+ *
2265
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2266
+ * @param ListWorkRequestsRequest
2267
+ * @return ListWorkRequestsResponse
2268
+ * @throws OciError when an error occurs
2269
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2270
+ */
2271
+ listWorkRequests(listWorkRequestsRequest) {
2272
+ return __awaiter(this, void 0, void 0, function* () {
2273
+ if (this.logger)
2274
+ this.logger.debug("Calling operation MigrationClient#listWorkRequests.");
2275
+ const operationName = "listWorkRequests";
2276
+ const apiReferenceLink = "";
2277
+ const pathParams = {};
2278
+ const queryParams = {
2279
+ "compartmentId": listWorkRequestsRequest.compartmentId,
2280
+ "workRequestId": listWorkRequestsRequest.workRequestId,
2281
+ "status": listWorkRequestsRequest.status,
2282
+ "operationType": listWorkRequestsRequest.operationType,
2283
+ "resourceId": listWorkRequestsRequest.resourceId,
2284
+ "page": listWorkRequestsRequest.page,
2285
+ "limit": listWorkRequestsRequest.limit,
2286
+ "sortOrder": listWorkRequestsRequest.sortOrder,
2287
+ "sortBy": listWorkRequestsRequest.sortBy
2288
+ };
2289
+ let headerParams = {
2290
+ "Content-Type": common.Constants.APPLICATION_JSON,
2291
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
2292
+ };
2293
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2294
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2295
+ if (this.logger)
2296
+ retrier.logger = this.logger;
2297
+ const request = yield oci_common_1.composeRequest({
2298
+ baseEndpoint: this._endpoint,
2299
+ defaultHeaders: this._defaultHeaders,
2300
+ path: "/workRequests",
2301
+ method: "GET",
2302
+ pathParams: pathParams,
2303
+ headerParams: headerParams,
2304
+ queryParams: queryParams
2305
+ });
2306
+ try {
2307
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2308
+ const sdkResponse = oci_common_1.composeResponse({
2309
+ responseObject: {},
2310
+ body: yield response.json(),
2311
+ bodyKey: "workRequestSummaryCollection",
2312
+ bodyModel: model.WorkRequestSummaryCollection,
2313
+ type: "model.WorkRequestSummaryCollection",
2314
+ responseHeaders: [
2315
+ {
2316
+ value: response.headers.get("opc-request-id"),
2317
+ key: "opcRequestId",
2318
+ dataType: "string"
2319
+ },
2320
+ {
2321
+ value: response.headers.get("opc-next-page"),
2322
+ key: "opcNextPage",
2323
+ dataType: "string"
2324
+ }
2325
+ ]
2326
+ });
2327
+ return sdkResponse;
2328
+ }
2329
+ catch (err) {
2330
+ throw err;
2331
+ }
2332
+ });
2333
+ }
2334
+ /**
2335
+ * Refreshes migration based on the migration ID.
2336
+ *
2337
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2338
+ * @param RefreshMigrationRequest
2339
+ * @return RefreshMigrationResponse
2340
+ * @throws OciError when an error occurs
2341
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/RefreshMigration.ts.html |here} to see how to use RefreshMigration API.
2342
+ */
2343
+ refreshMigration(refreshMigrationRequest) {
2344
+ return __awaiter(this, void 0, void 0, function* () {
2345
+ if (this.logger)
2346
+ this.logger.debug("Calling operation MigrationClient#refreshMigration.");
2347
+ const operationName = "refreshMigration";
2348
+ const apiReferenceLink = "";
2349
+ const pathParams = {
2350
+ "{migrationId}": refreshMigrationRequest.migrationId
2351
+ };
2352
+ const queryParams = {};
2353
+ let headerParams = {
2354
+ "Content-Type": common.Constants.APPLICATION_JSON,
2355
+ "if-match": refreshMigrationRequest.ifMatch,
2356
+ "opc-request-id": refreshMigrationRequest.opcRequestId,
2357
+ "opc-retry-token": refreshMigrationRequest.opcRetryToken
2358
+ };
2359
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2360
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshMigrationRequest.retryConfiguration, specRetryConfiguration);
2361
+ if (this.logger)
2362
+ retrier.logger = this.logger;
2363
+ const request = yield oci_common_1.composeRequest({
2364
+ baseEndpoint: this._endpoint,
2365
+ defaultHeaders: this._defaultHeaders,
2366
+ path: "/migrations/{migrationId}/actions/refresh",
2367
+ method: "POST",
2368
+ pathParams: pathParams,
2369
+ headerParams: headerParams,
2370
+ queryParams: queryParams
2371
+ });
2372
+ try {
2373
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2374
+ const sdkResponse = oci_common_1.composeResponse({
2375
+ responseObject: {},
2376
+ responseHeaders: [
2377
+ {
2378
+ value: response.headers.get("opc-work-request-id"),
2379
+ key: "opcWorkRequestId",
2380
+ dataType: "string"
2381
+ },
2382
+ {
2383
+ value: response.headers.get("opc-request-id"),
2384
+ key: "opcRequestId",
2385
+ dataType: "string"
2386
+ }
2387
+ ]
2388
+ });
2389
+ return sdkResponse;
2390
+ }
2391
+ catch (err) {
2392
+ throw err;
2393
+ }
2394
+ });
2395
+ }
2396
+ /**
2397
+ * Refreshes the migration asset with the migration asset ID.
2398
+ *
2399
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2400
+ * @param RefreshMigrationAssetRequest
2401
+ * @return RefreshMigrationAssetResponse
2402
+ * @throws OciError when an error occurs
2403
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/RefreshMigrationAsset.ts.html |here} to see how to use RefreshMigrationAsset API.
2404
+ */
2405
+ refreshMigrationAsset(refreshMigrationAssetRequest) {
2406
+ return __awaiter(this, void 0, void 0, function* () {
2407
+ if (this.logger)
2408
+ this.logger.debug("Calling operation MigrationClient#refreshMigrationAsset.");
2409
+ const operationName = "refreshMigrationAsset";
2410
+ const apiReferenceLink = "";
2411
+ const pathParams = {
2412
+ "{migrationAssetId}": refreshMigrationAssetRequest.migrationAssetId
2413
+ };
2414
+ const queryParams = {};
2415
+ let headerParams = {
2416
+ "Content-Type": common.Constants.APPLICATION_JSON,
2417
+ "if-match": refreshMigrationAssetRequest.ifMatch,
2418
+ "opc-request-id": refreshMigrationAssetRequest.opcRequestId,
2419
+ "opc-retry-token": refreshMigrationAssetRequest.opcRetryToken
2420
+ };
2421
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2422
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshMigrationAssetRequest.retryConfiguration, specRetryConfiguration);
2423
+ if (this.logger)
2424
+ retrier.logger = this.logger;
2425
+ const request = yield oci_common_1.composeRequest({
2426
+ baseEndpoint: this._endpoint,
2427
+ defaultHeaders: this._defaultHeaders,
2428
+ path: "/migrationAssets/{migrationAssetId}/actions/refresh",
2429
+ method: "POST",
2430
+ pathParams: pathParams,
2431
+ headerParams: headerParams,
2432
+ queryParams: queryParams
2433
+ });
2434
+ try {
2435
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2436
+ const sdkResponse = oci_common_1.composeResponse({
2437
+ responseObject: {},
2438
+ responseHeaders: [
2439
+ {
2440
+ value: response.headers.get("opc-work-request-id"),
2441
+ key: "opcWorkRequestId",
2442
+ dataType: "string"
2443
+ },
2444
+ {
2445
+ value: response.headers.get("opc-request-id"),
2446
+ key: "opcRequestId",
2447
+ dataType: "string"
2448
+ }
2449
+ ]
2450
+ });
2451
+ return sdkResponse;
2452
+ }
2453
+ catch (err) {
2454
+ throw err;
2455
+ }
2456
+ });
2457
+ }
2458
+ /**
2459
+ * Refreshes the migration plan with the migration plan ID.
2460
+ *
2461
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2462
+ * @param RefreshMigrationPlanRequest
2463
+ * @return RefreshMigrationPlanResponse
2464
+ * @throws OciError when an error occurs
2465
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/RefreshMigrationPlan.ts.html |here} to see how to use RefreshMigrationPlan API.
2466
+ */
2467
+ refreshMigrationPlan(refreshMigrationPlanRequest) {
2468
+ return __awaiter(this, void 0, void 0, function* () {
2469
+ if (this.logger)
2470
+ this.logger.debug("Calling operation MigrationClient#refreshMigrationPlan.");
2471
+ const operationName = "refreshMigrationPlan";
2472
+ const apiReferenceLink = "";
2473
+ const pathParams = {
2474
+ "{migrationPlanId}": refreshMigrationPlanRequest.migrationPlanId
2475
+ };
2476
+ const queryParams = {};
2477
+ let headerParams = {
2478
+ "Content-Type": common.Constants.APPLICATION_JSON,
2479
+ "if-match": refreshMigrationPlanRequest.ifMatch,
2480
+ "opc-request-id": refreshMigrationPlanRequest.opcRequestId,
2481
+ "opc-retry-token": refreshMigrationPlanRequest.opcRetryToken
2482
+ };
2483
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2484
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
2485
+ if (this.logger)
2486
+ retrier.logger = this.logger;
2487
+ const request = yield oci_common_1.composeRequest({
2488
+ baseEndpoint: this._endpoint,
2489
+ defaultHeaders: this._defaultHeaders,
2490
+ path: "/migrationPlans/{migrationPlanId}/actions/refresh",
2491
+ method: "POST",
2492
+ pathParams: pathParams,
2493
+ headerParams: headerParams,
2494
+ queryParams: queryParams
2495
+ });
2496
+ try {
2497
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2498
+ const sdkResponse = oci_common_1.composeResponse({
2499
+ responseObject: {},
2500
+ responseHeaders: [
2501
+ {
2502
+ value: response.headers.get("opc-work-request-id"),
2503
+ key: "opcWorkRequestId",
2504
+ dataType: "string"
2505
+ },
2506
+ {
2507
+ value: response.headers.get("opc-request-id"),
2508
+ key: "opcRequestId",
2509
+ dataType: "string"
2510
+ }
2511
+ ]
2512
+ });
2513
+ return sdkResponse;
2514
+ }
2515
+ catch (err) {
2516
+ throw err;
2517
+ }
2518
+ });
2519
+ }
2520
+ /**
2521
+ * Starts replication for the asset with the migration asset ID.
2522
+ *
2523
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2524
+ * @param StartAssetReplicationRequest
2525
+ * @return StartAssetReplicationResponse
2526
+ * @throws OciError when an error occurs
2527
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/StartAssetReplication.ts.html |here} to see how to use StartAssetReplication API.
2528
+ */
2529
+ startAssetReplication(startAssetReplicationRequest) {
2530
+ return __awaiter(this, void 0, void 0, function* () {
2531
+ if (this.logger)
2532
+ this.logger.debug("Calling operation MigrationClient#startAssetReplication.");
2533
+ const operationName = "startAssetReplication";
2534
+ const apiReferenceLink = "";
2535
+ const pathParams = {
2536
+ "{migrationAssetId}": startAssetReplicationRequest.migrationAssetId
2537
+ };
2538
+ const queryParams = {};
2539
+ let headerParams = {
2540
+ "Content-Type": common.Constants.APPLICATION_JSON,
2541
+ "if-match": startAssetReplicationRequest.ifMatch,
2542
+ "opc-request-id": startAssetReplicationRequest.opcRequestId,
2543
+ "opc-retry-token": startAssetReplicationRequest.opcRetryToken
2544
+ };
2545
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2546
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startAssetReplicationRequest.retryConfiguration, specRetryConfiguration);
2547
+ if (this.logger)
2548
+ retrier.logger = this.logger;
2549
+ const request = yield oci_common_1.composeRequest({
2550
+ baseEndpoint: this._endpoint,
2551
+ defaultHeaders: this._defaultHeaders,
2552
+ path: "/migrationAssets/{migrationAssetId}/actions/startAssetReplication",
2553
+ method: "POST",
2554
+ pathParams: pathParams,
2555
+ headerParams: headerParams,
2556
+ queryParams: queryParams
2557
+ });
2558
+ try {
2559
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2560
+ const sdkResponse = oci_common_1.composeResponse({
2561
+ responseObject: {},
2562
+ responseHeaders: [
2563
+ {
2564
+ value: response.headers.get("opc-work-request-id"),
2565
+ key: "opcWorkRequestId",
2566
+ dataType: "string"
2567
+ },
2568
+ {
2569
+ value: response.headers.get("opc-request-id"),
2570
+ key: "opcRequestId",
2571
+ dataType: "string"
2572
+ }
2573
+ ]
2574
+ });
2575
+ return sdkResponse;
2576
+ }
2577
+ catch (err) {
2578
+ throw err;
2579
+ }
2580
+ });
2581
+ }
2582
+ /**
2583
+ * Starts replication for a migration or for some asset.
2584
+ *
2585
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2586
+ * @param StartMigrationReplicationRequest
2587
+ * @return StartMigrationReplicationResponse
2588
+ * @throws OciError when an error occurs
2589
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/StartMigrationReplication.ts.html |here} to see how to use StartMigrationReplication API.
2590
+ */
2591
+ startMigrationReplication(startMigrationReplicationRequest) {
2592
+ return __awaiter(this, void 0, void 0, function* () {
2593
+ if (this.logger)
2594
+ this.logger.debug("Calling operation MigrationClient#startMigrationReplication.");
2595
+ const operationName = "startMigrationReplication";
2596
+ const apiReferenceLink = "";
2597
+ const pathParams = {
2598
+ "{migrationId}": startMigrationReplicationRequest.migrationId
2599
+ };
2600
+ const queryParams = {};
2601
+ let headerParams = {
2602
+ "Content-Type": common.Constants.APPLICATION_JSON,
2603
+ "if-match": startMigrationReplicationRequest.ifMatch,
2604
+ "opc-request-id": startMigrationReplicationRequest.opcRequestId,
2605
+ "opc-retry-token": startMigrationReplicationRequest.opcRetryToken
2606
+ };
2607
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2608
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startMigrationReplicationRequest.retryConfiguration, specRetryConfiguration);
2609
+ if (this.logger)
2610
+ retrier.logger = this.logger;
2611
+ const request = yield oci_common_1.composeRequest({
2612
+ baseEndpoint: this._endpoint,
2613
+ defaultHeaders: this._defaultHeaders,
2614
+ path: "/migrations/{migrationId}/actions/startMigrationReplication",
2615
+ method: "POST",
2616
+ pathParams: pathParams,
2617
+ headerParams: headerParams,
2618
+ queryParams: queryParams
2619
+ });
2620
+ try {
2621
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2622
+ const sdkResponse = oci_common_1.composeResponse({
2623
+ responseObject: {},
2624
+ responseHeaders: [
2625
+ {
2626
+ value: response.headers.get("opc-work-request-id"),
2627
+ key: "opcWorkRequestId",
2628
+ dataType: "string"
2629
+ },
2630
+ {
2631
+ value: response.headers.get("opc-request-id"),
2632
+ key: "opcRequestId",
2633
+ dataType: "string"
2634
+ }
2635
+ ]
2636
+ });
2637
+ return sdkResponse;
2638
+ }
2639
+ catch (err) {
2640
+ throw err;
2641
+ }
2642
+ });
2643
+ }
2644
+ /**
2645
+ * Updates the migration.
2646
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2647
+ * @param UpdateMigrationRequest
2648
+ * @return UpdateMigrationResponse
2649
+ * @throws OciError when an error occurs
2650
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/UpdateMigration.ts.html |here} to see how to use UpdateMigration API.
2651
+ */
2652
+ updateMigration(updateMigrationRequest) {
2653
+ return __awaiter(this, void 0, void 0, function* () {
2654
+ if (this.logger)
2655
+ this.logger.debug("Calling operation MigrationClient#updateMigration.");
2656
+ const operationName = "updateMigration";
2657
+ const apiReferenceLink = "";
2658
+ const pathParams = {
2659
+ "{migrationId}": updateMigrationRequest.migrationId
2660
+ };
2661
+ const queryParams = {};
2662
+ let headerParams = {
2663
+ "Content-Type": common.Constants.APPLICATION_JSON,
2664
+ "if-match": updateMigrationRequest.ifMatch,
2665
+ "opc-request-id": updateMigrationRequest.opcRequestId
2666
+ };
2667
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2668
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMigrationRequest.retryConfiguration, specRetryConfiguration);
2669
+ if (this.logger)
2670
+ retrier.logger = this.logger;
2671
+ const request = yield oci_common_1.composeRequest({
2672
+ baseEndpoint: this._endpoint,
2673
+ defaultHeaders: this._defaultHeaders,
2674
+ path: "/migrations/{migrationId}",
2675
+ method: "PUT",
2676
+ bodyContent: common.ObjectSerializer.serialize(updateMigrationRequest.updateMigrationDetails, "UpdateMigrationDetails", model.UpdateMigrationDetails.getJsonObj),
2677
+ pathParams: pathParams,
2678
+ headerParams: headerParams,
2679
+ queryParams: queryParams
2680
+ });
2681
+ try {
2682
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2683
+ const sdkResponse = oci_common_1.composeResponse({
2684
+ responseObject: {},
2685
+ body: yield response.json(),
2686
+ bodyKey: "migration",
2687
+ bodyModel: model.Migration,
2688
+ type: "model.Migration",
2689
+ responseHeaders: [
2690
+ {
2691
+ value: response.headers.get("etag"),
2692
+ key: "etag",
2693
+ dataType: "string"
2694
+ },
2695
+ {
2696
+ value: response.headers.get("opc-request-id"),
2697
+ key: "opcRequestId",
2698
+ dataType: "string"
2699
+ }
2700
+ ]
2701
+ });
2702
+ return sdkResponse;
2703
+ }
2704
+ catch (err) {
2705
+ throw err;
2706
+ }
2707
+ });
2708
+ }
2709
+ /**
2710
+ * Updates the migration asset.
2711
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2712
+ * @param UpdateMigrationAssetRequest
2713
+ * @return UpdateMigrationAssetResponse
2714
+ * @throws OciError when an error occurs
2715
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/UpdateMigrationAsset.ts.html |here} to see how to use UpdateMigrationAsset API.
2716
+ */
2717
+ updateMigrationAsset(updateMigrationAssetRequest) {
2718
+ return __awaiter(this, void 0, void 0, function* () {
2719
+ if (this.logger)
2720
+ this.logger.debug("Calling operation MigrationClient#updateMigrationAsset.");
2721
+ const operationName = "updateMigrationAsset";
2722
+ const apiReferenceLink = "";
2723
+ const pathParams = {
2724
+ "{migrationAssetId}": updateMigrationAssetRequest.migrationAssetId
2725
+ };
2726
+ const queryParams = {};
2727
+ let headerParams = {
2728
+ "Content-Type": common.Constants.APPLICATION_JSON,
2729
+ "if-match": updateMigrationAssetRequest.ifMatch,
2730
+ "opc-request-id": updateMigrationAssetRequest.opcRequestId
2731
+ };
2732
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2733
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMigrationAssetRequest.retryConfiguration, specRetryConfiguration);
2734
+ if (this.logger)
2735
+ retrier.logger = this.logger;
2736
+ const request = yield oci_common_1.composeRequest({
2737
+ baseEndpoint: this._endpoint,
2738
+ defaultHeaders: this._defaultHeaders,
2739
+ path: "/migrationAssets/{migrationAssetId}",
2740
+ method: "PUT",
2741
+ bodyContent: common.ObjectSerializer.serialize(updateMigrationAssetRequest.updateMigrationAssetDetails, "UpdateMigrationAssetDetails", model.UpdateMigrationAssetDetails.getJsonObj),
2742
+ pathParams: pathParams,
2743
+ headerParams: headerParams,
2744
+ queryParams: queryParams
2745
+ });
2746
+ try {
2747
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2748
+ const sdkResponse = oci_common_1.composeResponse({
2749
+ responseObject: {},
2750
+ body: yield response.json(),
2751
+ bodyKey: "migrationAsset",
2752
+ bodyModel: model.MigrationAsset,
2753
+ type: "model.MigrationAsset",
2754
+ responseHeaders: [
2755
+ {
2756
+ value: response.headers.get("etag"),
2757
+ key: "etag",
2758
+ dataType: "string"
2759
+ },
2760
+ {
2761
+ value: response.headers.get("opc-request-id"),
2762
+ key: "opcRequestId",
2763
+ dataType: "string"
2764
+ }
2765
+ ]
2766
+ });
2767
+ return sdkResponse;
2768
+ }
2769
+ catch (err) {
2770
+ throw err;
2771
+ }
2772
+ });
2773
+ }
2774
+ /**
2775
+ * Updates the migration plan.
2776
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2777
+ * @param UpdateMigrationPlanRequest
2778
+ * @return UpdateMigrationPlanResponse
2779
+ * @throws OciError when an error occurs
2780
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/UpdateMigrationPlan.ts.html |here} to see how to use UpdateMigrationPlan API.
2781
+ */
2782
+ updateMigrationPlan(updateMigrationPlanRequest) {
2783
+ return __awaiter(this, void 0, void 0, function* () {
2784
+ if (this.logger)
2785
+ this.logger.debug("Calling operation MigrationClient#updateMigrationPlan.");
2786
+ const operationName = "updateMigrationPlan";
2787
+ const apiReferenceLink = "";
2788
+ const pathParams = {
2789
+ "{migrationPlanId}": updateMigrationPlanRequest.migrationPlanId
2790
+ };
2791
+ const queryParams = {};
2792
+ let headerParams = {
2793
+ "Content-Type": common.Constants.APPLICATION_JSON,
2794
+ "if-match": updateMigrationPlanRequest.ifMatch,
2795
+ "opc-request-id": updateMigrationPlanRequest.opcRequestId
2796
+ };
2797
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2798
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMigrationPlanRequest.retryConfiguration, specRetryConfiguration);
2799
+ if (this.logger)
2800
+ retrier.logger = this.logger;
2801
+ const request = yield oci_common_1.composeRequest({
2802
+ baseEndpoint: this._endpoint,
2803
+ defaultHeaders: this._defaultHeaders,
2804
+ path: "/migrationPlans/{migrationPlanId}",
2805
+ method: "PUT",
2806
+ bodyContent: common.ObjectSerializer.serialize(updateMigrationPlanRequest.updateMigrationPlanDetails, "UpdateMigrationPlanDetails", model.UpdateMigrationPlanDetails.getJsonObj),
2807
+ pathParams: pathParams,
2808
+ headerParams: headerParams,
2809
+ queryParams: queryParams
2810
+ });
2811
+ try {
2812
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2813
+ const sdkResponse = oci_common_1.composeResponse({
2814
+ responseObject: {},
2815
+ responseHeaders: [
2816
+ {
2817
+ value: response.headers.get("opc-request-id"),
2818
+ key: "opcRequestId",
2819
+ dataType: "string"
2820
+ },
2821
+ {
2822
+ value: response.headers.get("opc-work-request-id"),
2823
+ key: "opcWorkRequestId",
2824
+ dataType: "string"
2825
+ }
2826
+ ]
2827
+ });
2828
+ return sdkResponse;
2829
+ }
2830
+ catch (err) {
2831
+ throw err;
2832
+ }
2833
+ });
2834
+ }
2835
+ /**
2836
+ * Updates the replication schedule.
2837
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2838
+ * @param UpdateReplicationScheduleRequest
2839
+ * @return UpdateReplicationScheduleResponse
2840
+ * @throws OciError when an error occurs
2841
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/UpdateReplicationSchedule.ts.html |here} to see how to use UpdateReplicationSchedule API.
2842
+ */
2843
+ updateReplicationSchedule(updateReplicationScheduleRequest) {
2844
+ return __awaiter(this, void 0, void 0, function* () {
2845
+ if (this.logger)
2846
+ this.logger.debug("Calling operation MigrationClient#updateReplicationSchedule.");
2847
+ const operationName = "updateReplicationSchedule";
2848
+ const apiReferenceLink = "";
2849
+ const pathParams = {
2850
+ "{replicationScheduleId}": updateReplicationScheduleRequest.replicationScheduleId
2851
+ };
2852
+ const queryParams = {};
2853
+ let headerParams = {
2854
+ "Content-Type": common.Constants.APPLICATION_JSON,
2855
+ "if-match": updateReplicationScheduleRequest.ifMatch,
2856
+ "opc-request-id": updateReplicationScheduleRequest.opcRequestId
2857
+ };
2858
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2859
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateReplicationScheduleRequest.retryConfiguration, specRetryConfiguration);
2860
+ if (this.logger)
2861
+ retrier.logger = this.logger;
2862
+ const request = yield oci_common_1.composeRequest({
2863
+ baseEndpoint: this._endpoint,
2864
+ defaultHeaders: this._defaultHeaders,
2865
+ path: "/replicationSchedules/{replicationScheduleId}",
2866
+ method: "PUT",
2867
+ bodyContent: common.ObjectSerializer.serialize(updateReplicationScheduleRequest.updateReplicationScheduleDetails, "UpdateReplicationScheduleDetails", model.UpdateReplicationScheduleDetails.getJsonObj),
2868
+ pathParams: pathParams,
2869
+ headerParams: headerParams,
2870
+ queryParams: queryParams
2871
+ });
2872
+ try {
2873
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2874
+ const sdkResponse = oci_common_1.composeResponse({
2875
+ responseObject: {},
2876
+ responseHeaders: [
2877
+ {
2878
+ value: response.headers.get("opc-request-id"),
2879
+ key: "opcRequestId",
2880
+ dataType: "string"
2881
+ },
2882
+ {
2883
+ value: response.headers.get("opc-work-request-id"),
2884
+ key: "opcWorkRequestId",
2885
+ dataType: "string"
2886
+ }
2887
+ ]
2888
+ });
2889
+ return sdkResponse;
2890
+ }
2891
+ catch (err) {
2892
+ throw err;
2893
+ }
2894
+ });
2895
+ }
2896
+ /**
2897
+ * Updates the target asset.
2898
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2899
+ * @param UpdateTargetAssetRequest
2900
+ * @return UpdateTargetAssetResponse
2901
+ * @throws OciError when an error occurs
2902
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/cloudmigrations/UpdateTargetAsset.ts.html |here} to see how to use UpdateTargetAsset API.
2903
+ */
2904
+ updateTargetAsset(updateTargetAssetRequest) {
2905
+ return __awaiter(this, void 0, void 0, function* () {
2906
+ if (this.logger)
2907
+ this.logger.debug("Calling operation MigrationClient#updateTargetAsset.");
2908
+ const operationName = "updateTargetAsset";
2909
+ const apiReferenceLink = "";
2910
+ const pathParams = {
2911
+ "{targetAssetId}": updateTargetAssetRequest.targetAssetId
2912
+ };
2913
+ const queryParams = {};
2914
+ let headerParams = {
2915
+ "Content-Type": common.Constants.APPLICATION_JSON,
2916
+ "if-match": updateTargetAssetRequest.ifMatch,
2917
+ "opc-request-id": updateTargetAssetRequest.opcRequestId
2918
+ };
2919
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2920
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateTargetAssetRequest.retryConfiguration, specRetryConfiguration);
2921
+ if (this.logger)
2922
+ retrier.logger = this.logger;
2923
+ const request = yield oci_common_1.composeRequest({
2924
+ baseEndpoint: this._endpoint,
2925
+ defaultHeaders: this._defaultHeaders,
2926
+ path: "/targetAssets/{targetAssetId}",
2927
+ method: "PUT",
2928
+ bodyContent: common.ObjectSerializer.serialize(updateTargetAssetRequest.updateTargetAssetDetails, "UpdateTargetAssetDetails", model.UpdateTargetAssetDetails.getJsonObj),
2929
+ pathParams: pathParams,
2930
+ headerParams: headerParams,
2931
+ queryParams: queryParams
2932
+ });
2933
+ try {
2934
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2935
+ const sdkResponse = oci_common_1.composeResponse({
2936
+ responseObject: {},
2937
+ responseHeaders: [
2938
+ {
2939
+ value: response.headers.get("opc-request-id"),
2940
+ key: "opcRequestId",
2941
+ dataType: "string"
2942
+ },
2943
+ {
2944
+ value: response.headers.get("opc-work-request-id"),
2945
+ key: "opcWorkRequestId",
2946
+ dataType: "string"
2947
+ }
2948
+ ]
2949
+ });
2950
+ return sdkResponse;
2951
+ }
2952
+ catch (err) {
2953
+ throw err;
2954
+ }
2955
+ });
2956
+ }
2957
+ }
2958
+ exports.MigrationClient = MigrationClient;
2959
+ MigrationClient.serviceEndpointTemplate = "https://cloudmigration.{region}.oci.{secondLevelDomain}";
2960
+ MigrationClient.endpointServiceName = "";
2961
+ //# sourceMappingURL=client.js.map