oci-batch 2.122.2

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 (548) 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/batchcomputing-waiter.d.ts +76 -0
  9. package/lib/batchcomputing-waiter.js +136 -0
  10. package/lib/batchcomputing-waiter.js.map +1 -0
  11. package/lib/client.d.ts +495 -0
  12. package/lib/client.js +3035 -0
  13. package/lib/client.js.map +1 -0
  14. package/lib/model/action-type.d.ts +32 -0
  15. package/lib/model/action-type.js +43 -0
  16. package/lib/model/action-type.js.map +1 -0
  17. package/lib/model/batch-context-collection.d.ts +26 -0
  18. package/lib/model/batch-context-collection.js +61 -0
  19. package/lib/model/batch-context-collection.js.map +1 -0
  20. package/lib/model/batch-context-shape-collection.d.ts +26 -0
  21. package/lib/model/batch-context-shape-collection.js +61 -0
  22. package/lib/model/batch-context-shape-collection.js.map +1 -0
  23. package/lib/model/batch-context-shape-summary.d.ts +33 -0
  24. package/lib/model/batch-context-shape-summary.js +69 -0
  25. package/lib/model/batch-context-shape-summary.js.map +1 -0
  26. package/lib/model/batch-context-summary.d.ts +94 -0
  27. package/lib/model/batch-context-summary.js +29 -0
  28. package/lib/model/batch-context-summary.js.map +1 -0
  29. package/lib/model/batch-context.d.ts +131 -0
  30. package/lib/model/batch-context.js +95 -0
  31. package/lib/model/batch-context.js.map +1 -0
  32. package/lib/model/batch-job-collection.d.ts +26 -0
  33. package/lib/model/batch-job-collection.js +61 -0
  34. package/lib/model/batch-job-collection.js.map +1 -0
  35. package/lib/model/batch-job-pool-collection.d.ts +26 -0
  36. package/lib/model/batch-job-pool-collection.js +61 -0
  37. package/lib/model/batch-job-pool-collection.js.map +1 -0
  38. package/lib/model/batch-job-pool-summary.d.ts +93 -0
  39. package/lib/model/batch-job-pool-summary.js +29 -0
  40. package/lib/model/batch-job-pool-summary.js.map +1 -0
  41. package/lib/model/batch-job-pool.d.ts +110 -0
  42. package/lib/model/batch-job-pool.js +42 -0
  43. package/lib/model/batch-job-pool.js.map +1 -0
  44. package/lib/model/batch-job-summary.d.ts +115 -0
  45. package/lib/model/batch-job-summary.js +29 -0
  46. package/lib/model/batch-job-summary.js.map +1 -0
  47. package/lib/model/batch-job.d.ts +141 -0
  48. package/lib/model/batch-job.js +77 -0
  49. package/lib/model/batch-job.js.map +1 -0
  50. package/lib/model/batch-task-collection.d.ts +26 -0
  51. package/lib/model/batch-task-collection.js +61 -0
  52. package/lib/model/batch-task-collection.js.map +1 -0
  53. package/lib/model/batch-task-environment-collection.d.ts +26 -0
  54. package/lib/model/batch-task-environment-collection.js +61 -0
  55. package/lib/model/batch-task-environment-collection.js.map +1 -0
  56. package/lib/model/batch-task-environment-summary.d.ts +101 -0
  57. package/lib/model/batch-task-environment-summary.js +57 -0
  58. package/lib/model/batch-task-environment-summary.js.map +1 -0
  59. package/lib/model/batch-task-environment-volume.d.ts +22 -0
  60. package/lib/model/batch-task-environment-volume.js +68 -0
  61. package/lib/model/batch-task-environment-volume.js.map +1 -0
  62. package/lib/model/batch-task-environment.d.ts +122 -0
  63. package/lib/model/batch-task-environment.js +77 -0
  64. package/lib/model/batch-task-environment.js.map +1 -0
  65. package/lib/model/batch-task-profile-collection.d.ts +26 -0
  66. package/lib/model/batch-task-profile-collection.js +61 -0
  67. package/lib/model/batch-task-profile-collection.js.map +1 -0
  68. package/lib/model/batch-task-profile-summary.d.ts +97 -0
  69. package/lib/model/batch-task-profile-summary.js +29 -0
  70. package/lib/model/batch-task-profile-summary.js.map +1 -0
  71. package/lib/model/batch-task-profile.d.ts +111 -0
  72. package/lib/model/batch-task-profile.js +39 -0
  73. package/lib/model/batch-task-profile.js.map +1 -0
  74. package/lib/model/batch-task-sort-by.d.ts +23 -0
  75. package/lib/model/batch-task-sort-by.js +34 -0
  76. package/lib/model/batch-task-sort-by.js.map +1 -0
  77. package/lib/model/batch-task-summary.d.ts +47 -0
  78. package/lib/model/batch-task-summary.js +68 -0
  79. package/lib/model/batch-task-summary.js.map +1 -0
  80. package/lib/model/batch-task.d.ts +70 -0
  81. package/lib/model/batch-task.js +95 -0
  82. package/lib/model/batch-task.js.map +1 -0
  83. package/lib/model/best-fit-fleet-assignment-policy.d.ts +24 -0
  84. package/lib/model/best-fit-fleet-assignment-policy.js +54 -0
  85. package/lib/model/best-fit-fleet-assignment-policy.js.map +1 -0
  86. package/lib/model/change-batch-context-compartment-details.d.ts +26 -0
  87. package/lib/model/change-batch-context-compartment-details.js +29 -0
  88. package/lib/model/change-batch-context-compartment-details.js.map +1 -0
  89. package/lib/model/change-batch-job-compartment-details.d.ts +25 -0
  90. package/lib/model/change-batch-job-compartment-details.js +29 -0
  91. package/lib/model/change-batch-job-compartment-details.js.map +1 -0
  92. package/lib/model/change-batch-job-pool-compartment-details.d.ts +25 -0
  93. package/lib/model/change-batch-job-pool-compartment-details.js +29 -0
  94. package/lib/model/change-batch-job-pool-compartment-details.js.map +1 -0
  95. package/lib/model/change-batch-task-environment-compartment-details.d.ts +26 -0
  96. package/lib/model/change-batch-task-environment-compartment-details.js +29 -0
  97. package/lib/model/change-batch-task-environment-compartment-details.js.map +1 -0
  98. package/lib/model/change-batch-task-profile-compartment-details.d.ts +26 -0
  99. package/lib/model/change-batch-task-profile-compartment-details.js +29 -0
  100. package/lib/model/change-batch-task-profile-compartment-details.js.map +1 -0
  101. package/lib/model/compute-task-summary.d.ts +24 -0
  102. package/lib/model/compute-task-summary.js +52 -0
  103. package/lib/model/compute-task-summary.js.map +1 -0
  104. package/lib/model/compute-task.d.ts +41 -0
  105. package/lib/model/compute-task.js +58 -0
  106. package/lib/model/compute-task.js.map +1 -0
  107. package/lib/model/create-batch-context-details.d.ts +76 -0
  108. package/lib/model/create-batch-context-details.js +81 -0
  109. package/lib/model/create-batch-context-details.js.map +1 -0
  110. package/lib/model/create-batch-job-details.d.ts +74 -0
  111. package/lib/model/create-batch-job-details.js +71 -0
  112. package/lib/model/create-batch-job-details.js.map +1 -0
  113. package/lib/model/create-batch-job-pool-details.d.ts +63 -0
  114. package/lib/model/create-batch-job-pool-details.js +29 -0
  115. package/lib/model/create-batch-job-pool-details.js.map +1 -0
  116. package/lib/model/create-batch-task-details.d.ts +43 -0
  117. package/lib/model/create-batch-task-details.js +80 -0
  118. package/lib/model/create-batch-task-details.js.map +1 -0
  119. package/lib/model/create-batch-task-environment-details.d.ts +75 -0
  120. package/lib/model/create-batch-task-environment-details.js +67 -0
  121. package/lib/model/create-batch-task-environment-details.js.map +1 -0
  122. package/lib/model/create-batch-task-profile-details.d.ts +67 -0
  123. package/lib/model/create-batch-task-profile-details.js +29 -0
  124. package/lib/model/create-batch-task-profile-details.js.map +1 -0
  125. package/lib/model/create-compute-task-details.d.ts +41 -0
  126. package/lib/model/create-compute-task-details.js +62 -0
  127. package/lib/model/create-compute-task-details.js.map +1 -0
  128. package/lib/model/create-fleet-details.d.ts +22 -0
  129. package/lib/model/create-fleet-details.js +68 -0
  130. package/lib/model/create-fleet-details.js.map +1 -0
  131. package/lib/model/create-network-details.d.ts +31 -0
  132. package/lib/model/create-network-details.js +29 -0
  133. package/lib/model/create-network-details.js.map +1 -0
  134. package/lib/model/create-service-managed-fleet-details.d.ts +33 -0
  135. package/lib/model/create-service-managed-fleet-details.js +58 -0
  136. package/lib/model/create-service-managed-fleet-details.js.map +1 -0
  137. package/lib/model/environment-variable.d.ts +29 -0
  138. package/lib/model/environment-variable.js +29 -0
  139. package/lib/model/environment-variable.js.map +1 -0
  140. package/lib/model/fleet-assignment-policy.d.ts +24 -0
  141. package/lib/model/fleet-assignment-policy.js +72 -0
  142. package/lib/model/fleet-assignment-policy.js.map +1 -0
  143. package/lib/model/fleet-shape.d.ts +33 -0
  144. package/lib/model/fleet-shape.js +29 -0
  145. package/lib/model/fleet-shape.js.map +1 -0
  146. package/lib/model/fleet.d.ts +22 -0
  147. package/lib/model/fleet.js +68 -0
  148. package/lib/model/fleet.js.map +1 -0
  149. package/lib/model/flex-fit-fleet-assignment-policy.d.ts +32 -0
  150. package/lib/model/flex-fit-fleet-assignment-policy.js +54 -0
  151. package/lib/model/flex-fit-fleet-assignment-policy.js.map +1 -0
  152. package/lib/model/index.d.ts +186 -0
  153. package/lib/model/index.js +210 -0
  154. package/lib/model/index.js.map +1 -0
  155. package/lib/model/job-priority-configuration.d.ts +39 -0
  156. package/lib/model/job-priority-configuration.js +29 -0
  157. package/lib/model/job-priority-configuration.js.map +1 -0
  158. package/lib/model/logging-configuration.d.ts +22 -0
  159. package/lib/model/logging-configuration.js +68 -0
  160. package/lib/model/logging-configuration.js.map +1 -0
  161. package/lib/model/network-security-group.d.ts +21 -0
  162. package/lib/model/network-security-group.js +29 -0
  163. package/lib/model/network-security-group.js.map +1 -0
  164. package/lib/model/network.d.ts +37 -0
  165. package/lib/model/network.js +61 -0
  166. package/lib/model/network.js.map +1 -0
  167. package/lib/model/nfs-volume.d.ts +40 -0
  168. package/lib/model/nfs-volume.js +52 -0
  169. package/lib/model/nfs-volume.js.map +1 -0
  170. package/lib/model/oci-logging-configuration.d.ts +32 -0
  171. package/lib/model/oci-logging-configuration.js +54 -0
  172. package/lib/model/oci-logging-configuration.js.map +1 -0
  173. package/lib/model/operation-status.d.ts +34 -0
  174. package/lib/model/operation-status.js +45 -0
  175. package/lib/model/operation-status.js.map +1 -0
  176. package/lib/model/operation-type.d.ts +45 -0
  177. package/lib/model/operation-type.js +56 -0
  178. package/lib/model/operation-type.js.map +1 -0
  179. package/lib/model/pause-batch-job-details.d.ts +21 -0
  180. package/lib/model/pause-batch-job-details.js +29 -0
  181. package/lib/model/pause-batch-job-details.js.map +1 -0
  182. package/lib/model/private-ip.d.ts +21 -0
  183. package/lib/model/private-ip.js +29 -0
  184. package/lib/model/private-ip.js.map +1 -0
  185. package/lib/model/security-context.d.ts +36 -0
  186. package/lib/model/security-context.js +29 -0
  187. package/lib/model/security-context.js.map +1 -0
  188. package/lib/model/service-managed-fleet.d.ts +41 -0
  189. package/lib/model/service-managed-fleet.js +54 -0
  190. package/lib/model/service-managed-fleet.js.map +1 -0
  191. package/lib/model/shape-memory-options.d.ts +41 -0
  192. package/lib/model/shape-memory-options.js +29 -0
  193. package/lib/model/shape-memory-options.js.map +1 -0
  194. package/lib/model/shape-networking-bandwidth-options.d.ts +33 -0
  195. package/lib/model/shape-networking-bandwidth-options.js +29 -0
  196. package/lib/model/shape-networking-bandwidth-options.js.map +1 -0
  197. package/lib/model/shape-ocpu-options.d.ts +29 -0
  198. package/lib/model/shape-ocpu-options.js +29 -0
  199. package/lib/model/shape-ocpu-options.js.map +1 -0
  200. package/lib/model/sort-by.d.ts +24 -0
  201. package/lib/model/sort-by.js +35 -0
  202. package/lib/model/sort-by.js.map +1 -0
  203. package/lib/model/sort-order.d.ts +30 -0
  204. package/lib/model/sort-order.js +41 -0
  205. package/lib/model/sort-order.js.map +1 -0
  206. package/lib/model/start-batch-context-details.d.ts +21 -0
  207. package/lib/model/start-batch-context-details.js +29 -0
  208. package/lib/model/start-batch-context-details.js.map +1 -0
  209. package/lib/model/start-batch-job-pool-details.d.ts +21 -0
  210. package/lib/model/start-batch-job-pool-details.js +29 -0
  211. package/lib/model/start-batch-job-pool-details.js.map +1 -0
  212. package/lib/model/stop-batch-context-details.d.ts +21 -0
  213. package/lib/model/stop-batch-context-details.js +29 -0
  214. package/lib/model/stop-batch-context-details.js.map +1 -0
  215. package/lib/model/stop-batch-job-pool-details.d.ts +21 -0
  216. package/lib/model/stop-batch-job-pool-details.js +29 -0
  217. package/lib/model/stop-batch-job-pool-details.js.map +1 -0
  218. package/lib/model/subnet.d.ts +21 -0
  219. package/lib/model/subnet.js +29 -0
  220. package/lib/model/subnet.js.map +1 -0
  221. package/lib/model/unpause-batch-job-details.d.ts +21 -0
  222. package/lib/model/unpause-batch-job-details.js +29 -0
  223. package/lib/model/unpause-batch-job-details.js.map +1 -0
  224. package/lib/model/update-batch-context-details.d.ts +66 -0
  225. package/lib/model/update-batch-context-details.js +61 -0
  226. package/lib/model/update-batch-context-details.js.map +1 -0
  227. package/lib/model/update-batch-job-details.d.ts +55 -0
  228. package/lib/model/update-batch-job-details.js +29 -0
  229. package/lib/model/update-batch-job-details.js.map +1 -0
  230. package/lib/model/update-batch-job-pool-details.d.ts +55 -0
  231. package/lib/model/update-batch-job-pool-details.js +29 -0
  232. package/lib/model/update-batch-job-pool-details.js.map +1 -0
  233. package/lib/model/update-batch-task-environment-details.d.ts +55 -0
  234. package/lib/model/update-batch-task-environment-details.js +29 -0
  235. package/lib/model/update-batch-task-environment-details.js.map +1 -0
  236. package/lib/model/update-batch-task-profile-details.d.ts +55 -0
  237. package/lib/model/update-batch-task-profile-details.js +29 -0
  238. package/lib/model/update-batch-task-profile-details.js.map +1 -0
  239. package/lib/model/virtual-network-vnic.d.ts +21 -0
  240. package/lib/model/virtual-network-vnic.js +29 -0
  241. package/lib/model/virtual-network-vnic.js.map +1 -0
  242. package/lib/model/vnic.d.ts +32 -0
  243. package/lib/model/vnic.js +29 -0
  244. package/lib/model/vnic.js.map +1 -0
  245. package/lib/model/work-request-error-collection.d.ts +26 -0
  246. package/lib/model/work-request-error-collection.js +61 -0
  247. package/lib/model/work-request-error-collection.js.map +1 -0
  248. package/lib/model/work-request-error.d.ts +37 -0
  249. package/lib/model/work-request-error.js +29 -0
  250. package/lib/model/work-request-error.js.map +1 -0
  251. package/lib/model/work-request-log-and-error-sort-by.d.ts +23 -0
  252. package/lib/model/work-request-log-and-error-sort-by.js +34 -0
  253. package/lib/model/work-request-log-and-error-sort-by.js.map +1 -0
  254. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  255. package/lib/model/work-request-log-entry-collection.js +61 -0
  256. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  257. package/lib/model/work-request-log-entry.d.ts +31 -0
  258. package/lib/model/work-request-log-entry.js +29 -0
  259. package/lib/model/work-request-log-entry.js.map +1 -0
  260. package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
  261. package/lib/model/work-request-resource-metadata-key.js +38 -0
  262. package/lib/model/work-request-resource-metadata-key.js.map +1 -0
  263. package/lib/model/work-request-resource.d.ts +48 -0
  264. package/lib/model/work-request-resource.js +29 -0
  265. package/lib/model/work-request-resource.js.map +1 -0
  266. package/lib/model/work-request-sort-by.d.ts +23 -0
  267. package/lib/model/work-request-sort-by.js +34 -0
  268. package/lib/model/work-request-sort-by.js.map +1 -0
  269. package/lib/model/work-request-summary-collection.d.ts +26 -0
  270. package/lib/model/work-request-summary-collection.js +61 -0
  271. package/lib/model/work-request-summary-collection.js.map +1 -0
  272. package/lib/model/work-request-summary.d.ts +73 -0
  273. package/lib/model/work-request-summary.js +61 -0
  274. package/lib/model/work-request-summary.js.map +1 -0
  275. package/lib/model/work-request.d.ts +76 -0
  276. package/lib/model/work-request.js +61 -0
  277. package/lib/model/work-request.js.map +1 -0
  278. package/lib/request/cancel-batch-job-request.d.ts +38 -0
  279. package/lib/request/cancel-batch-job-request.js +15 -0
  280. package/lib/request/cancel-batch-job-request.js.map +1 -0
  281. package/lib/request/change-batch-context-compartment-request.d.ts +43 -0
  282. package/lib/request/change-batch-context-compartment-request.js +15 -0
  283. package/lib/request/change-batch-context-compartment-request.js.map +1 -0
  284. package/lib/request/change-batch-job-compartment-request.d.ts +43 -0
  285. package/lib/request/change-batch-job-compartment-request.js +15 -0
  286. package/lib/request/change-batch-job-compartment-request.js.map +1 -0
  287. package/lib/request/change-batch-job-pool-compartment-request.d.ts +43 -0
  288. package/lib/request/change-batch-job-pool-compartment-request.js +15 -0
  289. package/lib/request/change-batch-job-pool-compartment-request.js.map +1 -0
  290. package/lib/request/change-batch-task-environment-compartment-request.d.ts +43 -0
  291. package/lib/request/change-batch-task-environment-compartment-request.js +15 -0
  292. package/lib/request/change-batch-task-environment-compartment-request.js.map +1 -0
  293. package/lib/request/change-batch-task-profile-compartment-request.d.ts +43 -0
  294. package/lib/request/change-batch-task-profile-compartment-request.js +15 -0
  295. package/lib/request/change-batch-task-profile-compartment-request.js.map +1 -0
  296. package/lib/request/create-batch-context-request.d.ts +40 -0
  297. package/lib/request/create-batch-context-request.js +15 -0
  298. package/lib/request/create-batch-context-request.js.map +1 -0
  299. package/lib/request/create-batch-job-pool-request.d.ts +40 -0
  300. package/lib/request/create-batch-job-pool-request.js +15 -0
  301. package/lib/request/create-batch-job-pool-request.js.map +1 -0
  302. package/lib/request/create-batch-job-request.d.ts +40 -0
  303. package/lib/request/create-batch-job-request.js +15 -0
  304. package/lib/request/create-batch-job-request.js.map +1 -0
  305. package/lib/request/create-batch-task-environment-request.d.ts +40 -0
  306. package/lib/request/create-batch-task-environment-request.js +15 -0
  307. package/lib/request/create-batch-task-environment-request.js.map +1 -0
  308. package/lib/request/create-batch-task-profile-request.d.ts +40 -0
  309. package/lib/request/create-batch-task-profile-request.js +15 -0
  310. package/lib/request/create-batch-task-profile-request.js.map +1 -0
  311. package/lib/request/delete-batch-context-request.d.ts +38 -0
  312. package/lib/request/delete-batch-context-request.js +15 -0
  313. package/lib/request/delete-batch-context-request.js.map +1 -0
  314. package/lib/request/delete-batch-job-pool-request.d.ts +38 -0
  315. package/lib/request/delete-batch-job-pool-request.js +15 -0
  316. package/lib/request/delete-batch-job-pool-request.js.map +1 -0
  317. package/lib/request/delete-batch-task-environment-request.d.ts +38 -0
  318. package/lib/request/delete-batch-task-environment-request.js +15 -0
  319. package/lib/request/delete-batch-task-environment-request.js.map +1 -0
  320. package/lib/request/delete-batch-task-profile-request.d.ts +38 -0
  321. package/lib/request/delete-batch-task-profile-request.js +15 -0
  322. package/lib/request/delete-batch-task-profile-request.js.map +1 -0
  323. package/lib/request/get-batch-context-request.d.ts +30 -0
  324. package/lib/request/get-batch-context-request.js +15 -0
  325. package/lib/request/get-batch-context-request.js.map +1 -0
  326. package/lib/request/get-batch-job-pool-request.d.ts +30 -0
  327. package/lib/request/get-batch-job-pool-request.js +15 -0
  328. package/lib/request/get-batch-job-pool-request.js.map +1 -0
  329. package/lib/request/get-batch-job-request.d.ts +30 -0
  330. package/lib/request/get-batch-job-request.js +15 -0
  331. package/lib/request/get-batch-job-request.js.map +1 -0
  332. package/lib/request/get-batch-task-environment-request.d.ts +30 -0
  333. package/lib/request/get-batch-task-environment-request.js +15 -0
  334. package/lib/request/get-batch-task-environment-request.js.map +1 -0
  335. package/lib/request/get-batch-task-profile-request.d.ts +30 -0
  336. package/lib/request/get-batch-task-profile-request.js +15 -0
  337. package/lib/request/get-batch-task-profile-request.js.map +1 -0
  338. package/lib/request/get-batch-task-request.d.ts +34 -0
  339. package/lib/request/get-batch-task-request.js +15 -0
  340. package/lib/request/get-batch-task-request.js.map +1 -0
  341. package/lib/request/get-work-request-request.d.ts +30 -0
  342. package/lib/request/get-work-request-request.js +15 -0
  343. package/lib/request/get-work-request-request.js.map +1 -0
  344. package/lib/request/index.d.ts +100 -0
  345. package/lib/request/index.js +15 -0
  346. package/lib/request/index.js.map +1 -0
  347. package/lib/request/list-batch-context-shapes-request.d.ts +48 -0
  348. package/lib/request/list-batch-context-shapes-request.js +15 -0
  349. package/lib/request/list-batch-context-shapes-request.js.map +1 -0
  350. package/lib/request/list-batch-contexts-request.d.ts +69 -0
  351. package/lib/request/list-batch-contexts-request.js +15 -0
  352. package/lib/request/list-batch-contexts-request.js.map +1 -0
  353. package/lib/request/list-batch-job-pools-request.d.ts +73 -0
  354. package/lib/request/list-batch-job-pools-request.js +15 -0
  355. package/lib/request/list-batch-job-pools-request.js.map +1 -0
  356. package/lib/request/list-batch-job-tasks-request.d.ts +64 -0
  357. package/lib/request/list-batch-job-tasks-request.js +15 -0
  358. package/lib/request/list-batch-job-tasks-request.js.map +1 -0
  359. package/lib/request/list-batch-jobs-request.d.ts +73 -0
  360. package/lib/request/list-batch-jobs-request.js +15 -0
  361. package/lib/request/list-batch-jobs-request.js.map +1 -0
  362. package/lib/request/list-batch-task-environments-request.d.ts +69 -0
  363. package/lib/request/list-batch-task-environments-request.js +15 -0
  364. package/lib/request/list-batch-task-environments-request.js.map +1 -0
  365. package/lib/request/list-batch-task-profiles-request.d.ts +69 -0
  366. package/lib/request/list-batch-task-profiles-request.js +15 -0
  367. package/lib/request/list-batch-task-profiles-request.js.map +1 -0
  368. package/lib/request/list-batch-tasks-request.d.ts +68 -0
  369. package/lib/request/list-batch-tasks-request.js +15 -0
  370. package/lib/request/list-batch-tasks-request.js.map +1 -0
  371. package/lib/request/list-work-request-errors-request.d.ts +54 -0
  372. package/lib/request/list-work-request-errors-request.js +15 -0
  373. package/lib/request/list-work-request-errors-request.js.map +1 -0
  374. package/lib/request/list-work-request-logs-request.d.ts +54 -0
  375. package/lib/request/list-work-request-logs-request.js +15 -0
  376. package/lib/request/list-work-request-logs-request.js.map +1 -0
  377. package/lib/request/list-work-requests-request.d.ts +66 -0
  378. package/lib/request/list-work-requests-request.js +15 -0
  379. package/lib/request/list-work-requests-request.js.map +1 -0
  380. package/lib/request/pause-batch-job-request.d.ts +43 -0
  381. package/lib/request/pause-batch-job-request.js +15 -0
  382. package/lib/request/pause-batch-job-request.js.map +1 -0
  383. package/lib/request/start-batch-context-request.d.ts +43 -0
  384. package/lib/request/start-batch-context-request.js +15 -0
  385. package/lib/request/start-batch-context-request.js.map +1 -0
  386. package/lib/request/start-batch-job-pool-request.d.ts +43 -0
  387. package/lib/request/start-batch-job-pool-request.js +15 -0
  388. package/lib/request/start-batch-job-pool-request.js.map +1 -0
  389. package/lib/request/stop-batch-context-request.d.ts +43 -0
  390. package/lib/request/stop-batch-context-request.js +15 -0
  391. package/lib/request/stop-batch-context-request.js.map +1 -0
  392. package/lib/request/stop-batch-job-pool-request.d.ts +43 -0
  393. package/lib/request/stop-batch-job-pool-request.js +15 -0
  394. package/lib/request/stop-batch-job-pool-request.js.map +1 -0
  395. package/lib/request/unpause-batch-job-request.d.ts +43 -0
  396. package/lib/request/unpause-batch-job-request.js +15 -0
  397. package/lib/request/unpause-batch-job-request.js.map +1 -0
  398. package/lib/request/update-batch-context-request.d.ts +43 -0
  399. package/lib/request/update-batch-context-request.js +15 -0
  400. package/lib/request/update-batch-context-request.js.map +1 -0
  401. package/lib/request/update-batch-job-pool-request.d.ts +43 -0
  402. package/lib/request/update-batch-job-pool-request.js +15 -0
  403. package/lib/request/update-batch-job-pool-request.js.map +1 -0
  404. package/lib/request/update-batch-job-request.d.ts +43 -0
  405. package/lib/request/update-batch-job-request.js +15 -0
  406. package/lib/request/update-batch-job-request.js.map +1 -0
  407. package/lib/request/update-batch-task-environment-request.d.ts +43 -0
  408. package/lib/request/update-batch-task-environment-request.js +15 -0
  409. package/lib/request/update-batch-task-environment-request.js.map +1 -0
  410. package/lib/request/update-batch-task-profile-request.d.ts +43 -0
  411. package/lib/request/update-batch-task-profile-request.js +15 -0
  412. package/lib/request/update-batch-task-profile-request.js.map +1 -0
  413. package/lib/response/cancel-batch-job-response.d.ts +26 -0
  414. package/lib/response/cancel-batch-job-response.js +15 -0
  415. package/lib/response/cancel-batch-job-response.js.map +1 -0
  416. package/lib/response/change-batch-context-compartment-response.d.ts +26 -0
  417. package/lib/response/change-batch-context-compartment-response.js +15 -0
  418. package/lib/response/change-batch-context-compartment-response.js.map +1 -0
  419. package/lib/response/change-batch-job-compartment-response.d.ts +26 -0
  420. package/lib/response/change-batch-job-compartment-response.js +15 -0
  421. package/lib/response/change-batch-job-compartment-response.js.map +1 -0
  422. package/lib/response/change-batch-job-pool-compartment-response.d.ts +26 -0
  423. package/lib/response/change-batch-job-pool-compartment-response.js +15 -0
  424. package/lib/response/change-batch-job-pool-compartment-response.js.map +1 -0
  425. package/lib/response/change-batch-task-environment-compartment-response.d.ts +26 -0
  426. package/lib/response/change-batch-task-environment-compartment-response.js +15 -0
  427. package/lib/response/change-batch-task-environment-compartment-response.js.map +1 -0
  428. package/lib/response/change-batch-task-profile-compartment-response.d.ts +26 -0
  429. package/lib/response/change-batch-task-profile-compartment-response.js +15 -0
  430. package/lib/response/change-batch-task-profile-compartment-response.js.map +1 -0
  431. package/lib/response/create-batch-context-response.d.ts +44 -0
  432. package/lib/response/create-batch-context-response.js +15 -0
  433. package/lib/response/create-batch-context-response.js.map +1 -0
  434. package/lib/response/create-batch-job-pool-response.d.ts +30 -0
  435. package/lib/response/create-batch-job-pool-response.js +15 -0
  436. package/lib/response/create-batch-job-pool-response.js.map +1 -0
  437. package/lib/response/create-batch-job-response.d.ts +44 -0
  438. package/lib/response/create-batch-job-response.js +15 -0
  439. package/lib/response/create-batch-job-response.js.map +1 -0
  440. package/lib/response/create-batch-task-environment-response.d.ts +30 -0
  441. package/lib/response/create-batch-task-environment-response.js +15 -0
  442. package/lib/response/create-batch-task-environment-response.js.map +1 -0
  443. package/lib/response/create-batch-task-profile-response.d.ts +30 -0
  444. package/lib/response/create-batch-task-profile-response.js +15 -0
  445. package/lib/response/create-batch-task-profile-response.js.map +1 -0
  446. package/lib/response/delete-batch-context-response.d.ts +26 -0
  447. package/lib/response/delete-batch-context-response.js +15 -0
  448. package/lib/response/delete-batch-context-response.js.map +1 -0
  449. package/lib/response/delete-batch-job-pool-response.d.ts +20 -0
  450. package/lib/response/delete-batch-job-pool-response.js +15 -0
  451. package/lib/response/delete-batch-job-pool-response.js.map +1 -0
  452. package/lib/response/delete-batch-task-environment-response.d.ts +20 -0
  453. package/lib/response/delete-batch-task-environment-response.js +15 -0
  454. package/lib/response/delete-batch-task-environment-response.js.map +1 -0
  455. package/lib/response/delete-batch-task-profile-response.d.ts +20 -0
  456. package/lib/response/delete-batch-task-profile-response.js +15 -0
  457. package/lib/response/delete-batch-task-profile-response.js.map +1 -0
  458. package/lib/response/get-batch-context-response.d.ts +30 -0
  459. package/lib/response/get-batch-context-response.js +15 -0
  460. package/lib/response/get-batch-context-response.js.map +1 -0
  461. package/lib/response/get-batch-job-pool-response.d.ts +30 -0
  462. package/lib/response/get-batch-job-pool-response.js +15 -0
  463. package/lib/response/get-batch-job-pool-response.js.map +1 -0
  464. package/lib/response/get-batch-job-response.d.ts +30 -0
  465. package/lib/response/get-batch-job-response.js +15 -0
  466. package/lib/response/get-batch-job-response.js.map +1 -0
  467. package/lib/response/get-batch-task-environment-response.d.ts +30 -0
  468. package/lib/response/get-batch-task-environment-response.js +15 -0
  469. package/lib/response/get-batch-task-environment-response.js.map +1 -0
  470. package/lib/response/get-batch-task-profile-response.d.ts +30 -0
  471. package/lib/response/get-batch-task-profile-response.js +15 -0
  472. package/lib/response/get-batch-task-profile-response.js.map +1 -0
  473. package/lib/response/get-batch-task-response.d.ts +25 -0
  474. package/lib/response/get-batch-task-response.js +15 -0
  475. package/lib/response/get-batch-task-response.js.map +1 -0
  476. package/lib/response/get-work-request-response.d.ts +34 -0
  477. package/lib/response/get-work-request-response.js +15 -0
  478. package/lib/response/get-work-request-response.js.map +1 -0
  479. package/lib/response/index.d.ts +100 -0
  480. package/lib/response/index.js +15 -0
  481. package/lib/response/index.js.map +1 -0
  482. package/lib/response/list-batch-context-shapes-response.d.ts +31 -0
  483. package/lib/response/list-batch-context-shapes-response.js +15 -0
  484. package/lib/response/list-batch-context-shapes-response.js.map +1 -0
  485. package/lib/response/list-batch-contexts-response.d.ts +31 -0
  486. package/lib/response/list-batch-contexts-response.js +15 -0
  487. package/lib/response/list-batch-contexts-response.js.map +1 -0
  488. package/lib/response/list-batch-job-pools-response.d.ts +31 -0
  489. package/lib/response/list-batch-job-pools-response.js +15 -0
  490. package/lib/response/list-batch-job-pools-response.js.map +1 -0
  491. package/lib/response/list-batch-job-tasks-response.d.ts +31 -0
  492. package/lib/response/list-batch-job-tasks-response.js +15 -0
  493. package/lib/response/list-batch-job-tasks-response.js.map +1 -0
  494. package/lib/response/list-batch-jobs-response.d.ts +31 -0
  495. package/lib/response/list-batch-jobs-response.js +15 -0
  496. package/lib/response/list-batch-jobs-response.js.map +1 -0
  497. package/lib/response/list-batch-task-environments-response.d.ts +31 -0
  498. package/lib/response/list-batch-task-environments-response.js +15 -0
  499. package/lib/response/list-batch-task-environments-response.js.map +1 -0
  500. package/lib/response/list-batch-task-profiles-response.d.ts +31 -0
  501. package/lib/response/list-batch-task-profiles-response.js +15 -0
  502. package/lib/response/list-batch-task-profiles-response.js.map +1 -0
  503. package/lib/response/list-batch-tasks-response.d.ts +31 -0
  504. package/lib/response/list-batch-tasks-response.js +15 -0
  505. package/lib/response/list-batch-tasks-response.js.map +1 -0
  506. package/lib/response/list-work-request-errors-response.d.ts +31 -0
  507. package/lib/response/list-work-request-errors-response.js +15 -0
  508. package/lib/response/list-work-request-errors-response.js.map +1 -0
  509. package/lib/response/list-work-request-logs-response.d.ts +31 -0
  510. package/lib/response/list-work-request-logs-response.js +15 -0
  511. package/lib/response/list-work-request-logs-response.js.map +1 -0
  512. package/lib/response/list-work-requests-response.d.ts +31 -0
  513. package/lib/response/list-work-requests-response.js +15 -0
  514. package/lib/response/list-work-requests-response.js.map +1 -0
  515. package/lib/response/pause-batch-job-response.d.ts +26 -0
  516. package/lib/response/pause-batch-job-response.js +15 -0
  517. package/lib/response/pause-batch-job-response.js.map +1 -0
  518. package/lib/response/start-batch-context-response.d.ts +26 -0
  519. package/lib/response/start-batch-context-response.js +15 -0
  520. package/lib/response/start-batch-context-response.js.map +1 -0
  521. package/lib/response/start-batch-job-pool-response.d.ts +26 -0
  522. package/lib/response/start-batch-job-pool-response.js +15 -0
  523. package/lib/response/start-batch-job-pool-response.js.map +1 -0
  524. package/lib/response/stop-batch-context-response.d.ts +26 -0
  525. package/lib/response/stop-batch-context-response.js +15 -0
  526. package/lib/response/stop-batch-context-response.js.map +1 -0
  527. package/lib/response/stop-batch-job-pool-response.d.ts +26 -0
  528. package/lib/response/stop-batch-job-pool-response.js +15 -0
  529. package/lib/response/stop-batch-job-pool-response.js.map +1 -0
  530. package/lib/response/unpause-batch-job-response.d.ts +26 -0
  531. package/lib/response/unpause-batch-job-response.js +15 -0
  532. package/lib/response/unpause-batch-job-response.js.map +1 -0
  533. package/lib/response/update-batch-context-response.d.ts +26 -0
  534. package/lib/response/update-batch-context-response.js +15 -0
  535. package/lib/response/update-batch-context-response.js.map +1 -0
  536. package/lib/response/update-batch-job-pool-response.d.ts +26 -0
  537. package/lib/response/update-batch-job-pool-response.js +15 -0
  538. package/lib/response/update-batch-job-pool-response.js.map +1 -0
  539. package/lib/response/update-batch-job-response.d.ts +26 -0
  540. package/lib/response/update-batch-job-response.js +15 -0
  541. package/lib/response/update-batch-job-response.js.map +1 -0
  542. package/lib/response/update-batch-task-environment-response.d.ts +30 -0
  543. package/lib/response/update-batch-task-environment-response.js +15 -0
  544. package/lib/response/update-batch-task-environment-response.js.map +1 -0
  545. package/lib/response/update-batch-task-profile-response.d.ts +30 -0
  546. package/lib/response/update-batch-task-profile-response.js +15 -0
  547. package/lib/response/update-batch-task-profile-response.js.map +1 -0
  548. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,3035 @@
1
+ "use strict";
2
+ /**
3
+ * Batch API
4
+ * Use the Batch Control Plane API to encapsulate and manage all aspects of computationally intensive jobs.
5
+ * OpenAPI spec version: 20251031
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2025, 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.BatchComputingClient = exports.BatchComputingApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const batchcomputing_waiter_1 = require("./batchcomputing-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ const Breaker = require("opossum");
49
+ // ===============================================
50
+ // This file is autogenerated - Please do not edit
51
+ // ===============================================
52
+ var BatchComputingApiKeys;
53
+ (function (BatchComputingApiKeys) {
54
+ })(BatchComputingApiKeys = exports.BatchComputingApiKeys || (exports.BatchComputingApiKeys = {}));
55
+ /**
56
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
57
+ */
58
+ class BatchComputingClient {
59
+ constructor(params, clientConfiguration) {
60
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
61
+ this["_endpoint"] = "";
62
+ this["_defaultHeaders"] = {};
63
+ this._circuitBreaker = null;
64
+ this._httpOptions = undefined;
65
+ this._bodyDuplexMode = undefined;
66
+ this.targetService = "BatchComputing";
67
+ this._regionId = "";
68
+ this._lastSetRegionOrRegionId = "";
69
+ const requestSigner = params.authenticationDetailsProvider
70
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
+ : null;
72
+ this._authProvider = params.authenticationDetailsProvider;
73
+ if (clientConfiguration) {
74
+ this._clientConfiguration = clientConfiguration;
75
+ this._circuitBreaker = clientConfiguration.circuitBreaker
76
+ ? clientConfiguration.circuitBreaker.circuit
77
+ : null;
78
+ this._httpOptions = clientConfiguration.httpOptions
79
+ ? clientConfiguration.httpOptions
80
+ : undefined;
81
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
82
+ ? clientConfiguration.bodyDuplexMode
83
+ : undefined;
84
+ }
85
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("batch")) {
86
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
87
+ throw errmsg.concat("batch");
88
+ }
89
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
90
+ const specCircuitBreakerEnabled = true;
91
+ if (!this._circuitBreaker &&
92
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
93
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
94
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
95
+ }
96
+ this._httpClient =
97
+ params.httpClient ||
98
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
99
+ if (params.authenticationDetailsProvider &&
100
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
101
+ const provider = params.authenticationDetailsProvider;
102
+ if (provider.getRegion()) {
103
+ this.region = provider.getRegion();
104
+ }
105
+ }
106
+ }
107
+ /**
108
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
109
+ */
110
+ get endpoint() {
111
+ return this._endpoint;
112
+ }
113
+ /**
114
+ * Sets the endpoint to call (ex, https://www.example.com).
115
+ * @param endpoint The endpoint of the service.
116
+ */
117
+ set endpoint(endpoint) {
118
+ this._endpoint = endpoint;
119
+ this._endpoint = this._endpoint + "/20251031";
120
+ if (this.logger)
121
+ this.logger.info(`BatchComputingClient endpoint set to ${this._endpoint}`);
122
+ }
123
+ get logger() {
124
+ return common.LOG.logger;
125
+ }
126
+ /**
127
+ * Determines whether realm specific endpoint should be used or not.
128
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
129
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
130
+ */
131
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
132
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
133
+ if (this.logger)
134
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
135
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
136
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(BatchComputingClient.serviceEndpointTemplate, this._region, BatchComputingClient.endpointServiceName);
137
+ }
138
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
139
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(BatchComputingClient.serviceEndpointTemplate, this._regionId, BatchComputingClient.endpointServiceName);
140
+ }
141
+ }
142
+ /**
143
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
144
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
145
+ * @param region The region of the service.
146
+ */
147
+ set region(region) {
148
+ this._region = region;
149
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(BatchComputingClient.serviceEndpointTemplate, region, BatchComputingClient.endpointServiceName);
150
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
151
+ }
152
+ /**
153
+ * Sets the regionId to call (ex, 'us-phoenix-1').
154
+ *
155
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
156
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
157
+ * and then call {@link #endpoint(String) endpoint}.
158
+ * @param regionId The public region ID.
159
+ */
160
+ set regionId(regionId) {
161
+ this._regionId = regionId;
162
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(BatchComputingClient.serviceEndpointTemplate, regionId, BatchComputingClient.endpointServiceName);
163
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
164
+ }
165
+ /**
166
+ * Creates a new BatchComputingWaiter for resources for this service.
167
+ *
168
+ * @param config The waiter configuration for termination and delay strategy
169
+ * @return The service waiters.
170
+ */
171
+ createWaiters(config) {
172
+ this._waiters = new batchcomputing_waiter_1.BatchComputingWaiter(this, config);
173
+ return this._waiters;
174
+ }
175
+ /**
176
+ * Gets the waiters available for resources for this service.
177
+ *
178
+ * @return The service waiters.
179
+ */
180
+ getWaiters() {
181
+ if (this._waiters) {
182
+ return this._waiters;
183
+ }
184
+ throw Error("Waiters do not exist. Please create waiters.");
185
+ }
186
+ /**
187
+ * Shutdown the circuit breaker used by the client when it is no longer needed
188
+ */
189
+ shutdownCircuitBreaker() {
190
+ if (this._circuitBreaker) {
191
+ this._circuitBreaker.shutdown();
192
+ }
193
+ }
194
+ /**
195
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
196
+ */
197
+ closeProvider() {
198
+ if (this._authProvider) {
199
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
200
+ (this._authProvider).closeProvider();
201
+ }
202
+ }
203
+ /**
204
+ * Close the client once it is no longer needed
205
+ */
206
+ close() {
207
+ this.shutdownCircuitBreaker();
208
+ this.closeProvider();
209
+ }
210
+ /**
211
+ * Cancels a batch job.
212
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
213
+ * @param CancelBatchJobRequest
214
+ * @return CancelBatchJobResponse
215
+ * @throws OciError when an error occurs
216
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CancelBatchJob.ts.html |here} to see how to use CancelBatchJob API.
217
+ */
218
+ cancelBatchJob(cancelBatchJobRequest) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ if (this.logger)
221
+ this.logger.debug("Calling operation BatchComputingClient#cancelBatchJob.");
222
+ const operationName = "cancelBatchJob";
223
+ const apiReferenceLink = "";
224
+ const pathParams = {
225
+ "{batchJobId}": cancelBatchJobRequest.batchJobId
226
+ };
227
+ const queryParams = {};
228
+ let headerParams = {
229
+ "Content-Type": common.Constants.APPLICATION_JSON,
230
+ "if-match": cancelBatchJobRequest.ifMatch,
231
+ "opc-request-id": cancelBatchJobRequest.opcRequestId
232
+ };
233
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
234
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelBatchJobRequest.retryConfiguration, specRetryConfiguration);
235
+ if (this.logger)
236
+ retrier.logger = this.logger;
237
+ const request = yield oci_common_1.composeRequest({
238
+ baseEndpoint: this._endpoint,
239
+ defaultHeaders: this._defaultHeaders,
240
+ path: "/batchJobs/{batchJobId}",
241
+ method: "DELETE",
242
+ pathParams: pathParams,
243
+ headerParams: headerParams,
244
+ queryParams: queryParams
245
+ });
246
+ try {
247
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
248
+ const sdkResponse = oci_common_1.composeResponse({
249
+ responseObject: {},
250
+ responseHeaders: [
251
+ {
252
+ value: response.headers.get("opc-work-request-id"),
253
+ key: "opcWorkRequestId",
254
+ dataType: "string"
255
+ },
256
+ {
257
+ value: response.headers.get("opc-request-id"),
258
+ key: "opcRequestId",
259
+ dataType: "string"
260
+ }
261
+ ]
262
+ });
263
+ return sdkResponse;
264
+ }
265
+ catch (err) {
266
+ throw err;
267
+ }
268
+ });
269
+ }
270
+ /**
271
+ * Moves a batch context into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
272
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
273
+ * @param ChangeBatchContextCompartmentRequest
274
+ * @return ChangeBatchContextCompartmentResponse
275
+ * @throws OciError when an error occurs
276
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ChangeBatchContextCompartment.ts.html |here} to see how to use ChangeBatchContextCompartment API.
277
+ */
278
+ changeBatchContextCompartment(changeBatchContextCompartmentRequest) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ if (this.logger)
281
+ this.logger.debug("Calling operation BatchComputingClient#changeBatchContextCompartment.");
282
+ const operationName = "changeBatchContextCompartment";
283
+ const apiReferenceLink = "";
284
+ const pathParams = {
285
+ "{batchContextId}": changeBatchContextCompartmentRequest.batchContextId
286
+ };
287
+ const queryParams = {};
288
+ let headerParams = {
289
+ "Content-Type": common.Constants.APPLICATION_JSON,
290
+ "if-match": changeBatchContextCompartmentRequest.ifMatch,
291
+ "opc-request-id": changeBatchContextCompartmentRequest.opcRequestId
292
+ };
293
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
294
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBatchContextCompartmentRequest.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: "/batchContexts/{batchContextId}/actions/changeCompartment",
301
+ method: "POST",
302
+ bodyContent: common.ObjectSerializer.serialize(changeBatchContextCompartmentRequest.changeBatchContextCompartmentDetails, "ChangeBatchContextCompartmentDetails", model.ChangeBatchContextCompartmentDetails.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-work-request-id"),
314
+ key: "opcWorkRequestId",
315
+ dataType: "string"
316
+ },
317
+ {
318
+ value: response.headers.get("opc-request-id"),
319
+ key: "opcRequestId",
320
+ dataType: "string"
321
+ }
322
+ ]
323
+ });
324
+ return sdkResponse;
325
+ }
326
+ catch (err) {
327
+ throw err;
328
+ }
329
+ });
330
+ }
331
+ /**
332
+ * Moves a batch job into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
333
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
334
+ * @param ChangeBatchJobCompartmentRequest
335
+ * @return ChangeBatchJobCompartmentResponse
336
+ * @throws OciError when an error occurs
337
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ChangeBatchJobCompartment.ts.html |here} to see how to use ChangeBatchJobCompartment API.
338
+ */
339
+ changeBatchJobCompartment(changeBatchJobCompartmentRequest) {
340
+ return __awaiter(this, void 0, void 0, function* () {
341
+ if (this.logger)
342
+ this.logger.debug("Calling operation BatchComputingClient#changeBatchJobCompartment.");
343
+ const operationName = "changeBatchJobCompartment";
344
+ const apiReferenceLink = "";
345
+ const pathParams = {
346
+ "{batchJobId}": changeBatchJobCompartmentRequest.batchJobId
347
+ };
348
+ const queryParams = {};
349
+ let headerParams = {
350
+ "Content-Type": common.Constants.APPLICATION_JSON,
351
+ "if-match": changeBatchJobCompartmentRequest.ifMatch,
352
+ "opc-request-id": changeBatchJobCompartmentRequest.opcRequestId
353
+ };
354
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
355
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBatchJobCompartmentRequest.retryConfiguration, specRetryConfiguration);
356
+ if (this.logger)
357
+ retrier.logger = this.logger;
358
+ const request = yield oci_common_1.composeRequest({
359
+ baseEndpoint: this._endpoint,
360
+ defaultHeaders: this._defaultHeaders,
361
+ path: "/batchJobs/{batchJobId}/actions/changeCompartment",
362
+ method: "POST",
363
+ bodyContent: common.ObjectSerializer.serialize(changeBatchJobCompartmentRequest.changeBatchJobCompartmentDetails, "ChangeBatchJobCompartmentDetails", model.ChangeBatchJobCompartmentDetails.getJsonObj),
364
+ pathParams: pathParams,
365
+ headerParams: headerParams,
366
+ queryParams: queryParams
367
+ });
368
+ try {
369
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
370
+ const sdkResponse = oci_common_1.composeResponse({
371
+ responseObject: {},
372
+ responseHeaders: [
373
+ {
374
+ value: response.headers.get("opc-work-request-id"),
375
+ key: "opcWorkRequestId",
376
+ dataType: "string"
377
+ },
378
+ {
379
+ value: response.headers.get("opc-request-id"),
380
+ key: "opcRequestId",
381
+ dataType: "string"
382
+ }
383
+ ]
384
+ });
385
+ return sdkResponse;
386
+ }
387
+ catch (err) {
388
+ throw err;
389
+ }
390
+ });
391
+ }
392
+ /**
393
+ * Moves a batch job pool into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
394
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
395
+ * @param ChangeBatchJobPoolCompartmentRequest
396
+ * @return ChangeBatchJobPoolCompartmentResponse
397
+ * @throws OciError when an error occurs
398
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ChangeBatchJobPoolCompartment.ts.html |here} to see how to use ChangeBatchJobPoolCompartment API.
399
+ */
400
+ changeBatchJobPoolCompartment(changeBatchJobPoolCompartmentRequest) {
401
+ return __awaiter(this, void 0, void 0, function* () {
402
+ if (this.logger)
403
+ this.logger.debug("Calling operation BatchComputingClient#changeBatchJobPoolCompartment.");
404
+ const operationName = "changeBatchJobPoolCompartment";
405
+ const apiReferenceLink = "";
406
+ const pathParams = {
407
+ "{batchJobPoolId}": changeBatchJobPoolCompartmentRequest.batchJobPoolId
408
+ };
409
+ const queryParams = {};
410
+ let headerParams = {
411
+ "Content-Type": common.Constants.APPLICATION_JSON,
412
+ "if-match": changeBatchJobPoolCompartmentRequest.ifMatch,
413
+ "opc-request-id": changeBatchJobPoolCompartmentRequest.opcRequestId
414
+ };
415
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
416
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBatchJobPoolCompartmentRequest.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: "/batchJobPools/{batchJobPoolId}/actions/changeCompartment",
423
+ method: "POST",
424
+ bodyContent: common.ObjectSerializer.serialize(changeBatchJobPoolCompartmentRequest.changeBatchJobPoolCompartmentDetails, "ChangeBatchJobPoolCompartmentDetails", model.ChangeBatchJobPoolCompartmentDetails.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
+ responseHeaders: [
434
+ {
435
+ value: response.headers.get("opc-work-request-id"),
436
+ key: "opcWorkRequestId",
437
+ dataType: "string"
438
+ },
439
+ {
440
+ value: response.headers.get("opc-request-id"),
441
+ key: "opcRequestId",
442
+ dataType: "string"
443
+ }
444
+ ]
445
+ });
446
+ return sdkResponse;
447
+ }
448
+ catch (err) {
449
+ throw err;
450
+ }
451
+ });
452
+ }
453
+ /**
454
+ * Moves a batch task environment into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
455
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
456
+ * @param ChangeBatchTaskEnvironmentCompartmentRequest
457
+ * @return ChangeBatchTaskEnvironmentCompartmentResponse
458
+ * @throws OciError when an error occurs
459
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ChangeBatchTaskEnvironmentCompartment.ts.html |here} to see how to use ChangeBatchTaskEnvironmentCompartment API.
460
+ */
461
+ changeBatchTaskEnvironmentCompartment(changeBatchTaskEnvironmentCompartmentRequest) {
462
+ return __awaiter(this, void 0, void 0, function* () {
463
+ if (this.logger)
464
+ this.logger.debug("Calling operation BatchComputingClient#changeBatchTaskEnvironmentCompartment.");
465
+ const operationName = "changeBatchTaskEnvironmentCompartment";
466
+ const apiReferenceLink = "";
467
+ const pathParams = {
468
+ "{batchTaskEnvironmentId}": changeBatchTaskEnvironmentCompartmentRequest.batchTaskEnvironmentId
469
+ };
470
+ const queryParams = {};
471
+ let headerParams = {
472
+ "Content-Type": common.Constants.APPLICATION_JSON,
473
+ "if-match": changeBatchTaskEnvironmentCompartmentRequest.ifMatch,
474
+ "opc-request-id": changeBatchTaskEnvironmentCompartmentRequest.opcRequestId
475
+ };
476
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
477
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBatchTaskEnvironmentCompartmentRequest.retryConfiguration, specRetryConfiguration);
478
+ if (this.logger)
479
+ retrier.logger = this.logger;
480
+ const request = yield oci_common_1.composeRequest({
481
+ baseEndpoint: this._endpoint,
482
+ defaultHeaders: this._defaultHeaders,
483
+ path: "/batchTaskEnvironments/{batchTaskEnvironmentId}/actions/changeCompartment",
484
+ method: "POST",
485
+ bodyContent: common.ObjectSerializer.serialize(changeBatchTaskEnvironmentCompartmentRequest.changeBatchTaskEnvironmentCompartmentDetails, "ChangeBatchTaskEnvironmentCompartmentDetails", model.ChangeBatchTaskEnvironmentCompartmentDetails.getJsonObj),
486
+ pathParams: pathParams,
487
+ headerParams: headerParams,
488
+ queryParams: queryParams
489
+ });
490
+ try {
491
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
492
+ const sdkResponse = oci_common_1.composeResponse({
493
+ responseObject: {},
494
+ responseHeaders: [
495
+ {
496
+ value: response.headers.get("opc-work-request-id"),
497
+ key: "opcWorkRequestId",
498
+ dataType: "string"
499
+ },
500
+ {
501
+ value: response.headers.get("opc-request-id"),
502
+ key: "opcRequestId",
503
+ dataType: "string"
504
+ }
505
+ ]
506
+ });
507
+ return sdkResponse;
508
+ }
509
+ catch (err) {
510
+ throw err;
511
+ }
512
+ });
513
+ }
514
+ /**
515
+ * Moves a batch task profile into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
516
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
517
+ * @param ChangeBatchTaskProfileCompartmentRequest
518
+ * @return ChangeBatchTaskProfileCompartmentResponse
519
+ * @throws OciError when an error occurs
520
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ChangeBatchTaskProfileCompartment.ts.html |here} to see how to use ChangeBatchTaskProfileCompartment API.
521
+ */
522
+ changeBatchTaskProfileCompartment(changeBatchTaskProfileCompartmentRequest) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ if (this.logger)
525
+ this.logger.debug("Calling operation BatchComputingClient#changeBatchTaskProfileCompartment.");
526
+ const operationName = "changeBatchTaskProfileCompartment";
527
+ const apiReferenceLink = "";
528
+ const pathParams = {
529
+ "{batchTaskProfileId}": changeBatchTaskProfileCompartmentRequest.batchTaskProfileId
530
+ };
531
+ const queryParams = {};
532
+ let headerParams = {
533
+ "Content-Type": common.Constants.APPLICATION_JSON,
534
+ "if-match": changeBatchTaskProfileCompartmentRequest.ifMatch,
535
+ "opc-request-id": changeBatchTaskProfileCompartmentRequest.opcRequestId
536
+ };
537
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
538
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBatchTaskProfileCompartmentRequest.retryConfiguration, specRetryConfiguration);
539
+ if (this.logger)
540
+ retrier.logger = this.logger;
541
+ const request = yield oci_common_1.composeRequest({
542
+ baseEndpoint: this._endpoint,
543
+ defaultHeaders: this._defaultHeaders,
544
+ path: "/batchTaskProfiles/{batchTaskProfileId}/actions/changeCompartment",
545
+ method: "POST",
546
+ bodyContent: common.ObjectSerializer.serialize(changeBatchTaskProfileCompartmentRequest.changeBatchTaskProfileCompartmentDetails, "ChangeBatchTaskProfileCompartmentDetails", model.ChangeBatchTaskProfileCompartmentDetails.getJsonObj),
547
+ pathParams: pathParams,
548
+ headerParams: headerParams,
549
+ queryParams: queryParams
550
+ });
551
+ try {
552
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
553
+ const sdkResponse = oci_common_1.composeResponse({
554
+ responseObject: {},
555
+ responseHeaders: [
556
+ {
557
+ value: response.headers.get("opc-work-request-id"),
558
+ key: "opcWorkRequestId",
559
+ dataType: "string"
560
+ },
561
+ {
562
+ value: response.headers.get("opc-request-id"),
563
+ key: "opcRequestId",
564
+ dataType: "string"
565
+ }
566
+ ]
567
+ });
568
+ return sdkResponse;
569
+ }
570
+ catch (err) {
571
+ throw err;
572
+ }
573
+ });
574
+ }
575
+ /**
576
+ * Creates a batch context.
577
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
578
+ * @param CreateBatchContextRequest
579
+ * @return CreateBatchContextResponse
580
+ * @throws OciError when an error occurs
581
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CreateBatchContext.ts.html |here} to see how to use CreateBatchContext API.
582
+ */
583
+ createBatchContext(createBatchContextRequest) {
584
+ return __awaiter(this, void 0, void 0, function* () {
585
+ if (this.logger)
586
+ this.logger.debug("Calling operation BatchComputingClient#createBatchContext.");
587
+ const operationName = "createBatchContext";
588
+ const apiReferenceLink = "";
589
+ const pathParams = {};
590
+ const queryParams = {};
591
+ let headerParams = {
592
+ "Content-Type": common.Constants.APPLICATION_JSON,
593
+ "opc-retry-token": createBatchContextRequest.opcRetryToken,
594
+ "opc-request-id": createBatchContextRequest.opcRequestId
595
+ };
596
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
597
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBatchContextRequest.retryConfiguration, specRetryConfiguration);
598
+ if (this.logger)
599
+ retrier.logger = this.logger;
600
+ const request = yield oci_common_1.composeRequest({
601
+ baseEndpoint: this._endpoint,
602
+ defaultHeaders: this._defaultHeaders,
603
+ path: "/batchContexts",
604
+ method: "POST",
605
+ bodyContent: common.ObjectSerializer.serialize(createBatchContextRequest.createBatchContextDetails, "CreateBatchContextDetails", model.CreateBatchContextDetails.getJsonObj),
606
+ pathParams: pathParams,
607
+ headerParams: headerParams,
608
+ queryParams: queryParams
609
+ });
610
+ try {
611
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
612
+ const sdkResponse = oci_common_1.composeResponse({
613
+ responseObject: {},
614
+ body: yield response.json(),
615
+ bodyKey: "batchContext",
616
+ bodyModel: model.BatchContext,
617
+ type: "model.BatchContext",
618
+ responseHeaders: [
619
+ {
620
+ value: response.headers.get("location"),
621
+ key: "location",
622
+ dataType: "string"
623
+ },
624
+ {
625
+ value: response.headers.get("content-location"),
626
+ key: "contentLocation",
627
+ dataType: "string"
628
+ },
629
+ {
630
+ value: response.headers.get("etag"),
631
+ key: "etag",
632
+ dataType: "string"
633
+ },
634
+ {
635
+ value: response.headers.get("opc-work-request-id"),
636
+ key: "opcWorkRequestId",
637
+ dataType: "string"
638
+ },
639
+ {
640
+ value: response.headers.get("opc-request-id"),
641
+ key: "opcRequestId",
642
+ dataType: "string"
643
+ }
644
+ ]
645
+ });
646
+ return sdkResponse;
647
+ }
648
+ catch (err) {
649
+ throw err;
650
+ }
651
+ });
652
+ }
653
+ /**
654
+ * Creates a batch job.
655
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
656
+ * @param CreateBatchJobRequest
657
+ * @return CreateBatchJobResponse
658
+ * @throws OciError when an error occurs
659
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CreateBatchJob.ts.html |here} to see how to use CreateBatchJob API.
660
+ */
661
+ createBatchJob(createBatchJobRequest) {
662
+ return __awaiter(this, void 0, void 0, function* () {
663
+ if (this.logger)
664
+ this.logger.debug("Calling operation BatchComputingClient#createBatchJob.");
665
+ const operationName = "createBatchJob";
666
+ const apiReferenceLink = "";
667
+ const pathParams = {};
668
+ const queryParams = {};
669
+ let headerParams = {
670
+ "Content-Type": common.Constants.APPLICATION_JSON,
671
+ "opc-retry-token": createBatchJobRequest.opcRetryToken,
672
+ "opc-request-id": createBatchJobRequest.opcRequestId
673
+ };
674
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
675
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBatchJobRequest.retryConfiguration, specRetryConfiguration);
676
+ if (this.logger)
677
+ retrier.logger = this.logger;
678
+ const request = yield oci_common_1.composeRequest({
679
+ baseEndpoint: this._endpoint,
680
+ defaultHeaders: this._defaultHeaders,
681
+ path: "/batchJobs",
682
+ method: "POST",
683
+ bodyContent: common.ObjectSerializer.serialize(createBatchJobRequest.createBatchJobDetails, "CreateBatchJobDetails", model.CreateBatchJobDetails.getJsonObj),
684
+ pathParams: pathParams,
685
+ headerParams: headerParams,
686
+ queryParams: queryParams
687
+ });
688
+ try {
689
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
690
+ const sdkResponse = oci_common_1.composeResponse({
691
+ responseObject: {},
692
+ body: yield response.json(),
693
+ bodyKey: "batchJob",
694
+ bodyModel: model.BatchJob,
695
+ type: "model.BatchJob",
696
+ responseHeaders: [
697
+ {
698
+ value: response.headers.get("location"),
699
+ key: "location",
700
+ dataType: "string"
701
+ },
702
+ {
703
+ value: response.headers.get("content-location"),
704
+ key: "contentLocation",
705
+ dataType: "string"
706
+ },
707
+ {
708
+ value: response.headers.get("etag"),
709
+ key: "etag",
710
+ dataType: "string"
711
+ },
712
+ {
713
+ value: response.headers.get("opc-work-request-id"),
714
+ key: "opcWorkRequestId",
715
+ dataType: "string"
716
+ },
717
+ {
718
+ value: response.headers.get("opc-request-id"),
719
+ key: "opcRequestId",
720
+ dataType: "string"
721
+ }
722
+ ]
723
+ });
724
+ return sdkResponse;
725
+ }
726
+ catch (err) {
727
+ throw err;
728
+ }
729
+ });
730
+ }
731
+ /**
732
+ * Creates a batch job pool.
733
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
734
+ * @param CreateBatchJobPoolRequest
735
+ * @return CreateBatchJobPoolResponse
736
+ * @throws OciError when an error occurs
737
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CreateBatchJobPool.ts.html |here} to see how to use CreateBatchJobPool API.
738
+ */
739
+ createBatchJobPool(createBatchJobPoolRequest) {
740
+ return __awaiter(this, void 0, void 0, function* () {
741
+ if (this.logger)
742
+ this.logger.debug("Calling operation BatchComputingClient#createBatchJobPool.");
743
+ const operationName = "createBatchJobPool";
744
+ const apiReferenceLink = "";
745
+ const pathParams = {};
746
+ const queryParams = {};
747
+ let headerParams = {
748
+ "Content-Type": common.Constants.APPLICATION_JSON,
749
+ "opc-retry-token": createBatchJobPoolRequest.opcRetryToken,
750
+ "opc-request-id": createBatchJobPoolRequest.opcRequestId
751
+ };
752
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
753
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
754
+ if (this.logger)
755
+ retrier.logger = this.logger;
756
+ const request = yield oci_common_1.composeRequest({
757
+ baseEndpoint: this._endpoint,
758
+ defaultHeaders: this._defaultHeaders,
759
+ path: "/batchJobPools",
760
+ method: "POST",
761
+ bodyContent: common.ObjectSerializer.serialize(createBatchJobPoolRequest.createBatchJobPoolDetails, "CreateBatchJobPoolDetails", model.CreateBatchJobPoolDetails.getJsonObj),
762
+ pathParams: pathParams,
763
+ headerParams: headerParams,
764
+ queryParams: queryParams
765
+ });
766
+ try {
767
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
768
+ const sdkResponse = oci_common_1.composeResponse({
769
+ responseObject: {},
770
+ body: yield response.json(),
771
+ bodyKey: "batchJobPool",
772
+ bodyModel: model.BatchJobPool,
773
+ type: "model.BatchJobPool",
774
+ responseHeaders: [
775
+ {
776
+ value: response.headers.get("etag"),
777
+ key: "etag",
778
+ dataType: "string"
779
+ },
780
+ {
781
+ value: response.headers.get("opc-request-id"),
782
+ key: "opcRequestId",
783
+ dataType: "string"
784
+ }
785
+ ]
786
+ });
787
+ return sdkResponse;
788
+ }
789
+ catch (err) {
790
+ throw err;
791
+ }
792
+ });
793
+ }
794
+ /**
795
+ * Creates a batch task environment.
796
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
797
+ * @param CreateBatchTaskEnvironmentRequest
798
+ * @return CreateBatchTaskEnvironmentResponse
799
+ * @throws OciError when an error occurs
800
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CreateBatchTaskEnvironment.ts.html |here} to see how to use CreateBatchTaskEnvironment API.
801
+ */
802
+ createBatchTaskEnvironment(createBatchTaskEnvironmentRequest) {
803
+ return __awaiter(this, void 0, void 0, function* () {
804
+ if (this.logger)
805
+ this.logger.debug("Calling operation BatchComputingClient#createBatchTaskEnvironment.");
806
+ const operationName = "createBatchTaskEnvironment";
807
+ const apiReferenceLink = "";
808
+ const pathParams = {};
809
+ const queryParams = {};
810
+ let headerParams = {
811
+ "Content-Type": common.Constants.APPLICATION_JSON,
812
+ "opc-retry-token": createBatchTaskEnvironmentRequest.opcRetryToken,
813
+ "opc-request-id": createBatchTaskEnvironmentRequest.opcRequestId
814
+ };
815
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
816
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBatchTaskEnvironmentRequest.retryConfiguration, specRetryConfiguration);
817
+ if (this.logger)
818
+ retrier.logger = this.logger;
819
+ const request = yield oci_common_1.composeRequest({
820
+ baseEndpoint: this._endpoint,
821
+ defaultHeaders: this._defaultHeaders,
822
+ path: "/batchTaskEnvironments",
823
+ method: "POST",
824
+ bodyContent: common.ObjectSerializer.serialize(createBatchTaskEnvironmentRequest.createBatchTaskEnvironmentDetails, "CreateBatchTaskEnvironmentDetails", model.CreateBatchTaskEnvironmentDetails.getJsonObj),
825
+ pathParams: pathParams,
826
+ headerParams: headerParams,
827
+ queryParams: queryParams
828
+ });
829
+ try {
830
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
831
+ const sdkResponse = oci_common_1.composeResponse({
832
+ responseObject: {},
833
+ body: yield response.json(),
834
+ bodyKey: "batchTaskEnvironment",
835
+ bodyModel: model.BatchTaskEnvironment,
836
+ type: "model.BatchTaskEnvironment",
837
+ responseHeaders: [
838
+ {
839
+ value: response.headers.get("etag"),
840
+ key: "etag",
841
+ dataType: "string"
842
+ },
843
+ {
844
+ value: response.headers.get("opc-request-id"),
845
+ key: "opcRequestId",
846
+ dataType: "string"
847
+ }
848
+ ]
849
+ });
850
+ return sdkResponse;
851
+ }
852
+ catch (err) {
853
+ throw err;
854
+ }
855
+ });
856
+ }
857
+ /**
858
+ * Creates a batch task profile.
859
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
860
+ * @param CreateBatchTaskProfileRequest
861
+ * @return CreateBatchTaskProfileResponse
862
+ * @throws OciError when an error occurs
863
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/CreateBatchTaskProfile.ts.html |here} to see how to use CreateBatchTaskProfile API.
864
+ */
865
+ createBatchTaskProfile(createBatchTaskProfileRequest) {
866
+ return __awaiter(this, void 0, void 0, function* () {
867
+ if (this.logger)
868
+ this.logger.debug("Calling operation BatchComputingClient#createBatchTaskProfile.");
869
+ const operationName = "createBatchTaskProfile";
870
+ const apiReferenceLink = "";
871
+ const pathParams = {};
872
+ const queryParams = {};
873
+ let headerParams = {
874
+ "Content-Type": common.Constants.APPLICATION_JSON,
875
+ "opc-retry-token": createBatchTaskProfileRequest.opcRetryToken,
876
+ "opc-request-id": createBatchTaskProfileRequest.opcRequestId
877
+ };
878
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
879
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBatchTaskProfileRequest.retryConfiguration, specRetryConfiguration);
880
+ if (this.logger)
881
+ retrier.logger = this.logger;
882
+ const request = yield oci_common_1.composeRequest({
883
+ baseEndpoint: this._endpoint,
884
+ defaultHeaders: this._defaultHeaders,
885
+ path: "/batchTaskProfiles",
886
+ method: "POST",
887
+ bodyContent: common.ObjectSerializer.serialize(createBatchTaskProfileRequest.createBatchTaskProfileDetails, "CreateBatchTaskProfileDetails", model.CreateBatchTaskProfileDetails.getJsonObj),
888
+ pathParams: pathParams,
889
+ headerParams: headerParams,
890
+ queryParams: queryParams
891
+ });
892
+ try {
893
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
894
+ const sdkResponse = oci_common_1.composeResponse({
895
+ responseObject: {},
896
+ body: yield response.json(),
897
+ bodyKey: "batchTaskProfile",
898
+ bodyModel: model.BatchTaskProfile,
899
+ type: "model.BatchTaskProfile",
900
+ responseHeaders: [
901
+ {
902
+ value: response.headers.get("etag"),
903
+ key: "etag",
904
+ dataType: "string"
905
+ },
906
+ {
907
+ value: response.headers.get("opc-request-id"),
908
+ key: "opcRequestId",
909
+ dataType: "string"
910
+ }
911
+ ]
912
+ });
913
+ return sdkResponse;
914
+ }
915
+ catch (err) {
916
+ throw err;
917
+ }
918
+ });
919
+ }
920
+ /**
921
+ * Deletes a batch context. All batch job pools associated with the batch context must be deleted beforehand.
922
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
923
+ * @param DeleteBatchContextRequest
924
+ * @return DeleteBatchContextResponse
925
+ * @throws OciError when an error occurs
926
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/DeleteBatchContext.ts.html |here} to see how to use DeleteBatchContext API.
927
+ */
928
+ deleteBatchContext(deleteBatchContextRequest) {
929
+ return __awaiter(this, void 0, void 0, function* () {
930
+ if (this.logger)
931
+ this.logger.debug("Calling operation BatchComputingClient#deleteBatchContext.");
932
+ const operationName = "deleteBatchContext";
933
+ const apiReferenceLink = "";
934
+ const pathParams = {
935
+ "{batchContextId}": deleteBatchContextRequest.batchContextId
936
+ };
937
+ const queryParams = {};
938
+ let headerParams = {
939
+ "Content-Type": common.Constants.APPLICATION_JSON,
940
+ "if-match": deleteBatchContextRequest.ifMatch,
941
+ "opc-request-id": deleteBatchContextRequest.opcRequestId
942
+ };
943
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
944
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBatchContextRequest.retryConfiguration, specRetryConfiguration);
945
+ if (this.logger)
946
+ retrier.logger = this.logger;
947
+ const request = yield oci_common_1.composeRequest({
948
+ baseEndpoint: this._endpoint,
949
+ defaultHeaders: this._defaultHeaders,
950
+ path: "/batchContexts/{batchContextId}",
951
+ method: "DELETE",
952
+ pathParams: pathParams,
953
+ headerParams: headerParams,
954
+ queryParams: queryParams
955
+ });
956
+ try {
957
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
958
+ const sdkResponse = oci_common_1.composeResponse({
959
+ responseObject: {},
960
+ responseHeaders: [
961
+ {
962
+ value: response.headers.get("opc-work-request-id"),
963
+ key: "opcWorkRequestId",
964
+ dataType: "string"
965
+ },
966
+ {
967
+ value: response.headers.get("opc-request-id"),
968
+ key: "opcRequestId",
969
+ dataType: "string"
970
+ }
971
+ ]
972
+ });
973
+ return sdkResponse;
974
+ }
975
+ catch (err) {
976
+ throw err;
977
+ }
978
+ });
979
+ }
980
+ /**
981
+ * Deletes a batch job pool. All batch jobs associated with the batch job pool must be canceled beforehand.
982
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
983
+ * @param DeleteBatchJobPoolRequest
984
+ * @return DeleteBatchJobPoolResponse
985
+ * @throws OciError when an error occurs
986
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/DeleteBatchJobPool.ts.html |here} to see how to use DeleteBatchJobPool API.
987
+ */
988
+ deleteBatchJobPool(deleteBatchJobPoolRequest) {
989
+ return __awaiter(this, void 0, void 0, function* () {
990
+ if (this.logger)
991
+ this.logger.debug("Calling operation BatchComputingClient#deleteBatchJobPool.");
992
+ const operationName = "deleteBatchJobPool";
993
+ const apiReferenceLink = "";
994
+ const pathParams = {
995
+ "{batchJobPoolId}": deleteBatchJobPoolRequest.batchJobPoolId
996
+ };
997
+ const queryParams = {};
998
+ let headerParams = {
999
+ "Content-Type": common.Constants.APPLICATION_JSON,
1000
+ "if-match": deleteBatchJobPoolRequest.ifMatch,
1001
+ "opc-request-id": deleteBatchJobPoolRequest.opcRequestId
1002
+ };
1003
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1004
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
1005
+ if (this.logger)
1006
+ retrier.logger = this.logger;
1007
+ const request = yield oci_common_1.composeRequest({
1008
+ baseEndpoint: this._endpoint,
1009
+ defaultHeaders: this._defaultHeaders,
1010
+ path: "/batchJobPools/{batchJobPoolId}",
1011
+ method: "DELETE",
1012
+ pathParams: pathParams,
1013
+ headerParams: headerParams,
1014
+ queryParams: queryParams
1015
+ });
1016
+ try {
1017
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1018
+ const sdkResponse = oci_common_1.composeResponse({
1019
+ responseObject: {},
1020
+ responseHeaders: [
1021
+ {
1022
+ value: response.headers.get("opc-request-id"),
1023
+ key: "opcRequestId",
1024
+ dataType: "string"
1025
+ }
1026
+ ]
1027
+ });
1028
+ return sdkResponse;
1029
+ }
1030
+ catch (err) {
1031
+ throw err;
1032
+ }
1033
+ });
1034
+ }
1035
+ /**
1036
+ * Deletes a batch task environment. All batch tasks associated with the batch task environment must be canceled beforehand.
1037
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1038
+ * @param DeleteBatchTaskEnvironmentRequest
1039
+ * @return DeleteBatchTaskEnvironmentResponse
1040
+ * @throws OciError when an error occurs
1041
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/DeleteBatchTaskEnvironment.ts.html |here} to see how to use DeleteBatchTaskEnvironment API.
1042
+ */
1043
+ deleteBatchTaskEnvironment(deleteBatchTaskEnvironmentRequest) {
1044
+ return __awaiter(this, void 0, void 0, function* () {
1045
+ if (this.logger)
1046
+ this.logger.debug("Calling operation BatchComputingClient#deleteBatchTaskEnvironment.");
1047
+ const operationName = "deleteBatchTaskEnvironment";
1048
+ const apiReferenceLink = "";
1049
+ const pathParams = {
1050
+ "{batchTaskEnvironmentId}": deleteBatchTaskEnvironmentRequest.batchTaskEnvironmentId
1051
+ };
1052
+ const queryParams = {};
1053
+ let headerParams = {
1054
+ "Content-Type": common.Constants.APPLICATION_JSON,
1055
+ "if-match": deleteBatchTaskEnvironmentRequest.ifMatch,
1056
+ "opc-request-id": deleteBatchTaskEnvironmentRequest.opcRequestId
1057
+ };
1058
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1059
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBatchTaskEnvironmentRequest.retryConfiguration, specRetryConfiguration);
1060
+ if (this.logger)
1061
+ retrier.logger = this.logger;
1062
+ const request = yield oci_common_1.composeRequest({
1063
+ baseEndpoint: this._endpoint,
1064
+ defaultHeaders: this._defaultHeaders,
1065
+ path: "/batchTaskEnvironments/{batchTaskEnvironmentId}",
1066
+ method: "DELETE",
1067
+ pathParams: pathParams,
1068
+ headerParams: headerParams,
1069
+ queryParams: queryParams
1070
+ });
1071
+ try {
1072
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1073
+ const sdkResponse = oci_common_1.composeResponse({
1074
+ responseObject: {},
1075
+ responseHeaders: [
1076
+ {
1077
+ value: response.headers.get("opc-request-id"),
1078
+ key: "opcRequestId",
1079
+ dataType: "string"
1080
+ }
1081
+ ]
1082
+ });
1083
+ return sdkResponse;
1084
+ }
1085
+ catch (err) {
1086
+ throw err;
1087
+ }
1088
+ });
1089
+ }
1090
+ /**
1091
+ * Deletes a batch task profile. All batch tasks associated with the batch task profile must be canceled beforehand.
1092
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1093
+ * @param DeleteBatchTaskProfileRequest
1094
+ * @return DeleteBatchTaskProfileResponse
1095
+ * @throws OciError when an error occurs
1096
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/DeleteBatchTaskProfile.ts.html |here} to see how to use DeleteBatchTaskProfile API.
1097
+ */
1098
+ deleteBatchTaskProfile(deleteBatchTaskProfileRequest) {
1099
+ return __awaiter(this, void 0, void 0, function* () {
1100
+ if (this.logger)
1101
+ this.logger.debug("Calling operation BatchComputingClient#deleteBatchTaskProfile.");
1102
+ const operationName = "deleteBatchTaskProfile";
1103
+ const apiReferenceLink = "";
1104
+ const pathParams = {
1105
+ "{batchTaskProfileId}": deleteBatchTaskProfileRequest.batchTaskProfileId
1106
+ };
1107
+ const queryParams = {};
1108
+ let headerParams = {
1109
+ "Content-Type": common.Constants.APPLICATION_JSON,
1110
+ "if-match": deleteBatchTaskProfileRequest.ifMatch,
1111
+ "opc-request-id": deleteBatchTaskProfileRequest.opcRequestId
1112
+ };
1113
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1114
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBatchTaskProfileRequest.retryConfiguration, specRetryConfiguration);
1115
+ if (this.logger)
1116
+ retrier.logger = this.logger;
1117
+ const request = yield oci_common_1.composeRequest({
1118
+ baseEndpoint: this._endpoint,
1119
+ defaultHeaders: this._defaultHeaders,
1120
+ path: "/batchTaskProfiles/{batchTaskProfileId}",
1121
+ method: "DELETE",
1122
+ pathParams: pathParams,
1123
+ headerParams: headerParams,
1124
+ queryParams: queryParams
1125
+ });
1126
+ try {
1127
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1128
+ const sdkResponse = oci_common_1.composeResponse({
1129
+ responseObject: {},
1130
+ responseHeaders: [
1131
+ {
1132
+ value: response.headers.get("opc-request-id"),
1133
+ key: "opcRequestId",
1134
+ dataType: "string"
1135
+ }
1136
+ ]
1137
+ });
1138
+ return sdkResponse;
1139
+ }
1140
+ catch (err) {
1141
+ throw err;
1142
+ }
1143
+ });
1144
+ }
1145
+ /**
1146
+ * Gets information about a batch context.
1147
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1148
+ * @param GetBatchContextRequest
1149
+ * @return GetBatchContextResponse
1150
+ * @throws OciError when an error occurs
1151
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchContext.ts.html |here} to see how to use GetBatchContext API.
1152
+ */
1153
+ getBatchContext(getBatchContextRequest) {
1154
+ return __awaiter(this, void 0, void 0, function* () {
1155
+ if (this.logger)
1156
+ this.logger.debug("Calling operation BatchComputingClient#getBatchContext.");
1157
+ const operationName = "getBatchContext";
1158
+ const apiReferenceLink = "";
1159
+ const pathParams = {
1160
+ "{batchContextId}": getBatchContextRequest.batchContextId
1161
+ };
1162
+ const queryParams = {};
1163
+ let headerParams = {
1164
+ "Content-Type": common.Constants.APPLICATION_JSON,
1165
+ "opc-request-id": getBatchContextRequest.opcRequestId
1166
+ };
1167
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1168
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchContextRequest.retryConfiguration, specRetryConfiguration);
1169
+ if (this.logger)
1170
+ retrier.logger = this.logger;
1171
+ const request = yield oci_common_1.composeRequest({
1172
+ baseEndpoint: this._endpoint,
1173
+ defaultHeaders: this._defaultHeaders,
1174
+ path: "/batchContexts/{batchContextId}",
1175
+ method: "GET",
1176
+ pathParams: pathParams,
1177
+ headerParams: headerParams,
1178
+ queryParams: queryParams
1179
+ });
1180
+ try {
1181
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1182
+ const sdkResponse = oci_common_1.composeResponse({
1183
+ responseObject: {},
1184
+ body: yield response.json(),
1185
+ bodyKey: "batchContext",
1186
+ bodyModel: model.BatchContext,
1187
+ type: "model.BatchContext",
1188
+ responseHeaders: [
1189
+ {
1190
+ value: response.headers.get("etag"),
1191
+ key: "etag",
1192
+ dataType: "string"
1193
+ },
1194
+ {
1195
+ value: response.headers.get("opc-request-id"),
1196
+ key: "opcRequestId",
1197
+ dataType: "string"
1198
+ }
1199
+ ]
1200
+ });
1201
+ return sdkResponse;
1202
+ }
1203
+ catch (err) {
1204
+ throw err;
1205
+ }
1206
+ });
1207
+ }
1208
+ /**
1209
+ * Gets information about a batch job.
1210
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1211
+ * @param GetBatchJobRequest
1212
+ * @return GetBatchJobResponse
1213
+ * @throws OciError when an error occurs
1214
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchJob.ts.html |here} to see how to use GetBatchJob API.
1215
+ */
1216
+ getBatchJob(getBatchJobRequest) {
1217
+ return __awaiter(this, void 0, void 0, function* () {
1218
+ if (this.logger)
1219
+ this.logger.debug("Calling operation BatchComputingClient#getBatchJob.");
1220
+ const operationName = "getBatchJob";
1221
+ const apiReferenceLink = "";
1222
+ const pathParams = {
1223
+ "{batchJobId}": getBatchJobRequest.batchJobId
1224
+ };
1225
+ const queryParams = {};
1226
+ let headerParams = {
1227
+ "Content-Type": common.Constants.APPLICATION_JSON,
1228
+ "opc-request-id": getBatchJobRequest.opcRequestId
1229
+ };
1230
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1231
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchJobRequest.retryConfiguration, specRetryConfiguration);
1232
+ if (this.logger)
1233
+ retrier.logger = this.logger;
1234
+ const request = yield oci_common_1.composeRequest({
1235
+ baseEndpoint: this._endpoint,
1236
+ defaultHeaders: this._defaultHeaders,
1237
+ path: "/batchJobs/{batchJobId}",
1238
+ method: "GET",
1239
+ pathParams: pathParams,
1240
+ headerParams: headerParams,
1241
+ queryParams: queryParams
1242
+ });
1243
+ try {
1244
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1245
+ const sdkResponse = oci_common_1.composeResponse({
1246
+ responseObject: {},
1247
+ body: yield response.json(),
1248
+ bodyKey: "batchJob",
1249
+ bodyModel: model.BatchJob,
1250
+ type: "model.BatchJob",
1251
+ responseHeaders: [
1252
+ {
1253
+ value: response.headers.get("etag"),
1254
+ key: "etag",
1255
+ dataType: "string"
1256
+ },
1257
+ {
1258
+ value: response.headers.get("opc-request-id"),
1259
+ key: "opcRequestId",
1260
+ dataType: "string"
1261
+ }
1262
+ ]
1263
+ });
1264
+ return sdkResponse;
1265
+ }
1266
+ catch (err) {
1267
+ throw err;
1268
+ }
1269
+ });
1270
+ }
1271
+ /**
1272
+ * Gets information about a batch job pool.
1273
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1274
+ * @param GetBatchJobPoolRequest
1275
+ * @return GetBatchJobPoolResponse
1276
+ * @throws OciError when an error occurs
1277
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchJobPool.ts.html |here} to see how to use GetBatchJobPool API.
1278
+ */
1279
+ getBatchJobPool(getBatchJobPoolRequest) {
1280
+ return __awaiter(this, void 0, void 0, function* () {
1281
+ if (this.logger)
1282
+ this.logger.debug("Calling operation BatchComputingClient#getBatchJobPool.");
1283
+ const operationName = "getBatchJobPool";
1284
+ const apiReferenceLink = "";
1285
+ const pathParams = {
1286
+ "{batchJobPoolId}": getBatchJobPoolRequest.batchJobPoolId
1287
+ };
1288
+ const queryParams = {};
1289
+ let headerParams = {
1290
+ "Content-Type": common.Constants.APPLICATION_JSON,
1291
+ "opc-request-id": getBatchJobPoolRequest.opcRequestId
1292
+ };
1293
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1294
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
1295
+ if (this.logger)
1296
+ retrier.logger = this.logger;
1297
+ const request = yield oci_common_1.composeRequest({
1298
+ baseEndpoint: this._endpoint,
1299
+ defaultHeaders: this._defaultHeaders,
1300
+ path: "/batchJobPools/{batchJobPoolId}",
1301
+ method: "GET",
1302
+ pathParams: pathParams,
1303
+ headerParams: headerParams,
1304
+ queryParams: queryParams
1305
+ });
1306
+ try {
1307
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1308
+ const sdkResponse = oci_common_1.composeResponse({
1309
+ responseObject: {},
1310
+ body: yield response.json(),
1311
+ bodyKey: "batchJobPool",
1312
+ bodyModel: model.BatchJobPool,
1313
+ type: "model.BatchJobPool",
1314
+ responseHeaders: [
1315
+ {
1316
+ value: response.headers.get("etag"),
1317
+ key: "etag",
1318
+ dataType: "string"
1319
+ },
1320
+ {
1321
+ value: response.headers.get("opc-request-id"),
1322
+ key: "opcRequestId",
1323
+ dataType: "string"
1324
+ }
1325
+ ]
1326
+ });
1327
+ return sdkResponse;
1328
+ }
1329
+ catch (err) {
1330
+ throw err;
1331
+ }
1332
+ });
1333
+ }
1334
+ /**
1335
+ * Gets a specific batch task associated with a batch job by its name.
1336
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1337
+ * @param GetBatchTaskRequest
1338
+ * @return GetBatchTaskResponse
1339
+ * @throws OciError when an error occurs
1340
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchTask.ts.html |here} to see how to use GetBatchTask API.
1341
+ */
1342
+ getBatchTask(getBatchTaskRequest) {
1343
+ return __awaiter(this, void 0, void 0, function* () {
1344
+ if (this.logger)
1345
+ this.logger.debug("Calling operation BatchComputingClient#getBatchTask.");
1346
+ const operationName = "getBatchTask";
1347
+ const apiReferenceLink = "";
1348
+ const pathParams = {
1349
+ "{batchJobId}": getBatchTaskRequest.batchJobId,
1350
+ "{taskName}": getBatchTaskRequest.taskName
1351
+ };
1352
+ const queryParams = {};
1353
+ let headerParams = {
1354
+ "Content-Type": common.Constants.APPLICATION_JSON,
1355
+ "opc-request-id": getBatchTaskRequest.opcRequestId
1356
+ };
1357
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1358
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchTaskRequest.retryConfiguration, specRetryConfiguration);
1359
+ if (this.logger)
1360
+ retrier.logger = this.logger;
1361
+ const request = yield oci_common_1.composeRequest({
1362
+ baseEndpoint: this._endpoint,
1363
+ defaultHeaders: this._defaultHeaders,
1364
+ path: "/batchJobs/{batchJobId}/tasks/{taskName}",
1365
+ method: "GET",
1366
+ pathParams: pathParams,
1367
+ headerParams: headerParams,
1368
+ queryParams: queryParams
1369
+ });
1370
+ try {
1371
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1372
+ const sdkResponse = oci_common_1.composeResponse({
1373
+ responseObject: {},
1374
+ body: yield response.json(),
1375
+ bodyKey: "batchTask",
1376
+ bodyModel: model.BatchTask,
1377
+ type: "model.BatchTask",
1378
+ responseHeaders: [
1379
+ {
1380
+ value: response.headers.get("opc-request-id"),
1381
+ key: "opcRequestId",
1382
+ dataType: "string"
1383
+ }
1384
+ ]
1385
+ });
1386
+ return sdkResponse;
1387
+ }
1388
+ catch (err) {
1389
+ throw err;
1390
+ }
1391
+ });
1392
+ }
1393
+ /**
1394
+ * Gets information about a batch task environment.
1395
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1396
+ * @param GetBatchTaskEnvironmentRequest
1397
+ * @return GetBatchTaskEnvironmentResponse
1398
+ * @throws OciError when an error occurs
1399
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchTaskEnvironment.ts.html |here} to see how to use GetBatchTaskEnvironment API.
1400
+ */
1401
+ getBatchTaskEnvironment(getBatchTaskEnvironmentRequest) {
1402
+ return __awaiter(this, void 0, void 0, function* () {
1403
+ if (this.logger)
1404
+ this.logger.debug("Calling operation BatchComputingClient#getBatchTaskEnvironment.");
1405
+ const operationName = "getBatchTaskEnvironment";
1406
+ const apiReferenceLink = "";
1407
+ const pathParams = {
1408
+ "{batchTaskEnvironmentId}": getBatchTaskEnvironmentRequest.batchTaskEnvironmentId
1409
+ };
1410
+ const queryParams = {};
1411
+ let headerParams = {
1412
+ "Content-Type": common.Constants.APPLICATION_JSON,
1413
+ "opc-request-id": getBatchTaskEnvironmentRequest.opcRequestId
1414
+ };
1415
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1416
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchTaskEnvironmentRequest.retryConfiguration, specRetryConfiguration);
1417
+ if (this.logger)
1418
+ retrier.logger = this.logger;
1419
+ const request = yield oci_common_1.composeRequest({
1420
+ baseEndpoint: this._endpoint,
1421
+ defaultHeaders: this._defaultHeaders,
1422
+ path: "/batchTaskEnvironments/{batchTaskEnvironmentId}",
1423
+ method: "GET",
1424
+ pathParams: pathParams,
1425
+ headerParams: headerParams,
1426
+ queryParams: queryParams
1427
+ });
1428
+ try {
1429
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1430
+ const sdkResponse = oci_common_1.composeResponse({
1431
+ responseObject: {},
1432
+ body: yield response.json(),
1433
+ bodyKey: "batchTaskEnvironment",
1434
+ bodyModel: model.BatchTaskEnvironment,
1435
+ type: "model.BatchTaskEnvironment",
1436
+ responseHeaders: [
1437
+ {
1438
+ value: response.headers.get("etag"),
1439
+ key: "etag",
1440
+ dataType: "string"
1441
+ },
1442
+ {
1443
+ value: response.headers.get("opc-request-id"),
1444
+ key: "opcRequestId",
1445
+ dataType: "string"
1446
+ }
1447
+ ]
1448
+ });
1449
+ return sdkResponse;
1450
+ }
1451
+ catch (err) {
1452
+ throw err;
1453
+ }
1454
+ });
1455
+ }
1456
+ /**
1457
+ * Gets information about a batch task profile.
1458
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1459
+ * @param GetBatchTaskProfileRequest
1460
+ * @return GetBatchTaskProfileResponse
1461
+ * @throws OciError when an error occurs
1462
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetBatchTaskProfile.ts.html |here} to see how to use GetBatchTaskProfile API.
1463
+ */
1464
+ getBatchTaskProfile(getBatchTaskProfileRequest) {
1465
+ return __awaiter(this, void 0, void 0, function* () {
1466
+ if (this.logger)
1467
+ this.logger.debug("Calling operation BatchComputingClient#getBatchTaskProfile.");
1468
+ const operationName = "getBatchTaskProfile";
1469
+ const apiReferenceLink = "";
1470
+ const pathParams = {
1471
+ "{batchTaskProfileId}": getBatchTaskProfileRequest.batchTaskProfileId
1472
+ };
1473
+ const queryParams = {};
1474
+ let headerParams = {
1475
+ "Content-Type": common.Constants.APPLICATION_JSON,
1476
+ "opc-request-id": getBatchTaskProfileRequest.opcRequestId
1477
+ };
1478
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1479
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBatchTaskProfileRequest.retryConfiguration, specRetryConfiguration);
1480
+ if (this.logger)
1481
+ retrier.logger = this.logger;
1482
+ const request = yield oci_common_1.composeRequest({
1483
+ baseEndpoint: this._endpoint,
1484
+ defaultHeaders: this._defaultHeaders,
1485
+ path: "/batchTaskProfiles/{batchTaskProfileId}",
1486
+ method: "GET",
1487
+ pathParams: pathParams,
1488
+ headerParams: headerParams,
1489
+ queryParams: queryParams
1490
+ });
1491
+ try {
1492
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1493
+ const sdkResponse = oci_common_1.composeResponse({
1494
+ responseObject: {},
1495
+ body: yield response.json(),
1496
+ bodyKey: "batchTaskProfile",
1497
+ bodyModel: model.BatchTaskProfile,
1498
+ type: "model.BatchTaskProfile",
1499
+ responseHeaders: [
1500
+ {
1501
+ value: response.headers.get("etag"),
1502
+ key: "etag",
1503
+ dataType: "string"
1504
+ },
1505
+ {
1506
+ value: response.headers.get("opc-request-id"),
1507
+ key: "opcRequestId",
1508
+ dataType: "string"
1509
+ }
1510
+ ]
1511
+ });
1512
+ return sdkResponse;
1513
+ }
1514
+ catch (err) {
1515
+ throw err;
1516
+ }
1517
+ });
1518
+ }
1519
+ /**
1520
+ * Gets the details of a work request.
1521
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1522
+ * @param GetWorkRequestRequest
1523
+ * @return GetWorkRequestResponse
1524
+ * @throws OciError when an error occurs
1525
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1526
+ */
1527
+ getWorkRequest(getWorkRequestRequest) {
1528
+ return __awaiter(this, void 0, void 0, function* () {
1529
+ if (this.logger)
1530
+ this.logger.debug("Calling operation BatchComputingClient#getWorkRequest.");
1531
+ const operationName = "getWorkRequest";
1532
+ const apiReferenceLink = "";
1533
+ const pathParams = {
1534
+ "{workRequestId}": getWorkRequestRequest.workRequestId
1535
+ };
1536
+ const queryParams = {};
1537
+ let headerParams = {
1538
+ "Content-Type": common.Constants.APPLICATION_JSON,
1539
+ "opc-request-id": getWorkRequestRequest.opcRequestId
1540
+ };
1541
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1542
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1543
+ if (this.logger)
1544
+ retrier.logger = this.logger;
1545
+ const request = yield oci_common_1.composeRequest({
1546
+ baseEndpoint: this._endpoint,
1547
+ defaultHeaders: this._defaultHeaders,
1548
+ path: "/workRequests/{workRequestId}",
1549
+ method: "GET",
1550
+ pathParams: pathParams,
1551
+ headerParams: headerParams,
1552
+ queryParams: queryParams
1553
+ });
1554
+ try {
1555
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1556
+ const sdkResponse = oci_common_1.composeResponse({
1557
+ responseObject: {},
1558
+ body: yield response.json(),
1559
+ bodyKey: "workRequest",
1560
+ bodyModel: model.WorkRequest,
1561
+ type: "model.WorkRequest",
1562
+ responseHeaders: [
1563
+ {
1564
+ value: response.headers.get("etag"),
1565
+ key: "etag",
1566
+ dataType: "string"
1567
+ },
1568
+ {
1569
+ value: response.headers.get("opc-request-id"),
1570
+ key: "opcRequestId",
1571
+ dataType: "string"
1572
+ },
1573
+ {
1574
+ value: response.headers.get("retry-after"),
1575
+ key: "retryAfter",
1576
+ dataType: "number"
1577
+ }
1578
+ ]
1579
+ });
1580
+ return sdkResponse;
1581
+ }
1582
+ catch (err) {
1583
+ throw err;
1584
+ }
1585
+ });
1586
+ }
1587
+ /**
1588
+ * Lists the shapes allowed to be specified during batch context creation. Ordered by the shape name.
1589
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1590
+ * @param ListBatchContextShapesRequest
1591
+ * @return ListBatchContextShapesResponse
1592
+ * @throws OciError when an error occurs
1593
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchContextShapes.ts.html |here} to see how to use ListBatchContextShapes API.
1594
+ */
1595
+ listBatchContextShapes(listBatchContextShapesRequest) {
1596
+ return __awaiter(this, void 0, void 0, function* () {
1597
+ if (this.logger)
1598
+ this.logger.debug("Calling operation BatchComputingClient#listBatchContextShapes.");
1599
+ const operationName = "listBatchContextShapes";
1600
+ const apiReferenceLink = "";
1601
+ const pathParams = {};
1602
+ const queryParams = {
1603
+ "compartmentId": listBatchContextShapesRequest.compartmentId,
1604
+ "availabilityDomain": listBatchContextShapesRequest.availabilityDomain,
1605
+ "limit": listBatchContextShapesRequest.limit,
1606
+ "page": listBatchContextShapesRequest.page
1607
+ };
1608
+ let headerParams = {
1609
+ "Content-Type": common.Constants.APPLICATION_JSON,
1610
+ "opc-request-id": listBatchContextShapesRequest.opcRequestId
1611
+ };
1612
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1613
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchContextShapesRequest.retryConfiguration, specRetryConfiguration);
1614
+ if (this.logger)
1615
+ retrier.logger = this.logger;
1616
+ const request = yield oci_common_1.composeRequest({
1617
+ baseEndpoint: this._endpoint,
1618
+ defaultHeaders: this._defaultHeaders,
1619
+ path: "/batchContextShapes",
1620
+ method: "GET",
1621
+ pathParams: pathParams,
1622
+ headerParams: headerParams,
1623
+ queryParams: queryParams
1624
+ });
1625
+ try {
1626
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1627
+ const sdkResponse = oci_common_1.composeResponse({
1628
+ responseObject: {},
1629
+ body: yield response.json(),
1630
+ bodyKey: "batchContextShapeCollection",
1631
+ bodyModel: model.BatchContextShapeCollection,
1632
+ type: "model.BatchContextShapeCollection",
1633
+ responseHeaders: [
1634
+ {
1635
+ value: response.headers.get("opc-request-id"),
1636
+ key: "opcRequestId",
1637
+ dataType: "string"
1638
+ },
1639
+ {
1640
+ value: response.headers.get("opc-next-page"),
1641
+ key: "opcNextPage",
1642
+ dataType: "string"
1643
+ }
1644
+ ]
1645
+ });
1646
+ return sdkResponse;
1647
+ }
1648
+ catch (err) {
1649
+ throw err;
1650
+ }
1651
+ });
1652
+ }
1653
+ /**
1654
+ * Lists the batch contexts by compartment or context [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchContext to get the full details on a specific context
1655
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1656
+ * @param ListBatchContextsRequest
1657
+ * @return ListBatchContextsResponse
1658
+ * @throws OciError when an error occurs
1659
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchContexts.ts.html |here} to see how to use ListBatchContexts API.
1660
+ */
1661
+ listBatchContexts(listBatchContextsRequest) {
1662
+ return __awaiter(this, void 0, void 0, function* () {
1663
+ if (this.logger)
1664
+ this.logger.debug("Calling operation BatchComputingClient#listBatchContexts.");
1665
+ const operationName = "listBatchContexts";
1666
+ const apiReferenceLink = "";
1667
+ const pathParams = {};
1668
+ const queryParams = {
1669
+ "compartmentId": listBatchContextsRequest.compartmentId,
1670
+ "lifecycleState": listBatchContextsRequest.lifecycleState,
1671
+ "displayName": listBatchContextsRequest.displayName,
1672
+ "id": listBatchContextsRequest.id,
1673
+ "limit": listBatchContextsRequest.limit,
1674
+ "page": listBatchContextsRequest.page,
1675
+ "sortOrder": listBatchContextsRequest.sortOrder,
1676
+ "sortBy": listBatchContextsRequest.sortBy
1677
+ };
1678
+ let headerParams = {
1679
+ "Content-Type": common.Constants.APPLICATION_JSON,
1680
+ "opc-request-id": listBatchContextsRequest.opcRequestId
1681
+ };
1682
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1683
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchContextsRequest.retryConfiguration, specRetryConfiguration);
1684
+ if (this.logger)
1685
+ retrier.logger = this.logger;
1686
+ const request = yield oci_common_1.composeRequest({
1687
+ baseEndpoint: this._endpoint,
1688
+ defaultHeaders: this._defaultHeaders,
1689
+ path: "/batchContexts",
1690
+ method: "GET",
1691
+ pathParams: pathParams,
1692
+ headerParams: headerParams,
1693
+ queryParams: queryParams
1694
+ });
1695
+ try {
1696
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1697
+ const sdkResponse = oci_common_1.composeResponse({
1698
+ responseObject: {},
1699
+ body: yield response.json(),
1700
+ bodyKey: "batchContextCollection",
1701
+ bodyModel: model.BatchContextCollection,
1702
+ type: "model.BatchContextCollection",
1703
+ responseHeaders: [
1704
+ {
1705
+ value: response.headers.get("opc-request-id"),
1706
+ key: "opcRequestId",
1707
+ dataType: "string"
1708
+ },
1709
+ {
1710
+ value: response.headers.get("opc-next-page"),
1711
+ key: "opcNextPage",
1712
+ dataType: "string"
1713
+ }
1714
+ ]
1715
+ });
1716
+ return sdkResponse;
1717
+ }
1718
+ catch (err) {
1719
+ throw err;
1720
+ }
1721
+ });
1722
+ }
1723
+ /**
1724
+ * Lists the batch job pools by compartment or job pool [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJobPool to get the full details on a specific context
1725
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1726
+ * @param ListBatchJobPoolsRequest
1727
+ * @return ListBatchJobPoolsResponse
1728
+ * @throws OciError when an error occurs
1729
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchJobPools.ts.html |here} to see how to use ListBatchJobPools API.
1730
+ */
1731
+ listBatchJobPools(listBatchJobPoolsRequest) {
1732
+ return __awaiter(this, void 0, void 0, function* () {
1733
+ if (this.logger)
1734
+ this.logger.debug("Calling operation BatchComputingClient#listBatchJobPools.");
1735
+ const operationName = "listBatchJobPools";
1736
+ const apiReferenceLink = "";
1737
+ const pathParams = {};
1738
+ const queryParams = {
1739
+ "compartmentId": listBatchJobPoolsRequest.compartmentId,
1740
+ "lifecycleState": listBatchJobPoolsRequest.lifecycleState,
1741
+ "displayName": listBatchJobPoolsRequest.displayName,
1742
+ "id": listBatchJobPoolsRequest.id,
1743
+ "batchContextId": listBatchJobPoolsRequest.batchContextId,
1744
+ "limit": listBatchJobPoolsRequest.limit,
1745
+ "page": listBatchJobPoolsRequest.page,
1746
+ "sortOrder": listBatchJobPoolsRequest.sortOrder,
1747
+ "sortBy": listBatchJobPoolsRequest.sortBy
1748
+ };
1749
+ let headerParams = {
1750
+ "Content-Type": common.Constants.APPLICATION_JSON,
1751
+ "opc-request-id": listBatchJobPoolsRequest.opcRequestId
1752
+ };
1753
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1754
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchJobPoolsRequest.retryConfiguration, specRetryConfiguration);
1755
+ if (this.logger)
1756
+ retrier.logger = this.logger;
1757
+ const request = yield oci_common_1.composeRequest({
1758
+ baseEndpoint: this._endpoint,
1759
+ defaultHeaders: this._defaultHeaders,
1760
+ path: "/batchJobPools",
1761
+ method: "GET",
1762
+ pathParams: pathParams,
1763
+ headerParams: headerParams,
1764
+ queryParams: queryParams
1765
+ });
1766
+ try {
1767
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1768
+ const sdkResponse = oci_common_1.composeResponse({
1769
+ responseObject: {},
1770
+ body: yield response.json(),
1771
+ bodyKey: "batchJobPoolCollection",
1772
+ bodyModel: model.BatchJobPoolCollection,
1773
+ type: "model.BatchJobPoolCollection",
1774
+ responseHeaders: [
1775
+ {
1776
+ value: response.headers.get("opc-request-id"),
1777
+ key: "opcRequestId",
1778
+ dataType: "string"
1779
+ },
1780
+ {
1781
+ value: response.headers.get("opc-next-page"),
1782
+ key: "opcNextPage",
1783
+ dataType: "string"
1784
+ }
1785
+ ]
1786
+ });
1787
+ return sdkResponse;
1788
+ }
1789
+ catch (err) {
1790
+ throw err;
1791
+ }
1792
+ });
1793
+ }
1794
+ /**
1795
+ * Lists the batch tasks by batch job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTask to get the full details on a specific context
1796
+ * List is incomplete until jobs lifecycle is in_progress
1797
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1798
+ * @param ListBatchJobTasksRequest
1799
+ * @return ListBatchJobTasksResponse
1800
+ * @throws OciError when an error occurs
1801
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchJobTasks.ts.html |here} to see how to use ListBatchJobTasks API.
1802
+ */
1803
+ listBatchJobTasks(listBatchJobTasksRequest) {
1804
+ return __awaiter(this, void 0, void 0, function* () {
1805
+ if (this.logger)
1806
+ this.logger.debug("Calling operation BatchComputingClient#listBatchJobTasks.");
1807
+ const operationName = "listBatchJobTasks";
1808
+ const apiReferenceLink = "";
1809
+ const pathParams = {
1810
+ "{batchJobId}": listBatchJobTasksRequest.batchJobId
1811
+ };
1812
+ const queryParams = {
1813
+ "lifecycleState": listBatchJobTasksRequest.lifecycleState,
1814
+ "name": listBatchJobTasksRequest.name,
1815
+ "limit": listBatchJobTasksRequest.limit,
1816
+ "page": listBatchJobTasksRequest.page,
1817
+ "sortOrder": listBatchJobTasksRequest.sortOrder,
1818
+ "sortBy": listBatchJobTasksRequest.sortBy
1819
+ };
1820
+ let headerParams = {
1821
+ "Content-Type": common.Constants.APPLICATION_JSON,
1822
+ "opc-request-id": listBatchJobTasksRequest.opcRequestId
1823
+ };
1824
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1825
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchJobTasksRequest.retryConfiguration, specRetryConfiguration);
1826
+ if (this.logger)
1827
+ retrier.logger = this.logger;
1828
+ const request = yield oci_common_1.composeRequest({
1829
+ baseEndpoint: this._endpoint,
1830
+ defaultHeaders: this._defaultHeaders,
1831
+ path: "/batchJobs/{batchJobId}/tasks",
1832
+ method: "GET",
1833
+ pathParams: pathParams,
1834
+ headerParams: headerParams,
1835
+ queryParams: queryParams
1836
+ });
1837
+ try {
1838
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1839
+ const sdkResponse = oci_common_1.composeResponse({
1840
+ responseObject: {},
1841
+ body: yield response.json(),
1842
+ bodyKey: "batchTaskCollection",
1843
+ bodyModel: model.BatchTaskCollection,
1844
+ type: "model.BatchTaskCollection",
1845
+ responseHeaders: [
1846
+ {
1847
+ value: response.headers.get("opc-request-id"),
1848
+ key: "opcRequestId",
1849
+ dataType: "string"
1850
+ },
1851
+ {
1852
+ value: response.headers.get("opc-next-page"),
1853
+ key: "opcNextPage",
1854
+ dataType: "string"
1855
+ }
1856
+ ]
1857
+ });
1858
+ return sdkResponse;
1859
+ }
1860
+ catch (err) {
1861
+ throw err;
1862
+ }
1863
+ });
1864
+ }
1865
+ /**
1866
+ * Lists the batch jobs by compartment or job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context
1867
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1868
+ * @param ListBatchJobsRequest
1869
+ * @return ListBatchJobsResponse
1870
+ * @throws OciError when an error occurs
1871
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchJobs.ts.html |here} to see how to use ListBatchJobs API.
1872
+ */
1873
+ listBatchJobs(listBatchJobsRequest) {
1874
+ return __awaiter(this, void 0, void 0, function* () {
1875
+ if (this.logger)
1876
+ this.logger.debug("Calling operation BatchComputingClient#listBatchJobs.");
1877
+ const operationName = "listBatchJobs";
1878
+ const apiReferenceLink = "";
1879
+ const pathParams = {};
1880
+ const queryParams = {
1881
+ "compartmentId": listBatchJobsRequest.compartmentId,
1882
+ "lifecycleState": listBatchJobsRequest.lifecycleState,
1883
+ "displayName": listBatchJobsRequest.displayName,
1884
+ "id": listBatchJobsRequest.id,
1885
+ "batchJobPoolId": listBatchJobsRequest.batchJobPoolId,
1886
+ "limit": listBatchJobsRequest.limit,
1887
+ "page": listBatchJobsRequest.page,
1888
+ "sortOrder": listBatchJobsRequest.sortOrder,
1889
+ "sortBy": listBatchJobsRequest.sortBy
1890
+ };
1891
+ let headerParams = {
1892
+ "Content-Type": common.Constants.APPLICATION_JSON,
1893
+ "opc-request-id": listBatchJobsRequest.opcRequestId
1894
+ };
1895
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1896
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchJobsRequest.retryConfiguration, specRetryConfiguration);
1897
+ if (this.logger)
1898
+ retrier.logger = this.logger;
1899
+ const request = yield oci_common_1.composeRequest({
1900
+ baseEndpoint: this._endpoint,
1901
+ defaultHeaders: this._defaultHeaders,
1902
+ path: "/batchJobs",
1903
+ method: "GET",
1904
+ pathParams: pathParams,
1905
+ headerParams: headerParams,
1906
+ queryParams: queryParams
1907
+ });
1908
+ try {
1909
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1910
+ const sdkResponse = oci_common_1.composeResponse({
1911
+ responseObject: {},
1912
+ body: yield response.json(),
1913
+ bodyKey: "batchJobCollection",
1914
+ bodyModel: model.BatchJobCollection,
1915
+ type: "model.BatchJobCollection",
1916
+ responseHeaders: [
1917
+ {
1918
+ value: response.headers.get("opc-request-id"),
1919
+ key: "opcRequestId",
1920
+ dataType: "string"
1921
+ },
1922
+ {
1923
+ value: response.headers.get("opc-next-page"),
1924
+ key: "opcNextPage",
1925
+ dataType: "string"
1926
+ }
1927
+ ]
1928
+ });
1929
+ return sdkResponse;
1930
+ }
1931
+ catch (err) {
1932
+ throw err;
1933
+ }
1934
+ });
1935
+ }
1936
+ /**
1937
+ * Lists the task environments by compartment or environment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTaskEnvironment to get the full details on a specific context
1938
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1939
+ * @param ListBatchTaskEnvironmentsRequest
1940
+ * @return ListBatchTaskEnvironmentsResponse
1941
+ * @throws OciError when an error occurs
1942
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchTaskEnvironments.ts.html |here} to see how to use ListBatchTaskEnvironments API.
1943
+ */
1944
+ listBatchTaskEnvironments(listBatchTaskEnvironmentsRequest) {
1945
+ return __awaiter(this, void 0, void 0, function* () {
1946
+ if (this.logger)
1947
+ this.logger.debug("Calling operation BatchComputingClient#listBatchTaskEnvironments.");
1948
+ const operationName = "listBatchTaskEnvironments";
1949
+ const apiReferenceLink = "";
1950
+ const pathParams = {};
1951
+ const queryParams = {
1952
+ "compartmentId": listBatchTaskEnvironmentsRequest.compartmentId,
1953
+ "lifecycleState": listBatchTaskEnvironmentsRequest.lifecycleState,
1954
+ "displayName": listBatchTaskEnvironmentsRequest.displayName,
1955
+ "id": listBatchTaskEnvironmentsRequest.id,
1956
+ "limit": listBatchTaskEnvironmentsRequest.limit,
1957
+ "page": listBatchTaskEnvironmentsRequest.page,
1958
+ "sortOrder": listBatchTaskEnvironmentsRequest.sortOrder,
1959
+ "sortBy": listBatchTaskEnvironmentsRequest.sortBy
1960
+ };
1961
+ let headerParams = {
1962
+ "Content-Type": common.Constants.APPLICATION_JSON,
1963
+ "opc-request-id": listBatchTaskEnvironmentsRequest.opcRequestId
1964
+ };
1965
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1966
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchTaskEnvironmentsRequest.retryConfiguration, specRetryConfiguration);
1967
+ if (this.logger)
1968
+ retrier.logger = this.logger;
1969
+ const request = yield oci_common_1.composeRequest({
1970
+ baseEndpoint: this._endpoint,
1971
+ defaultHeaders: this._defaultHeaders,
1972
+ path: "/batchTaskEnvironments",
1973
+ method: "GET",
1974
+ pathParams: pathParams,
1975
+ headerParams: headerParams,
1976
+ queryParams: queryParams
1977
+ });
1978
+ try {
1979
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1980
+ const sdkResponse = oci_common_1.composeResponse({
1981
+ responseObject: {},
1982
+ body: yield response.json(),
1983
+ bodyKey: "batchTaskEnvironmentCollection",
1984
+ bodyModel: model.BatchTaskEnvironmentCollection,
1985
+ type: "model.BatchTaskEnvironmentCollection",
1986
+ responseHeaders: [
1987
+ {
1988
+ value: response.headers.get("opc-request-id"),
1989
+ key: "opcRequestId",
1990
+ dataType: "string"
1991
+ },
1992
+ {
1993
+ value: response.headers.get("opc-next-page"),
1994
+ key: "opcNextPage",
1995
+ dataType: "string"
1996
+ }
1997
+ ]
1998
+ });
1999
+ return sdkResponse;
2000
+ }
2001
+ catch (err) {
2002
+ throw err;
2003
+ }
2004
+ });
2005
+ }
2006
+ /**
2007
+ * Lists the task profiles by compartment or profile [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTaskProfile to get the full details on a specific context
2008
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2009
+ * @param ListBatchTaskProfilesRequest
2010
+ * @return ListBatchTaskProfilesResponse
2011
+ * @throws OciError when an error occurs
2012
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchTaskProfiles.ts.html |here} to see how to use ListBatchTaskProfiles API.
2013
+ */
2014
+ listBatchTaskProfiles(listBatchTaskProfilesRequest) {
2015
+ return __awaiter(this, void 0, void 0, function* () {
2016
+ if (this.logger)
2017
+ this.logger.debug("Calling operation BatchComputingClient#listBatchTaskProfiles.");
2018
+ const operationName = "listBatchTaskProfiles";
2019
+ const apiReferenceLink = "";
2020
+ const pathParams = {};
2021
+ const queryParams = {
2022
+ "compartmentId": listBatchTaskProfilesRequest.compartmentId,
2023
+ "lifecycleState": listBatchTaskProfilesRequest.lifecycleState,
2024
+ "displayName": listBatchTaskProfilesRequest.displayName,
2025
+ "id": listBatchTaskProfilesRequest.id,
2026
+ "limit": listBatchTaskProfilesRequest.limit,
2027
+ "page": listBatchTaskProfilesRequest.page,
2028
+ "sortOrder": listBatchTaskProfilesRequest.sortOrder,
2029
+ "sortBy": listBatchTaskProfilesRequest.sortBy
2030
+ };
2031
+ let headerParams = {
2032
+ "Content-Type": common.Constants.APPLICATION_JSON,
2033
+ "opc-request-id": listBatchTaskProfilesRequest.opcRequestId
2034
+ };
2035
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2036
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchTaskProfilesRequest.retryConfiguration, specRetryConfiguration);
2037
+ if (this.logger)
2038
+ retrier.logger = this.logger;
2039
+ const request = yield oci_common_1.composeRequest({
2040
+ baseEndpoint: this._endpoint,
2041
+ defaultHeaders: this._defaultHeaders,
2042
+ path: "/batchTaskProfiles",
2043
+ method: "GET",
2044
+ pathParams: pathParams,
2045
+ headerParams: headerParams,
2046
+ queryParams: queryParams
2047
+ });
2048
+ try {
2049
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2050
+ const sdkResponse = oci_common_1.composeResponse({
2051
+ responseObject: {},
2052
+ body: yield response.json(),
2053
+ bodyKey: "batchTaskProfileCollection",
2054
+ bodyModel: model.BatchTaskProfileCollection,
2055
+ type: "model.BatchTaskProfileCollection",
2056
+ responseHeaders: [
2057
+ {
2058
+ value: response.headers.get("opc-request-id"),
2059
+ key: "opcRequestId",
2060
+ dataType: "string"
2061
+ },
2062
+ {
2063
+ value: response.headers.get("opc-next-page"),
2064
+ key: "opcNextPage",
2065
+ dataType: "string"
2066
+ }
2067
+ ]
2068
+ });
2069
+ return sdkResponse;
2070
+ }
2071
+ catch (err) {
2072
+ throw err;
2073
+ }
2074
+ });
2075
+ }
2076
+ /**
2077
+ * Lists the batch tasks associated with batch jobs.
2078
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2079
+ * @param ListBatchTasksRequest
2080
+ * @return ListBatchTasksResponse
2081
+ * @throws OciError when an error occurs
2082
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListBatchTasks.ts.html |here} to see how to use ListBatchTasks API.
2083
+ */
2084
+ listBatchTasks(listBatchTasksRequest) {
2085
+ return __awaiter(this, void 0, void 0, function* () {
2086
+ if (this.logger)
2087
+ this.logger.debug("Calling operation BatchComputingClient#listBatchTasks.");
2088
+ const operationName = "listBatchTasks";
2089
+ const apiReferenceLink = "";
2090
+ const pathParams = {};
2091
+ const queryParams = {
2092
+ "compartmentId": listBatchTasksRequest.compartmentId,
2093
+ "batchJobId": listBatchTasksRequest.batchJobId,
2094
+ "lifecycleState": listBatchTasksRequest.lifecycleState,
2095
+ "name": listBatchTasksRequest.name,
2096
+ "limit": listBatchTasksRequest.limit,
2097
+ "page": listBatchTasksRequest.page,
2098
+ "sortOrder": listBatchTasksRequest.sortOrder,
2099
+ "sortBy": listBatchTasksRequest.sortBy
2100
+ };
2101
+ let headerParams = {
2102
+ "Content-Type": common.Constants.APPLICATION_JSON,
2103
+ "opc-request-id": listBatchTasksRequest.opcRequestId
2104
+ };
2105
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2106
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBatchTasksRequest.retryConfiguration, specRetryConfiguration);
2107
+ if (this.logger)
2108
+ retrier.logger = this.logger;
2109
+ const request = yield oci_common_1.composeRequest({
2110
+ baseEndpoint: this._endpoint,
2111
+ defaultHeaders: this._defaultHeaders,
2112
+ path: "/batchJobs/tasks",
2113
+ method: "GET",
2114
+ pathParams: pathParams,
2115
+ headerParams: headerParams,
2116
+ queryParams: queryParams
2117
+ });
2118
+ try {
2119
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2120
+ const sdkResponse = oci_common_1.composeResponse({
2121
+ responseObject: {},
2122
+ body: yield response.json(),
2123
+ bodyKey: "batchTaskCollection",
2124
+ bodyModel: model.BatchTaskCollection,
2125
+ type: "model.BatchTaskCollection",
2126
+ responseHeaders: [
2127
+ {
2128
+ value: response.headers.get("opc-request-id"),
2129
+ key: "opcRequestId",
2130
+ dataType: "string"
2131
+ },
2132
+ {
2133
+ value: response.headers.get("opc-next-page"),
2134
+ key: "opcNextPage",
2135
+ dataType: "string"
2136
+ }
2137
+ ]
2138
+ });
2139
+ return sdkResponse;
2140
+ }
2141
+ catch (err) {
2142
+ throw err;
2143
+ }
2144
+ });
2145
+ }
2146
+ /**
2147
+ * Lists the errors for a work request.
2148
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2149
+ * @param ListWorkRequestErrorsRequest
2150
+ * @return ListWorkRequestErrorsResponse
2151
+ * @throws OciError when an error occurs
2152
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2153
+ */
2154
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
2155
+ return __awaiter(this, void 0, void 0, function* () {
2156
+ if (this.logger)
2157
+ this.logger.debug("Calling operation BatchComputingClient#listWorkRequestErrors.");
2158
+ const operationName = "listWorkRequestErrors";
2159
+ const apiReferenceLink = "";
2160
+ const pathParams = {
2161
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
2162
+ };
2163
+ const queryParams = {
2164
+ "page": listWorkRequestErrorsRequest.page,
2165
+ "limit": listWorkRequestErrorsRequest.limit,
2166
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
2167
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
2168
+ };
2169
+ let headerParams = {
2170
+ "Content-Type": common.Constants.APPLICATION_JSON,
2171
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
2172
+ };
2173
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2174
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2175
+ if (this.logger)
2176
+ retrier.logger = this.logger;
2177
+ const request = yield oci_common_1.composeRequest({
2178
+ baseEndpoint: this._endpoint,
2179
+ defaultHeaders: this._defaultHeaders,
2180
+ path: "/workRequests/{workRequestId}/errors",
2181
+ method: "GET",
2182
+ pathParams: pathParams,
2183
+ headerParams: headerParams,
2184
+ queryParams: queryParams
2185
+ });
2186
+ try {
2187
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2188
+ const sdkResponse = oci_common_1.composeResponse({
2189
+ responseObject: {},
2190
+ body: yield response.json(),
2191
+ bodyKey: "workRequestErrorCollection",
2192
+ bodyModel: model.WorkRequestErrorCollection,
2193
+ type: "model.WorkRequestErrorCollection",
2194
+ responseHeaders: [
2195
+ {
2196
+ value: response.headers.get("opc-next-page"),
2197
+ key: "opcNextPage",
2198
+ dataType: "string"
2199
+ },
2200
+ {
2201
+ value: response.headers.get("opc-request-id"),
2202
+ key: "opcRequestId",
2203
+ dataType: "string"
2204
+ }
2205
+ ]
2206
+ });
2207
+ return sdkResponse;
2208
+ }
2209
+ catch (err) {
2210
+ throw err;
2211
+ }
2212
+ });
2213
+ }
2214
+ /**
2215
+ * Lists the logs for a work request.
2216
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2217
+ * @param ListWorkRequestLogsRequest
2218
+ * @return ListWorkRequestLogsResponse
2219
+ * @throws OciError when an error occurs
2220
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2221
+ */
2222
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
2223
+ return __awaiter(this, void 0, void 0, function* () {
2224
+ if (this.logger)
2225
+ this.logger.debug("Calling operation BatchComputingClient#listWorkRequestLogs.");
2226
+ const operationName = "listWorkRequestLogs";
2227
+ const apiReferenceLink = "";
2228
+ const pathParams = {
2229
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
2230
+ };
2231
+ const queryParams = {
2232
+ "page": listWorkRequestLogsRequest.page,
2233
+ "limit": listWorkRequestLogsRequest.limit,
2234
+ "sortBy": listWorkRequestLogsRequest.sortBy,
2235
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
2236
+ };
2237
+ let headerParams = {
2238
+ "Content-Type": common.Constants.APPLICATION_JSON,
2239
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
2240
+ };
2241
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2242
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2243
+ if (this.logger)
2244
+ retrier.logger = this.logger;
2245
+ const request = yield oci_common_1.composeRequest({
2246
+ baseEndpoint: this._endpoint,
2247
+ defaultHeaders: this._defaultHeaders,
2248
+ path: "/workRequests/{workRequestId}/logs",
2249
+ method: "GET",
2250
+ pathParams: pathParams,
2251
+ headerParams: headerParams,
2252
+ queryParams: queryParams
2253
+ });
2254
+ try {
2255
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2256
+ const sdkResponse = oci_common_1.composeResponse({
2257
+ responseObject: {},
2258
+ body: yield response.json(),
2259
+ bodyKey: "workRequestLogEntryCollection",
2260
+ bodyModel: model.WorkRequestLogEntryCollection,
2261
+ type: "model.WorkRequestLogEntryCollection",
2262
+ responseHeaders: [
2263
+ {
2264
+ value: response.headers.get("opc-next-page"),
2265
+ key: "opcNextPage",
2266
+ dataType: "string"
2267
+ },
2268
+ {
2269
+ value: response.headers.get("opc-request-id"),
2270
+ key: "opcRequestId",
2271
+ dataType: "string"
2272
+ }
2273
+ ]
2274
+ });
2275
+ return sdkResponse;
2276
+ }
2277
+ catch (err) {
2278
+ throw err;
2279
+ }
2280
+ });
2281
+ }
2282
+ /**
2283
+ * Lists the work requests in a compartment.
2284
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2285
+ * @param ListWorkRequestsRequest
2286
+ * @return ListWorkRequestsResponse
2287
+ * @throws OciError when an error occurs
2288
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2289
+ */
2290
+ listWorkRequests(listWorkRequestsRequest) {
2291
+ return __awaiter(this, void 0, void 0, function* () {
2292
+ if (this.logger)
2293
+ this.logger.debug("Calling operation BatchComputingClient#listWorkRequests.");
2294
+ const operationName = "listWorkRequests";
2295
+ const apiReferenceLink = "";
2296
+ const pathParams = {};
2297
+ const queryParams = {
2298
+ "compartmentId": listWorkRequestsRequest.compartmentId,
2299
+ "workRequestId": listWorkRequestsRequest.workRequestId,
2300
+ "status": listWorkRequestsRequest.status,
2301
+ "resourceId": listWorkRequestsRequest.resourceId,
2302
+ "page": listWorkRequestsRequest.page,
2303
+ "limit": listWorkRequestsRequest.limit,
2304
+ "sortOrder": listWorkRequestsRequest.sortOrder,
2305
+ "sortBy": listWorkRequestsRequest.sortBy
2306
+ };
2307
+ let headerParams = {
2308
+ "Content-Type": common.Constants.APPLICATION_JSON,
2309
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
2310
+ };
2311
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2312
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2313
+ if (this.logger)
2314
+ retrier.logger = this.logger;
2315
+ const request = yield oci_common_1.composeRequest({
2316
+ baseEndpoint: this._endpoint,
2317
+ defaultHeaders: this._defaultHeaders,
2318
+ path: "/workRequests",
2319
+ method: "GET",
2320
+ pathParams: pathParams,
2321
+ headerParams: headerParams,
2322
+ queryParams: queryParams
2323
+ });
2324
+ try {
2325
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2326
+ const sdkResponse = oci_common_1.composeResponse({
2327
+ responseObject: {},
2328
+ body: yield response.json(),
2329
+ bodyKey: "workRequestSummaryCollection",
2330
+ bodyModel: model.WorkRequestSummaryCollection,
2331
+ type: "model.WorkRequestSummaryCollection",
2332
+ responseHeaders: [
2333
+ {
2334
+ value: response.headers.get("opc-request-id"),
2335
+ key: "opcRequestId",
2336
+ dataType: "string"
2337
+ },
2338
+ {
2339
+ value: response.headers.get("opc-next-page"),
2340
+ key: "opcNextPage",
2341
+ dataType: "string"
2342
+ }
2343
+ ]
2344
+ });
2345
+ return sdkResponse;
2346
+ }
2347
+ catch (err) {
2348
+ throw err;
2349
+ }
2350
+ });
2351
+ }
2352
+ /**
2353
+ * Pauses the batch job and all its tasks.
2354
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2355
+ * @param PauseBatchJobRequest
2356
+ * @return PauseBatchJobResponse
2357
+ * @throws OciError when an error occurs
2358
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/PauseBatchJob.ts.html |here} to see how to use PauseBatchJob API.
2359
+ */
2360
+ pauseBatchJob(pauseBatchJobRequest) {
2361
+ return __awaiter(this, void 0, void 0, function* () {
2362
+ if (this.logger)
2363
+ this.logger.debug("Calling operation BatchComputingClient#pauseBatchJob.");
2364
+ const operationName = "pauseBatchJob";
2365
+ const apiReferenceLink = "";
2366
+ const pathParams = {
2367
+ "{batchJobId}": pauseBatchJobRequest.batchJobId
2368
+ };
2369
+ const queryParams = {};
2370
+ let headerParams = {
2371
+ "Content-Type": common.Constants.APPLICATION_JSON,
2372
+ "if-match": pauseBatchJobRequest.ifMatch,
2373
+ "opc-request-id": pauseBatchJobRequest.opcRequestId
2374
+ };
2375
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2376
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, pauseBatchJobRequest.retryConfiguration, specRetryConfiguration);
2377
+ if (this.logger)
2378
+ retrier.logger = this.logger;
2379
+ const request = yield oci_common_1.composeRequest({
2380
+ baseEndpoint: this._endpoint,
2381
+ defaultHeaders: this._defaultHeaders,
2382
+ path: "/batchJobs/{batchJobId}/actions/pause",
2383
+ method: "POST",
2384
+ bodyContent: common.ObjectSerializer.serialize(pauseBatchJobRequest.pauseBatchJobDetails, "PauseBatchJobDetails", model.PauseBatchJobDetails.getJsonObj),
2385
+ pathParams: pathParams,
2386
+ headerParams: headerParams,
2387
+ queryParams: queryParams
2388
+ });
2389
+ try {
2390
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2391
+ const sdkResponse = oci_common_1.composeResponse({
2392
+ responseObject: {},
2393
+ responseHeaders: [
2394
+ {
2395
+ value: response.headers.get("opc-work-request-id"),
2396
+ key: "opcWorkRequestId",
2397
+ dataType: "string"
2398
+ },
2399
+ {
2400
+ value: response.headers.get("opc-request-id"),
2401
+ key: "opcRequestId",
2402
+ dataType: "string"
2403
+ }
2404
+ ]
2405
+ });
2406
+ return sdkResponse;
2407
+ }
2408
+ catch (err) {
2409
+ throw err;
2410
+ }
2411
+ });
2412
+ }
2413
+ /**
2414
+ * Activates a batch context to accept new jobs.
2415
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2416
+ * @param StartBatchContextRequest
2417
+ * @return StartBatchContextResponse
2418
+ * @throws OciError when an error occurs
2419
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/StartBatchContext.ts.html |here} to see how to use StartBatchContext API.
2420
+ */
2421
+ startBatchContext(startBatchContextRequest) {
2422
+ return __awaiter(this, void 0, void 0, function* () {
2423
+ if (this.logger)
2424
+ this.logger.debug("Calling operation BatchComputingClient#startBatchContext.");
2425
+ const operationName = "startBatchContext";
2426
+ const apiReferenceLink = "";
2427
+ const pathParams = {
2428
+ "{batchContextId}": startBatchContextRequest.batchContextId
2429
+ };
2430
+ const queryParams = {};
2431
+ let headerParams = {
2432
+ "Content-Type": common.Constants.APPLICATION_JSON,
2433
+ "if-match": startBatchContextRequest.ifMatch,
2434
+ "opc-request-id": startBatchContextRequest.opcRequestId
2435
+ };
2436
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2437
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startBatchContextRequest.retryConfiguration, specRetryConfiguration);
2438
+ if (this.logger)
2439
+ retrier.logger = this.logger;
2440
+ const request = yield oci_common_1.composeRequest({
2441
+ baseEndpoint: this._endpoint,
2442
+ defaultHeaders: this._defaultHeaders,
2443
+ path: "/batchContexts/{batchContextId}/actions/start",
2444
+ method: "POST",
2445
+ bodyContent: common.ObjectSerializer.serialize(startBatchContextRequest.startBatchContextDetails, "StartBatchContextDetails", model.StartBatchContextDetails.getJsonObj),
2446
+ pathParams: pathParams,
2447
+ headerParams: headerParams,
2448
+ queryParams: queryParams
2449
+ });
2450
+ try {
2451
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2452
+ const sdkResponse = oci_common_1.composeResponse({
2453
+ responseObject: {},
2454
+ responseHeaders: [
2455
+ {
2456
+ value: response.headers.get("opc-work-request-id"),
2457
+ key: "opcWorkRequestId",
2458
+ dataType: "string"
2459
+ },
2460
+ {
2461
+ value: response.headers.get("opc-request-id"),
2462
+ key: "opcRequestId",
2463
+ dataType: "string"
2464
+ }
2465
+ ]
2466
+ });
2467
+ return sdkResponse;
2468
+ }
2469
+ catch (err) {
2470
+ throw err;
2471
+ }
2472
+ });
2473
+ }
2474
+ /**
2475
+ * Activates the batch job pool.
2476
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2477
+ * @param StartBatchJobPoolRequest
2478
+ * @return StartBatchJobPoolResponse
2479
+ * @throws OciError when an error occurs
2480
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/StartBatchJobPool.ts.html |here} to see how to use StartBatchJobPool API.
2481
+ */
2482
+ startBatchJobPool(startBatchJobPoolRequest) {
2483
+ return __awaiter(this, void 0, void 0, function* () {
2484
+ if (this.logger)
2485
+ this.logger.debug("Calling operation BatchComputingClient#startBatchJobPool.");
2486
+ const operationName = "startBatchJobPool";
2487
+ const apiReferenceLink = "";
2488
+ const pathParams = {
2489
+ "{batchJobPoolId}": startBatchJobPoolRequest.batchJobPoolId
2490
+ };
2491
+ const queryParams = {};
2492
+ let headerParams = {
2493
+ "Content-Type": common.Constants.APPLICATION_JSON,
2494
+ "if-match": startBatchJobPoolRequest.ifMatch,
2495
+ "opc-request-id": startBatchJobPoolRequest.opcRequestId
2496
+ };
2497
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2498
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
2499
+ if (this.logger)
2500
+ retrier.logger = this.logger;
2501
+ const request = yield oci_common_1.composeRequest({
2502
+ baseEndpoint: this._endpoint,
2503
+ defaultHeaders: this._defaultHeaders,
2504
+ path: "/batchJobPools/{batchJobPoolId}/actions/start",
2505
+ method: "POST",
2506
+ bodyContent: common.ObjectSerializer.serialize(startBatchJobPoolRequest.startBatchJobPoolDetails, "StartBatchJobPoolDetails", model.StartBatchJobPoolDetails.getJsonObj),
2507
+ pathParams: pathParams,
2508
+ headerParams: headerParams,
2509
+ queryParams: queryParams
2510
+ });
2511
+ try {
2512
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2513
+ const sdkResponse = oci_common_1.composeResponse({
2514
+ responseObject: {},
2515
+ responseHeaders: [
2516
+ {
2517
+ value: response.headers.get("opc-work-request-id"),
2518
+ key: "opcWorkRequestId",
2519
+ dataType: "string"
2520
+ },
2521
+ {
2522
+ value: response.headers.get("opc-request-id"),
2523
+ key: "opcRequestId",
2524
+ dataType: "string"
2525
+ }
2526
+ ]
2527
+ });
2528
+ return sdkResponse;
2529
+ }
2530
+ catch (err) {
2531
+ throw err;
2532
+ }
2533
+ });
2534
+ }
2535
+ /**
2536
+ * Stops a batch context from accepting new jobs.
2537
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2538
+ * @param StopBatchContextRequest
2539
+ * @return StopBatchContextResponse
2540
+ * @throws OciError when an error occurs
2541
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/StopBatchContext.ts.html |here} to see how to use StopBatchContext API.
2542
+ */
2543
+ stopBatchContext(stopBatchContextRequest) {
2544
+ return __awaiter(this, void 0, void 0, function* () {
2545
+ if (this.logger)
2546
+ this.logger.debug("Calling operation BatchComputingClient#stopBatchContext.");
2547
+ const operationName = "stopBatchContext";
2548
+ const apiReferenceLink = "";
2549
+ const pathParams = {
2550
+ "{batchContextId}": stopBatchContextRequest.batchContextId
2551
+ };
2552
+ const queryParams = {};
2553
+ let headerParams = {
2554
+ "Content-Type": common.Constants.APPLICATION_JSON,
2555
+ "if-match": stopBatchContextRequest.ifMatch,
2556
+ "opc-request-id": stopBatchContextRequest.opcRequestId
2557
+ };
2558
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2559
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopBatchContextRequest.retryConfiguration, specRetryConfiguration);
2560
+ if (this.logger)
2561
+ retrier.logger = this.logger;
2562
+ const request = yield oci_common_1.composeRequest({
2563
+ baseEndpoint: this._endpoint,
2564
+ defaultHeaders: this._defaultHeaders,
2565
+ path: "/batchContexts/{batchContextId}/actions/stop",
2566
+ method: "POST",
2567
+ bodyContent: common.ObjectSerializer.serialize(stopBatchContextRequest.stopBatchContextDetails, "StopBatchContextDetails", model.StopBatchContextDetails.getJsonObj),
2568
+ pathParams: pathParams,
2569
+ headerParams: headerParams,
2570
+ queryParams: queryParams
2571
+ });
2572
+ try {
2573
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2574
+ const sdkResponse = oci_common_1.composeResponse({
2575
+ responseObject: {},
2576
+ responseHeaders: [
2577
+ {
2578
+ value: response.headers.get("opc-work-request-id"),
2579
+ key: "opcWorkRequestId",
2580
+ dataType: "string"
2581
+ },
2582
+ {
2583
+ value: response.headers.get("opc-request-id"),
2584
+ key: "opcRequestId",
2585
+ dataType: "string"
2586
+ }
2587
+ ]
2588
+ });
2589
+ return sdkResponse;
2590
+ }
2591
+ catch (err) {
2592
+ throw err;
2593
+ }
2594
+ });
2595
+ }
2596
+ /**
2597
+ * Deactivates the batch job pool.
2598
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2599
+ * @param StopBatchJobPoolRequest
2600
+ * @return StopBatchJobPoolResponse
2601
+ * @throws OciError when an error occurs
2602
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/StopBatchJobPool.ts.html |here} to see how to use StopBatchJobPool API.
2603
+ */
2604
+ stopBatchJobPool(stopBatchJobPoolRequest) {
2605
+ return __awaiter(this, void 0, void 0, function* () {
2606
+ if (this.logger)
2607
+ this.logger.debug("Calling operation BatchComputingClient#stopBatchJobPool.");
2608
+ const operationName = "stopBatchJobPool";
2609
+ const apiReferenceLink = "";
2610
+ const pathParams = {
2611
+ "{batchJobPoolId}": stopBatchJobPoolRequest.batchJobPoolId
2612
+ };
2613
+ const queryParams = {};
2614
+ let headerParams = {
2615
+ "Content-Type": common.Constants.APPLICATION_JSON,
2616
+ "if-match": stopBatchJobPoolRequest.ifMatch,
2617
+ "opc-request-id": stopBatchJobPoolRequest.opcRequestId
2618
+ };
2619
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2620
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
2621
+ if (this.logger)
2622
+ retrier.logger = this.logger;
2623
+ const request = yield oci_common_1.composeRequest({
2624
+ baseEndpoint: this._endpoint,
2625
+ defaultHeaders: this._defaultHeaders,
2626
+ path: "/batchJobPools/{batchJobPoolId}/actions/stop",
2627
+ method: "POST",
2628
+ bodyContent: common.ObjectSerializer.serialize(stopBatchJobPoolRequest.stopBatchJobPoolDetails, "StopBatchJobPoolDetails", model.StopBatchJobPoolDetails.getJsonObj),
2629
+ pathParams: pathParams,
2630
+ headerParams: headerParams,
2631
+ queryParams: queryParams
2632
+ });
2633
+ try {
2634
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2635
+ const sdkResponse = oci_common_1.composeResponse({
2636
+ responseObject: {},
2637
+ responseHeaders: [
2638
+ {
2639
+ value: response.headers.get("opc-work-request-id"),
2640
+ key: "opcWorkRequestId",
2641
+ dataType: "string"
2642
+ },
2643
+ {
2644
+ value: response.headers.get("opc-request-id"),
2645
+ key: "opcRequestId",
2646
+ dataType: "string"
2647
+ }
2648
+ ]
2649
+ });
2650
+ return sdkResponse;
2651
+ }
2652
+ catch (err) {
2653
+ throw err;
2654
+ }
2655
+ });
2656
+ }
2657
+ /**
2658
+ * Resumes the batch job and all its tasks.
2659
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2660
+ * @param UnpauseBatchJobRequest
2661
+ * @return UnpauseBatchJobResponse
2662
+ * @throws OciError when an error occurs
2663
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UnpauseBatchJob.ts.html |here} to see how to use UnpauseBatchJob API.
2664
+ */
2665
+ unpauseBatchJob(unpauseBatchJobRequest) {
2666
+ return __awaiter(this, void 0, void 0, function* () {
2667
+ if (this.logger)
2668
+ this.logger.debug("Calling operation BatchComputingClient#unpauseBatchJob.");
2669
+ const operationName = "unpauseBatchJob";
2670
+ const apiReferenceLink = "";
2671
+ const pathParams = {
2672
+ "{batchJobId}": unpauseBatchJobRequest.batchJobId
2673
+ };
2674
+ const queryParams = {};
2675
+ let headerParams = {
2676
+ "Content-Type": common.Constants.APPLICATION_JSON,
2677
+ "if-match": unpauseBatchJobRequest.ifMatch,
2678
+ "opc-request-id": unpauseBatchJobRequest.opcRequestId
2679
+ };
2680
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2681
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, unpauseBatchJobRequest.retryConfiguration, specRetryConfiguration);
2682
+ if (this.logger)
2683
+ retrier.logger = this.logger;
2684
+ const request = yield oci_common_1.composeRequest({
2685
+ baseEndpoint: this._endpoint,
2686
+ defaultHeaders: this._defaultHeaders,
2687
+ path: "/batchJobs/{batchJobId}/actions/unpause",
2688
+ method: "POST",
2689
+ bodyContent: common.ObjectSerializer.serialize(unpauseBatchJobRequest.unpauseBatchJobDetails, "UnpauseBatchJobDetails", model.UnpauseBatchJobDetails.getJsonObj),
2690
+ pathParams: pathParams,
2691
+ headerParams: headerParams,
2692
+ queryParams: queryParams
2693
+ });
2694
+ try {
2695
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2696
+ const sdkResponse = oci_common_1.composeResponse({
2697
+ responseObject: {},
2698
+ responseHeaders: [
2699
+ {
2700
+ value: response.headers.get("opc-work-request-id"),
2701
+ key: "opcWorkRequestId",
2702
+ dataType: "string"
2703
+ },
2704
+ {
2705
+ value: response.headers.get("opc-request-id"),
2706
+ key: "opcRequestId",
2707
+ dataType: "string"
2708
+ }
2709
+ ]
2710
+ });
2711
+ return sdkResponse;
2712
+ }
2713
+ catch (err) {
2714
+ throw err;
2715
+ }
2716
+ });
2717
+ }
2718
+ /**
2719
+ * Updates a batch context.
2720
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2721
+ * @param UpdateBatchContextRequest
2722
+ * @return UpdateBatchContextResponse
2723
+ * @throws OciError when an error occurs
2724
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UpdateBatchContext.ts.html |here} to see how to use UpdateBatchContext API.
2725
+ */
2726
+ updateBatchContext(updateBatchContextRequest) {
2727
+ return __awaiter(this, void 0, void 0, function* () {
2728
+ if (this.logger)
2729
+ this.logger.debug("Calling operation BatchComputingClient#updateBatchContext.");
2730
+ const operationName = "updateBatchContext";
2731
+ const apiReferenceLink = "";
2732
+ const pathParams = {
2733
+ "{batchContextId}": updateBatchContextRequest.batchContextId
2734
+ };
2735
+ const queryParams = {};
2736
+ let headerParams = {
2737
+ "Content-Type": common.Constants.APPLICATION_JSON,
2738
+ "if-match": updateBatchContextRequest.ifMatch,
2739
+ "opc-request-id": updateBatchContextRequest.opcRequestId
2740
+ };
2741
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2742
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBatchContextRequest.retryConfiguration, specRetryConfiguration);
2743
+ if (this.logger)
2744
+ retrier.logger = this.logger;
2745
+ const request = yield oci_common_1.composeRequest({
2746
+ baseEndpoint: this._endpoint,
2747
+ defaultHeaders: this._defaultHeaders,
2748
+ path: "/batchContexts/{batchContextId}",
2749
+ method: "PUT",
2750
+ bodyContent: common.ObjectSerializer.serialize(updateBatchContextRequest.updateBatchContextDetails, "UpdateBatchContextDetails", model.UpdateBatchContextDetails.getJsonObj),
2751
+ pathParams: pathParams,
2752
+ headerParams: headerParams,
2753
+ queryParams: queryParams
2754
+ });
2755
+ try {
2756
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2757
+ const sdkResponse = oci_common_1.composeResponse({
2758
+ responseObject: {},
2759
+ responseHeaders: [
2760
+ {
2761
+ value: response.headers.get("opc-work-request-id"),
2762
+ key: "opcWorkRequestId",
2763
+ dataType: "string"
2764
+ },
2765
+ {
2766
+ value: response.headers.get("opc-request-id"),
2767
+ key: "opcRequestId",
2768
+ dataType: "string"
2769
+ }
2770
+ ]
2771
+ });
2772
+ return sdkResponse;
2773
+ }
2774
+ catch (err) {
2775
+ throw err;
2776
+ }
2777
+ });
2778
+ }
2779
+ /**
2780
+ * Updates a batch job.
2781
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2782
+ * @param UpdateBatchJobRequest
2783
+ * @return UpdateBatchJobResponse
2784
+ * @throws OciError when an error occurs
2785
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UpdateBatchJob.ts.html |here} to see how to use UpdateBatchJob API.
2786
+ */
2787
+ updateBatchJob(updateBatchJobRequest) {
2788
+ return __awaiter(this, void 0, void 0, function* () {
2789
+ if (this.logger)
2790
+ this.logger.debug("Calling operation BatchComputingClient#updateBatchJob.");
2791
+ const operationName = "updateBatchJob";
2792
+ const apiReferenceLink = "";
2793
+ const pathParams = {
2794
+ "{batchJobId}": updateBatchJobRequest.batchJobId
2795
+ };
2796
+ const queryParams = {};
2797
+ let headerParams = {
2798
+ "Content-Type": common.Constants.APPLICATION_JSON,
2799
+ "if-match": updateBatchJobRequest.ifMatch,
2800
+ "opc-request-id": updateBatchJobRequest.opcRequestId
2801
+ };
2802
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2803
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBatchJobRequest.retryConfiguration, specRetryConfiguration);
2804
+ if (this.logger)
2805
+ retrier.logger = this.logger;
2806
+ const request = yield oci_common_1.composeRequest({
2807
+ baseEndpoint: this._endpoint,
2808
+ defaultHeaders: this._defaultHeaders,
2809
+ path: "/batchJobs/{batchJobId}",
2810
+ method: "PUT",
2811
+ bodyContent: common.ObjectSerializer.serialize(updateBatchJobRequest.updateBatchJobDetails, "UpdateBatchJobDetails", model.UpdateBatchJobDetails.getJsonObj),
2812
+ pathParams: pathParams,
2813
+ headerParams: headerParams,
2814
+ queryParams: queryParams
2815
+ });
2816
+ try {
2817
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2818
+ const sdkResponse = oci_common_1.composeResponse({
2819
+ responseObject: {},
2820
+ responseHeaders: [
2821
+ {
2822
+ value: response.headers.get("opc-work-request-id"),
2823
+ key: "opcWorkRequestId",
2824
+ dataType: "string"
2825
+ },
2826
+ {
2827
+ value: response.headers.get("opc-request-id"),
2828
+ key: "opcRequestId",
2829
+ dataType: "string"
2830
+ }
2831
+ ]
2832
+ });
2833
+ return sdkResponse;
2834
+ }
2835
+ catch (err) {
2836
+ throw err;
2837
+ }
2838
+ });
2839
+ }
2840
+ /**
2841
+ * Updates a batch job pool.
2842
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2843
+ * @param UpdateBatchJobPoolRequest
2844
+ * @return UpdateBatchJobPoolResponse
2845
+ * @throws OciError when an error occurs
2846
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UpdateBatchJobPool.ts.html |here} to see how to use UpdateBatchJobPool API.
2847
+ */
2848
+ updateBatchJobPool(updateBatchJobPoolRequest) {
2849
+ return __awaiter(this, void 0, void 0, function* () {
2850
+ if (this.logger)
2851
+ this.logger.debug("Calling operation BatchComputingClient#updateBatchJobPool.");
2852
+ const operationName = "updateBatchJobPool";
2853
+ const apiReferenceLink = "";
2854
+ const pathParams = {
2855
+ "{batchJobPoolId}": updateBatchJobPoolRequest.batchJobPoolId
2856
+ };
2857
+ const queryParams = {};
2858
+ let headerParams = {
2859
+ "Content-Type": common.Constants.APPLICATION_JSON,
2860
+ "if-match": updateBatchJobPoolRequest.ifMatch,
2861
+ "opc-request-id": updateBatchJobPoolRequest.opcRequestId
2862
+ };
2863
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2864
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBatchJobPoolRequest.retryConfiguration, specRetryConfiguration);
2865
+ if (this.logger)
2866
+ retrier.logger = this.logger;
2867
+ const request = yield oci_common_1.composeRequest({
2868
+ baseEndpoint: this._endpoint,
2869
+ defaultHeaders: this._defaultHeaders,
2870
+ path: "/batchJobPools/{batchJobPoolId}",
2871
+ method: "PUT",
2872
+ bodyContent: common.ObjectSerializer.serialize(updateBatchJobPoolRequest.updateBatchJobPoolDetails, "UpdateBatchJobPoolDetails", model.UpdateBatchJobPoolDetails.getJsonObj),
2873
+ pathParams: pathParams,
2874
+ headerParams: headerParams,
2875
+ queryParams: queryParams
2876
+ });
2877
+ try {
2878
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2879
+ const sdkResponse = oci_common_1.composeResponse({
2880
+ responseObject: {},
2881
+ responseHeaders: [
2882
+ {
2883
+ value: response.headers.get("opc-work-request-id"),
2884
+ key: "opcWorkRequestId",
2885
+ dataType: "string"
2886
+ },
2887
+ {
2888
+ value: response.headers.get("opc-request-id"),
2889
+ key: "opcRequestId",
2890
+ dataType: "string"
2891
+ }
2892
+ ]
2893
+ });
2894
+ return sdkResponse;
2895
+ }
2896
+ catch (err) {
2897
+ throw err;
2898
+ }
2899
+ });
2900
+ }
2901
+ /**
2902
+ * Updates a batch task environment.
2903
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2904
+ * @param UpdateBatchTaskEnvironmentRequest
2905
+ * @return UpdateBatchTaskEnvironmentResponse
2906
+ * @throws OciError when an error occurs
2907
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UpdateBatchTaskEnvironment.ts.html |here} to see how to use UpdateBatchTaskEnvironment API.
2908
+ */
2909
+ updateBatchTaskEnvironment(updateBatchTaskEnvironmentRequest) {
2910
+ return __awaiter(this, void 0, void 0, function* () {
2911
+ if (this.logger)
2912
+ this.logger.debug("Calling operation BatchComputingClient#updateBatchTaskEnvironment.");
2913
+ const operationName = "updateBatchTaskEnvironment";
2914
+ const apiReferenceLink = "";
2915
+ const pathParams = {
2916
+ "{batchTaskEnvironmentId}": updateBatchTaskEnvironmentRequest.batchTaskEnvironmentId
2917
+ };
2918
+ const queryParams = {};
2919
+ let headerParams = {
2920
+ "Content-Type": common.Constants.APPLICATION_JSON,
2921
+ "if-match": updateBatchTaskEnvironmentRequest.ifMatch,
2922
+ "opc-request-id": updateBatchTaskEnvironmentRequest.opcRequestId
2923
+ };
2924
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2925
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBatchTaskEnvironmentRequest.retryConfiguration, specRetryConfiguration);
2926
+ if (this.logger)
2927
+ retrier.logger = this.logger;
2928
+ const request = yield oci_common_1.composeRequest({
2929
+ baseEndpoint: this._endpoint,
2930
+ defaultHeaders: this._defaultHeaders,
2931
+ path: "/batchTaskEnvironments/{batchTaskEnvironmentId}",
2932
+ method: "PUT",
2933
+ bodyContent: common.ObjectSerializer.serialize(updateBatchTaskEnvironmentRequest.updateBatchTaskEnvironmentDetails, "UpdateBatchTaskEnvironmentDetails", model.UpdateBatchTaskEnvironmentDetails.getJsonObj),
2934
+ pathParams: pathParams,
2935
+ headerParams: headerParams,
2936
+ queryParams: queryParams
2937
+ });
2938
+ try {
2939
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2940
+ const sdkResponse = oci_common_1.composeResponse({
2941
+ responseObject: {},
2942
+ body: yield response.json(),
2943
+ bodyKey: "batchTaskEnvironment",
2944
+ bodyModel: model.BatchTaskEnvironment,
2945
+ type: "model.BatchTaskEnvironment",
2946
+ responseHeaders: [
2947
+ {
2948
+ value: response.headers.get("etag"),
2949
+ key: "etag",
2950
+ dataType: "string"
2951
+ },
2952
+ {
2953
+ value: response.headers.get("opc-request-id"),
2954
+ key: "opcRequestId",
2955
+ dataType: "string"
2956
+ }
2957
+ ]
2958
+ });
2959
+ return sdkResponse;
2960
+ }
2961
+ catch (err) {
2962
+ throw err;
2963
+ }
2964
+ });
2965
+ }
2966
+ /**
2967
+ * Updates a batch task profile.
2968
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2969
+ * @param UpdateBatchTaskProfileRequest
2970
+ * @return UpdateBatchTaskProfileResponse
2971
+ * @throws OciError when an error occurs
2972
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/batch/UpdateBatchTaskProfile.ts.html |here} to see how to use UpdateBatchTaskProfile API.
2973
+ */
2974
+ updateBatchTaskProfile(updateBatchTaskProfileRequest) {
2975
+ return __awaiter(this, void 0, void 0, function* () {
2976
+ if (this.logger)
2977
+ this.logger.debug("Calling operation BatchComputingClient#updateBatchTaskProfile.");
2978
+ const operationName = "updateBatchTaskProfile";
2979
+ const apiReferenceLink = "";
2980
+ const pathParams = {
2981
+ "{batchTaskProfileId}": updateBatchTaskProfileRequest.batchTaskProfileId
2982
+ };
2983
+ const queryParams = {};
2984
+ let headerParams = {
2985
+ "Content-Type": common.Constants.APPLICATION_JSON,
2986
+ "if-match": updateBatchTaskProfileRequest.ifMatch,
2987
+ "opc-request-id": updateBatchTaskProfileRequest.opcRequestId
2988
+ };
2989
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2990
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBatchTaskProfileRequest.retryConfiguration, specRetryConfiguration);
2991
+ if (this.logger)
2992
+ retrier.logger = this.logger;
2993
+ const request = yield oci_common_1.composeRequest({
2994
+ baseEndpoint: this._endpoint,
2995
+ defaultHeaders: this._defaultHeaders,
2996
+ path: "/batchTaskProfiles/{batchTaskProfileId}",
2997
+ method: "PUT",
2998
+ bodyContent: common.ObjectSerializer.serialize(updateBatchTaskProfileRequest.updateBatchTaskProfileDetails, "UpdateBatchTaskProfileDetails", model.UpdateBatchTaskProfileDetails.getJsonObj),
2999
+ pathParams: pathParams,
3000
+ headerParams: headerParams,
3001
+ queryParams: queryParams
3002
+ });
3003
+ try {
3004
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3005
+ const sdkResponse = oci_common_1.composeResponse({
3006
+ responseObject: {},
3007
+ body: yield response.json(),
3008
+ bodyKey: "batchTaskProfile",
3009
+ bodyModel: model.BatchTaskProfile,
3010
+ type: "model.BatchTaskProfile",
3011
+ responseHeaders: [
3012
+ {
3013
+ value: response.headers.get("etag"),
3014
+ key: "etag",
3015
+ dataType: "string"
3016
+ },
3017
+ {
3018
+ value: response.headers.get("opc-request-id"),
3019
+ key: "opcRequestId",
3020
+ dataType: "string"
3021
+ }
3022
+ ]
3023
+ });
3024
+ return sdkResponse;
3025
+ }
3026
+ catch (err) {
3027
+ throw err;
3028
+ }
3029
+ });
3030
+ }
3031
+ }
3032
+ exports.BatchComputingClient = BatchComputingClient;
3033
+ BatchComputingClient.serviceEndpointTemplate = "https://batch.{region}.oci.{secondLevelDomain}";
3034
+ BatchComputingClient.endpointServiceName = "";
3035
+ //# sourceMappingURL=client.js.map