oci-datascience 2.113.0 → 2.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/lib/client.d.ts +299 -0
  2. package/lib/client.js +1773 -326
  3. package/lib/client.js.map +1 -1
  4. package/lib/datascience-waiter.d.ts +16 -0
  5. package/lib/datascience-waiter.js +24 -0
  6. package/lib/datascience-waiter.js.map +1 -1
  7. package/lib/model/change-model-group-compartment-details.d.ts +26 -0
  8. package/lib/model/change-model-group-compartment-details.js +30 -0
  9. package/lib/model/change-model-group-compartment-details.js.map +1 -0
  10. package/lib/model/change-model-group-version-history-compartment-details.d.ts +26 -0
  11. package/lib/model/change-model-group-version-history-compartment-details.js +30 -0
  12. package/lib/model/change-model-group-version-history-compartment-details.js.map +1 -0
  13. package/lib/model/clone-create-from-model-group-details.d.ts +31 -0
  14. package/lib/model/clone-create-from-model-group-details.js +69 -0
  15. package/lib/model/clone-create-from-model-group-details.js.map +1 -0
  16. package/lib/model/clone-create-from-model-group-version-history-details.d.ts +31 -0
  17. package/lib/model/clone-create-from-model-group-version-history-details.js +69 -0
  18. package/lib/model/clone-create-from-model-group-version-history-details.js.map +1 -0
  19. package/lib/model/clone-model-group-details.d.ts +26 -0
  20. package/lib/model/clone-model-group-details.js +63 -0
  21. package/lib/model/clone-model-group-details.js.map +1 -0
  22. package/lib/model/create-base-model-group-details.d.ts +31 -0
  23. package/lib/model/create-base-model-group-details.js +73 -0
  24. package/lib/model/create-base-model-group-details.js.map +1 -0
  25. package/lib/model/create-model-deployment-details.d.ts +1 -1
  26. package/lib/model/create-model-deployment-details.js.map +1 -1
  27. package/lib/model/create-model-group-details.d.ts +63 -0
  28. package/lib/model/create-model-group-details.js +69 -0
  29. package/lib/model/create-model-group-details.js.map +1 -0
  30. package/lib/model/create-model-group-version-history-details.d.ts +62 -0
  31. package/lib/model/create-model-group-version-history-details.js +30 -0
  32. package/lib/model/create-model-group-version-history-details.js.map +1 -0
  33. package/lib/model/custom-metadata.d.ts +38 -0
  34. package/lib/model/custom-metadata.js +30 -0
  35. package/lib/model/custom-metadata.js.map +1 -0
  36. package/lib/model/heterogeneous-model-group-details.d.ts +25 -0
  37. package/lib/model/heterogeneous-model-group-details.js +55 -0
  38. package/lib/model/heterogeneous-model-group-details.js.map +1 -0
  39. package/lib/model/homogeneous-model-group-details.d.ts +25 -0
  40. package/lib/model/homogeneous-model-group-details.js +55 -0
  41. package/lib/model/homogeneous-model-group-details.js.map +1 -0
  42. package/lib/model/index.d.ts +86 -0
  43. package/lib/model/index.js +93 -6
  44. package/lib/model/index.js.map +1 -1
  45. package/lib/model/infrastructure-configuration-details.d.ts +23 -0
  46. package/lib/model/infrastructure-configuration-details.js +69 -0
  47. package/lib/model/infrastructure-configuration-details.js.map +1 -0
  48. package/lib/model/infrastructure-type.d.ts +28 -0
  49. package/lib/model/infrastructure-type.js +39 -0
  50. package/lib/model/infrastructure-type.js.map +1 -0
  51. package/lib/model/instance-configuration.d.ts +1 -1
  52. package/lib/model/instance-pool-infrastructure-configuration-details.d.ts +35 -0
  53. package/lib/model/instance-pool-infrastructure-configuration-details.js +69 -0
  54. package/lib/model/instance-pool-infrastructure-configuration-details.js.map +1 -0
  55. package/lib/model/job-shape-config-details.d.ts +19 -0
  56. package/lib/model/job-shape-config-details.js +11 -0
  57. package/lib/model/job-shape-config-details.js.map +1 -1
  58. package/lib/model/member-model-details.d.ts +30 -0
  59. package/lib/model/member-model-details.js +30 -0
  60. package/lib/model/member-model-details.js.map +1 -0
  61. package/lib/model/member-model-entries.d.ts +27 -0
  62. package/lib/model/member-model-entries.js +62 -0
  63. package/lib/model/member-model-entries.js.map +1 -0
  64. package/lib/model/model-deployment-configuration-details.js +4 -0
  65. package/lib/model/model-deployment-configuration-details.js.map +1 -1
  66. package/lib/model/model-deployment-model-state-summary.d.ts +80 -0
  67. package/lib/model/model-deployment-model-state-summary.js +41 -0
  68. package/lib/model/model-deployment-model-state-summary.js.map +1 -0
  69. package/lib/model/model-deployment-summary.d.ts +1 -1
  70. package/lib/model/model-deployment-summary.js.map +1 -1
  71. package/lib/model/model-deployment-type.d.ts +1 -0
  72. package/lib/model/model-deployment-type.js +1 -0
  73. package/lib/model/model-deployment-type.js.map +1 -1
  74. package/lib/model/model-deployment.d.ts +1 -1
  75. package/lib/model/model-deployment.js.map +1 -1
  76. package/lib/model/model-group-clone-source-details.d.ts +23 -0
  77. package/lib/model/model-group-clone-source-details.js +73 -0
  78. package/lib/model/model-group-clone-source-details.js.map +1 -0
  79. package/lib/model/model-group-configuration-details.d.ts +26 -0
  80. package/lib/model/model-group-configuration-details.js +30 -0
  81. package/lib/model/model-group-configuration-details.js.map +1 -0
  82. package/lib/model/model-group-create-type.d.ts +24 -0
  83. package/lib/model/model-group-create-type.js +35 -0
  84. package/lib/model/model-group-create-type.js.map +1 -0
  85. package/lib/model/model-group-deployment-configuration-details.d.ts +28 -0
  86. package/lib/model/model-group-deployment-configuration-details.js +75 -0
  87. package/lib/model/model-group-deployment-configuration-details.js.map +1 -0
  88. package/lib/model/model-group-details.d.ts +28 -0
  89. package/lib/model/model-group-details.js +89 -0
  90. package/lib/model/model-group-details.js.map +1 -0
  91. package/lib/model/model-group-lifecycle-state.d.ts +33 -0
  92. package/lib/model/model-group-lifecycle-state.js +44 -0
  93. package/lib/model/model-group-lifecycle-state.js.map +1 -0
  94. package/lib/model/model-group-model-summary.d.ts +103 -0
  95. package/lib/model/model-group-model-summary.js +30 -0
  96. package/lib/model/model-group-model-summary.js.map +1 -0
  97. package/lib/model/model-group-summary.d.ts +108 -0
  98. package/lib/model/model-group-summary.js +58 -0
  99. package/lib/model/model-group-summary.js.map +1 -0
  100. package/lib/model/model-group-type.d.ts +30 -0
  101. package/lib/model/model-group-type.js +41 -0
  102. package/lib/model/model-group-type.js.map +1 -0
  103. package/lib/model/model-group-version-history-lifecycle-state.d.ts +31 -0
  104. package/lib/model/model-group-version-history-lifecycle-state.js +42 -0
  105. package/lib/model/model-group-version-history-lifecycle-state.js.map +1 -0
  106. package/lib/model/model-group-version-history-summary.d.ts +95 -0
  107. package/lib/model/model-group-version-history-summary.js +30 -0
  108. package/lib/model/model-group-version-history-summary.js.map +1 -0
  109. package/lib/model/model-group-version-history.d.ts +99 -0
  110. package/lib/model/model-group-version-history.js +30 -0
  111. package/lib/model/model-group-version-history.js.map +1 -0
  112. package/lib/model/model-group.d.ts +121 -0
  113. package/lib/model/model-group.js +64 -0
  114. package/lib/model/model-group.js.map +1 -0
  115. package/lib/model/modify-model-group-details.d.ts +60 -0
  116. package/lib/model/modify-model-group-details.js +58 -0
  117. package/lib/model/modify-model-group-details.js.map +1 -0
  118. package/lib/model/notebook-session-shape-config-details.d.ts +19 -0
  119. package/lib/model/notebook-session-shape-config-details.js +11 -0
  120. package/lib/model/notebook-session-shape-config-details.js.map +1 -1
  121. package/lib/model/patch-insert-new-member-models.d.ts +29 -0
  122. package/lib/model/patch-insert-new-member-models.js +67 -0
  123. package/lib/model/patch-insert-new-member-models.js.map +1 -0
  124. package/lib/model/patch-instruction-type.d.ts +24 -0
  125. package/lib/model/patch-instruction-type.js +35 -0
  126. package/lib/model/patch-instruction-type.js.map +1 -0
  127. package/lib/model/patch-instruction.d.ts +23 -0
  128. package/lib/model/patch-instruction.js +73 -0
  129. package/lib/model/patch-instruction.js.map +1 -0
  130. package/lib/model/patch-model-group-member-model-details.d.ts +27 -0
  131. package/lib/model/patch-model-group-member-model-details.js +62 -0
  132. package/lib/model/patch-model-group-member-model-details.js.map +1 -0
  133. package/lib/model/patch-remove-member-models.d.ts +29 -0
  134. package/lib/model/patch-remove-member-models.js +67 -0
  135. package/lib/model/patch-remove-member-models.js.map +1 -0
  136. package/lib/model/pipeline-shape-config-details.d.ts +19 -0
  137. package/lib/model/pipeline-shape-config-details.js +11 -0
  138. package/lib/model/pipeline-shape-config-details.js.map +1 -1
  139. package/lib/model/stacked-model-group-details.d.ts +29 -0
  140. package/lib/model/stacked-model-group-details.js +55 -0
  141. package/lib/model/stacked-model-group-details.js.map +1 -0
  142. package/lib/model/update-infrastructure-configuration-details.d.ts +23 -0
  143. package/lib/model/update-infrastructure-configuration-details.js +69 -0
  144. package/lib/model/update-infrastructure-configuration-details.js.map +1 -0
  145. package/lib/model/update-instance-pool-infrastructure-configuration-details.d.ts +35 -0
  146. package/lib/model/update-instance-pool-infrastructure-configuration-details.js +69 -0
  147. package/lib/model/update-instance-pool-infrastructure-configuration-details.js.map +1 -0
  148. package/lib/model/update-model-deployment-configuration-details.js +4 -0
  149. package/lib/model/update-model-deployment-configuration-details.js.map +1 -1
  150. package/lib/model/update-model-deployment-details.d.ts +1 -1
  151. package/lib/model/update-model-deployment-details.js.map +1 -1
  152. package/lib/model/update-model-group-configuration-details.d.ts +26 -0
  153. package/lib/model/update-model-group-configuration-details.js +30 -0
  154. package/lib/model/update-model-group-configuration-details.js.map +1 -0
  155. package/lib/model/update-model-group-deployment-configuration-details.d.ts +36 -0
  156. package/lib/model/update-model-group-deployment-configuration-details.js +80 -0
  157. package/lib/model/update-model-group-deployment-configuration-details.js.map +1 -0
  158. package/lib/model/update-model-group-details.d.ts +58 -0
  159. package/lib/model/update-model-group-details.js +30 -0
  160. package/lib/model/update-model-group-details.js.map +1 -0
  161. package/lib/model/update-model-group-version-history-details.d.ts +52 -0
  162. package/lib/model/update-model-group-version-history-details.js +30 -0
  163. package/lib/model/update-model-group-version-history-details.js.map +1 -0
  164. package/lib/model/work-request-operation-type.d.ts +4 -0
  165. package/lib/model/work-request-operation-type.js +4 -0
  166. package/lib/model/work-request-operation-type.js.map +1 -1
  167. package/lib/request/activate-model-group-request.d.ts +36 -0
  168. package/lib/request/activate-model-group-request.js +15 -0
  169. package/lib/request/activate-model-group-request.js.map +1 -0
  170. package/lib/request/change-model-group-compartment-request.d.ts +46 -0
  171. package/lib/request/change-model-group-compartment-request.js +15 -0
  172. package/lib/request/change-model-group-compartment-request.js.map +1 -0
  173. package/lib/request/change-model-group-version-history-compartment-request.d.ts +46 -0
  174. package/lib/request/change-model-group-version-history-compartment-request.js +15 -0
  175. package/lib/request/change-model-group-version-history-compartment-request.js.map +1 -0
  176. package/lib/request/create-model-group-artifact-request.d.ts +62 -0
  177. package/lib/request/create-model-group-artifact-request.js +15 -0
  178. package/lib/request/create-model-group-artifact-request.js.map +1 -0
  179. package/lib/request/create-model-group-request.d.ts +33 -0
  180. package/lib/request/create-model-group-request.js +15 -0
  181. package/lib/request/create-model-group-request.js.map +1 -0
  182. package/lib/request/create-model-group-version-history-request.d.ts +33 -0
  183. package/lib/request/create-model-group-version-history-request.js +15 -0
  184. package/lib/request/create-model-group-version-history-request.js.map +1 -0
  185. package/lib/request/deactivate-model-group-request.d.ts +36 -0
  186. package/lib/request/deactivate-model-group-request.js +15 -0
  187. package/lib/request/deactivate-model-group-request.js.map +1 -0
  188. package/lib/request/delete-model-group-request.d.ts +36 -0
  189. package/lib/request/delete-model-group-request.js +15 -0
  190. package/lib/request/delete-model-group-request.js.map +1 -0
  191. package/lib/request/delete-model-group-version-history-request.d.ts +36 -0
  192. package/lib/request/delete-model-group-version-history-request.js +15 -0
  193. package/lib/request/delete-model-group-version-history-request.js.map +1 -0
  194. package/lib/request/get-model-group-artifact-content-request.d.ts +33 -0
  195. package/lib/request/get-model-group-artifact-content-request.js +15 -0
  196. package/lib/request/get-model-group-artifact-content-request.js.map +1 -0
  197. package/lib/request/get-model-group-request.d.ts +27 -0
  198. package/lib/request/get-model-group-request.js +15 -0
  199. package/lib/request/get-model-group-request.js.map +1 -0
  200. package/lib/request/get-model-group-version-history-request.d.ts +27 -0
  201. package/lib/request/get-model-group-version-history-request.js +15 -0
  202. package/lib/request/get-model-group-version-history-request.js.map +1 -0
  203. package/lib/request/head-model-group-artifact-request.d.ts +27 -0
  204. package/lib/request/head-model-group-artifact-request.js +15 -0
  205. package/lib/request/head-model-group-artifact-request.js.map +1 -0
  206. package/lib/request/index.d.ts +38 -0
  207. package/lib/request/index.js +9 -1
  208. package/lib/request/index.js.map +1 -1
  209. package/lib/request/list-model-deployment-model-states-request.d.ts +93 -0
  210. package/lib/request/list-model-deployment-model-states-request.js +29 -0
  211. package/lib/request/list-model-deployment-model-states-request.js.map +1 -0
  212. package/lib/request/list-model-group-models-request.d.ts +92 -0
  213. package/lib/request/list-model-group-models-request.js +30 -0
  214. package/lib/request/list-model-group-models-request.js.map +1 -0
  215. package/lib/request/list-model-group-version-histories-request.d.ts +90 -0
  216. package/lib/request/list-model-group-version-histories-request.js +30 -0
  217. package/lib/request/list-model-group-version-histories-request.js.map +1 -0
  218. package/lib/request/list-model-groups-request.d.ts +94 -0
  219. package/lib/request/list-model-groups-request.js +30 -0
  220. package/lib/request/list-model-groups-request.js.map +1 -0
  221. package/lib/request/list-work-requests-request.d.ts +5 -1
  222. package/lib/request/list-work-requests-request.js +4 -0
  223. package/lib/request/list-work-requests-request.js.map +1 -1
  224. package/lib/request/update-model-group-request.d.ts +41 -0
  225. package/lib/request/update-model-group-request.js +15 -0
  226. package/lib/request/update-model-group-request.js.map +1 -0
  227. package/lib/request/update-model-group-version-history-request.d.ts +41 -0
  228. package/lib/request/update-model-group-version-history-request.js +15 -0
  229. package/lib/request/update-model-group-version-history-request.js.map +1 -0
  230. package/lib/response/activate-model-group-response.d.ts +30 -0
  231. package/lib/response/activate-model-group-response.js +15 -0
  232. package/lib/response/activate-model-group-response.js.map +1 -0
  233. package/lib/response/change-model-group-compartment-response.d.ts +20 -0
  234. package/lib/response/change-model-group-compartment-response.js +15 -0
  235. package/lib/response/change-model-group-compartment-response.js.map +1 -0
  236. package/lib/response/change-model-group-version-history-compartment-response.d.ts +20 -0
  237. package/lib/response/change-model-group-version-history-compartment-response.js +15 -0
  238. package/lib/response/change-model-group-version-history-compartment-response.js.map +1 -0
  239. package/lib/response/create-model-group-artifact-response.d.ts +25 -0
  240. package/lib/response/create-model-group-artifact-response.js +15 -0
  241. package/lib/response/create-model-group-artifact-response.js.map +1 -0
  242. package/lib/response/create-model-group-response.d.ts +36 -0
  243. package/lib/response/create-model-group-response.js +15 -0
  244. package/lib/response/create-model-group-response.js.map +1 -0
  245. package/lib/response/create-model-group-version-history-response.d.ts +30 -0
  246. package/lib/response/create-model-group-version-history-response.js +15 -0
  247. package/lib/response/create-model-group-version-history-response.js.map +1 -0
  248. package/lib/response/deactivate-model-group-response.d.ts +30 -0
  249. package/lib/response/deactivate-model-group-response.js +15 -0
  250. package/lib/response/deactivate-model-group-response.js.map +1 -0
  251. package/lib/response/delete-model-group-response.d.ts +26 -0
  252. package/lib/response/delete-model-group-response.js +15 -0
  253. package/lib/response/delete-model-group-response.js.map +1 -0
  254. package/lib/response/delete-model-group-version-history-response.d.ts +26 -0
  255. package/lib/response/delete-model-group-version-history-response.js +15 -0
  256. package/lib/response/delete-model-group-version-history-response.js.map +1 -0
  257. package/lib/response/get-model-group-artifact-content-response.d.ts +52 -0
  258. package/lib/response/get-model-group-artifact-content-response.js +15 -0
  259. package/lib/response/get-model-group-artifact-content-response.js.map +1 -0
  260. package/lib/response/get-model-group-response.d.ts +30 -0
  261. package/lib/response/get-model-group-response.js +15 -0
  262. package/lib/response/get-model-group-response.js.map +1 -0
  263. package/lib/response/get-model-group-version-history-response.d.ts +30 -0
  264. package/lib/response/get-model-group-version-history-response.js +15 -0
  265. package/lib/response/get-model-group-version-history-response.js.map +1 -0
  266. package/lib/response/head-model-group-artifact-response.d.ts +46 -0
  267. package/lib/response/head-model-group-artifact-response.js +15 -0
  268. package/lib/response/head-model-group-artifact-response.js.map +1 -0
  269. package/lib/response/index.d.ts +38 -0
  270. package/lib/response/list-model-deployment-model-states-response.d.ts +35 -0
  271. package/lib/response/list-model-deployment-model-states-response.js +15 -0
  272. package/lib/response/list-model-deployment-model-states-response.js.map +1 -0
  273. package/lib/response/list-model-group-models-response.d.ts +35 -0
  274. package/lib/response/list-model-group-models-response.js +15 -0
  275. package/lib/response/list-model-group-models-response.js.map +1 -0
  276. package/lib/response/list-model-group-version-histories-response.d.ts +35 -0
  277. package/lib/response/list-model-group-version-histories-response.js +15 -0
  278. package/lib/response/list-model-group-version-histories-response.js.map +1 -0
  279. package/lib/response/list-model-groups-response.d.ts +35 -0
  280. package/lib/response/list-model-groups-response.js +15 -0
  281. package/lib/response/list-model-groups-response.js.map +1 -0
  282. package/lib/response/update-model-group-response.d.ts +30 -0
  283. package/lib/response/update-model-group-response.js +15 -0
  284. package/lib/response/update-model-group-response.js.map +1 -0
  285. package/lib/response/update-model-group-version-history-response.d.ts +30 -0
  286. package/lib/response/update-model-group-version-history-response.js +15 -0
  287. package/lib/response/update-model-group-version-history-response.js.map +1 -0
  288. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -333,6 +333,70 @@ class DataScienceClient {
333
333
  }
334
334
  });
335
335
  }
336
+ /**
337
+ * Activates the model group.
338
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
339
+ * @param ActivateModelGroupRequest
340
+ * @return ActivateModelGroupResponse
341
+ * @throws OciError when an error occurs
342
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ActivateModelGroup.ts.html |here} to see how to use ActivateModelGroup API.
343
+ */
344
+ activateModelGroup(activateModelGroupRequest) {
345
+ return __awaiter(this, void 0, void 0, function* () {
346
+ if (this.logger)
347
+ this.logger.debug("Calling operation DataScienceClient#activateModelGroup.");
348
+ const operationName = "activateModelGroup";
349
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/ActivateModelGroup";
350
+ const pathParams = {
351
+ "{modelGroupId}": activateModelGroupRequest.modelGroupId
352
+ };
353
+ const queryParams = {};
354
+ let headerParams = {
355
+ "Content-Type": common.Constants.APPLICATION_JSON,
356
+ "if-match": activateModelGroupRequest.ifMatch,
357
+ "opc-request-id": activateModelGroupRequest.opcRequestId
358
+ };
359
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
360
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateModelGroupRequest.retryConfiguration, specRetryConfiguration);
361
+ if (this.logger)
362
+ retrier.logger = this.logger;
363
+ const request = yield oci_common_2.composeRequest({
364
+ baseEndpoint: this._endpoint,
365
+ defaultHeaders: this._defaultHeaders,
366
+ path: "/modelGroups/{modelGroupId}/actions/activate",
367
+ method: "POST",
368
+ pathParams: pathParams,
369
+ headerParams: headerParams,
370
+ queryParams: queryParams
371
+ });
372
+ try {
373
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
374
+ const sdkResponse = oci_common_2.composeResponse({
375
+ responseObject: {},
376
+ body: yield response.json(),
377
+ bodyKey: "modelGroup",
378
+ bodyModel: model.ModelGroup,
379
+ type: "model.ModelGroup",
380
+ responseHeaders: [
381
+ {
382
+ value: response.headers.get("etag"),
383
+ key: "etag",
384
+ dataType: "string"
385
+ },
386
+ {
387
+ value: response.headers.get("opc-request-id"),
388
+ key: "opcRequestId",
389
+ dataType: "string"
390
+ }
391
+ ]
392
+ });
393
+ return sdkResponse;
394
+ }
395
+ catch (err) {
396
+ throw err;
397
+ }
398
+ });
399
+ }
336
400
  /**
337
401
  * Activates the notebook session.
338
402
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1154,6 +1218,120 @@ class DataScienceClient {
1154
1218
  }
1155
1219
  });
1156
1220
  }
1221
+ /**
1222
+ * Moves a model group resource into a different compartment.
1223
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1224
+ * @param ChangeModelGroupCompartmentRequest
1225
+ * @return ChangeModelGroupCompartmentResponse
1226
+ * @throws OciError when an error occurs
1227
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ChangeModelGroupCompartment.ts.html |here} to see how to use ChangeModelGroupCompartment API.
1228
+ */
1229
+ changeModelGroupCompartment(changeModelGroupCompartmentRequest) {
1230
+ return __awaiter(this, void 0, void 0, function* () {
1231
+ if (this.logger)
1232
+ this.logger.debug("Calling operation DataScienceClient#changeModelGroupCompartment.");
1233
+ const operationName = "changeModelGroupCompartment";
1234
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/ChangeModelGroupCompartment";
1235
+ const pathParams = {
1236
+ "{modelGroupId}": changeModelGroupCompartmentRequest.modelGroupId
1237
+ };
1238
+ const queryParams = {};
1239
+ let headerParams = {
1240
+ "Content-Type": common.Constants.APPLICATION_JSON,
1241
+ "if-match": changeModelGroupCompartmentRequest.ifMatch,
1242
+ "opc-request-id": changeModelGroupCompartmentRequest.opcRequestId,
1243
+ "opc-retry-token": changeModelGroupCompartmentRequest.opcRetryToken
1244
+ };
1245
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1246
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelGroupCompartmentRequest.retryConfiguration, specRetryConfiguration);
1247
+ if (this.logger)
1248
+ retrier.logger = this.logger;
1249
+ const request = yield oci_common_2.composeRequest({
1250
+ baseEndpoint: this._endpoint,
1251
+ defaultHeaders: this._defaultHeaders,
1252
+ path: "/modelGroups/{modelGroupId}/actions/changeCompartment",
1253
+ method: "POST",
1254
+ bodyContent: common.ObjectSerializer.serialize(changeModelGroupCompartmentRequest.changeModelGroupCompartmentDetails, "ChangeModelGroupCompartmentDetails", model.ChangeModelGroupCompartmentDetails.getJsonObj),
1255
+ pathParams: pathParams,
1256
+ headerParams: headerParams,
1257
+ queryParams: queryParams
1258
+ });
1259
+ try {
1260
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1261
+ const sdkResponse = oci_common_2.composeResponse({
1262
+ responseObject: {},
1263
+ responseHeaders: [
1264
+ {
1265
+ value: response.headers.get("opc-request-id"),
1266
+ key: "opcRequestId",
1267
+ dataType: "string"
1268
+ }
1269
+ ]
1270
+ });
1271
+ return sdkResponse;
1272
+ }
1273
+ catch (err) {
1274
+ throw err;
1275
+ }
1276
+ });
1277
+ }
1278
+ /**
1279
+ * Moves a model Group Version History resource into a different compartment.
1280
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1281
+ * @param ChangeModelGroupVersionHistoryCompartmentRequest
1282
+ * @return ChangeModelGroupVersionHistoryCompartmentResponse
1283
+ * @throws OciError when an error occurs
1284
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ChangeModelGroupVersionHistoryCompartment.ts.html |here} to see how to use ChangeModelGroupVersionHistoryCompartment API.
1285
+ */
1286
+ changeModelGroupVersionHistoryCompartment(changeModelGroupVersionHistoryCompartmentRequest) {
1287
+ return __awaiter(this, void 0, void 0, function* () {
1288
+ if (this.logger)
1289
+ this.logger.debug("Calling operation DataScienceClient#changeModelGroupVersionHistoryCompartment.");
1290
+ const operationName = "changeModelGroupVersionHistoryCompartment";
1291
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistory/ChangeModelGroupVersionHistoryCompartment";
1292
+ const pathParams = {
1293
+ "{modelGroupVersionHistoryId}": changeModelGroupVersionHistoryCompartmentRequest.modelGroupVersionHistoryId
1294
+ };
1295
+ const queryParams = {};
1296
+ let headerParams = {
1297
+ "Content-Type": common.Constants.APPLICATION_JSON,
1298
+ "if-match": changeModelGroupVersionHistoryCompartmentRequest.ifMatch,
1299
+ "opc-request-id": changeModelGroupVersionHistoryCompartmentRequest.opcRequestId,
1300
+ "opc-retry-token": changeModelGroupVersionHistoryCompartmentRequest.opcRetryToken
1301
+ };
1302
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1303
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelGroupVersionHistoryCompartmentRequest.retryConfiguration, specRetryConfiguration);
1304
+ if (this.logger)
1305
+ retrier.logger = this.logger;
1306
+ const request = yield oci_common_2.composeRequest({
1307
+ baseEndpoint: this._endpoint,
1308
+ defaultHeaders: this._defaultHeaders,
1309
+ path: "/modelGroupVersionHistory/{modelGroupVersionHistoryId}/actions/changeCompartment",
1310
+ method: "POST",
1311
+ bodyContent: common.ObjectSerializer.serialize(changeModelGroupVersionHistoryCompartmentRequest.changeModelGroupVersionHistoryCompartmentDetails, "ChangeModelGroupVersionHistoryCompartmentDetails", model.ChangeModelGroupVersionHistoryCompartmentDetails.getJsonObj),
1312
+ pathParams: pathParams,
1313
+ headerParams: headerParams,
1314
+ queryParams: queryParams
1315
+ });
1316
+ try {
1317
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1318
+ const sdkResponse = oci_common_2.composeResponse({
1319
+ responseObject: {},
1320
+ responseHeaders: [
1321
+ {
1322
+ value: response.headers.get("opc-request-id"),
1323
+ key: "opcRequestId",
1324
+ dataType: "string"
1325
+ }
1326
+ ]
1327
+ });
1328
+ return sdkResponse;
1329
+ }
1330
+ catch (err) {
1331
+ throw err;
1332
+ }
1333
+ });
1334
+ }
1157
1335
  /**
1158
1336
  * Moves a modelVersionSet resource into a different compartment.
1159
1337
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2305,38 +2483,36 @@ class DataScienceClient {
2305
2483
  });
2306
2484
  }
2307
2485
  /**
2308
- * Creates provenance information for the specified model.
2486
+ * Create a new Model Group resource.
2309
2487
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2310
- * @param CreateModelProvenanceRequest
2311
- * @return CreateModelProvenanceResponse
2488
+ * @param CreateModelGroupRequest
2489
+ * @return CreateModelGroupResponse
2312
2490
  * @throws OciError when an error occurs
2313
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelProvenance.ts.html |here} to see how to use CreateModelProvenance API.
2491
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelGroup.ts.html |here} to see how to use CreateModelGroup API.
2314
2492
  */
2315
- createModelProvenance(createModelProvenanceRequest) {
2493
+ createModelGroup(createModelGroupRequest) {
2316
2494
  return __awaiter(this, void 0, void 0, function* () {
2317
2495
  if (this.logger)
2318
- this.logger.debug("Calling operation DataScienceClient#createModelProvenance.");
2319
- const operationName = "createModelProvenance";
2320
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelProvenance";
2321
- const pathParams = {
2322
- "{modelId}": createModelProvenanceRequest.modelId
2323
- };
2496
+ this.logger.debug("Calling operation DataScienceClient#createModelGroup.");
2497
+ const operationName = "createModelGroup";
2498
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/CreateModelGroup";
2499
+ const pathParams = {};
2324
2500
  const queryParams = {};
2325
2501
  let headerParams = {
2326
2502
  "Content-Type": common.Constants.APPLICATION_JSON,
2327
- "opc-request-id": createModelProvenanceRequest.opcRequestId,
2328
- "opc-retry-token": createModelProvenanceRequest.opcRetryToken
2503
+ "opc-request-id": createModelGroupRequest.opcRequestId,
2504
+ "opc-retry-token": createModelGroupRequest.opcRetryToken
2329
2505
  };
2330
2506
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2331
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelProvenanceRequest.retryConfiguration, specRetryConfiguration);
2507
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelGroupRequest.retryConfiguration, specRetryConfiguration);
2332
2508
  if (this.logger)
2333
2509
  retrier.logger = this.logger;
2334
2510
  const request = yield oci_common_2.composeRequest({
2335
2511
  baseEndpoint: this._endpoint,
2336
2512
  defaultHeaders: this._defaultHeaders,
2337
- path: "/models/{modelId}/provenance",
2513
+ path: "/modelGroups",
2338
2514
  method: "POST",
2339
- bodyContent: common.ObjectSerializer.serialize(createModelProvenanceRequest.createModelProvenanceDetails, "CreateModelProvenanceDetails", model.CreateModelProvenanceDetails.getJsonObj),
2515
+ bodyContent: common.ObjectSerializer.serialize(createModelGroupRequest.createBaseModelGroupDetails, "CreateBaseModelGroupDetails", model.CreateBaseModelGroupDetails.getJsonObj),
2340
2516
  pathParams: pathParams,
2341
2517
  headerParams: headerParams,
2342
2518
  queryParams: queryParams
@@ -2346,18 +2522,23 @@ class DataScienceClient {
2346
2522
  const sdkResponse = oci_common_2.composeResponse({
2347
2523
  responseObject: {},
2348
2524
  body: yield response.json(),
2349
- bodyKey: "modelProvenance",
2350
- bodyModel: model.ModelProvenance,
2351
- type: "model.ModelProvenance",
2525
+ bodyKey: "modelGroup",
2526
+ bodyModel: model.ModelGroup,
2527
+ type: "model.ModelGroup",
2352
2528
  responseHeaders: [
2529
+ {
2530
+ value: response.headers.get("etag"),
2531
+ key: "etag",
2532
+ dataType: "string"
2533
+ },
2353
2534
  {
2354
2535
  value: response.headers.get("opc-request-id"),
2355
2536
  key: "opcRequestId",
2356
2537
  dataType: "string"
2357
2538
  },
2358
2539
  {
2359
- value: response.headers.get("etag"),
2360
- key: "etag",
2540
+ value: response.headers.get("opc-work-request-id"),
2541
+ key: "opcWorkRequestId",
2361
2542
  dataType: "string"
2362
2543
  }
2363
2544
  ]
@@ -2370,48 +2551,49 @@ class DataScienceClient {
2370
2551
  });
2371
2552
  }
2372
2553
  /**
2373
- * Creates a new modelVersionSet.
2554
+ * Creates artifact for the Model Group.
2374
2555
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2375
- * @param CreateModelVersionSetRequest
2376
- * @return CreateModelVersionSetResponse
2556
+ * @param CreateModelGroupArtifactRequest
2557
+ * @return CreateModelGroupArtifactResponse
2377
2558
  * @throws OciError when an error occurs
2378
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelVersionSet.ts.html |here} to see how to use CreateModelVersionSet API.
2559
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelGroupArtifact.ts.html |here} to see how to use CreateModelGroupArtifact API.
2379
2560
  */
2380
- createModelVersionSet(createModelVersionSetRequest) {
2561
+ createModelGroupArtifact(createModelGroupArtifactRequest) {
2381
2562
  return __awaiter(this, void 0, void 0, function* () {
2382
2563
  if (this.logger)
2383
- this.logger.debug("Calling operation DataScienceClient#createModelVersionSet.");
2384
- const operationName = "createModelVersionSet";
2385
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/CreateModelVersionSet";
2386
- const pathParams = {};
2564
+ this.logger.debug("Calling operation DataScienceClient#createModelGroupArtifact.");
2565
+ const operationName = "createModelGroupArtifact";
2566
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/CreateModelGroupArtifact";
2567
+ const pathParams = {
2568
+ "{modelGroupId}": createModelGroupArtifactRequest.modelGroupId
2569
+ };
2387
2570
  const queryParams = {};
2388
2571
  let headerParams = {
2389
- "Content-Type": common.Constants.APPLICATION_JSON,
2390
- "opc-request-id": createModelVersionSetRequest.opcRequestId,
2391
- "opc-retry-token": createModelVersionSetRequest.opcRetryToken
2572
+ "opc-request-id": createModelGroupArtifactRequest.opcRequestId,
2573
+ "opc-retry-token": createModelGroupArtifactRequest.opcRetryToken,
2574
+ "content-length": createModelGroupArtifactRequest.contentLength,
2575
+ "content-disposition": createModelGroupArtifactRequest.contentDisposition,
2576
+ "if-match": createModelGroupArtifactRequest.ifMatch
2392
2577
  };
2393
2578
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2394
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelVersionSetRequest.retryConfiguration, specRetryConfiguration);
2579
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelGroupArtifactRequest.retryConfiguration, specRetryConfiguration);
2395
2580
  if (this.logger)
2396
2581
  retrier.logger = this.logger;
2397
2582
  const request = yield oci_common_2.composeRequest({
2398
2583
  baseEndpoint: this._endpoint,
2399
2584
  defaultHeaders: this._defaultHeaders,
2400
- path: "/modelVersionSets",
2585
+ path: "/modelGroups/{modelGroupId}/artifact",
2401
2586
  method: "POST",
2402
- bodyContent: common.ObjectSerializer.serialize(createModelVersionSetRequest.createModelVersionSetDetails, "CreateModelVersionSetDetails", model.CreateModelVersionSetDetails.getJsonObj),
2587
+ bodyContent: createModelGroupArtifactRequest.modelGroupArtifact,
2403
2588
  pathParams: pathParams,
2404
2589
  headerParams: headerParams,
2590
+ backupBinaryBody: retrier.backUpBinaryBody,
2405
2591
  queryParams: queryParams
2406
2592
  });
2407
2593
  try {
2408
- const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2594
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
2409
2595
  const sdkResponse = oci_common_2.composeResponse({
2410
2596
  responseObject: {},
2411
- body: yield response.json(),
2412
- bodyKey: "modelVersionSet",
2413
- bodyModel: model.ModelVersionSet,
2414
- type: "model.ModelVersionSet",
2415
2597
  responseHeaders: [
2416
2598
  {
2417
2599
  value: response.headers.get("etag"),
@@ -2433,36 +2615,36 @@ class DataScienceClient {
2433
2615
  });
2434
2616
  }
2435
2617
  /**
2436
- * Creates a new notebook session.
2618
+ * Creates a new modelGroupVersionHistory.
2437
2619
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2438
- * @param CreateNotebookSessionRequest
2439
- * @return CreateNotebookSessionResponse
2620
+ * @param CreateModelGroupVersionHistoryRequest
2621
+ * @return CreateModelGroupVersionHistoryResponse
2440
2622
  * @throws OciError when an error occurs
2441
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateNotebookSession.ts.html |here} to see how to use CreateNotebookSession API.
2623
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelGroupVersionHistory.ts.html |here} to see how to use CreateModelGroupVersionHistory API.
2442
2624
  */
2443
- createNotebookSession(createNotebookSessionRequest) {
2625
+ createModelGroupVersionHistory(createModelGroupVersionHistoryRequest) {
2444
2626
  return __awaiter(this, void 0, void 0, function* () {
2445
2627
  if (this.logger)
2446
- this.logger.debug("Calling operation DataScienceClient#createNotebookSession.");
2447
- const operationName = "createNotebookSession";
2448
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/CreateNotebookSession";
2628
+ this.logger.debug("Calling operation DataScienceClient#createModelGroupVersionHistory.");
2629
+ const operationName = "createModelGroupVersionHistory";
2630
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistory/CreateModelGroupVersionHistory";
2449
2631
  const pathParams = {};
2450
2632
  const queryParams = {};
2451
2633
  let headerParams = {
2452
2634
  "Content-Type": common.Constants.APPLICATION_JSON,
2453
- "opc-request-id": createNotebookSessionRequest.opcRequestId,
2454
- "opc-retry-token": createNotebookSessionRequest.opcRetryToken
2635
+ "opc-request-id": createModelGroupVersionHistoryRequest.opcRequestId,
2636
+ "opc-retry-token": createModelGroupVersionHistoryRequest.opcRetryToken
2455
2637
  };
2456
2638
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2457
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createNotebookSessionRequest.retryConfiguration, specRetryConfiguration);
2639
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelGroupVersionHistoryRequest.retryConfiguration, specRetryConfiguration);
2458
2640
  if (this.logger)
2459
2641
  retrier.logger = this.logger;
2460
2642
  const request = yield oci_common_2.composeRequest({
2461
2643
  baseEndpoint: this._endpoint,
2462
2644
  defaultHeaders: this._defaultHeaders,
2463
- path: "/notebookSessions",
2645
+ path: "/modelGroupVersionHistory",
2464
2646
  method: "POST",
2465
- bodyContent: common.ObjectSerializer.serialize(createNotebookSessionRequest.createNotebookSessionDetails, "CreateNotebookSessionDetails", model.CreateNotebookSessionDetails.getJsonObj),
2647
+ bodyContent: common.ObjectSerializer.serialize(createModelGroupVersionHistoryRequest.createModelGroupVersionHistoryDetails, "CreateModelGroupVersionHistoryDetails", model.CreateModelGroupVersionHistoryDetails.getJsonObj),
2466
2648
  pathParams: pathParams,
2467
2649
  headerParams: headerParams,
2468
2650
  queryParams: queryParams
@@ -2472,29 +2654,19 @@ class DataScienceClient {
2472
2654
  const sdkResponse = oci_common_2.composeResponse({
2473
2655
  responseObject: {},
2474
2656
  body: yield response.json(),
2475
- bodyKey: "notebookSession",
2476
- bodyModel: model.NotebookSession,
2477
- type: "model.NotebookSession",
2657
+ bodyKey: "modelGroupVersionHistory",
2658
+ bodyModel: model.ModelGroupVersionHistory,
2659
+ type: "model.ModelGroupVersionHistory",
2478
2660
  responseHeaders: [
2479
2661
  {
2480
2662
  value: response.headers.get("etag"),
2481
2663
  key: "etag",
2482
2664
  dataType: "string"
2483
2665
  },
2484
- {
2485
- value: response.headers.get("location"),
2486
- key: "location",
2487
- dataType: "string"
2488
- },
2489
2666
  {
2490
2667
  value: response.headers.get("opc-request-id"),
2491
2668
  key: "opcRequestId",
2492
2669
  dataType: "string"
2493
- },
2494
- {
2495
- value: response.headers.get("opc-work-request-id"),
2496
- key: "opcWorkRequestId",
2497
- dataType: "string"
2498
2670
  }
2499
2671
  ]
2500
2672
  });
@@ -2506,37 +2678,38 @@ class DataScienceClient {
2506
2678
  });
2507
2679
  }
2508
2680
  /**
2509
- * Creates a new Pipeline.
2510
- *
2681
+ * Creates provenance information for the specified model.
2511
2682
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2512
- * @param CreatePipelineRequest
2513
- * @return CreatePipelineResponse
2683
+ * @param CreateModelProvenanceRequest
2684
+ * @return CreateModelProvenanceResponse
2514
2685
  * @throws OciError when an error occurs
2515
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreatePipeline.ts.html |here} to see how to use CreatePipeline API.
2686
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelProvenance.ts.html |here} to see how to use CreateModelProvenance API.
2516
2687
  */
2517
- createPipeline(createPipelineRequest) {
2688
+ createModelProvenance(createModelProvenanceRequest) {
2518
2689
  return __awaiter(this, void 0, void 0, function* () {
2519
2690
  if (this.logger)
2520
- this.logger.debug("Calling operation DataScienceClient#createPipeline.");
2521
- const operationName = "createPipeline";
2522
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/CreatePipeline";
2523
- const pathParams = {};
2691
+ this.logger.debug("Calling operation DataScienceClient#createModelProvenance.");
2692
+ const operationName = "createModelProvenance";
2693
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelProvenance";
2694
+ const pathParams = {
2695
+ "{modelId}": createModelProvenanceRequest.modelId
2696
+ };
2524
2697
  const queryParams = {};
2525
2698
  let headerParams = {
2526
2699
  "Content-Type": common.Constants.APPLICATION_JSON,
2527
- "opc-retry-token": createPipelineRequest.opcRetryToken,
2528
- "opc-request-id": createPipelineRequest.opcRequestId
2700
+ "opc-request-id": createModelProvenanceRequest.opcRequestId,
2701
+ "opc-retry-token": createModelProvenanceRequest.opcRetryToken
2529
2702
  };
2530
2703
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2531
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPipelineRequest.retryConfiguration, specRetryConfiguration);
2704
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelProvenanceRequest.retryConfiguration, specRetryConfiguration);
2532
2705
  if (this.logger)
2533
2706
  retrier.logger = this.logger;
2534
2707
  const request = yield oci_common_2.composeRequest({
2535
2708
  baseEndpoint: this._endpoint,
2536
2709
  defaultHeaders: this._defaultHeaders,
2537
- path: "/pipelines",
2710
+ path: "/models/{modelId}/provenance",
2538
2711
  method: "POST",
2539
- bodyContent: common.ObjectSerializer.serialize(createPipelineRequest.createPipelineDetails, "CreatePipelineDetails", model.CreatePipelineDetails.getJsonObj),
2712
+ bodyContent: common.ObjectSerializer.serialize(createModelProvenanceRequest.createModelProvenanceDetails, "CreateModelProvenanceDetails", model.CreateModelProvenanceDetails.getJsonObj),
2540
2713
  pathParams: pathParams,
2541
2714
  headerParams: headerParams,
2542
2715
  queryParams: queryParams
@@ -2546,18 +2719,218 @@ class DataScienceClient {
2546
2719
  const sdkResponse = oci_common_2.composeResponse({
2547
2720
  responseObject: {},
2548
2721
  body: yield response.json(),
2549
- bodyKey: "pipeline",
2550
- bodyModel: model.Pipeline,
2551
- type: "model.Pipeline",
2722
+ bodyKey: "modelProvenance",
2723
+ bodyModel: model.ModelProvenance,
2724
+ type: "model.ModelProvenance",
2552
2725
  responseHeaders: [
2553
2726
  {
2554
- value: response.headers.get("etag"),
2555
- key: "etag",
2727
+ value: response.headers.get("opc-request-id"),
2728
+ key: "opcRequestId",
2556
2729
  dataType: "string"
2557
2730
  },
2558
2731
  {
2559
- value: response.headers.get("opc-request-id"),
2560
- key: "opcRequestId",
2732
+ value: response.headers.get("etag"),
2733
+ key: "etag",
2734
+ dataType: "string"
2735
+ }
2736
+ ]
2737
+ });
2738
+ return sdkResponse;
2739
+ }
2740
+ catch (err) {
2741
+ throw err;
2742
+ }
2743
+ });
2744
+ }
2745
+ /**
2746
+ * Creates a new modelVersionSet.
2747
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2748
+ * @param CreateModelVersionSetRequest
2749
+ * @return CreateModelVersionSetResponse
2750
+ * @throws OciError when an error occurs
2751
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelVersionSet.ts.html |here} to see how to use CreateModelVersionSet API.
2752
+ */
2753
+ createModelVersionSet(createModelVersionSetRequest) {
2754
+ return __awaiter(this, void 0, void 0, function* () {
2755
+ if (this.logger)
2756
+ this.logger.debug("Calling operation DataScienceClient#createModelVersionSet.");
2757
+ const operationName = "createModelVersionSet";
2758
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/CreateModelVersionSet";
2759
+ const pathParams = {};
2760
+ const queryParams = {};
2761
+ let headerParams = {
2762
+ "Content-Type": common.Constants.APPLICATION_JSON,
2763
+ "opc-request-id": createModelVersionSetRequest.opcRequestId,
2764
+ "opc-retry-token": createModelVersionSetRequest.opcRetryToken
2765
+ };
2766
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2767
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelVersionSetRequest.retryConfiguration, specRetryConfiguration);
2768
+ if (this.logger)
2769
+ retrier.logger = this.logger;
2770
+ const request = yield oci_common_2.composeRequest({
2771
+ baseEndpoint: this._endpoint,
2772
+ defaultHeaders: this._defaultHeaders,
2773
+ path: "/modelVersionSets",
2774
+ method: "POST",
2775
+ bodyContent: common.ObjectSerializer.serialize(createModelVersionSetRequest.createModelVersionSetDetails, "CreateModelVersionSetDetails", model.CreateModelVersionSetDetails.getJsonObj),
2776
+ pathParams: pathParams,
2777
+ headerParams: headerParams,
2778
+ queryParams: queryParams
2779
+ });
2780
+ try {
2781
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2782
+ const sdkResponse = oci_common_2.composeResponse({
2783
+ responseObject: {},
2784
+ body: yield response.json(),
2785
+ bodyKey: "modelVersionSet",
2786
+ bodyModel: model.ModelVersionSet,
2787
+ type: "model.ModelVersionSet",
2788
+ responseHeaders: [
2789
+ {
2790
+ value: response.headers.get("etag"),
2791
+ key: "etag",
2792
+ dataType: "string"
2793
+ },
2794
+ {
2795
+ value: response.headers.get("opc-request-id"),
2796
+ key: "opcRequestId",
2797
+ dataType: "string"
2798
+ }
2799
+ ]
2800
+ });
2801
+ return sdkResponse;
2802
+ }
2803
+ catch (err) {
2804
+ throw err;
2805
+ }
2806
+ });
2807
+ }
2808
+ /**
2809
+ * Creates a new notebook session.
2810
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2811
+ * @param CreateNotebookSessionRequest
2812
+ * @return CreateNotebookSessionResponse
2813
+ * @throws OciError when an error occurs
2814
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateNotebookSession.ts.html |here} to see how to use CreateNotebookSession API.
2815
+ */
2816
+ createNotebookSession(createNotebookSessionRequest) {
2817
+ return __awaiter(this, void 0, void 0, function* () {
2818
+ if (this.logger)
2819
+ this.logger.debug("Calling operation DataScienceClient#createNotebookSession.");
2820
+ const operationName = "createNotebookSession";
2821
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/CreateNotebookSession";
2822
+ const pathParams = {};
2823
+ const queryParams = {};
2824
+ let headerParams = {
2825
+ "Content-Type": common.Constants.APPLICATION_JSON,
2826
+ "opc-request-id": createNotebookSessionRequest.opcRequestId,
2827
+ "opc-retry-token": createNotebookSessionRequest.opcRetryToken
2828
+ };
2829
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2830
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createNotebookSessionRequest.retryConfiguration, specRetryConfiguration);
2831
+ if (this.logger)
2832
+ retrier.logger = this.logger;
2833
+ const request = yield oci_common_2.composeRequest({
2834
+ baseEndpoint: this._endpoint,
2835
+ defaultHeaders: this._defaultHeaders,
2836
+ path: "/notebookSessions",
2837
+ method: "POST",
2838
+ bodyContent: common.ObjectSerializer.serialize(createNotebookSessionRequest.createNotebookSessionDetails, "CreateNotebookSessionDetails", model.CreateNotebookSessionDetails.getJsonObj),
2839
+ pathParams: pathParams,
2840
+ headerParams: headerParams,
2841
+ queryParams: queryParams
2842
+ });
2843
+ try {
2844
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2845
+ const sdkResponse = oci_common_2.composeResponse({
2846
+ responseObject: {},
2847
+ body: yield response.json(),
2848
+ bodyKey: "notebookSession",
2849
+ bodyModel: model.NotebookSession,
2850
+ type: "model.NotebookSession",
2851
+ responseHeaders: [
2852
+ {
2853
+ value: response.headers.get("etag"),
2854
+ key: "etag",
2855
+ dataType: "string"
2856
+ },
2857
+ {
2858
+ value: response.headers.get("location"),
2859
+ key: "location",
2860
+ dataType: "string"
2861
+ },
2862
+ {
2863
+ value: response.headers.get("opc-request-id"),
2864
+ key: "opcRequestId",
2865
+ dataType: "string"
2866
+ },
2867
+ {
2868
+ value: response.headers.get("opc-work-request-id"),
2869
+ key: "opcWorkRequestId",
2870
+ dataType: "string"
2871
+ }
2872
+ ]
2873
+ });
2874
+ return sdkResponse;
2875
+ }
2876
+ catch (err) {
2877
+ throw err;
2878
+ }
2879
+ });
2880
+ }
2881
+ /**
2882
+ * Creates a new Pipeline.
2883
+ *
2884
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2885
+ * @param CreatePipelineRequest
2886
+ * @return CreatePipelineResponse
2887
+ * @throws OciError when an error occurs
2888
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreatePipeline.ts.html |here} to see how to use CreatePipeline API.
2889
+ */
2890
+ createPipeline(createPipelineRequest) {
2891
+ return __awaiter(this, void 0, void 0, function* () {
2892
+ if (this.logger)
2893
+ this.logger.debug("Calling operation DataScienceClient#createPipeline.");
2894
+ const operationName = "createPipeline";
2895
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/CreatePipeline";
2896
+ const pathParams = {};
2897
+ const queryParams = {};
2898
+ let headerParams = {
2899
+ "Content-Type": common.Constants.APPLICATION_JSON,
2900
+ "opc-retry-token": createPipelineRequest.opcRetryToken,
2901
+ "opc-request-id": createPipelineRequest.opcRequestId
2902
+ };
2903
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2904
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPipelineRequest.retryConfiguration, specRetryConfiguration);
2905
+ if (this.logger)
2906
+ retrier.logger = this.logger;
2907
+ const request = yield oci_common_2.composeRequest({
2908
+ baseEndpoint: this._endpoint,
2909
+ defaultHeaders: this._defaultHeaders,
2910
+ path: "/pipelines",
2911
+ method: "POST",
2912
+ bodyContent: common.ObjectSerializer.serialize(createPipelineRequest.createPipelineDetails, "CreatePipelineDetails", model.CreatePipelineDetails.getJsonObj),
2913
+ pathParams: pathParams,
2914
+ headerParams: headerParams,
2915
+ queryParams: queryParams
2916
+ });
2917
+ try {
2918
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2919
+ const sdkResponse = oci_common_2.composeResponse({
2920
+ responseObject: {},
2921
+ body: yield response.json(),
2922
+ bodyKey: "pipeline",
2923
+ bodyModel: model.Pipeline,
2924
+ type: "model.Pipeline",
2925
+ responseHeaders: [
2926
+ {
2927
+ value: response.headers.get("etag"),
2928
+ key: "etag",
2929
+ dataType: "string"
2930
+ },
2931
+ {
2932
+ value: response.headers.get("opc-request-id"),
2933
+ key: "opcRequestId",
2561
2934
  dataType: "string"
2562
2935
  }
2563
2936
  ]
@@ -2964,6 +3337,70 @@ class DataScienceClient {
2964
3337
  }
2965
3338
  });
2966
3339
  }
3340
+ /**
3341
+ * Deactivates the model group.
3342
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3343
+ * @param DeactivateModelGroupRequest
3344
+ * @return DeactivateModelGroupResponse
3345
+ * @throws OciError when an error occurs
3346
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeactivateModelGroup.ts.html |here} to see how to use DeactivateModelGroup API.
3347
+ */
3348
+ deactivateModelGroup(deactivateModelGroupRequest) {
3349
+ return __awaiter(this, void 0, void 0, function* () {
3350
+ if (this.logger)
3351
+ this.logger.debug("Calling operation DataScienceClient#deactivateModelGroup.");
3352
+ const operationName = "deactivateModelGroup";
3353
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/DeactivateModelGroup";
3354
+ const pathParams = {
3355
+ "{modelGroupId}": deactivateModelGroupRequest.modelGroupId
3356
+ };
3357
+ const queryParams = {};
3358
+ let headerParams = {
3359
+ "Content-Type": common.Constants.APPLICATION_JSON,
3360
+ "if-match": deactivateModelGroupRequest.ifMatch,
3361
+ "opc-request-id": deactivateModelGroupRequest.opcRequestId
3362
+ };
3363
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3364
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateModelGroupRequest.retryConfiguration, specRetryConfiguration);
3365
+ if (this.logger)
3366
+ retrier.logger = this.logger;
3367
+ const request = yield oci_common_2.composeRequest({
3368
+ baseEndpoint: this._endpoint,
3369
+ defaultHeaders: this._defaultHeaders,
3370
+ path: "/modelGroups/{modelGroupId}/actions/deactivate",
3371
+ method: "POST",
3372
+ pathParams: pathParams,
3373
+ headerParams: headerParams,
3374
+ queryParams: queryParams
3375
+ });
3376
+ try {
3377
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3378
+ const sdkResponse = oci_common_2.composeResponse({
3379
+ responseObject: {},
3380
+ body: yield response.json(),
3381
+ bodyKey: "modelGroup",
3382
+ bodyModel: model.ModelGroup,
3383
+ type: "model.ModelGroup",
3384
+ responseHeaders: [
3385
+ {
3386
+ value: response.headers.get("etag"),
3387
+ key: "etag",
3388
+ dataType: "string"
3389
+ },
3390
+ {
3391
+ value: response.headers.get("opc-request-id"),
3392
+ key: "opcRequestId",
3393
+ dataType: "string"
3394
+ }
3395
+ ]
3396
+ });
3397
+ return sdkResponse;
3398
+ }
3399
+ catch (err) {
3400
+ throw err;
3401
+ }
3402
+ });
3403
+ }
2967
3404
  /**
2968
3405
  * Deactivates the notebook session.
2969
3406
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -3666,17 +4103,137 @@ class DataScienceClient {
3666
4103
  });
3667
4104
  }
3668
4105
  /**
3669
- * Deletes the specified modelVersionSet.
3670
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3671
- * @param DeleteModelVersionSetRequest
3672
- * @return DeleteModelVersionSetResponse
4106
+ * Deletes the specified Model Group.
4107
+ * This operation does not retry by default if the user has not defined a retry configuration.
4108
+ * @param DeleteModelGroupRequest
4109
+ * @return DeleteModelGroupResponse
3673
4110
  * @throws OciError when an error occurs
3674
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelVersionSet.ts.html |here} to see how to use DeleteModelVersionSet API.
4111
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelGroup.ts.html |here} to see how to use DeleteModelGroup API.
3675
4112
  */
3676
- deleteModelVersionSet(deleteModelVersionSetRequest) {
4113
+ deleteModelGroup(deleteModelGroupRequest) {
3677
4114
  return __awaiter(this, void 0, void 0, function* () {
3678
4115
  if (this.logger)
3679
- this.logger.debug("Calling operation DataScienceClient#deleteModelVersionSet.");
4116
+ this.logger.debug("Calling operation DataScienceClient#deleteModelGroup.");
4117
+ const operationName = "deleteModelGroup";
4118
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/DeleteModelGroup";
4119
+ const pathParams = {
4120
+ "{modelGroupId}": deleteModelGroupRequest.modelGroupId
4121
+ };
4122
+ const queryParams = {};
4123
+ let headerParams = {
4124
+ "Content-Type": common.Constants.APPLICATION_JSON,
4125
+ "opc-request-id": deleteModelGroupRequest.opcRequestId,
4126
+ "if-match": deleteModelGroupRequest.ifMatch
4127
+ };
4128
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4129
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelGroupRequest.retryConfiguration, specRetryConfiguration);
4130
+ if (this.logger)
4131
+ retrier.logger = this.logger;
4132
+ const request = yield oci_common_2.composeRequest({
4133
+ baseEndpoint: this._endpoint,
4134
+ defaultHeaders: this._defaultHeaders,
4135
+ path: "/modelGroups/{modelGroupId}",
4136
+ method: "DELETE",
4137
+ pathParams: pathParams,
4138
+ headerParams: headerParams,
4139
+ queryParams: queryParams
4140
+ });
4141
+ try {
4142
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4143
+ const sdkResponse = oci_common_2.composeResponse({
4144
+ responseObject: {},
4145
+ responseHeaders: [
4146
+ {
4147
+ value: response.headers.get("opc-work-request-id"),
4148
+ key: "opcWorkRequestId",
4149
+ dataType: "string"
4150
+ },
4151
+ {
4152
+ value: response.headers.get("opc-request-id"),
4153
+ key: "opcRequestId",
4154
+ dataType: "string"
4155
+ }
4156
+ ]
4157
+ });
4158
+ return sdkResponse;
4159
+ }
4160
+ catch (err) {
4161
+ throw err;
4162
+ }
4163
+ });
4164
+ }
4165
+ /**
4166
+ * Deletes the specified modelGroupVersionHistory.
4167
+ * This operation does not retry by default if the user has not defined a retry configuration.
4168
+ * @param DeleteModelGroupVersionHistoryRequest
4169
+ * @return DeleteModelGroupVersionHistoryResponse
4170
+ * @throws OciError when an error occurs
4171
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelGroupVersionHistory.ts.html |here} to see how to use DeleteModelGroupVersionHistory API.
4172
+ */
4173
+ deleteModelGroupVersionHistory(deleteModelGroupVersionHistoryRequest) {
4174
+ return __awaiter(this, void 0, void 0, function* () {
4175
+ if (this.logger)
4176
+ this.logger.debug("Calling operation DataScienceClient#deleteModelGroupVersionHistory.");
4177
+ const operationName = "deleteModelGroupVersionHistory";
4178
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistory/DeleteModelGroupVersionHistory";
4179
+ const pathParams = {
4180
+ "{modelGroupVersionHistoryId}": deleteModelGroupVersionHistoryRequest.modelGroupVersionHistoryId
4181
+ };
4182
+ const queryParams = {};
4183
+ let headerParams = {
4184
+ "Content-Type": common.Constants.APPLICATION_JSON,
4185
+ "opc-request-id": deleteModelGroupVersionHistoryRequest.opcRequestId,
4186
+ "if-match": deleteModelGroupVersionHistoryRequest.ifMatch
4187
+ };
4188
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4189
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelGroupVersionHistoryRequest.retryConfiguration, specRetryConfiguration);
4190
+ if (this.logger)
4191
+ retrier.logger = this.logger;
4192
+ const request = yield oci_common_2.composeRequest({
4193
+ baseEndpoint: this._endpoint,
4194
+ defaultHeaders: this._defaultHeaders,
4195
+ path: "/modelGroupVersionHistory/{modelGroupVersionHistoryId}",
4196
+ method: "DELETE",
4197
+ pathParams: pathParams,
4198
+ headerParams: headerParams,
4199
+ queryParams: queryParams
4200
+ });
4201
+ try {
4202
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4203
+ const sdkResponse = oci_common_2.composeResponse({
4204
+ responseObject: {},
4205
+ responseHeaders: [
4206
+ {
4207
+ value: response.headers.get("opc-work-request-id"),
4208
+ key: "opcWorkRequestId",
4209
+ dataType: "string"
4210
+ },
4211
+ {
4212
+ value: response.headers.get("opc-request-id"),
4213
+ key: "opcRequestId",
4214
+ dataType: "string"
4215
+ }
4216
+ ]
4217
+ });
4218
+ return sdkResponse;
4219
+ }
4220
+ catch (err) {
4221
+ throw err;
4222
+ }
4223
+ });
4224
+ }
4225
+ /**
4226
+ * Deletes the specified modelVersionSet.
4227
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
4228
+ * @param DeleteModelVersionSetRequest
4229
+ * @return DeleteModelVersionSetResponse
4230
+ * @throws OciError when an error occurs
4231
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelVersionSet.ts.html |here} to see how to use DeleteModelVersionSet API.
4232
+ */
4233
+ deleteModelVersionSet(deleteModelVersionSetRequest) {
4234
+ return __awaiter(this, void 0, void 0, function* () {
4235
+ if (this.logger)
4236
+ this.logger.debug("Calling operation DataScienceClient#deleteModelVersionSet.");
3680
4237
  const operationName = "deleteModelVersionSet";
3681
4238
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/DeleteModelVersionSet";
3682
4239
  const pathParams = {
@@ -5311,35 +5868,35 @@ class DataScienceClient {
5311
5868
  });
5312
5869
  }
5313
5870
  /**
5314
- * Gets provenance information for specified model.
5871
+ * Retrieves the Model Group resource based on the specified modelGroup id.
5315
5872
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5316
- * @param GetModelProvenanceRequest
5317
- * @return GetModelProvenanceResponse
5873
+ * @param GetModelGroupRequest
5874
+ * @return GetModelGroupResponse
5318
5875
  * @throws OciError when an error occurs
5319
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelProvenance.ts.html |here} to see how to use GetModelProvenance API.
5876
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelGroup.ts.html |here} to see how to use GetModelGroup API.
5320
5877
  */
5321
- getModelProvenance(getModelProvenanceRequest) {
5878
+ getModelGroup(getModelGroupRequest) {
5322
5879
  return __awaiter(this, void 0, void 0, function* () {
5323
5880
  if (this.logger)
5324
- this.logger.debug("Calling operation DataScienceClient#getModelProvenance.");
5325
- const operationName = "getModelProvenance";
5326
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelProvenance";
5881
+ this.logger.debug("Calling operation DataScienceClient#getModelGroup.");
5882
+ const operationName = "getModelGroup";
5883
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/GetModelGroup";
5327
5884
  const pathParams = {
5328
- "{modelId}": getModelProvenanceRequest.modelId
5885
+ "{modelGroupId}": getModelGroupRequest.modelGroupId
5329
5886
  };
5330
5887
  const queryParams = {};
5331
5888
  let headerParams = {
5332
5889
  "Content-Type": common.Constants.APPLICATION_JSON,
5333
- "opc-request-id": getModelProvenanceRequest.opcRequestId
5890
+ "opc-request-id": getModelGroupRequest.opcRequestId
5334
5891
  };
5335
5892
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5336
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelProvenanceRequest.retryConfiguration, specRetryConfiguration);
5893
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelGroupRequest.retryConfiguration, specRetryConfiguration);
5337
5894
  if (this.logger)
5338
5895
  retrier.logger = this.logger;
5339
5896
  const request = yield oci_common_2.composeRequest({
5340
5897
  baseEndpoint: this._endpoint,
5341
5898
  defaultHeaders: this._defaultHeaders,
5342
- path: "/models/{modelId}/provenance",
5899
+ path: "/modelGroups/{modelGroupId}",
5343
5900
  method: "GET",
5344
5901
  pathParams: pathParams,
5345
5902
  headerParams: headerParams,
@@ -5350,9 +5907,9 @@ class DataScienceClient {
5350
5907
  const sdkResponse = oci_common_2.composeResponse({
5351
5908
  responseObject: {},
5352
5909
  body: yield response.json(),
5353
- bodyKey: "modelProvenance",
5354
- bodyModel: model.ModelProvenance,
5355
- type: "model.ModelProvenance",
5910
+ bodyKey: "modelGroup",
5911
+ bodyModel: model.ModelGroup,
5912
+ type: "model.ModelGroup",
5356
5913
  responseHeaders: [
5357
5914
  {
5358
5915
  value: response.headers.get("etag"),
@@ -5374,35 +5931,36 @@ class DataScienceClient {
5374
5931
  });
5375
5932
  }
5376
5933
  /**
5377
- * Gets the specified model version set information.
5934
+ * Downloads the model artifact for the specified model group.
5378
5935
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5379
- * @param GetModelVersionSetRequest
5380
- * @return GetModelVersionSetResponse
5936
+ * @param GetModelGroupArtifactContentRequest
5937
+ * @return GetModelGroupArtifactContentResponse
5381
5938
  * @throws OciError when an error occurs
5382
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelVersionSet.ts.html |here} to see how to use GetModelVersionSet API.
5939
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelGroupArtifactContent.ts.html |here} to see how to use GetModelGroupArtifactContent API.
5383
5940
  */
5384
- getModelVersionSet(getModelVersionSetRequest) {
5941
+ getModelGroupArtifactContent(getModelGroupArtifactContentRequest) {
5385
5942
  return __awaiter(this, void 0, void 0, function* () {
5386
5943
  if (this.logger)
5387
- this.logger.debug("Calling operation DataScienceClient#getModelVersionSet.");
5388
- const operationName = "getModelVersionSet";
5389
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/GetModelVersionSet";
5944
+ this.logger.debug("Calling operation DataScienceClient#getModelGroupArtifactContent.");
5945
+ const operationName = "getModelGroupArtifactContent";
5946
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/GetModelGroupArtifactContent";
5390
5947
  const pathParams = {
5391
- "{modelVersionSetId}": getModelVersionSetRequest.modelVersionSetId
5948
+ "{modelGroupId}": getModelGroupArtifactContentRequest.modelGroupId
5392
5949
  };
5393
5950
  const queryParams = {};
5394
5951
  let headerParams = {
5395
5952
  "Content-Type": common.Constants.APPLICATION_JSON,
5396
- "opc-request-id": getModelVersionSetRequest.opcRequestId
5953
+ "opc-request-id": getModelGroupArtifactContentRequest.opcRequestId,
5954
+ "range": getModelGroupArtifactContentRequest.range
5397
5955
  };
5398
5956
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5399
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelVersionSetRequest.retryConfiguration, specRetryConfiguration);
5957
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelGroupArtifactContentRequest.retryConfiguration, specRetryConfiguration);
5400
5958
  if (this.logger)
5401
5959
  retrier.logger = this.logger;
5402
5960
  const request = yield oci_common_2.composeRequest({
5403
5961
  baseEndpoint: this._endpoint,
5404
5962
  defaultHeaders: this._defaultHeaders,
5405
- path: "/modelVersionSets/{modelVersionSetId}",
5963
+ path: "/modelGroups/{modelGroupId}/artifact/content",
5406
5964
  method: "GET",
5407
5965
  pathParams: pathParams,
5408
5966
  headerParams: headerParams,
@@ -5412,10 +5970,9 @@ class DataScienceClient {
5412
5970
  const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5413
5971
  const sdkResponse = oci_common_2.composeResponse({
5414
5972
  responseObject: {},
5415
- body: yield response.json(),
5416
- bodyKey: "modelVersionSet",
5417
- bodyModel: model.ModelVersionSet,
5418
- type: "model.ModelVersionSet",
5973
+ body: response.body,
5974
+ bodyKey: "value",
5975
+ bodyModel: "string",
5419
5976
  responseHeaders: [
5420
5977
  {
5421
5978
  value: response.headers.get("etag"),
@@ -5426,6 +5983,26 @@ class DataScienceClient {
5426
5983
  value: response.headers.get("opc-request-id"),
5427
5984
  key: "opcRequestId",
5428
5985
  dataType: "string"
5986
+ },
5987
+ {
5988
+ value: response.headers.get("content-length"),
5989
+ key: "contentLength",
5990
+ dataType: "number"
5991
+ },
5992
+ {
5993
+ value: response.headers.get("content-disposition"),
5994
+ key: "contentDisposition",
5995
+ dataType: "string"
5996
+ },
5997
+ {
5998
+ value: response.headers.get("content-md5"),
5999
+ key: "contentMd5",
6000
+ dataType: "string"
6001
+ },
6002
+ {
6003
+ value: response.headers.get("last-modified"),
6004
+ key: "lastModified",
6005
+ dataType: "Date"
5429
6006
  }
5430
6007
  ]
5431
6008
  });
@@ -5437,35 +6014,35 @@ class DataScienceClient {
5437
6014
  });
5438
6015
  }
5439
6016
  /**
5440
- * Gets the specified notebook session's information.
6017
+ * Gets the specified modelGroupVersionHistory's information.
5441
6018
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5442
- * @param GetNotebookSessionRequest
5443
- * @return GetNotebookSessionResponse
6019
+ * @param GetModelGroupVersionHistoryRequest
6020
+ * @return GetModelGroupVersionHistoryResponse
5444
6021
  * @throws OciError when an error occurs
5445
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetNotebookSession.ts.html |here} to see how to use GetNotebookSession API.
6022
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelGroupVersionHistory.ts.html |here} to see how to use GetModelGroupVersionHistory API.
5446
6023
  */
5447
- getNotebookSession(getNotebookSessionRequest) {
6024
+ getModelGroupVersionHistory(getModelGroupVersionHistoryRequest) {
5448
6025
  return __awaiter(this, void 0, void 0, function* () {
5449
6026
  if (this.logger)
5450
- this.logger.debug("Calling operation DataScienceClient#getNotebookSession.");
5451
- const operationName = "getNotebookSession";
5452
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/GetNotebookSession";
6027
+ this.logger.debug("Calling operation DataScienceClient#getModelGroupVersionHistory.");
6028
+ const operationName = "getModelGroupVersionHistory";
6029
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistory/GetModelGroupVersionHistory";
5453
6030
  const pathParams = {
5454
- "{notebookSessionId}": getNotebookSessionRequest.notebookSessionId
6031
+ "{modelGroupVersionHistoryId}": getModelGroupVersionHistoryRequest.modelGroupVersionHistoryId
5455
6032
  };
5456
6033
  const queryParams = {};
5457
6034
  let headerParams = {
5458
6035
  "Content-Type": common.Constants.APPLICATION_JSON,
5459
- "opc-request-id": getNotebookSessionRequest.opcRequestId
6036
+ "opc-request-id": getModelGroupVersionHistoryRequest.opcRequestId
5460
6037
  };
5461
6038
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5462
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNotebookSessionRequest.retryConfiguration, specRetryConfiguration);
6039
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelGroupVersionHistoryRequest.retryConfiguration, specRetryConfiguration);
5463
6040
  if (this.logger)
5464
6041
  retrier.logger = this.logger;
5465
6042
  const request = yield oci_common_2.composeRequest({
5466
6043
  baseEndpoint: this._endpoint,
5467
6044
  defaultHeaders: this._defaultHeaders,
5468
- path: "/notebookSessions/{notebookSessionId}",
6045
+ path: "/modelGroupVersionHistory/{modelGroupVersionHistoryId}",
5469
6046
  method: "GET",
5470
6047
  pathParams: pathParams,
5471
6048
  headerParams: headerParams,
@@ -5476,9 +6053,9 @@ class DataScienceClient {
5476
6053
  const sdkResponse = oci_common_2.composeResponse({
5477
6054
  responseObject: {},
5478
6055
  body: yield response.json(),
5479
- bodyKey: "notebookSession",
5480
- bodyModel: model.NotebookSession,
5481
- type: "model.NotebookSession",
6056
+ bodyKey: "modelGroupVersionHistory",
6057
+ bodyModel: model.ModelGroupVersionHistory,
6058
+ type: "model.ModelGroupVersionHistory",
5482
6059
  responseHeaders: [
5483
6060
  {
5484
6061
  value: response.headers.get("etag"),
@@ -5500,35 +6077,35 @@ class DataScienceClient {
5500
6077
  });
5501
6078
  }
5502
6079
  /**
5503
- * Gets a Pipeline by identifier.
6080
+ * Gets provenance information for specified model.
5504
6081
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5505
- * @param GetPipelineRequest
5506
- * @return GetPipelineResponse
6082
+ * @param GetModelProvenanceRequest
6083
+ * @return GetModelProvenanceResponse
5507
6084
  * @throws OciError when an error occurs
5508
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetPipeline.ts.html |here} to see how to use GetPipeline API.
6085
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelProvenance.ts.html |here} to see how to use GetModelProvenance API.
5509
6086
  */
5510
- getPipeline(getPipelineRequest) {
6087
+ getModelProvenance(getModelProvenanceRequest) {
5511
6088
  return __awaiter(this, void 0, void 0, function* () {
5512
6089
  if (this.logger)
5513
- this.logger.debug("Calling operation DataScienceClient#getPipeline.");
5514
- const operationName = "getPipeline";
5515
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/GetPipeline";
6090
+ this.logger.debug("Calling operation DataScienceClient#getModelProvenance.");
6091
+ const operationName = "getModelProvenance";
6092
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelProvenance";
5516
6093
  const pathParams = {
5517
- "{pipelineId}": getPipelineRequest.pipelineId
6094
+ "{modelId}": getModelProvenanceRequest.modelId
5518
6095
  };
5519
6096
  const queryParams = {};
5520
6097
  let headerParams = {
5521
6098
  "Content-Type": common.Constants.APPLICATION_JSON,
5522
- "opc-request-id": getPipelineRequest.opcRequestId
6099
+ "opc-request-id": getModelProvenanceRequest.opcRequestId
5523
6100
  };
5524
6101
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5525
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPipelineRequest.retryConfiguration, specRetryConfiguration);
6102
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelProvenanceRequest.retryConfiguration, specRetryConfiguration);
5526
6103
  if (this.logger)
5527
6104
  retrier.logger = this.logger;
5528
6105
  const request = yield oci_common_2.composeRequest({
5529
6106
  baseEndpoint: this._endpoint,
5530
6107
  defaultHeaders: this._defaultHeaders,
5531
- path: "/pipelines/{pipelineId}",
6108
+ path: "/models/{modelId}/provenance",
5532
6109
  method: "GET",
5533
6110
  pathParams: pathParams,
5534
6111
  headerParams: headerParams,
@@ -5539,9 +6116,9 @@ class DataScienceClient {
5539
6116
  const sdkResponse = oci_common_2.composeResponse({
5540
6117
  responseObject: {},
5541
6118
  body: yield response.json(),
5542
- bodyKey: "pipeline",
5543
- bodyModel: model.Pipeline,
5544
- type: "model.Pipeline",
6119
+ bodyKey: "modelProvenance",
6120
+ bodyModel: model.ModelProvenance,
6121
+ type: "model.ModelProvenance",
5545
6122
  responseHeaders: [
5546
6123
  {
5547
6124
  value: response.headers.get("etag"),
@@ -5563,35 +6140,35 @@ class DataScienceClient {
5563
6140
  });
5564
6141
  }
5565
6142
  /**
5566
- * Gets a PipelineRun by identifier.
6143
+ * Gets the specified model version set information.
5567
6144
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5568
- * @param GetPipelineRunRequest
5569
- * @return GetPipelineRunResponse
6145
+ * @param GetModelVersionSetRequest
6146
+ * @return GetModelVersionSetResponse
5570
6147
  * @throws OciError when an error occurs
5571
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetPipelineRun.ts.html |here} to see how to use GetPipelineRun API.
6148
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelVersionSet.ts.html |here} to see how to use GetModelVersionSet API.
5572
6149
  */
5573
- getPipelineRun(getPipelineRunRequest) {
6150
+ getModelVersionSet(getModelVersionSetRequest) {
5574
6151
  return __awaiter(this, void 0, void 0, function* () {
5575
6152
  if (this.logger)
5576
- this.logger.debug("Calling operation DataScienceClient#getPipelineRun.");
5577
- const operationName = "getPipelineRun";
5578
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/PipelineRun/GetPipelineRun";
6153
+ this.logger.debug("Calling operation DataScienceClient#getModelVersionSet.");
6154
+ const operationName = "getModelVersionSet";
6155
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/GetModelVersionSet";
5579
6156
  const pathParams = {
5580
- "{pipelineRunId}": getPipelineRunRequest.pipelineRunId
6157
+ "{modelVersionSetId}": getModelVersionSetRequest.modelVersionSetId
5581
6158
  };
5582
6159
  const queryParams = {};
5583
6160
  let headerParams = {
5584
6161
  "Content-Type": common.Constants.APPLICATION_JSON,
5585
- "opc-request-id": getPipelineRunRequest.opcRequestId
6162
+ "opc-request-id": getModelVersionSetRequest.opcRequestId
5586
6163
  };
5587
6164
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5588
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPipelineRunRequest.retryConfiguration, specRetryConfiguration);
6165
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelVersionSetRequest.retryConfiguration, specRetryConfiguration);
5589
6166
  if (this.logger)
5590
6167
  retrier.logger = this.logger;
5591
6168
  const request = yield oci_common_2.composeRequest({
5592
6169
  baseEndpoint: this._endpoint,
5593
6170
  defaultHeaders: this._defaultHeaders,
5594
- path: "/pipelineRuns/{pipelineRunId}",
6171
+ path: "/modelVersionSets/{modelVersionSetId}",
5595
6172
  method: "GET",
5596
6173
  pathParams: pathParams,
5597
6174
  headerParams: headerParams,
@@ -5602,9 +6179,9 @@ class DataScienceClient {
5602
6179
  const sdkResponse = oci_common_2.composeResponse({
5603
6180
  responseObject: {},
5604
6181
  body: yield response.json(),
5605
- bodyKey: "pipelineRun",
5606
- bodyModel: model.PipelineRun,
5607
- type: "model.PipelineRun",
6182
+ bodyKey: "modelVersionSet",
6183
+ bodyModel: model.ModelVersionSet,
6184
+ type: "model.ModelVersionSet",
5608
6185
  responseHeaders: [
5609
6186
  {
5610
6187
  value: response.headers.get("etag"),
@@ -5626,35 +6203,35 @@ class DataScienceClient {
5626
6203
  });
5627
6204
  }
5628
6205
  /**
5629
- * Gets the specified project's information.
6206
+ * Gets the specified notebook session's information.
5630
6207
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5631
- * @param GetProjectRequest
5632
- * @return GetProjectResponse
6208
+ * @param GetNotebookSessionRequest
6209
+ * @return GetNotebookSessionResponse
5633
6210
  * @throws OciError when an error occurs
5634
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetProject.ts.html |here} to see how to use GetProject API.
6211
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetNotebookSession.ts.html |here} to see how to use GetNotebookSession API.
5635
6212
  */
5636
- getProject(getProjectRequest) {
6213
+ getNotebookSession(getNotebookSessionRequest) {
5637
6214
  return __awaiter(this, void 0, void 0, function* () {
5638
6215
  if (this.logger)
5639
- this.logger.debug("Calling operation DataScienceClient#getProject.");
5640
- const operationName = "getProject";
5641
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Project/GetProject";
6216
+ this.logger.debug("Calling operation DataScienceClient#getNotebookSession.");
6217
+ const operationName = "getNotebookSession";
6218
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/GetNotebookSession";
5642
6219
  const pathParams = {
5643
- "{projectId}": getProjectRequest.projectId
6220
+ "{notebookSessionId}": getNotebookSessionRequest.notebookSessionId
5644
6221
  };
5645
6222
  const queryParams = {};
5646
6223
  let headerParams = {
5647
6224
  "Content-Type": common.Constants.APPLICATION_JSON,
5648
- "opc-request-id": getProjectRequest.opcRequestId
6225
+ "opc-request-id": getNotebookSessionRequest.opcRequestId
5649
6226
  };
5650
6227
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5651
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
6228
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNotebookSessionRequest.retryConfiguration, specRetryConfiguration);
5652
6229
  if (this.logger)
5653
6230
  retrier.logger = this.logger;
5654
6231
  const request = yield oci_common_2.composeRequest({
5655
6232
  baseEndpoint: this._endpoint,
5656
6233
  defaultHeaders: this._defaultHeaders,
5657
- path: "/projects/{projectId}",
6234
+ path: "/notebookSessions/{notebookSessionId}",
5658
6235
  method: "GET",
5659
6236
  pathParams: pathParams,
5660
6237
  headerParams: headerParams,
@@ -5665,9 +6242,198 @@ class DataScienceClient {
5665
6242
  const sdkResponse = oci_common_2.composeResponse({
5666
6243
  responseObject: {},
5667
6244
  body: yield response.json(),
5668
- bodyKey: "project",
5669
- bodyModel: model.Project,
5670
- type: "model.Project",
6245
+ bodyKey: "notebookSession",
6246
+ bodyModel: model.NotebookSession,
6247
+ type: "model.NotebookSession",
6248
+ responseHeaders: [
6249
+ {
6250
+ value: response.headers.get("etag"),
6251
+ key: "etag",
6252
+ dataType: "string"
6253
+ },
6254
+ {
6255
+ value: response.headers.get("opc-request-id"),
6256
+ key: "opcRequestId",
6257
+ dataType: "string"
6258
+ }
6259
+ ]
6260
+ });
6261
+ return sdkResponse;
6262
+ }
6263
+ catch (err) {
6264
+ throw err;
6265
+ }
6266
+ });
6267
+ }
6268
+ /**
6269
+ * Gets a Pipeline by identifier.
6270
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6271
+ * @param GetPipelineRequest
6272
+ * @return GetPipelineResponse
6273
+ * @throws OciError when an error occurs
6274
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetPipeline.ts.html |here} to see how to use GetPipeline API.
6275
+ */
6276
+ getPipeline(getPipelineRequest) {
6277
+ return __awaiter(this, void 0, void 0, function* () {
6278
+ if (this.logger)
6279
+ this.logger.debug("Calling operation DataScienceClient#getPipeline.");
6280
+ const operationName = "getPipeline";
6281
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/GetPipeline";
6282
+ const pathParams = {
6283
+ "{pipelineId}": getPipelineRequest.pipelineId
6284
+ };
6285
+ const queryParams = {};
6286
+ let headerParams = {
6287
+ "Content-Type": common.Constants.APPLICATION_JSON,
6288
+ "opc-request-id": getPipelineRequest.opcRequestId
6289
+ };
6290
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6291
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPipelineRequest.retryConfiguration, specRetryConfiguration);
6292
+ if (this.logger)
6293
+ retrier.logger = this.logger;
6294
+ const request = yield oci_common_2.composeRequest({
6295
+ baseEndpoint: this._endpoint,
6296
+ defaultHeaders: this._defaultHeaders,
6297
+ path: "/pipelines/{pipelineId}",
6298
+ method: "GET",
6299
+ pathParams: pathParams,
6300
+ headerParams: headerParams,
6301
+ queryParams: queryParams
6302
+ });
6303
+ try {
6304
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6305
+ const sdkResponse = oci_common_2.composeResponse({
6306
+ responseObject: {},
6307
+ body: yield response.json(),
6308
+ bodyKey: "pipeline",
6309
+ bodyModel: model.Pipeline,
6310
+ type: "model.Pipeline",
6311
+ responseHeaders: [
6312
+ {
6313
+ value: response.headers.get("etag"),
6314
+ key: "etag",
6315
+ dataType: "string"
6316
+ },
6317
+ {
6318
+ value: response.headers.get("opc-request-id"),
6319
+ key: "opcRequestId",
6320
+ dataType: "string"
6321
+ }
6322
+ ]
6323
+ });
6324
+ return sdkResponse;
6325
+ }
6326
+ catch (err) {
6327
+ throw err;
6328
+ }
6329
+ });
6330
+ }
6331
+ /**
6332
+ * Gets a PipelineRun by identifier.
6333
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6334
+ * @param GetPipelineRunRequest
6335
+ * @return GetPipelineRunResponse
6336
+ * @throws OciError when an error occurs
6337
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetPipelineRun.ts.html |here} to see how to use GetPipelineRun API.
6338
+ */
6339
+ getPipelineRun(getPipelineRunRequest) {
6340
+ return __awaiter(this, void 0, void 0, function* () {
6341
+ if (this.logger)
6342
+ this.logger.debug("Calling operation DataScienceClient#getPipelineRun.");
6343
+ const operationName = "getPipelineRun";
6344
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/PipelineRun/GetPipelineRun";
6345
+ const pathParams = {
6346
+ "{pipelineRunId}": getPipelineRunRequest.pipelineRunId
6347
+ };
6348
+ const queryParams = {};
6349
+ let headerParams = {
6350
+ "Content-Type": common.Constants.APPLICATION_JSON,
6351
+ "opc-request-id": getPipelineRunRequest.opcRequestId
6352
+ };
6353
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6354
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPipelineRunRequest.retryConfiguration, specRetryConfiguration);
6355
+ if (this.logger)
6356
+ retrier.logger = this.logger;
6357
+ const request = yield oci_common_2.composeRequest({
6358
+ baseEndpoint: this._endpoint,
6359
+ defaultHeaders: this._defaultHeaders,
6360
+ path: "/pipelineRuns/{pipelineRunId}",
6361
+ method: "GET",
6362
+ pathParams: pathParams,
6363
+ headerParams: headerParams,
6364
+ queryParams: queryParams
6365
+ });
6366
+ try {
6367
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6368
+ const sdkResponse = oci_common_2.composeResponse({
6369
+ responseObject: {},
6370
+ body: yield response.json(),
6371
+ bodyKey: "pipelineRun",
6372
+ bodyModel: model.PipelineRun,
6373
+ type: "model.PipelineRun",
6374
+ responseHeaders: [
6375
+ {
6376
+ value: response.headers.get("etag"),
6377
+ key: "etag",
6378
+ dataType: "string"
6379
+ },
6380
+ {
6381
+ value: response.headers.get("opc-request-id"),
6382
+ key: "opcRequestId",
6383
+ dataType: "string"
6384
+ }
6385
+ ]
6386
+ });
6387
+ return sdkResponse;
6388
+ }
6389
+ catch (err) {
6390
+ throw err;
6391
+ }
6392
+ });
6393
+ }
6394
+ /**
6395
+ * Gets the specified project's information.
6396
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6397
+ * @param GetProjectRequest
6398
+ * @return GetProjectResponse
6399
+ * @throws OciError when an error occurs
6400
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetProject.ts.html |here} to see how to use GetProject API.
6401
+ */
6402
+ getProject(getProjectRequest) {
6403
+ return __awaiter(this, void 0, void 0, function* () {
6404
+ if (this.logger)
6405
+ this.logger.debug("Calling operation DataScienceClient#getProject.");
6406
+ const operationName = "getProject";
6407
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Project/GetProject";
6408
+ const pathParams = {
6409
+ "{projectId}": getProjectRequest.projectId
6410
+ };
6411
+ const queryParams = {};
6412
+ let headerParams = {
6413
+ "Content-Type": common.Constants.APPLICATION_JSON,
6414
+ "opc-request-id": getProjectRequest.opcRequestId
6415
+ };
6416
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6417
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
6418
+ if (this.logger)
6419
+ retrier.logger = this.logger;
6420
+ const request = yield oci_common_2.composeRequest({
6421
+ baseEndpoint: this._endpoint,
6422
+ defaultHeaders: this._defaultHeaders,
6423
+ path: "/projects/{projectId}",
6424
+ method: "GET",
6425
+ pathParams: pathParams,
6426
+ headerParams: headerParams,
6427
+ queryParams: queryParams
6428
+ });
6429
+ try {
6430
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6431
+ const sdkResponse = oci_common_2.composeResponse({
6432
+ responseObject: {},
6433
+ body: yield response.json(),
6434
+ bodyKey: "project",
6435
+ bodyModel: model.Project,
6436
+ type: "model.Project",
5671
6437
  responseHeaders: [
5672
6438
  {
5673
6439
  value: response.headers.get("etag"),
@@ -6222,36 +6988,35 @@ class DataScienceClient {
6222
6988
  });
6223
6989
  }
6224
6990
  /**
6225
- * Get the artifact metadata for a step in the pipeline.
6991
+ * Gets model group artifact metadata for a specified model group.
6226
6992
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6227
- * @param HeadStepArtifactRequest
6228
- * @return HeadStepArtifactResponse
6993
+ * @param HeadModelGroupArtifactRequest
6994
+ * @return HeadModelGroupArtifactResponse
6229
6995
  * @throws OciError when an error occurs
6230
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadStepArtifact.ts.html |here} to see how to use HeadStepArtifact API.
6996
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadModelGroupArtifact.ts.html |here} to see how to use HeadModelGroupArtifact API.
6231
6997
  */
6232
- headStepArtifact(headStepArtifactRequest) {
6998
+ headModelGroupArtifact(headModelGroupArtifactRequest) {
6233
6999
  return __awaiter(this, void 0, void 0, function* () {
6234
7000
  if (this.logger)
6235
- this.logger.debug("Calling operation DataScienceClient#headStepArtifact.");
6236
- const operationName = "headStepArtifact";
6237
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/HeadStepArtifact";
7001
+ this.logger.debug("Calling operation DataScienceClient#headModelGroupArtifact.");
7002
+ const operationName = "headModelGroupArtifact";
7003
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/HeadModelGroupArtifact";
6238
7004
  const pathParams = {
6239
- "{pipelineId}": headStepArtifactRequest.pipelineId,
6240
- "{stepName}": headStepArtifactRequest.stepName
7005
+ "{modelGroupId}": headModelGroupArtifactRequest.modelGroupId
6241
7006
  };
6242
7007
  const queryParams = {};
6243
7008
  let headerParams = {
6244
7009
  "Content-Type": common.Constants.APPLICATION_JSON,
6245
- "opc-request-id": headStepArtifactRequest.opcRequestId
7010
+ "opc-request-id": headModelGroupArtifactRequest.opcRequestId
6246
7011
  };
6247
7012
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6248
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headStepArtifactRequest.retryConfiguration, specRetryConfiguration);
7013
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headModelGroupArtifactRequest.retryConfiguration, specRetryConfiguration);
6249
7014
  if (this.logger)
6250
7015
  retrier.logger = this.logger;
6251
7016
  const request = yield oci_common_2.composeRequest({
6252
7017
  baseEndpoint: this._endpoint,
6253
7018
  defaultHeaders: this._defaultHeaders,
6254
- path: "/pipelines/{pipelineId}/steps/{stepName}/artifact/content",
7019
+ path: "/modelGroups/{modelGroupId}/artifact/content",
6255
7020
  method: "HEAD",
6256
7021
  pathParams: pathParams,
6257
7022
  headerParams: headerParams,
@@ -6278,13 +7043,13 @@ class DataScienceClient {
6278
7043
  dataType: "number"
6279
7044
  },
6280
7045
  {
6281
- value: response.headers.get("content-md5"),
6282
- key: "contentMd5",
7046
+ value: response.headers.get("content-disposition"),
7047
+ key: "contentDisposition",
6283
7048
  dataType: "string"
6284
7049
  },
6285
7050
  {
6286
- value: response.headers.get("content-disposition"),
6287
- key: "contentDisposition",
7051
+ value: response.headers.get("content-md5"),
7052
+ key: "contentMd5",
6288
7053
  dataType: "string"
6289
7054
  },
6290
7055
  {
@@ -6302,38 +7067,37 @@ class DataScienceClient {
6302
7067
  });
6303
7068
  }
6304
7069
  /**
6305
- * Import model artifact from service bucket
6306
- * This operation does not retry by default if the user has not defined a retry configuration.
6307
- * @param ImportModelArtifactRequest
6308
- * @return ImportModelArtifactResponse
7070
+ * Get the artifact metadata for a step in the pipeline.
7071
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7072
+ * @param HeadStepArtifactRequest
7073
+ * @return HeadStepArtifactResponse
6309
7074
  * @throws OciError when an error occurs
6310
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ImportModelArtifact.ts.html |here} to see how to use ImportModelArtifact API.
7075
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadStepArtifact.ts.html |here} to see how to use HeadStepArtifact API.
6311
7076
  */
6312
- importModelArtifact(importModelArtifactRequest) {
7077
+ headStepArtifact(headStepArtifactRequest) {
6313
7078
  return __awaiter(this, void 0, void 0, function* () {
6314
7079
  if (this.logger)
6315
- this.logger.debug("Calling operation DataScienceClient#importModelArtifact.");
6316
- const operationName = "importModelArtifact";
6317
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/ImportModelArtifact";
7080
+ this.logger.debug("Calling operation DataScienceClient#headStepArtifact.");
7081
+ const operationName = "headStepArtifact";
7082
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/HeadStepArtifact";
6318
7083
  const pathParams = {
6319
- "{modelId}": importModelArtifactRequest.modelId
7084
+ "{pipelineId}": headStepArtifactRequest.pipelineId,
7085
+ "{stepName}": headStepArtifactRequest.stepName
6320
7086
  };
6321
7087
  const queryParams = {};
6322
7088
  let headerParams = {
6323
7089
  "Content-Type": common.Constants.APPLICATION_JSON,
6324
- "opc-request-id": importModelArtifactRequest.opcRequestId,
6325
- "if-match": importModelArtifactRequest.ifMatch
7090
+ "opc-request-id": headStepArtifactRequest.opcRequestId
6326
7091
  };
6327
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
6328
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importModelArtifactRequest.retryConfiguration, specRetryConfiguration);
7092
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7093
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headStepArtifactRequest.retryConfiguration, specRetryConfiguration);
6329
7094
  if (this.logger)
6330
7095
  retrier.logger = this.logger;
6331
7096
  const request = yield oci_common_2.composeRequest({
6332
7097
  baseEndpoint: this._endpoint,
6333
7098
  defaultHeaders: this._defaultHeaders,
6334
- path: "/models/{modelId}/actions/importArtifact",
6335
- method: "POST",
6336
- bodyContent: common.ObjectSerializer.serialize(importModelArtifactRequest.importModelArtifactDetails, "ImportModelArtifactDetails", model.ImportModelArtifactDetails.getJsonObj),
7099
+ path: "/pipelines/{pipelineId}/steps/{stepName}/artifact/content",
7100
+ method: "HEAD",
6337
7101
  pathParams: pathParams,
6338
7102
  headerParams: headerParams,
6339
7103
  queryParams: queryParams
@@ -6343,17 +7107,98 @@ class DataScienceClient {
6343
7107
  const sdkResponse = oci_common_2.composeResponse({
6344
7108
  responseObject: {},
6345
7109
  responseHeaders: [
7110
+ {
7111
+ value: response.headers.get("etag"),
7112
+ key: "etag",
7113
+ dataType: "string"
7114
+ },
6346
7115
  {
6347
7116
  value: response.headers.get("opc-request-id"),
6348
7117
  key: "opcRequestId",
6349
7118
  dataType: "string"
6350
7119
  },
6351
7120
  {
6352
- value: response.headers.get("opc-work-request-id"),
6353
- key: "opcWorkRequestId",
6354
- dataType: "string"
6355
- }
6356
- ]
7121
+ value: response.headers.get("content-length"),
7122
+ key: "contentLength",
7123
+ dataType: "number"
7124
+ },
7125
+ {
7126
+ value: response.headers.get("content-md5"),
7127
+ key: "contentMd5",
7128
+ dataType: "string"
7129
+ },
7130
+ {
7131
+ value: response.headers.get("content-disposition"),
7132
+ key: "contentDisposition",
7133
+ dataType: "string"
7134
+ },
7135
+ {
7136
+ value: response.headers.get("last-modified"),
7137
+ key: "lastModified",
7138
+ dataType: "Date"
7139
+ }
7140
+ ]
7141
+ });
7142
+ return sdkResponse;
7143
+ }
7144
+ catch (err) {
7145
+ throw err;
7146
+ }
7147
+ });
7148
+ }
7149
+ /**
7150
+ * Import model artifact from service bucket
7151
+ * This operation does not retry by default if the user has not defined a retry configuration.
7152
+ * @param ImportModelArtifactRequest
7153
+ * @return ImportModelArtifactResponse
7154
+ * @throws OciError when an error occurs
7155
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ImportModelArtifact.ts.html |here} to see how to use ImportModelArtifact API.
7156
+ */
7157
+ importModelArtifact(importModelArtifactRequest) {
7158
+ return __awaiter(this, void 0, void 0, function* () {
7159
+ if (this.logger)
7160
+ this.logger.debug("Calling operation DataScienceClient#importModelArtifact.");
7161
+ const operationName = "importModelArtifact";
7162
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/ImportModelArtifact";
7163
+ const pathParams = {
7164
+ "{modelId}": importModelArtifactRequest.modelId
7165
+ };
7166
+ const queryParams = {};
7167
+ let headerParams = {
7168
+ "Content-Type": common.Constants.APPLICATION_JSON,
7169
+ "opc-request-id": importModelArtifactRequest.opcRequestId,
7170
+ "if-match": importModelArtifactRequest.ifMatch
7171
+ };
7172
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7173
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importModelArtifactRequest.retryConfiguration, specRetryConfiguration);
7174
+ if (this.logger)
7175
+ retrier.logger = this.logger;
7176
+ const request = yield oci_common_2.composeRequest({
7177
+ baseEndpoint: this._endpoint,
7178
+ defaultHeaders: this._defaultHeaders,
7179
+ path: "/models/{modelId}/actions/importArtifact",
7180
+ method: "POST",
7181
+ bodyContent: common.ObjectSerializer.serialize(importModelArtifactRequest.importModelArtifactDetails, "ImportModelArtifactDetails", model.ImportModelArtifactDetails.getJsonObj),
7182
+ pathParams: pathParams,
7183
+ headerParams: headerParams,
7184
+ queryParams: queryParams
7185
+ });
7186
+ try {
7187
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7188
+ const sdkResponse = oci_common_2.composeResponse({
7189
+ responseObject: {},
7190
+ responseHeaders: [
7191
+ {
7192
+ value: response.headers.get("opc-request-id"),
7193
+ key: "opcRequestId",
7194
+ dataType: "string"
7195
+ },
7196
+ {
7197
+ value: response.headers.get("opc-work-request-id"),
7198
+ key: "opcWorkRequestId",
7199
+ dataType: "string"
7200
+ }
7201
+ ]
6357
7202
  });
6358
7203
  return sdkResponse;
6359
7204
  }
@@ -7335,44 +8180,464 @@ class DataScienceClient {
7335
8180
  });
7336
8181
  }
7337
8182
  /**
7338
- * Returns a list of MlApplications.
8183
+ * Returns a list of MlApplications.
8184
+ *
8185
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8186
+ * @param ListMlApplicationsRequest
8187
+ * @return ListMlApplicationsResponse
8188
+ * @throws OciError when an error occurs
8189
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListMlApplications.ts.html |here} to see how to use ListMlApplications API.
8190
+ */
8191
+ listMlApplications(listMlApplicationsRequest) {
8192
+ return __awaiter(this, void 0, void 0, function* () {
8193
+ if (this.logger)
8194
+ this.logger.debug("Calling operation DataScienceClient#listMlApplications.");
8195
+ const operationName = "listMlApplications";
8196
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/MlApplication/ListMlApplications";
8197
+ const pathParams = {};
8198
+ const queryParams = {
8199
+ "mlApplicationId": listMlApplicationsRequest.mlApplicationId,
8200
+ "compartmentId": listMlApplicationsRequest.compartmentId,
8201
+ "compartmentIdInSubtree": listMlApplicationsRequest.compartmentIdInSubtree,
8202
+ "name": listMlApplicationsRequest.name,
8203
+ "lifecycleState": listMlApplicationsRequest.lifecycleState,
8204
+ "limit": listMlApplicationsRequest.limit,
8205
+ "page": listMlApplicationsRequest.page,
8206
+ "sortOrder": listMlApplicationsRequest.sortOrder,
8207
+ "sortBy": listMlApplicationsRequest.sortBy
8208
+ };
8209
+ let headerParams = {
8210
+ "Content-Type": common.Constants.APPLICATION_JSON,
8211
+ "opc-request-id": listMlApplicationsRequest.opcRequestId
8212
+ };
8213
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8214
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMlApplicationsRequest.retryConfiguration, specRetryConfiguration);
8215
+ if (this.logger)
8216
+ retrier.logger = this.logger;
8217
+ const request = yield oci_common_2.composeRequest({
8218
+ baseEndpoint: this._endpoint,
8219
+ defaultHeaders: this._defaultHeaders,
8220
+ path: "/mlApplications",
8221
+ method: "GET",
8222
+ pathParams: pathParams,
8223
+ headerParams: headerParams,
8224
+ queryParams: queryParams
8225
+ });
8226
+ try {
8227
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8228
+ const sdkResponse = oci_common_2.composeResponse({
8229
+ responseObject: {},
8230
+ body: yield response.json(),
8231
+ bodyKey: "mlApplicationCollection",
8232
+ bodyModel: model.MlApplicationCollection,
8233
+ type: "model.MlApplicationCollection",
8234
+ responseHeaders: [
8235
+ {
8236
+ value: response.headers.get("opc-request-id"),
8237
+ key: "opcRequestId",
8238
+ dataType: "string"
8239
+ },
8240
+ {
8241
+ value: response.headers.get("opc-next-page"),
8242
+ key: "opcNextPage",
8243
+ dataType: "string"
8244
+ }
8245
+ ]
8246
+ });
8247
+ return sdkResponse;
8248
+ }
8249
+ catch (err) {
8250
+ throw err;
8251
+ }
8252
+ });
8253
+ }
8254
+ /**
8255
+ * Lists the status of models in a model group deployment.
8256
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8257
+ * @param ListModelDeploymentModelStatesRequest
8258
+ * @return ListModelDeploymentModelStatesResponse
8259
+ * @throws OciError when an error occurs
8260
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelDeploymentModelStates.ts.html |here} to see how to use ListModelDeploymentModelStates API.
8261
+ */
8262
+ listModelDeploymentModelStates(listModelDeploymentModelStatesRequest) {
8263
+ return __awaiter(this, void 0, void 0, function* () {
8264
+ if (this.logger)
8265
+ this.logger.debug("Calling operation DataScienceClient#listModelDeploymentModelStates.");
8266
+ const operationName = "listModelDeploymentModelStates";
8267
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeploymentModelStateSummary/ListModelDeploymentModelStates";
8268
+ const pathParams = {
8269
+ "{modelDeploymentId}": listModelDeploymentModelStatesRequest.modelDeploymentId
8270
+ };
8271
+ const queryParams = {
8272
+ "compartmentId": listModelDeploymentModelStatesRequest.compartmentId,
8273
+ "projectId": listModelDeploymentModelStatesRequest.projectId,
8274
+ "displayName": listModelDeploymentModelStatesRequest.displayName,
8275
+ "inferenceKey": listModelDeploymentModelStatesRequest.inferenceKey,
8276
+ "modelId": listModelDeploymentModelStatesRequest.modelId,
8277
+ "limit": listModelDeploymentModelStatesRequest.limit,
8278
+ "page": listModelDeploymentModelStatesRequest.page,
8279
+ "sortOrder": listModelDeploymentModelStatesRequest.sortOrder,
8280
+ "sortBy": listModelDeploymentModelStatesRequest.sortBy
8281
+ };
8282
+ let headerParams = {
8283
+ "Content-Type": common.Constants.APPLICATION_JSON,
8284
+ "opc-request-id": listModelDeploymentModelStatesRequest.opcRequestId,
8285
+ "opc-retry-token": listModelDeploymentModelStatesRequest.opcRetryToken
8286
+ };
8287
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8288
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelDeploymentModelStatesRequest.retryConfiguration, specRetryConfiguration);
8289
+ if (this.logger)
8290
+ retrier.logger = this.logger;
8291
+ const request = yield oci_common_2.composeRequest({
8292
+ baseEndpoint: this._endpoint,
8293
+ defaultHeaders: this._defaultHeaders,
8294
+ path: "/modelDeployments/{modelDeploymentId}/models/modelState",
8295
+ method: "GET",
8296
+ pathParams: pathParams,
8297
+ headerParams: headerParams,
8298
+ queryParams: queryParams
8299
+ });
8300
+ try {
8301
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8302
+ const sdkResponse = oci_common_2.composeResponse({
8303
+ responseObject: {},
8304
+ body: yield response.json(),
8305
+ bodyKey: "items",
8306
+ bodyModel: model.ModelDeploymentModelStateSummary,
8307
+ type: "Array<model.ModelDeploymentModelStateSummary>",
8308
+ responseHeaders: [
8309
+ {
8310
+ value: response.headers.get("opc-next-page"),
8311
+ key: "opcNextPage",
8312
+ dataType: "string"
8313
+ },
8314
+ {
8315
+ value: response.headers.get("opc-prev-page"),
8316
+ key: "opcPrevPage",
8317
+ dataType: "string"
8318
+ },
8319
+ {
8320
+ value: response.headers.get("opc-request-id"),
8321
+ key: "opcRequestId",
8322
+ dataType: "string"
8323
+ }
8324
+ ]
8325
+ });
8326
+ return sdkResponse;
8327
+ }
8328
+ catch (err) {
8329
+ throw err;
8330
+ }
8331
+ });
8332
+ }
8333
+ /**
8334
+ * NOTE: This function is deprecated in favor of listModelDeploymentModelStatesRecordIterator function.
8335
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentModelStateSummary objects
8336
+ * contained in responses from the listModelDeploymentModelStates operation. This iterator will fetch more data from the
8337
+ * server as needed.
8338
+ *
8339
+ * @param request a request which can be sent to the service operation
8340
+ */
8341
+ listAllModelDeploymentModelStates(request) {
8342
+ return oci_common_1.paginateRecords(request, req => this.listModelDeploymentModelStates(req));
8343
+ }
8344
+ /**
8345
+ * NOTE: This function is deprecated in favor of listModelDeploymentModelStatesResponseIterator function.
8346
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentModelStates operation. This iterator
8347
+ * will fetch more data from the server as needed.
8348
+ *
8349
+ * @param request a request which can be sent to the service operation
8350
+ */
8351
+ listAllModelDeploymentModelStatesResponses(request) {
8352
+ return oci_common_1.paginateResponses(request, req => this.listModelDeploymentModelStates(req));
8353
+ }
8354
+ /**
8355
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentModelStateSummary objects
8356
+ * contained in responses from the listModelDeploymentModelStates operation. This iterator will fetch more data from the
8357
+ * server as needed.
8358
+ *
8359
+ * @param request a request which can be sent to the service operation
8360
+ */
8361
+ listModelDeploymentModelStatesRecordIterator(request) {
8362
+ return oci_common_1.paginateRecords(request, req => this.listModelDeploymentModelStates(req));
8363
+ }
8364
+ /**
8365
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentModelStates operation. This iterator
8366
+ * will fetch more data from the server as needed.
8367
+ *
8368
+ * @param request a request which can be sent to the service operation
8369
+ */
8370
+ listModelDeploymentModelStatesResponseIterator(request) {
8371
+ return oci_common_1.paginateResponses(request, req => this.listModelDeploymentModelStates(req));
8372
+ }
8373
+ /**
8374
+ * Lists the valid model deployment shapes.
8375
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8376
+ * @param ListModelDeploymentShapesRequest
8377
+ * @return ListModelDeploymentShapesResponse
8378
+ * @throws OciError when an error occurs
8379
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelDeploymentShapes.ts.html |here} to see how to use ListModelDeploymentShapes API.
8380
+ */
8381
+ listModelDeploymentShapes(listModelDeploymentShapesRequest) {
8382
+ return __awaiter(this, void 0, void 0, function* () {
8383
+ if (this.logger)
8384
+ this.logger.debug("Calling operation DataScienceClient#listModelDeploymentShapes.");
8385
+ const operationName = "listModelDeploymentShapes";
8386
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeploymentShapeSummary/ListModelDeploymentShapes";
8387
+ const pathParams = {};
8388
+ const queryParams = {
8389
+ "compartmentId": listModelDeploymentShapesRequest.compartmentId,
8390
+ "limit": listModelDeploymentShapesRequest.limit,
8391
+ "page": listModelDeploymentShapesRequest.page
8392
+ };
8393
+ let headerParams = {
8394
+ "Content-Type": common.Constants.APPLICATION_JSON,
8395
+ "opc-request-id": listModelDeploymentShapesRequest.opcRequestId
8396
+ };
8397
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8398
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelDeploymentShapesRequest.retryConfiguration, specRetryConfiguration);
8399
+ if (this.logger)
8400
+ retrier.logger = this.logger;
8401
+ const request = yield oci_common_2.composeRequest({
8402
+ baseEndpoint: this._endpoint,
8403
+ defaultHeaders: this._defaultHeaders,
8404
+ path: "/modelDeploymentShapes",
8405
+ method: "GET",
8406
+ pathParams: pathParams,
8407
+ headerParams: headerParams,
8408
+ queryParams: queryParams
8409
+ });
8410
+ try {
8411
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8412
+ const sdkResponse = oci_common_2.composeResponse({
8413
+ responseObject: {},
8414
+ body: yield response.json(),
8415
+ bodyKey: "items",
8416
+ bodyModel: model.ModelDeploymentShapeSummary,
8417
+ type: "Array<model.ModelDeploymentShapeSummary>",
8418
+ responseHeaders: [
8419
+ {
8420
+ value: response.headers.get("opc-next-page"),
8421
+ key: "opcNextPage",
8422
+ dataType: "string"
8423
+ },
8424
+ {
8425
+ value: response.headers.get("opc-prev-page"),
8426
+ key: "opcPrevPage",
8427
+ dataType: "string"
8428
+ },
8429
+ {
8430
+ value: response.headers.get("opc-request-id"),
8431
+ key: "opcRequestId",
8432
+ dataType: "string"
8433
+ }
8434
+ ]
8435
+ });
8436
+ return sdkResponse;
8437
+ }
8438
+ catch (err) {
8439
+ throw err;
8440
+ }
8441
+ });
8442
+ }
8443
+ /**
8444
+ * NOTE: This function is deprecated in favor of listModelDeploymentShapesRecordIterator function.
8445
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentShapeSummary objects
8446
+ * contained in responses from the listModelDeploymentShapes operation. This iterator will fetch more data from the
8447
+ * server as needed.
8448
+ *
8449
+ * @param request a request which can be sent to the service operation
8450
+ */
8451
+ listAllModelDeploymentShapes(request) {
8452
+ return oci_common_1.paginateRecords(request, req => this.listModelDeploymentShapes(req));
8453
+ }
8454
+ /**
8455
+ * NOTE: This function is deprecated in favor of listModelDeploymentShapesResponseIterator function.
8456
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentShapes operation. This iterator
8457
+ * will fetch more data from the server as needed.
8458
+ *
8459
+ * @param request a request which can be sent to the service operation
8460
+ */
8461
+ listAllModelDeploymentShapesResponses(request) {
8462
+ return oci_common_1.paginateResponses(request, req => this.listModelDeploymentShapes(req));
8463
+ }
8464
+ /**
8465
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentShapeSummary objects
8466
+ * contained in responses from the listModelDeploymentShapes operation. This iterator will fetch more data from the
8467
+ * server as needed.
8468
+ *
8469
+ * @param request a request which can be sent to the service operation
8470
+ */
8471
+ listModelDeploymentShapesRecordIterator(request) {
8472
+ return oci_common_1.paginateRecords(request, req => this.listModelDeploymentShapes(req));
8473
+ }
8474
+ /**
8475
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentShapes operation. This iterator
8476
+ * will fetch more data from the server as needed.
8477
+ *
8478
+ * @param request a request which can be sent to the service operation
8479
+ */
8480
+ listModelDeploymentShapesResponseIterator(request) {
8481
+ return oci_common_1.paginateResponses(request, req => this.listModelDeploymentShapes(req));
8482
+ }
8483
+ /**
8484
+ * Lists all model deployments in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned.
8485
+ *
8486
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8487
+ * @param ListModelDeploymentsRequest
8488
+ * @return ListModelDeploymentsResponse
8489
+ * @throws OciError when an error occurs
8490
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelDeployments.ts.html |here} to see how to use ListModelDeployments API.
8491
+ */
8492
+ listModelDeployments(listModelDeploymentsRequest) {
8493
+ return __awaiter(this, void 0, void 0, function* () {
8494
+ if (this.logger)
8495
+ this.logger.debug("Calling operation DataScienceClient#listModelDeployments.");
8496
+ const operationName = "listModelDeployments";
8497
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeploymentSummary/ListModelDeployments";
8498
+ const pathParams = {};
8499
+ const queryParams = {
8500
+ "compartmentId": listModelDeploymentsRequest.compartmentId,
8501
+ "id": listModelDeploymentsRequest.id,
8502
+ "projectId": listModelDeploymentsRequest.projectId,
8503
+ "displayName": listModelDeploymentsRequest.displayName,
8504
+ "lifecycleState": listModelDeploymentsRequest.lifecycleState,
8505
+ "createdBy": listModelDeploymentsRequest.createdBy,
8506
+ "limit": listModelDeploymentsRequest.limit,
8507
+ "page": listModelDeploymentsRequest.page,
8508
+ "sortOrder": listModelDeploymentsRequest.sortOrder,
8509
+ "sortBy": listModelDeploymentsRequest.sortBy
8510
+ };
8511
+ let headerParams = {
8512
+ "Content-Type": common.Constants.APPLICATION_JSON,
8513
+ "opc-request-id": listModelDeploymentsRequest.opcRequestId
8514
+ };
8515
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8516
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelDeploymentsRequest.retryConfiguration, specRetryConfiguration);
8517
+ if (this.logger)
8518
+ retrier.logger = this.logger;
8519
+ const request = yield oci_common_2.composeRequest({
8520
+ baseEndpoint: this._endpoint,
8521
+ defaultHeaders: this._defaultHeaders,
8522
+ path: "/modelDeployments",
8523
+ method: "GET",
8524
+ pathParams: pathParams,
8525
+ headerParams: headerParams,
8526
+ queryParams: queryParams
8527
+ });
8528
+ try {
8529
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8530
+ const sdkResponse = oci_common_2.composeResponse({
8531
+ responseObject: {},
8532
+ body: yield response.json(),
8533
+ bodyKey: "items",
8534
+ bodyModel: model.ModelDeploymentSummary,
8535
+ type: "Array<model.ModelDeploymentSummary>",
8536
+ responseHeaders: [
8537
+ {
8538
+ value: response.headers.get("opc-next-page"),
8539
+ key: "opcNextPage",
8540
+ dataType: "string"
8541
+ },
8542
+ {
8543
+ value: response.headers.get("opc-prev-page"),
8544
+ key: "opcPrevPage",
8545
+ dataType: "string"
8546
+ },
8547
+ {
8548
+ value: response.headers.get("opc-request-id"),
8549
+ key: "opcRequestId",
8550
+ dataType: "string"
8551
+ }
8552
+ ]
8553
+ });
8554
+ return sdkResponse;
8555
+ }
8556
+ catch (err) {
8557
+ throw err;
8558
+ }
8559
+ });
8560
+ }
8561
+ /**
8562
+ * NOTE: This function is deprecated in favor of listModelDeploymentsRecordIterator function.
8563
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentSummary objects
8564
+ * contained in responses from the listModelDeployments operation. This iterator will fetch more data from the
8565
+ * server as needed.
8566
+ *
8567
+ * @param request a request which can be sent to the service operation
8568
+ */
8569
+ listAllModelDeployments(request) {
8570
+ return oci_common_1.paginateRecords(request, req => this.listModelDeployments(req));
8571
+ }
8572
+ /**
8573
+ * NOTE: This function is deprecated in favor of listModelDeploymentsResponseIterator function.
8574
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeployments operation. This iterator
8575
+ * will fetch more data from the server as needed.
8576
+ *
8577
+ * @param request a request which can be sent to the service operation
8578
+ */
8579
+ listAllModelDeploymentsResponses(request) {
8580
+ return oci_common_1.paginateResponses(request, req => this.listModelDeployments(req));
8581
+ }
8582
+ /**
8583
+ * Creates a new async iterator which will iterate over the models.ModelDeploymentSummary objects
8584
+ * contained in responses from the listModelDeployments operation. This iterator will fetch more data from the
8585
+ * server as needed.
8586
+ *
8587
+ * @param request a request which can be sent to the service operation
8588
+ */
8589
+ listModelDeploymentsRecordIterator(request) {
8590
+ return oci_common_1.paginateRecords(request, req => this.listModelDeployments(req));
8591
+ }
8592
+ /**
8593
+ * Creates a new async iterator which will iterate over the responses received from the listModelDeployments operation. This iterator
8594
+ * will fetch more data from the server as needed.
7339
8595
  *
8596
+ * @param request a request which can be sent to the service operation
8597
+ */
8598
+ listModelDeploymentsResponseIterator(request) {
8599
+ return oci_common_1.paginateResponses(request, req => this.listModelDeployments(req));
8600
+ }
8601
+ /**
8602
+ * Lists all models associated with the modelGroup in the specified compartment.
7340
8603
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7341
- * @param ListMlApplicationsRequest
7342
- * @return ListMlApplicationsResponse
8604
+ * @param ListModelGroupModelsRequest
8605
+ * @return ListModelGroupModelsResponse
7343
8606
  * @throws OciError when an error occurs
7344
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListMlApplications.ts.html |here} to see how to use ListMlApplications API.
8607
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelGroupModels.ts.html |here} to see how to use ListModelGroupModels API.
7345
8608
  */
7346
- listMlApplications(listMlApplicationsRequest) {
8609
+ listModelGroupModels(listModelGroupModelsRequest) {
7347
8610
  return __awaiter(this, void 0, void 0, function* () {
7348
8611
  if (this.logger)
7349
- this.logger.debug("Calling operation DataScienceClient#listMlApplications.");
7350
- const operationName = "listMlApplications";
7351
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/MlApplication/ListMlApplications";
7352
- const pathParams = {};
8612
+ this.logger.debug("Calling operation DataScienceClient#listModelGroupModels.");
8613
+ const operationName = "listModelGroupModels";
8614
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/ListModelGroupModels";
8615
+ const pathParams = {
8616
+ "{modelGroupId}": listModelGroupModelsRequest.modelGroupId
8617
+ };
7353
8618
  const queryParams = {
7354
- "mlApplicationId": listMlApplicationsRequest.mlApplicationId,
7355
- "compartmentId": listMlApplicationsRequest.compartmentId,
7356
- "compartmentIdInSubtree": listMlApplicationsRequest.compartmentIdInSubtree,
7357
- "name": listMlApplicationsRequest.name,
7358
- "lifecycleState": listMlApplicationsRequest.lifecycleState,
7359
- "limit": listMlApplicationsRequest.limit,
7360
- "page": listMlApplicationsRequest.page,
7361
- "sortOrder": listMlApplicationsRequest.sortOrder,
7362
- "sortBy": listMlApplicationsRequest.sortBy
8619
+ "compartmentId": listModelGroupModelsRequest.compartmentId,
8620
+ "id": listModelGroupModelsRequest.id,
8621
+ "displayName": listModelGroupModelsRequest.displayName,
8622
+ "lifecycleState": listModelGroupModelsRequest.lifecycleState,
8623
+ "createdBy": listModelGroupModelsRequest.createdBy,
8624
+ "limit": listModelGroupModelsRequest.limit,
8625
+ "page": listModelGroupModelsRequest.page,
8626
+ "sortOrder": listModelGroupModelsRequest.sortOrder,
8627
+ "sortBy": listModelGroupModelsRequest.sortBy
7363
8628
  };
7364
8629
  let headerParams = {
7365
8630
  "Content-Type": common.Constants.APPLICATION_JSON,
7366
- "opc-request-id": listMlApplicationsRequest.opcRequestId
8631
+ "opc-request-id": listModelGroupModelsRequest.opcRequestId
7367
8632
  };
7368
8633
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7369
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMlApplicationsRequest.retryConfiguration, specRetryConfiguration);
8634
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelGroupModelsRequest.retryConfiguration, specRetryConfiguration);
7370
8635
  if (this.logger)
7371
8636
  retrier.logger = this.logger;
7372
8637
  const request = yield oci_common_2.composeRequest({
7373
8638
  baseEndpoint: this._endpoint,
7374
8639
  defaultHeaders: this._defaultHeaders,
7375
- path: "/mlApplications",
8640
+ path: "/modelGroups/{modelGroupId}/models",
7376
8641
  method: "GET",
7377
8642
  pathParams: pathParams,
7378
8643
  headerParams: headerParams,
@@ -7383,18 +8648,23 @@ class DataScienceClient {
7383
8648
  const sdkResponse = oci_common_2.composeResponse({
7384
8649
  responseObject: {},
7385
8650
  body: yield response.json(),
7386
- bodyKey: "mlApplicationCollection",
7387
- bodyModel: model.MlApplicationCollection,
7388
- type: "model.MlApplicationCollection",
8651
+ bodyKey: "items",
8652
+ bodyModel: model.ModelGroupModelSummary,
8653
+ type: "Array<model.ModelGroupModelSummary>",
7389
8654
  responseHeaders: [
7390
8655
  {
7391
- value: response.headers.get("opc-request-id"),
7392
- key: "opcRequestId",
8656
+ value: response.headers.get("opc-next-page"),
8657
+ key: "opcNextPage",
7393
8658
  dataType: "string"
7394
8659
  },
7395
8660
  {
7396
- value: response.headers.get("opc-next-page"),
7397
- key: "opcNextPage",
8661
+ value: response.headers.get("opc-prev-page"),
8662
+ key: "opcPrevPage",
8663
+ dataType: "string"
8664
+ },
8665
+ {
8666
+ value: response.headers.get("opc-request-id"),
8667
+ key: "opcRequestId",
7398
8668
  dataType: "string"
7399
8669
  }
7400
8670
  ]
@@ -7407,37 +8677,84 @@ class DataScienceClient {
7407
8677
  });
7408
8678
  }
7409
8679
  /**
7410
- * Lists the valid model deployment shapes.
8680
+ * NOTE: This function is deprecated in favor of listModelGroupModelsRecordIterator function.
8681
+ * Creates a new async iterator which will iterate over the models.ModelGroupModelSummary objects
8682
+ * contained in responses from the listModelGroupModels operation. This iterator will fetch more data from the
8683
+ * server as needed.
8684
+ *
8685
+ * @param request a request which can be sent to the service operation
8686
+ */
8687
+ listAllModelGroupModels(request) {
8688
+ return oci_common_1.paginateRecords(request, req => this.listModelGroupModels(req));
8689
+ }
8690
+ /**
8691
+ * NOTE: This function is deprecated in favor of listModelGroupModelsResponseIterator function.
8692
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroupModels operation. This iterator
8693
+ * will fetch more data from the server as needed.
8694
+ *
8695
+ * @param request a request which can be sent to the service operation
8696
+ */
8697
+ listAllModelGroupModelsResponses(request) {
8698
+ return oci_common_1.paginateResponses(request, req => this.listModelGroupModels(req));
8699
+ }
8700
+ /**
8701
+ * Creates a new async iterator which will iterate over the models.ModelGroupModelSummary objects
8702
+ * contained in responses from the listModelGroupModels operation. This iterator will fetch more data from the
8703
+ * server as needed.
8704
+ *
8705
+ * @param request a request which can be sent to the service operation
8706
+ */
8707
+ listModelGroupModelsRecordIterator(request) {
8708
+ return oci_common_1.paginateRecords(request, req => this.listModelGroupModels(req));
8709
+ }
8710
+ /**
8711
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroupModels operation. This iterator
8712
+ * will fetch more data from the server as needed.
8713
+ *
8714
+ * @param request a request which can be sent to the service operation
8715
+ */
8716
+ listModelGroupModelsResponseIterator(request) {
8717
+ return oci_common_1.paginateResponses(request, req => this.listModelGroupModels(req));
8718
+ }
8719
+ /**
8720
+ * List all modelGroupVersionHistories in the specified compartment. The query must include compartmentId.
7411
8721
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7412
- * @param ListModelDeploymentShapesRequest
7413
- * @return ListModelDeploymentShapesResponse
8722
+ * @param ListModelGroupVersionHistoriesRequest
8723
+ * @return ListModelGroupVersionHistoriesResponse
7414
8724
  * @throws OciError when an error occurs
7415
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelDeploymentShapes.ts.html |here} to see how to use ListModelDeploymentShapes API.
8725
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelGroupVersionHistories.ts.html |here} to see how to use ListModelGroupVersionHistories API.
7416
8726
  */
7417
- listModelDeploymentShapes(listModelDeploymentShapesRequest) {
8727
+ listModelGroupVersionHistories(listModelGroupVersionHistoriesRequest) {
7418
8728
  return __awaiter(this, void 0, void 0, function* () {
7419
8729
  if (this.logger)
7420
- this.logger.debug("Calling operation DataScienceClient#listModelDeploymentShapes.");
7421
- const operationName = "listModelDeploymentShapes";
7422
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeploymentShapeSummary/ListModelDeploymentShapes";
8730
+ this.logger.debug("Calling operation DataScienceClient#listModelGroupVersionHistories.");
8731
+ const operationName = "listModelGroupVersionHistories";
8732
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistorySummary/ListModelGroupVersionHistories";
7423
8733
  const pathParams = {};
7424
8734
  const queryParams = {
7425
- "compartmentId": listModelDeploymentShapesRequest.compartmentId,
7426
- "limit": listModelDeploymentShapesRequest.limit,
7427
- "page": listModelDeploymentShapesRequest.page
8735
+ "compartmentId": listModelGroupVersionHistoriesRequest.compartmentId,
8736
+ "projectId": listModelGroupVersionHistoriesRequest.projectId,
8737
+ "id": listModelGroupVersionHistoriesRequest.id,
8738
+ "displayName": listModelGroupVersionHistoriesRequest.displayName,
8739
+ "lifecycleState": listModelGroupVersionHistoriesRequest.lifecycleState,
8740
+ "createdBy": listModelGroupVersionHistoriesRequest.createdBy,
8741
+ "limit": listModelGroupVersionHistoriesRequest.limit,
8742
+ "page": listModelGroupVersionHistoriesRequest.page,
8743
+ "sortOrder": listModelGroupVersionHistoriesRequest.sortOrder,
8744
+ "sortBy": listModelGroupVersionHistoriesRequest.sortBy
7428
8745
  };
7429
8746
  let headerParams = {
7430
8747
  "Content-Type": common.Constants.APPLICATION_JSON,
7431
- "opc-request-id": listModelDeploymentShapesRequest.opcRequestId
8748
+ "opc-request-id": listModelGroupVersionHistoriesRequest.opcRequestId
7432
8749
  };
7433
8750
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7434
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelDeploymentShapesRequest.retryConfiguration, specRetryConfiguration);
8751
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelGroupVersionHistoriesRequest.retryConfiguration, specRetryConfiguration);
7435
8752
  if (this.logger)
7436
8753
  retrier.logger = this.logger;
7437
8754
  const request = yield oci_common_2.composeRequest({
7438
8755
  baseEndpoint: this._endpoint,
7439
8756
  defaultHeaders: this._defaultHeaders,
7440
- path: "/modelDeploymentShapes",
8757
+ path: "/modelGroupVersionHistory",
7441
8758
  method: "GET",
7442
8759
  pathParams: pathParams,
7443
8760
  headerParams: headerParams,
@@ -7449,8 +8766,8 @@ class DataScienceClient {
7449
8766
  responseObject: {},
7450
8767
  body: yield response.json(),
7451
8768
  bodyKey: "items",
7452
- bodyModel: model.ModelDeploymentShapeSummary,
7453
- type: "Array<model.ModelDeploymentShapeSummary>",
8769
+ bodyModel: model.ModelGroupVersionHistorySummary,
8770
+ type: "Array<model.ModelGroupVersionHistorySummary>",
7454
8771
  responseHeaders: [
7455
8772
  {
7456
8773
  value: response.headers.get("opc-next-page"),
@@ -7477,85 +8794,85 @@ class DataScienceClient {
7477
8794
  });
7478
8795
  }
7479
8796
  /**
7480
- * NOTE: This function is deprecated in favor of listModelDeploymentShapesRecordIterator function.
7481
- * Creates a new async iterator which will iterate over the models.ModelDeploymentShapeSummary objects
7482
- * contained in responses from the listModelDeploymentShapes operation. This iterator will fetch more data from the
8797
+ * NOTE: This function is deprecated in favor of listModelGroupVersionHistoriesRecordIterator function.
8798
+ * Creates a new async iterator which will iterate over the models.ModelGroupVersionHistorySummary objects
8799
+ * contained in responses from the listModelGroupVersionHistories operation. This iterator will fetch more data from the
7483
8800
  * server as needed.
7484
8801
  *
7485
8802
  * @param request a request which can be sent to the service operation
7486
8803
  */
7487
- listAllModelDeploymentShapes(request) {
7488
- return oci_common_1.paginateRecords(request, req => this.listModelDeploymentShapes(req));
8804
+ listAllModelGroupVersionHistories(request) {
8805
+ return oci_common_1.paginateRecords(request, req => this.listModelGroupVersionHistories(req));
7489
8806
  }
7490
8807
  /**
7491
- * NOTE: This function is deprecated in favor of listModelDeploymentShapesResponseIterator function.
7492
- * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentShapes operation. This iterator
8808
+ * NOTE: This function is deprecated in favor of listModelGroupVersionHistoriesResponseIterator function.
8809
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroupVersionHistories operation. This iterator
7493
8810
  * will fetch more data from the server as needed.
7494
8811
  *
7495
8812
  * @param request a request which can be sent to the service operation
7496
8813
  */
7497
- listAllModelDeploymentShapesResponses(request) {
7498
- return oci_common_1.paginateResponses(request, req => this.listModelDeploymentShapes(req));
8814
+ listAllModelGroupVersionHistoriesResponses(request) {
8815
+ return oci_common_1.paginateResponses(request, req => this.listModelGroupVersionHistories(req));
7499
8816
  }
7500
8817
  /**
7501
- * Creates a new async iterator which will iterate over the models.ModelDeploymentShapeSummary objects
7502
- * contained in responses from the listModelDeploymentShapes operation. This iterator will fetch more data from the
8818
+ * Creates a new async iterator which will iterate over the models.ModelGroupVersionHistorySummary objects
8819
+ * contained in responses from the listModelGroupVersionHistories operation. This iterator will fetch more data from the
7503
8820
  * server as needed.
7504
8821
  *
7505
8822
  * @param request a request which can be sent to the service operation
7506
8823
  */
7507
- listModelDeploymentShapesRecordIterator(request) {
7508
- return oci_common_1.paginateRecords(request, req => this.listModelDeploymentShapes(req));
8824
+ listModelGroupVersionHistoriesRecordIterator(request) {
8825
+ return oci_common_1.paginateRecords(request, req => this.listModelGroupVersionHistories(req));
7509
8826
  }
7510
8827
  /**
7511
- * Creates a new async iterator which will iterate over the responses received from the listModelDeploymentShapes operation. This iterator
8828
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroupVersionHistories operation. This iterator
7512
8829
  * will fetch more data from the server as needed.
7513
8830
  *
7514
8831
  * @param request a request which can be sent to the service operation
7515
8832
  */
7516
- listModelDeploymentShapesResponseIterator(request) {
7517
- return oci_common_1.paginateResponses(request, req => this.listModelDeploymentShapes(req));
8833
+ listModelGroupVersionHistoriesResponseIterator(request) {
8834
+ return oci_common_1.paginateResponses(request, req => this.listModelGroupVersionHistories(req));
7518
8835
  }
7519
8836
  /**
7520
- * Lists all model deployments in the specified compartment. Only one parameter other than compartmentId may also be included in a query. The query must include compartmentId. If the query does not include compartmentId, or includes compartmentId but two or more other parameters an error is returned.
7521
- *
8837
+ * Lists all the modelGroups in the specified compartment. The query must include compartmentId.
7522
8838
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7523
- * @param ListModelDeploymentsRequest
7524
- * @return ListModelDeploymentsResponse
8839
+ * @param ListModelGroupsRequest
8840
+ * @return ListModelGroupsResponse
7525
8841
  * @throws OciError when an error occurs
7526
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelDeployments.ts.html |here} to see how to use ListModelDeployments API.
8842
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListModelGroups.ts.html |here} to see how to use ListModelGroups API.
7527
8843
  */
7528
- listModelDeployments(listModelDeploymentsRequest) {
8844
+ listModelGroups(listModelGroupsRequest) {
7529
8845
  return __awaiter(this, void 0, void 0, function* () {
7530
8846
  if (this.logger)
7531
- this.logger.debug("Calling operation DataScienceClient#listModelDeployments.");
7532
- const operationName = "listModelDeployments";
7533
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeploymentSummary/ListModelDeployments";
8847
+ this.logger.debug("Calling operation DataScienceClient#listModelGroups.");
8848
+ const operationName = "listModelGroups";
8849
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupSummary/ListModelGroups";
7534
8850
  const pathParams = {};
7535
8851
  const queryParams = {
7536
- "compartmentId": listModelDeploymentsRequest.compartmentId,
7537
- "id": listModelDeploymentsRequest.id,
7538
- "projectId": listModelDeploymentsRequest.projectId,
7539
- "displayName": listModelDeploymentsRequest.displayName,
7540
- "lifecycleState": listModelDeploymentsRequest.lifecycleState,
7541
- "createdBy": listModelDeploymentsRequest.createdBy,
7542
- "limit": listModelDeploymentsRequest.limit,
7543
- "page": listModelDeploymentsRequest.page,
7544
- "sortOrder": listModelDeploymentsRequest.sortOrder,
7545
- "sortBy": listModelDeploymentsRequest.sortBy
8852
+ "compartmentId": listModelGroupsRequest.compartmentId,
8853
+ "projectId": listModelGroupsRequest.projectId,
8854
+ "id": listModelGroupsRequest.id,
8855
+ "displayName": listModelGroupsRequest.displayName,
8856
+ "lifecycleState": listModelGroupsRequest.lifecycleState,
8857
+ "createdBy": listModelGroupsRequest.createdBy,
8858
+ "modelGroupVersionHistoryId": listModelGroupsRequest.modelGroupVersionHistoryId,
8859
+ "limit": listModelGroupsRequest.limit,
8860
+ "page": listModelGroupsRequest.page,
8861
+ "sortOrder": listModelGroupsRequest.sortOrder,
8862
+ "sortBy": listModelGroupsRequest.sortBy
7546
8863
  };
7547
8864
  let headerParams = {
7548
8865
  "Content-Type": common.Constants.APPLICATION_JSON,
7549
- "opc-request-id": listModelDeploymentsRequest.opcRequestId
8866
+ "opc-request-id": listModelGroupsRequest.opcRequestId
7550
8867
  };
7551
8868
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7552
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelDeploymentsRequest.retryConfiguration, specRetryConfiguration);
8869
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelGroupsRequest.retryConfiguration, specRetryConfiguration);
7553
8870
  if (this.logger)
7554
8871
  retrier.logger = this.logger;
7555
8872
  const request = yield oci_common_2.composeRequest({
7556
8873
  baseEndpoint: this._endpoint,
7557
8874
  defaultHeaders: this._defaultHeaders,
7558
- path: "/modelDeployments",
8875
+ path: "/modelGroups",
7559
8876
  method: "GET",
7560
8877
  pathParams: pathParams,
7561
8878
  headerParams: headerParams,
@@ -7567,8 +8884,8 @@ class DataScienceClient {
7567
8884
  responseObject: {},
7568
8885
  body: yield response.json(),
7569
8886
  bodyKey: "items",
7570
- bodyModel: model.ModelDeploymentSummary,
7571
- type: "Array<model.ModelDeploymentSummary>",
8887
+ bodyModel: model.ModelGroupSummary,
8888
+ type: "Array<model.ModelGroupSummary>",
7572
8889
  responseHeaders: [
7573
8890
  {
7574
8891
  value: response.headers.get("opc-next-page"),
@@ -7595,44 +8912,44 @@ class DataScienceClient {
7595
8912
  });
7596
8913
  }
7597
8914
  /**
7598
- * NOTE: This function is deprecated in favor of listModelDeploymentsRecordIterator function.
7599
- * Creates a new async iterator which will iterate over the models.ModelDeploymentSummary objects
7600
- * contained in responses from the listModelDeployments operation. This iterator will fetch more data from the
8915
+ * NOTE: This function is deprecated in favor of listModelGroupsRecordIterator function.
8916
+ * Creates a new async iterator which will iterate over the models.ModelGroupSummary objects
8917
+ * contained in responses from the listModelGroups operation. This iterator will fetch more data from the
7601
8918
  * server as needed.
7602
8919
  *
7603
8920
  * @param request a request which can be sent to the service operation
7604
8921
  */
7605
- listAllModelDeployments(request) {
7606
- return oci_common_1.paginateRecords(request, req => this.listModelDeployments(req));
8922
+ listAllModelGroups(request) {
8923
+ return oci_common_1.paginateRecords(request, req => this.listModelGroups(req));
7607
8924
  }
7608
8925
  /**
7609
- * NOTE: This function is deprecated in favor of listModelDeploymentsResponseIterator function.
7610
- * Creates a new async iterator which will iterate over the responses received from the listModelDeployments operation. This iterator
8926
+ * NOTE: This function is deprecated in favor of listModelGroupsResponseIterator function.
8927
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroups operation. This iterator
7611
8928
  * will fetch more data from the server as needed.
7612
8929
  *
7613
8930
  * @param request a request which can be sent to the service operation
7614
8931
  */
7615
- listAllModelDeploymentsResponses(request) {
7616
- return oci_common_1.paginateResponses(request, req => this.listModelDeployments(req));
8932
+ listAllModelGroupsResponses(request) {
8933
+ return oci_common_1.paginateResponses(request, req => this.listModelGroups(req));
7617
8934
  }
7618
8935
  /**
7619
- * Creates a new async iterator which will iterate over the models.ModelDeploymentSummary objects
7620
- * contained in responses from the listModelDeployments operation. This iterator will fetch more data from the
8936
+ * Creates a new async iterator which will iterate over the models.ModelGroupSummary objects
8937
+ * contained in responses from the listModelGroups operation. This iterator will fetch more data from the
7621
8938
  * server as needed.
7622
8939
  *
7623
8940
  * @param request a request which can be sent to the service operation
7624
8941
  */
7625
- listModelDeploymentsRecordIterator(request) {
7626
- return oci_common_1.paginateRecords(request, req => this.listModelDeployments(req));
8942
+ listModelGroupsRecordIterator(request) {
8943
+ return oci_common_1.paginateRecords(request, req => this.listModelGroups(req));
7627
8944
  }
7628
8945
  /**
7629
- * Creates a new async iterator which will iterate over the responses received from the listModelDeployments operation. This iterator
8946
+ * Creates a new async iterator which will iterate over the responses received from the listModelGroups operation. This iterator
7630
8947
  * will fetch more data from the server as needed.
7631
8948
  *
7632
8949
  * @param request a request which can be sent to the service operation
7633
8950
  */
7634
- listModelDeploymentsResponseIterator(request) {
7635
- return oci_common_1.paginateResponses(request, req => this.listModelDeployments(req));
8951
+ listModelGroupsResponseIterator(request) {
8952
+ return oci_common_1.paginateResponses(request, req => this.listModelGroups(req));
7636
8953
  }
7637
8954
  /**
7638
8955
  * Lists model version sets in the specified compartment.
@@ -10045,6 +11362,136 @@ class DataScienceClient {
10045
11362
  }
10046
11363
  });
10047
11364
  }
11365
+ /**
11366
+ * Updates the properties of the Model Group.
11367
+ * This operation does not retry by default if the user has not defined a retry configuration.
11368
+ * @param UpdateModelGroupRequest
11369
+ * @return UpdateModelGroupResponse
11370
+ * @throws OciError when an error occurs
11371
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateModelGroup.ts.html |here} to see how to use UpdateModelGroup API.
11372
+ */
11373
+ updateModelGroup(updateModelGroupRequest) {
11374
+ return __awaiter(this, void 0, void 0, function* () {
11375
+ if (this.logger)
11376
+ this.logger.debug("Calling operation DataScienceClient#updateModelGroup.");
11377
+ const operationName = "updateModelGroup";
11378
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroup/UpdateModelGroup";
11379
+ const pathParams = {
11380
+ "{modelGroupId}": updateModelGroupRequest.modelGroupId
11381
+ };
11382
+ const queryParams = {};
11383
+ let headerParams = {
11384
+ "Content-Type": common.Constants.APPLICATION_JSON,
11385
+ "opc-request-id": updateModelGroupRequest.opcRequestId,
11386
+ "if-match": updateModelGroupRequest.ifMatch
11387
+ };
11388
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
11389
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelGroupRequest.retryConfiguration, specRetryConfiguration);
11390
+ if (this.logger)
11391
+ retrier.logger = this.logger;
11392
+ const request = yield oci_common_2.composeRequest({
11393
+ baseEndpoint: this._endpoint,
11394
+ defaultHeaders: this._defaultHeaders,
11395
+ path: "/modelGroups/{modelGroupId}",
11396
+ method: "PUT",
11397
+ bodyContent: common.ObjectSerializer.serialize(updateModelGroupRequest.updateModelGroupDetails, "UpdateModelGroupDetails", model.UpdateModelGroupDetails.getJsonObj),
11398
+ pathParams: pathParams,
11399
+ headerParams: headerParams,
11400
+ queryParams: queryParams
11401
+ });
11402
+ try {
11403
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
11404
+ const sdkResponse = oci_common_2.composeResponse({
11405
+ responseObject: {},
11406
+ body: yield response.json(),
11407
+ bodyKey: "modelGroup",
11408
+ bodyModel: model.ModelGroup,
11409
+ type: "model.ModelGroup",
11410
+ responseHeaders: [
11411
+ {
11412
+ value: response.headers.get("etag"),
11413
+ key: "etag",
11414
+ dataType: "string"
11415
+ },
11416
+ {
11417
+ value: response.headers.get("opc-request-id"),
11418
+ key: "opcRequestId",
11419
+ dataType: "string"
11420
+ }
11421
+ ]
11422
+ });
11423
+ return sdkResponse;
11424
+ }
11425
+ catch (err) {
11426
+ throw err;
11427
+ }
11428
+ });
11429
+ }
11430
+ /**
11431
+ * Updates the properties of a modelGroupVersionHistory.
11432
+ * This operation does not retry by default if the user has not defined a retry configuration.
11433
+ * @param UpdateModelGroupVersionHistoryRequest
11434
+ * @return UpdateModelGroupVersionHistoryResponse
11435
+ * @throws OciError when an error occurs
11436
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateModelGroupVersionHistory.ts.html |here} to see how to use UpdateModelGroupVersionHistory API.
11437
+ */
11438
+ updateModelGroupVersionHistory(updateModelGroupVersionHistoryRequest) {
11439
+ return __awaiter(this, void 0, void 0, function* () {
11440
+ if (this.logger)
11441
+ this.logger.debug("Calling operation DataScienceClient#updateModelGroupVersionHistory.");
11442
+ const operationName = "updateModelGroupVersionHistory";
11443
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelGroupVersionHistory/UpdateModelGroupVersionHistory";
11444
+ const pathParams = {
11445
+ "{modelGroupVersionHistoryId}": updateModelGroupVersionHistoryRequest.modelGroupVersionHistoryId
11446
+ };
11447
+ const queryParams = {};
11448
+ let headerParams = {
11449
+ "Content-Type": common.Constants.APPLICATION_JSON,
11450
+ "opc-request-id": updateModelGroupVersionHistoryRequest.opcRequestId,
11451
+ "if-match": updateModelGroupVersionHistoryRequest.ifMatch
11452
+ };
11453
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
11454
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelGroupVersionHistoryRequest.retryConfiguration, specRetryConfiguration);
11455
+ if (this.logger)
11456
+ retrier.logger = this.logger;
11457
+ const request = yield oci_common_2.composeRequest({
11458
+ baseEndpoint: this._endpoint,
11459
+ defaultHeaders: this._defaultHeaders,
11460
+ path: "/modelGroupVersionHistory/{modelGroupVersionHistoryId}",
11461
+ method: "PUT",
11462
+ bodyContent: common.ObjectSerializer.serialize(updateModelGroupVersionHistoryRequest.updateModelGroupVersionHistoryDetails, "UpdateModelGroupVersionHistoryDetails", model.UpdateModelGroupVersionHistoryDetails.getJsonObj),
11463
+ pathParams: pathParams,
11464
+ headerParams: headerParams,
11465
+ queryParams: queryParams
11466
+ });
11467
+ try {
11468
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
11469
+ const sdkResponse = oci_common_2.composeResponse({
11470
+ responseObject: {},
11471
+ body: yield response.json(),
11472
+ bodyKey: "modelGroupVersionHistory",
11473
+ bodyModel: model.ModelGroupVersionHistory,
11474
+ type: "model.ModelGroupVersionHistory",
11475
+ responseHeaders: [
11476
+ {
11477
+ value: response.headers.get("etag"),
11478
+ key: "etag",
11479
+ dataType: "string"
11480
+ },
11481
+ {
11482
+ value: response.headers.get("opc-request-id"),
11483
+ key: "opcRequestId",
11484
+ dataType: "string"
11485
+ }
11486
+ ]
11487
+ });
11488
+ return sdkResponse;
11489
+ }
11490
+ catch (err) {
11491
+ throw err;
11492
+ }
11493
+ });
11494
+ }
10048
11495
  /**
10049
11496
  * Updates the provenance information for the specified model.
10050
11497
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.