oci 2.146.0__py3-none-any.whl → 2.148.0__py3-none-any.whl

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 (382) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_vision/ai_service_vision_client.py +28 -28
  8. oci/analytics/analytics_client.py +24 -24
  9. oci/announcements_service/announcement_client.py +5 -5
  10. oci/announcements_service/announcement_subscription_client.py +9 -9
  11. oci/announcements_service/announcements_preferences_client.py +4 -4
  12. oci/announcements_service/service_client.py +1 -1
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +9 -9
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +57 -57
  22. oci/apm_synthetics/models/ftp_monitor_configuration.py +2 -2
  23. oci/apm_traces/attributes_client.py +8 -8
  24. oci/apm_traces/query_client.py +2 -2
  25. oci/apm_traces/trace_client.py +4 -4
  26. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  27. oci/artifacts/artifacts_client.py +32 -32
  28. oci/audit/audit_client.py +3 -3
  29. oci/auth/federation_client.py +19 -2
  30. oci/autoscaling/auto_scaling_client.py +11 -11
  31. oci/base_client.py +2 -1
  32. oci/bastion/bastion_client.py +15 -15
  33. oci/bds/bds_client.py +84 -84
  34. oci/blockchain/blockchain_platform_client.py +27 -27
  35. oci/budget/budget_client.py +10 -10
  36. oci/capacity_management/capacity_management_client.py +32 -32
  37. oci/certificates/certificates_client.py +5 -5
  38. oci/certificates_management/certificates_management_client.py +32 -32
  39. oci/cims/incident_client.py +6 -6
  40. oci/cloud_bridge/common_client.py +5 -5
  41. oci/cloud_bridge/discovery_client.py +15 -15
  42. oci/cloud_bridge/inventory_client.py +16 -16
  43. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  44. oci/cloud_guard/cloud_guard_client.py +155 -155
  45. oci/cloud_migrations/migration_client.py +43 -43
  46. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  47. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  48. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  49. oci/compute_instance_agent/plugin_client.py +2 -2
  50. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  51. oci/container_engine/container_engine_client.py +44 -44
  52. oci/container_instances/container_instance_client.py +18 -18
  53. oci/core/blockstorage_client.py +60 -60
  54. oci/core/compute_client.py +102 -102
  55. oci/core/compute_management_client.py +32 -32
  56. oci/core/virtual_network_client.py +258 -258
  57. oci/dashboard_service/dashboard_client.py +6 -6
  58. oci/dashboard_service/dashboard_group_client.py +6 -6
  59. oci/data_catalog/data_catalog_client.py +149 -149
  60. oci/data_flow/data_flow_client.py +45 -45
  61. oci/data_integration/data_integration_client.py +163 -163
  62. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  63. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  64. oci/data_safe/data_safe_client.py +3343 -1855
  65. oci/data_safe/data_safe_client_composite_operations.py +217 -0
  66. oci/data_safe/models/__init__.py +28 -0
  67. oci/data_safe/models/change_sensitive_type_group_compartment_details.py +72 -0
  68. oci/data_safe/models/create_discovery_job_details.py +33 -0
  69. oci/data_safe/models/create_sensitive_data_model_details.py +33 -0
  70. oci/data_safe/models/create_sensitive_type_group_details.py +210 -0
  71. oci/data_safe/models/discovery_job.py +31 -0
  72. oci/data_safe/models/grouped_sensitive_type_collection.py +72 -0
  73. oci/data_safe/models/grouped_sensitive_type_summary.py +72 -0
  74. oci/data_safe/models/mask_data_details.py +53 -0
  75. oci/{opensearch/models/pipeline_validation_error_details.py → data_safe/models/masking_error_collection.py} +25 -21
  76. oci/data_safe/models/masking_error_summary.py +189 -0
  77. oci/data_safe/models/masking_report.py +111 -2
  78. oci/data_safe/models/masking_report_summary.py +111 -2
  79. oci/data_safe/models/patch_grouped_sensitive_types_details.py +72 -0
  80. oci/data_safe/models/report_definition.py +14 -6
  81. oci/data_safe/models/report_definition_summary.py +14 -6
  82. oci/data_safe/models/sensitive_column_analytics_collection.py +72 -0
  83. oci/data_safe/models/sensitive_column_analytics_dimensions.py +227 -0
  84. oci/data_safe/models/sensitive_column_analytics_summary.py +99 -0
  85. oci/data_safe/models/sensitive_data_model.py +31 -0
  86. oci/data_safe/models/sensitive_type_group.py +438 -0
  87. oci/data_safe/models/sensitive_type_group_collection.py +72 -0
  88. oci/data_safe/models/sensitive_type_group_summary.py +438 -0
  89. oci/data_safe/models/update_sensitive_data_model_details.py +31 -0
  90. oci/data_safe/models/update_sensitive_type_group_details.py +179 -0
  91. oci/data_science/data_science_client.py +1849 -409
  92. oci/data_science/data_science_client_composite_operations.py +44 -0
  93. oci/data_science/models/__init__.py +6 -0
  94. oci/data_science/models/metadata.py +74 -2
  95. oci/data_science/models/model.py +78 -0
  96. oci/data_science/models/model_artifact_reference_details.py +101 -0
  97. oci/data_science/models/model_summary.py +78 -0
  98. oci/data_science/models/model_version_set.py +47 -0
  99. oci/data_science/models/model_version_set_summary.py +47 -0
  100. oci/data_science/models/oss_model_artifact_reference_details.py +144 -0
  101. oci/data_science/models/register_model_artifact_reference_details.py +72 -0
  102. oci/data_science/models/work_request.py +7 -3
  103. oci/data_science/models/work_request_summary.py +7 -3
  104. oci/database/database_client.py +1945 -714
  105. oci/database/database_client_composite_operations.py +794 -22
  106. oci/database/models/__init__.py +14 -0
  107. oci/database/models/add_standby_autonomous_container_database_details.py +387 -0
  108. oci/database/models/application_vip.py +33 -2
  109. oci/database/models/application_vip_summary.py +33 -2
  110. oci/database/models/autonomous_container_database.py +122 -2
  111. oci/database/models/autonomous_container_database_dataguard.py +674 -0
  112. oci/database/models/autonomous_container_database_summary.py +122 -2
  113. oci/database/models/backup.py +209 -3
  114. oci/database/models/backup_summary.py +209 -3
  115. oci/database/models/change_exadb_vm_cluster_subscription_details.py +107 -0
  116. oci/database/models/change_exascale_db_storage_vault_subscription_details.py +107 -0
  117. oci/database/models/cloud_vm_cluster.py +141 -8
  118. oci/database/models/cloud_vm_cluster_summary.py +141 -8
  119. oci/database/models/convert_standby_autonomous_container_database_details.py +147 -0
  120. oci/database/models/create_application_vip_details.py +35 -4
  121. oci/database/models/create_backup_details.py +64 -2
  122. oci/database/models/create_cloud_vm_cluster_details.py +49 -2
  123. oci/database/models/create_exadb_vm_cluster_details.py +41 -10
  124. oci/database/models/create_exascale_db_storage_vault_details.py +72 -2
  125. oci/database/models/create_vm_cluster_details.py +47 -0
  126. oci/database/models/db_node.py +90 -8
  127. oci/database/models/db_node_summary.py +90 -8
  128. oci/database/models/edit_autonomous_container_database_dataguard_details.py +158 -0
  129. oci/database/models/exadb_vm_cluster.py +76 -10
  130. oci/database/models/exadb_vm_cluster_summary.py +76 -10
  131. oci/database/models/exascale_db_storage_vault.py +72 -2
  132. oci/database/models/exascale_db_storage_vault_summary.py +72 -2
  133. oci/database/models/maintenance_run.py +31 -0
  134. oci/database/models/maintenance_run_summary.py +31 -0
  135. oci/database/models/update_backup_details.py +103 -0
  136. oci/database/models/update_exadb_vm_cluster_details.py +4 -8
  137. oci/database/models/vm_cluster.py +47 -0
  138. oci/database/models/vm_cluster_summary.py +47 -0
  139. oci/database_management/db_management_client.py +228 -228
  140. oci/database_management/diagnosability_client.py +4 -4
  141. oci/database_management/managed_my_sql_databases_client.py +9 -9
  142. oci/database_management/perfhub_client.py +1 -1
  143. oci/database_management/sql_tuning_client.py +17 -17
  144. oci/database_migration/database_migration_client.py +42 -42
  145. oci/database_tools/database_tools_client.py +23 -23
  146. oci/dblm/db_life_cycle_management_client.py +12 -12
  147. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  148. oci/delegate_access_control/work_request_client.py +4 -4
  149. oci/demand_signal/occ_demand_signal_client.py +7 -7
  150. oci/desktops/desktop_service_client.py +21 -21
  151. oci/devops/devops_client.py +141 -141
  152. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  153. oci/dns/dns_client.py +54 -54
  154. oci/dts/appliance_export_job_client.py +6 -6
  155. oci/dts/shipping_vendors_client.py +1 -1
  156. oci/dts/transfer_appliance_client.py +8 -8
  157. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  158. oci/dts/transfer_device_client.py +5 -5
  159. oci/dts/transfer_job_client.py +6 -6
  160. oci/dts/transfer_package_client.py +7 -7
  161. oci/em_warehouse/em_warehouse_client.py +13 -13
  162. oci/email/email_client.py +31 -31
  163. oci/email_data_plane/email_dp_client.py +1 -1
  164. oci/events/events_client.py +6 -6
  165. oci/file_storage/file_storage_client.py +865 -98
  166. oci/file_storage/models/__init__.py +10 -0
  167. oci/file_storage/models/create_file_system_details.py +33 -2
  168. oci/file_storage/models/create_quota_rule_details.py +236 -0
  169. oci/file_storage/models/file_system.py +127 -2
  170. oci/file_storage/models/file_system_summary.py +96 -2
  171. oci/file_storage/models/quota_rule.py +384 -0
  172. oci/file_storage/models/quota_rule_summary.py +452 -0
  173. oci/file_storage/models/toggle_quota_rules_details.py +72 -0
  174. oci/file_storage/models/update_quota_rule_details.py +107 -0
  175. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  176. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  177. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  178. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  179. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  180. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  181. oci/functions/functions_invoke_client.py +1 -1
  182. oci/functions/functions_management_client.py +16 -16
  183. oci/fusion_apps/fusion_applications_client.py +41 -41
  184. oci/generative_ai/generative_ai_client.py +22 -22
  185. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  186. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  187. oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
  188. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  189. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  190. oci/golden_gate/golden_gate_client.py +84 -84
  191. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  192. oci/governance_rules_control_plane/work_request_client.py +5 -5
  193. oci/healthchecks/health_checks_client.py +17 -17
  194. oci/identity/identity_client.py +145 -145
  195. oci/identity_data_plane/dataplane_client.py +2 -2
  196. oci/identity_domains/identity_domains_client.py +311 -311
  197. oci/integration/integration_instance_client.py +19 -19
  198. oci/jms/java_management_service_client.py +79 -79
  199. oci/jms_java_downloads/java_download_client.py +25 -25
  200. oci/key_management/ekm_client.py +5 -5
  201. oci/key_management/kms_crypto_client.py +6 -6
  202. oci/key_management/kms_hsm_cluster_client.py +12 -12
  203. oci/key_management/kms_management_client.py +21 -21
  204. oci/key_management/kms_vault_client.py +14 -14
  205. oci/license_manager/license_manager_client.py +18 -18
  206. oci/limits/limits_client.py +4 -4
  207. oci/limits/quotas_client.py +7 -7
  208. oci/load_balancer/load_balancer_client.py +61 -61
  209. oci/lockbox/lockbox_client.py +24 -24
  210. oci/log_analytics/log_analytics_client.py +193 -193
  211. oci/logging/logging_management_client.py +30 -30
  212. oci/loggingingestion/logging_client.py +1 -1
  213. oci/loggingsearch/log_search_client.py +1 -1
  214. oci/management_agent/management_agent_client.py +28 -28
  215. oci/management_dashboard/dashx_apis_client.py +14 -14
  216. oci/marketplace/account_client.py +2 -2
  217. oci/marketplace/marketplace_client.py +30 -30
  218. oci/marketplace_private_offer/attachment_client.py +5 -5
  219. oci/marketplace_private_offer/offer_client.py +6 -6
  220. oci/marketplace_publisher/attachment_client.py +5 -5
  221. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  222. oci/marketplace_publisher/offer_client.py +6 -6
  223. oci/media_services/media_services_client.py +60 -60
  224. oci/media_services/media_stream_client.py +2 -2
  225. oci/monitoring/monitoring_client.py +18 -18
  226. oci/mysql/channels_client.py +7 -7
  227. oci/mysql/db_backups_client.py +7 -7
  228. oci/mysql/db_system_client.py +17 -17
  229. oci/mysql/models/__init__.py +2 -0
  230. oci/mysql/models/backup_policy.py +41 -0
  231. oci/mysql/models/copy_backup_details.py +35 -0
  232. oci/mysql/models/copy_policy.py +103 -0
  233. oci/mysql/models/create_backup_policy_details.py +41 -0
  234. oci/mysql/models/update_backup_policy_details.py +41 -0
  235. oci/mysql/mysqlaas_client.py +7 -7
  236. oci/mysql/replicas_client.py +5 -5
  237. oci/mysql/work_requests_client.py +4 -4
  238. oci/network_firewall/network_firewall_client.py +86 -86
  239. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  240. oci/nosql/nosql_client.py +24 -24
  241. oci/object_storage/object_storage_client.py +55 -55
  242. oci/oce/oce_instance_client.py +10 -10
  243. oci/oci_control_center/occ_metrics_client.py +3 -3
  244. oci/ocvp/cluster_client.py +5 -5
  245. oci/ocvp/esxi_host_client.py +8 -8
  246. oci/ocvp/sddc_client.py +14 -14
  247. oci/ocvp/work_request_client.py +4 -4
  248. oci/oda/management_client.py +59 -59
  249. oci/oda/oda_client.py +17 -17
  250. oci/oda/odapackage_client.py +7 -7
  251. oci/onesubscription/billing_schedule_client.py +1 -1
  252. oci/onesubscription/commitment_client.py +2 -2
  253. oci/onesubscription/computed_usage_client.py +3 -3
  254. oci/onesubscription/invoice_summary_client.py +2 -2
  255. oci/onesubscription/organization_subscription_client.py +1 -1
  256. oci/onesubscription/ratecard_client.py +1 -1
  257. oci/onesubscription/subscribed_service_client.py +2 -2
  258. oci/onesubscription/subscription_client.py +1 -1
  259. oci/ons/notification_control_plane_client.py +6 -6
  260. oci/ons/notification_data_plane_client.py +10 -10
  261. oci/opa/opa_instance_client.py +13 -13
  262. oci/opensearch/__init__.py +3 -1
  263. oci/opensearch/models/__init__.py +6 -6
  264. oci/opensearch/models/create_opensearch_cluster_pipeline_details.py +152 -123
  265. oci/opensearch/models/force_patch_pipeline_details.py +103 -0
  266. oci/opensearch/models/opensearch_cluster_pipeline.py +198 -89
  267. oci/opensearch/models/opensearch_cluster_pipeline_collection.py +1 -1
  268. oci/opensearch/models/opensearch_cluster_pipeline_summary.py +195 -102
  269. oci/opensearch/models/opensearch_pipeline_reverse_connection_endpoint.py +103 -0
  270. oci/opensearch/models/update_opensearch_cluster_pipeline_details.py +337 -85
  271. oci/opensearch/models/update_pipeline_status_details.py +103 -0
  272. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  273. oci/opensearch/opensearch_cluster_client.py +16 -16
  274. oci/opensearch/opensearch_cluster_pipeline_client.py +688 -0
  275. oci/opensearch/opensearch_cluster_pipeline_client_composite_operations.py +154 -0
  276. oci/operator_access_control/access_requests_client.py +10 -10
  277. oci/operator_access_control/operator_actions_client.py +2 -2
  278. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  279. oci/operator_access_control/operator_control_client.py +6 -6
  280. oci/opsi/operations_insights_client.py +181 -181
  281. oci/optimizer/optimizer_client.py +26 -26
  282. oci/os_management/event_client.py +8 -8
  283. oci/os_management/os_management_client.py +69 -69
  284. oci/os_management_hub/event_client.py +8 -8
  285. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  286. oci/os_management_hub/managed_instance_client.py +33 -33
  287. oci/os_management_hub/managed_instance_group_client.py +26 -26
  288. oci/os_management_hub/management_station_client.py +10 -10
  289. oci/os_management_hub/onboarding_client.py +13 -13
  290. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  291. oci/os_management_hub/scheduled_job_client.py +7 -7
  292. oci/os_management_hub/software_source_client.py +33 -33
  293. oci/os_management_hub/work_request_client.py +5 -5
  294. oci/osp_gateway/address_rule_service_client.py +1 -1
  295. oci/osp_gateway/address_service_client.py +2 -2
  296. oci/osp_gateway/invoice_service_client.py +5 -5
  297. oci/osp_gateway/subscription_service_client.py +5 -5
  298. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  299. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  300. oci/osub_subscription/commitment_client.py +2 -2
  301. oci/osub_subscription/ratecard_client.py +1 -1
  302. oci/osub_subscription/subscription_client.py +1 -1
  303. oci/osub_usage/computed_usage_client.py +3 -3
  304. oci/psql/models/__init__.py +8 -0
  305. oci/psql/models/backup.py +110 -5
  306. oci/psql/models/backup_copy_details.py +134 -0
  307. oci/psql/models/backup_copy_policy.py +134 -0
  308. oci/psql/models/backup_copy_status_details.py +193 -0
  309. oci/psql/models/backup_policy.py +29 -2
  310. oci/psql/models/backup_summary.py +74 -0
  311. oci/psql/models/configuration.py +7 -3
  312. oci/psql/models/daily_backup_policy.py +7 -0
  313. oci/psql/models/db_system_details.py +33 -2
  314. oci/psql/models/monthly_backup_policy.py +7 -0
  315. oci/psql/models/none_backup_policy.py +9 -2
  316. oci/psql/models/source_backup_details.py +103 -0
  317. oci/psql/models/weekly_backup_policy.py +7 -0
  318. oci/psql/postgresql_client.py +163 -33
  319. oci/psql/postgresql_client_composite_operations.py +42 -0
  320. oci/queue/queue_admin_client.py +11 -11
  321. oci/queue/queue_client.py +8 -8
  322. oci/recovery/database_recovery_client.py +26 -26
  323. oci/redis/redis_cluster_client.py +12 -12
  324. oci/resource_manager/resource_manager_client.py +52 -52
  325. oci/resource_scheduler/schedule_client.py +13 -13
  326. oci/resource_search/resource_search_client.py +3 -3
  327. oci/rover/rover_bundle_client.py +8 -8
  328. oci/rover/rover_cluster_client.py +8 -8
  329. oci/rover/rover_entitlement_client.py +6 -6
  330. oci/rover/rover_node_client.py +15 -15
  331. oci/rover/shape_client.py +1 -1
  332. oci/rover/work_requests_client.py +5 -5
  333. oci/sch/connector_plugins_client.py +2 -2
  334. oci/sch/service_connector_client.py +12 -12
  335. oci/secrets/secrets_client.py +3 -3
  336. oci/security_attribute/security_attribute_client.py +24 -24
  337. oci/service_catalog/service_catalog_client.py +26 -26
  338. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  339. oci/service_mesh/service_mesh_client.py +48 -48
  340. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  341. oci/streaming/stream_admin_client.py +18 -18
  342. oci/streaming/stream_client.py +8 -8
  343. oci/tenant_manager_control_plane/domain_client.py +5 -5
  344. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  345. oci/tenant_manager_control_plane/governance_client.py +2 -2
  346. oci/tenant_manager_control_plane/link_client.py +3 -3
  347. oci/tenant_manager_control_plane/models/__init__.py +2 -0
  348. oci/tenant_manager_control_plane/models/additional_assigned_region_collection.py +72 -0
  349. oci/tenant_manager_control_plane/models/classic_subscription.py +33 -2
  350. oci/tenant_manager_control_plane/orders_client.py +2 -2
  351. oci/tenant_manager_control_plane/organization_client.py +10 -10
  352. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  353. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  354. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  355. oci/tenant_manager_control_plane/subscription_client_composite_operations.py +10 -7
  356. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  357. oci/threat_intelligence/threatintel_client.py +5 -5
  358. oci/usage/resources_client.py +2 -2
  359. oci/usage/rewards_client.py +6 -6
  360. oci/usage/usagelimits_client.py +1 -1
  361. oci/usage_api/usageapi_client.py +33 -33
  362. oci/vault/vaults_client.py +13 -13
  363. oci/vbs_inst/vbs_instance_client.py +10 -10
  364. oci/version.py +1 -1
  365. oci/visual_builder/vb_instance_client.py +14 -14
  366. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  367. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  368. oci/waa/waa_client.py +13 -13
  369. oci/waa/work_request_client.py +4 -4
  370. oci/waas/redirect_client.py +6 -6
  371. oci/waas/waas_client.py +66 -66
  372. oci/waf/waf_client.py +24 -24
  373. oci/work_requests/work_request_client.py +4 -4
  374. oci/zpr/zpr_client.py +15 -15
  375. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/METADATA +1 -1
  376. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/RECORD +380 -343
  377. oci/opensearch/models/opensearch_pipeline_validation_response.py +0 -103
  378. oci/opensearch/models/validate_opensearch_pipeline_details.py +0 -103
  379. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/LICENSE.txt +0 -0
  380. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  381. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/WHEEL +0 -0
  382. {oci-2.146.0.dist-info → oci-2.148.0.dist-info}/top_level.txt +0 -0
@@ -153,7 +153,7 @@ class DataScienceClient(object):
153
153
  :rtype: :class:`~oci.response.Response`
154
154
 
155
155
  :example:
156
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/activate_model.py.html>`__ to see an example of how to use activate_model API.
156
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/activate_model.py.html>`__ to see an example of how to use activate_model API.
157
157
  """
158
158
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
159
159
  required_arguments = ['modelId']
@@ -262,7 +262,7 @@ class DataScienceClient(object):
262
262
  :rtype: :class:`~oci.response.Response`
263
263
 
264
264
  :example:
265
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/activate_model_deployment.py.html>`__ to see an example of how to use activate_model_deployment API.
265
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/activate_model_deployment.py.html>`__ to see an example of how to use activate_model_deployment API.
266
266
  """
267
267
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
268
268
  required_arguments = ['modelDeploymentId']
@@ -367,7 +367,7 @@ class DataScienceClient(object):
367
367
  :rtype: :class:`~oci.response.Response`
368
368
 
369
369
  :example:
370
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/activate_notebook_session.py.html>`__ to see an example of how to use activate_notebook_session API.
370
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/activate_notebook_session.py.html>`__ to see an example of how to use activate_notebook_session API.
371
371
  """
372
372
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
373
373
  required_arguments = ['notebookSessionId']
@@ -473,7 +473,7 @@ class DataScienceClient(object):
473
473
  :rtype: :class:`~oci.response.Response`
474
474
 
475
475
  :example:
476
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/activate_schedule.py.html>`__ to see an example of how to use activate_schedule API.
476
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/activate_schedule.py.html>`__ to see an example of how to use activate_schedule API.
477
477
  """
478
478
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
479
479
  required_arguments = ['scheduleId']
@@ -583,7 +583,7 @@ class DataScienceClient(object):
583
583
  :rtype: :class:`~oci.response.Response`
584
584
 
585
585
  :example:
586
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/cancel_job_run.py.html>`__ to see an example of how to use cancel_job_run API.
586
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/cancel_job_run.py.html>`__ to see an example of how to use cancel_job_run API.
587
587
  """
588
588
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
589
589
  required_arguments = ['jobRunId']
@@ -696,7 +696,7 @@ class DataScienceClient(object):
696
696
  :rtype: :class:`~oci.response.Response`
697
697
 
698
698
  :example:
699
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/cancel_pipeline_run.py.html>`__ to see an example of how to use cancel_pipeline_run API.
699
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/cancel_pipeline_run.py.html>`__ to see an example of how to use cancel_pipeline_run API.
700
700
  """
701
701
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
702
702
  required_arguments = ['pipelineRunId']
@@ -814,7 +814,7 @@ class DataScienceClient(object):
814
814
  :rtype: :class:`~oci.response.Response`
815
815
 
816
816
  :example:
817
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
817
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
818
818
  """
819
819
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
820
820
  required_arguments = ['workRequestId']
@@ -923,7 +923,7 @@ class DataScienceClient(object):
923
923
  :rtype: :class:`~oci.response.Response`
924
924
 
925
925
  :example:
926
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_data_science_private_endpoint_compartment.py.html>`__ to see an example of how to use change_data_science_private_endpoint_compartment API.
926
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_data_science_private_endpoint_compartment.py.html>`__ to see an example of how to use change_data_science_private_endpoint_compartment API.
927
927
  """
928
928
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
929
929
  required_arguments = ['dataSciencePrivateEndpointId']
@@ -1038,7 +1038,7 @@ class DataScienceClient(object):
1038
1038
  :rtype: :class:`~oci.response.Response`
1039
1039
 
1040
1040
  :example:
1041
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_job_compartment.py.html>`__ to see an example of how to use change_job_compartment API.
1041
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_job_compartment.py.html>`__ to see an example of how to use change_job_compartment API.
1042
1042
  """
1043
1043
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1044
1044
  required_arguments = ['jobId']
@@ -1148,7 +1148,7 @@ class DataScienceClient(object):
1148
1148
  :rtype: :class:`~oci.response.Response`
1149
1149
 
1150
1150
  :example:
1151
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_job_run_compartment.py.html>`__ to see an example of how to use change_job_run_compartment API.
1151
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_job_run_compartment.py.html>`__ to see an example of how to use change_job_run_compartment API.
1152
1152
  """
1153
1153
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1154
1154
  required_arguments = ['jobRunId']
@@ -1261,7 +1261,7 @@ class DataScienceClient(object):
1261
1261
  :rtype: :class:`~oci.response.Response`
1262
1262
 
1263
1263
  :example:
1264
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_model_compartment.py.html>`__ to see an example of how to use change_model_compartment API.
1264
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_model_compartment.py.html>`__ to see an example of how to use change_model_compartment API.
1265
1265
  """
1266
1266
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1267
1267
  required_arguments = ['modelId']
@@ -1377,7 +1377,7 @@ class DataScienceClient(object):
1377
1377
  :rtype: :class:`~oci.response.Response`
1378
1378
 
1379
1379
  :example:
1380
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_model_deployment_compartment.py.html>`__ to see an example of how to use change_model_deployment_compartment API.
1380
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_model_deployment_compartment.py.html>`__ to see an example of how to use change_model_deployment_compartment API.
1381
1381
  """
1382
1382
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1383
1383
  required_arguments = ['modelDeploymentId']
@@ -1493,7 +1493,7 @@ class DataScienceClient(object):
1493
1493
  :rtype: :class:`~oci.response.Response`
1494
1494
 
1495
1495
  :example:
1496
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_model_version_set_compartment.py.html>`__ to see an example of how to use change_model_version_set_compartment API.
1496
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_model_version_set_compartment.py.html>`__ to see an example of how to use change_model_version_set_compartment API.
1497
1497
  """
1498
1498
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1499
1499
  required_arguments = ['modelVersionSetId']
@@ -1609,7 +1609,7 @@ class DataScienceClient(object):
1609
1609
  :rtype: :class:`~oci.response.Response`
1610
1610
 
1611
1611
  :example:
1612
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_notebook_session_compartment.py.html>`__ to see an example of how to use change_notebook_session_compartment API.
1612
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_notebook_session_compartment.py.html>`__ to see an example of how to use change_notebook_session_compartment API.
1613
1613
  """
1614
1614
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1615
1615
  required_arguments = ['notebookSessionId']
@@ -1722,7 +1722,7 @@ class DataScienceClient(object):
1722
1722
  :rtype: :class:`~oci.response.Response`
1723
1723
 
1724
1724
  :example:
1725
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_pipeline_compartment.py.html>`__ to see an example of how to use change_pipeline_compartment API.
1725
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_pipeline_compartment.py.html>`__ to see an example of how to use change_pipeline_compartment API.
1726
1726
  """
1727
1727
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1728
1728
  required_arguments = ['pipelineId']
@@ -1832,7 +1832,7 @@ class DataScienceClient(object):
1832
1832
  :rtype: :class:`~oci.response.Response`
1833
1833
 
1834
1834
  :example:
1835
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_pipeline_run_compartment.py.html>`__ to see an example of how to use change_pipeline_run_compartment API.
1835
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_pipeline_run_compartment.py.html>`__ to see an example of how to use change_pipeline_run_compartment API.
1836
1836
  """
1837
1837
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1838
1838
  required_arguments = ['pipelineRunId']
@@ -1945,7 +1945,7 @@ class DataScienceClient(object):
1945
1945
  :rtype: :class:`~oci.response.Response`
1946
1946
 
1947
1947
  :example:
1948
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_project_compartment.py.html>`__ to see an example of how to use change_project_compartment API.
1948
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_project_compartment.py.html>`__ to see an example of how to use change_project_compartment API.
1949
1949
  """
1950
1950
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1951
1951
  required_arguments = ['projectId']
@@ -2059,7 +2059,7 @@ class DataScienceClient(object):
2059
2059
  :rtype: :class:`~oci.response.Response`
2060
2060
 
2061
2061
  :example:
2062
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/change_schedule_compartment.py.html>`__ to see an example of how to use change_schedule_compartment API.
2062
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/change_schedule_compartment.py.html>`__ to see an example of how to use change_schedule_compartment API.
2063
2063
  """
2064
2064
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2065
2065
  required_arguments = ['scheduleId']
@@ -2165,7 +2165,7 @@ class DataScienceClient(object):
2165
2165
  :rtype: :class:`~oci.response.Response`
2166
2166
 
2167
2167
  :example:
2168
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_data_science_private_endpoint.py.html>`__ to see an example of how to use create_data_science_private_endpoint API.
2168
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_data_science_private_endpoint.py.html>`__ to see an example of how to use create_data_science_private_endpoint API.
2169
2169
  """
2170
2170
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2171
2171
  required_arguments = []
@@ -2259,7 +2259,7 @@ class DataScienceClient(object):
2259
2259
  :rtype: :class:`~oci.response.Response`
2260
2260
 
2261
2261
  :example:
2262
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_job.py.html>`__ to see an example of how to use create_job API.
2262
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_job.py.html>`__ to see an example of how to use create_job API.
2263
2263
  """
2264
2264
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2265
2265
  required_arguments = []
@@ -2372,7 +2372,7 @@ class DataScienceClient(object):
2372
2372
  :rtype: :class:`~oci.response.Response`
2373
2373
 
2374
2374
  :example:
2375
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_job_artifact.py.html>`__ to see an example of how to use create_job_artifact API.
2375
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_job_artifact.py.html>`__ to see an example of how to use create_job_artifact API.
2376
2376
  """
2377
2377
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2378
2378
  required_arguments = ['jobId']
@@ -2504,7 +2504,7 @@ class DataScienceClient(object):
2504
2504
  :rtype: :class:`~oci.response.Response`
2505
2505
 
2506
2506
  :example:
2507
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_job_run.py.html>`__ to see an example of how to use create_job_run API.
2507
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_job_run.py.html>`__ to see an example of how to use create_job_run API.
2508
2508
  """
2509
2509
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2510
2510
  required_arguments = []
@@ -2600,7 +2600,7 @@ class DataScienceClient(object):
2600
2600
  :rtype: :class:`~oci.response.Response`
2601
2601
 
2602
2602
  :example:
2603
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_model.py.html>`__ to see an example of how to use create_model API.
2603
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model.py.html>`__ to see an example of how to use create_model API.
2604
2604
  """
2605
2605
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2606
2606
  required_arguments = []
@@ -2725,7 +2725,7 @@ class DataScienceClient(object):
2725
2725
  :rtype: :class:`~oci.response.Response`
2726
2726
 
2727
2727
  :example:
2728
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_model_artifact.py.html>`__ to see an example of how to use create_model_artifact API.
2728
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_artifact.py.html>`__ to see an example of how to use create_model_artifact API.
2729
2729
  """
2730
2730
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2731
2731
  required_arguments = ['modelId']
@@ -2828,27 +2828,48 @@ class DataScienceClient(object):
2828
2828
  api_reference_link=api_reference_link,
2829
2829
  required_arguments=required_arguments)
2830
2830
 
2831
- def create_model_deployment(self, create_model_deployment_details, **kwargs):
2831
+ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, model_custom_metadatum_artifact, **kwargs):
2832
2832
  """
2833
- Creates a new model deployment.
2833
+ Creates model custom metadata artifact for specified model.
2834
2834
 
2835
2835
 
2836
- :param oci.data_science.models.CreateModelDeploymentDetails create_model_deployment_details: (required)
2837
- Details for creating a new model deployment.
2836
+ :param str model_id: (required)
2837
+ The `OCID`__ of the model.
2838
+
2839
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2840
+
2841
+ :param str metadatum_key_name: (required)
2842
+ The name of the model metadatum in the metadata.
2843
+
2844
+ :param stream model_custom_metadatum_artifact: (required)
2845
+ The model custom metadata artifact to upload.
2846
+
2847
+ :param int content_length: (optional)
2848
+ The content length of the body.
2838
2849
 
2839
2850
  :param str opc_request_id: (optional)
2840
2851
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
2841
2852
 
2842
- :param str opc_retry_token: (optional)
2843
- A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
2853
+ :param str content_disposition: (optional)
2854
+ This header allows you to specify a filename during upload. This file name is used to dispose of the file contents
2855
+ while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
2856
+ name when downloading.
2857
+ Example: `{\"Content-Disposition\": \"attachment\"
2858
+ \"filename\"=\"model.tar.gz\"
2859
+ \"Content-Length\": \"2347\"
2860
+ \"Content-Type\": \"application/gzip\"}`
2844
2861
 
2845
- :param str opc_parent_rpt_url: (optional)
2846
- URL to fetch the Resource Principal Token from the parent resource.
2862
+ :param str if_match: (optional)
2863
+ For optimistic concurrency control. In the PUT or DELETE call
2864
+ for a resource, set the `if-match` parameter to the value of the
2865
+ etag from a previous GET or POST response for that resource.
2866
+ The resource is updated or deleted only if the `etag` you
2867
+ provide matches the resource's current `etag` value.
2847
2868
 
2848
2869
  :param obj retry_strategy: (optional)
2849
2870
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2850
2871
 
2851
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
2872
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2852
2873
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2853
2874
 
2854
2875
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -2856,61 +2877,100 @@ class DataScienceClient(object):
2856
2877
  :param bool allow_control_chars: (optional)
2857
2878
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2858
2879
  By default, the response will not allow control characters in strings
2880
+ :param int buffer_limit: (optional)
2881
+ A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
2882
+ If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
2859
2883
 
2860
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelDeployment`
2884
+ The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
2885
+ If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
2886
+ Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
2887
+
2888
+ :return: A :class:`~oci.response.Response` object with data of type None
2861
2889
  :rtype: :class:`~oci.response.Response`
2862
2890
 
2863
2891
  :example:
2864
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_model_deployment.py.html>`__ to see an example of how to use create_model_deployment API.
2892
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_custom_metadatum_artifact.py.html>`__ to see an example of how to use create_model_custom_metadatum_artifact API.
2865
2893
  """
2866
2894
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2867
- required_arguments = []
2868
- resource_path = "/modelDeployments"
2895
+ required_arguments = ['modelId', 'metadatumKeyName']
2896
+ resource_path = "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact"
2869
2897
  method = "POST"
2870
- operation_name = "create_model_deployment"
2871
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/CreateModelDeployment"
2898
+ operation_name = "create_model_custom_metadatum_artifact"
2899
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelCustomMetadatumArtifact"
2872
2900
 
2873
2901
  # Don't accept unknown kwargs
2874
2902
  expected_kwargs = [
2875
2903
  "allow_control_chars",
2876
2904
  "retry_strategy",
2905
+ "buffer_limit",
2906
+ "content_length",
2877
2907
  "opc_request_id",
2878
- "opc_retry_token",
2879
- "opc_parent_rpt_url"
2908
+ "content_disposition",
2909
+ "if_match"
2880
2910
  ]
2881
2911
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2882
2912
  if extra_kwargs:
2883
2913
  raise ValueError(
2884
- f"create_model_deployment got unknown kwargs: {extra_kwargs!r}")
2914
+ f"create_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
2915
+
2916
+ path_params = {
2917
+ "modelId": model_id,
2918
+ "metadatumKeyName": metadatum_key_name
2919
+ }
2920
+
2921
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2922
+
2923
+ for (k, v) in six.iteritems(path_params):
2924
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2925
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2885
2926
 
2886
2927
  header_params = {
2887
2928
  "accept": "application/json",
2888
- "content-type": "application/json",
2889
2929
  "opc-request-id": kwargs.get("opc_request_id", missing),
2890
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
2891
- "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing)
2930
+ "content-length": kwargs.get("content_length", missing),
2931
+ "content-disposition": kwargs.get("content_disposition", missing),
2932
+ "if-match": kwargs.get("if_match", missing)
2892
2933
  }
2893
2934
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2894
2935
 
2936
+ # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed.
2937
+ try:
2938
+ model_custom_metadatum_artifact
2939
+ except NameError:
2940
+ model_custom_metadatum_artifact = kwargs.get("model_custom_metadatum_artifact", missing)
2941
+
2942
+ if model_custom_metadatum_artifact is not missing and model_custom_metadatum_artifact is not None:
2943
+ if (not isinstance(model_custom_metadatum_artifact, (six.binary_type, six.string_types)) and
2944
+ not hasattr(model_custom_metadatum_artifact, "read")):
2945
+ raise TypeError('The body must be a string, bytes, or provide a read() method.')
2946
+
2947
+ if hasattr(model_custom_metadatum_artifact, 'fileno') and hasattr(model_custom_metadatum_artifact, 'name') and model_custom_metadatum_artifact.name != '<stdin>':
2948
+ if requests.utils.super_len(model_custom_metadatum_artifact) == 0:
2949
+ header_params['Content-Length'] = '0'
2950
+
2951
+ # If content length is not given and stream object have no 'fileno' and is not a string or bytes, try to calculate content length
2952
+ elif 'Content-Length' not in header_params and not is_content_length_calculable_by_req_util(model_custom_metadatum_artifact):
2953
+ calculated_obj = back_up_body_calculate_stream_content_length(model_custom_metadatum_artifact, kwargs.get("buffer_limit"))
2954
+ header_params['Content-Length'] = calculated_obj["content_length"]
2955
+ model_custom_metadatum_artifact = calculated_obj["byte_content"]
2956
+
2895
2957
  retry_strategy = self.base_client.get_preferred_retry_strategy(
2896
2958
  operation_retry_strategy=kwargs.get('retry_strategy'),
2897
2959
  client_retry_strategy=self.retry_strategy
2898
2960
  )
2899
- if retry_strategy is None:
2900
- retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2901
2961
 
2902
2962
  if retry_strategy:
2903
2963
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2904
- self.base_client.add_opc_retry_token_if_needed(header_params)
2905
2964
  self.base_client.add_opc_client_retries_header(header_params)
2906
2965
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2907
2966
  return retry_strategy.make_retrying_call(
2908
2967
  self.base_client.call_api,
2909
2968
  resource_path=resource_path,
2910
2969
  method=method,
2970
+ path_params=path_params,
2911
2971
  header_params=header_params,
2912
- body=create_model_deployment_details,
2913
- response_type="ModelDeployment",
2972
+ body=model_custom_metadatum_artifact,
2973
+ enforce_content_headers=False,
2914
2974
  allow_control_chars=kwargs.get('allow_control_chars'),
2915
2975
  operation_name=operation_name,
2916
2976
  api_reference_link=api_reference_link,
@@ -2919,17 +2979,18 @@ class DataScienceClient(object):
2919
2979
  return self.base_client.call_api(
2920
2980
  resource_path=resource_path,
2921
2981
  method=method,
2982
+ path_params=path_params,
2922
2983
  header_params=header_params,
2923
- body=create_model_deployment_details,
2924
- response_type="ModelDeployment",
2984
+ body=model_custom_metadatum_artifact,
2985
+ enforce_content_headers=False,
2925
2986
  allow_control_chars=kwargs.get('allow_control_chars'),
2926
2987
  operation_name=operation_name,
2927
2988
  api_reference_link=api_reference_link,
2928
2989
  required_arguments=required_arguments)
2929
2990
 
2930
- def create_model_provenance(self, model_id, create_model_provenance_details, **kwargs):
2991
+ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, model_defined_metadatum_artifact, **kwargs):
2931
2992
  """
2932
- Creates provenance information for the specified model.
2993
+ Creates model defined metadata artifact for specified model.
2933
2994
 
2934
2995
 
2935
2996
  :param str model_id: (required)
@@ -2937,19 +2998,38 @@ class DataScienceClient(object):
2937
2998
 
2938
2999
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2939
3000
 
2940
- :param oci.data_science.models.CreateModelProvenanceDetails create_model_provenance_details: (required)
2941
- Provenance information for specified model.
3001
+ :param str metadatum_key_name: (required)
3002
+ The name of the model metadatum in the metadata.
3003
+
3004
+ :param stream model_defined_metadatum_artifact: (required)
3005
+ The model defined metadata artifact to upload.
3006
+
3007
+ :param int content_length: (optional)
3008
+ The content length of the body.
2942
3009
 
2943
3010
  :param str opc_request_id: (optional)
2944
3011
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
2945
3012
 
2946
- :param str opc_retry_token: (optional)
2947
- A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3013
+ :param str content_disposition: (optional)
3014
+ This header allows you to specify a filename during upload. This file name is used to dispose of the file contents
3015
+ while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
3016
+ name when downloading.
3017
+ Example: `{\"Content-Disposition\": \"attachment\"
3018
+ \"filename\"=\"model.tar.gz\"
3019
+ \"Content-Length\": \"2347\"
3020
+ \"Content-Type\": \"application/gzip\"}`
3021
+
3022
+ :param str if_match: (optional)
3023
+ For optimistic concurrency control. In the PUT or DELETE call
3024
+ for a resource, set the `if-match` parameter to the value of the
3025
+ etag from a previous GET or POST response for that resource.
3026
+ The resource is updated or deleted only if the `etag` you
3027
+ provide matches the resource's current `etag` value.
2948
3028
 
2949
3029
  :param obj retry_strategy: (optional)
2950
3030
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2951
3031
 
2952
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
3032
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2953
3033
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2954
3034
 
2955
3035
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -2957,34 +3037,45 @@ class DataScienceClient(object):
2957
3037
  :param bool allow_control_chars: (optional)
2958
3038
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2959
3039
  By default, the response will not allow control characters in strings
3040
+ :param int buffer_limit: (optional)
3041
+ A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
3042
+ If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
2960
3043
 
2961
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelProvenance`
3044
+ The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
3045
+ If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
3046
+ Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
3047
+
3048
+ :return: A :class:`~oci.response.Response` object with data of type None
2962
3049
  :rtype: :class:`~oci.response.Response`
2963
3050
 
2964
3051
  :example:
2965
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_model_provenance.py.html>`__ to see an example of how to use create_model_provenance API.
3052
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_defined_metadatum_artifact.py.html>`__ to see an example of how to use create_model_defined_metadatum_artifact API.
2966
3053
  """
2967
3054
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2968
- required_arguments = ['modelId']
2969
- resource_path = "/models/{modelId}/provenance"
3055
+ required_arguments = ['modelId', 'metadatumKeyName']
3056
+ resource_path = "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact"
2970
3057
  method = "POST"
2971
- operation_name = "create_model_provenance"
2972
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelProvenance"
3058
+ operation_name = "create_model_defined_metadatum_artifact"
3059
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelDefinedMetadatumArtifact"
2973
3060
 
2974
3061
  # Don't accept unknown kwargs
2975
3062
  expected_kwargs = [
2976
3063
  "allow_control_chars",
2977
3064
  "retry_strategy",
3065
+ "buffer_limit",
3066
+ "content_length",
2978
3067
  "opc_request_id",
2979
- "opc_retry_token"
3068
+ "content_disposition",
3069
+ "if_match"
2980
3070
  ]
2981
3071
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2982
3072
  if extra_kwargs:
2983
3073
  raise ValueError(
2984
- f"create_model_provenance got unknown kwargs: {extra_kwargs!r}")
3074
+ f"create_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
2985
3075
 
2986
3076
  path_params = {
2987
- "modelId": model_id
3077
+ "modelId": model_id,
3078
+ "metadatumKeyName": metadatum_key_name
2988
3079
  }
2989
3080
 
2990
3081
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2995,22 +3086,41 @@ class DataScienceClient(object):
2995
3086
 
2996
3087
  header_params = {
2997
3088
  "accept": "application/json",
2998
- "content-type": "application/json",
2999
3089
  "opc-request-id": kwargs.get("opc_request_id", missing),
3000
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
3090
+ "content-length": kwargs.get("content_length", missing),
3091
+ "content-disposition": kwargs.get("content_disposition", missing),
3092
+ "if-match": kwargs.get("if_match", missing)
3001
3093
  }
3002
3094
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3003
3095
 
3096
+ # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed.
3097
+ try:
3098
+ model_defined_metadatum_artifact
3099
+ except NameError:
3100
+ model_defined_metadatum_artifact = kwargs.get("model_defined_metadatum_artifact", missing)
3101
+
3102
+ if model_defined_metadatum_artifact is not missing and model_defined_metadatum_artifact is not None:
3103
+ if (not isinstance(model_defined_metadatum_artifact, (six.binary_type, six.string_types)) and
3104
+ not hasattr(model_defined_metadatum_artifact, "read")):
3105
+ raise TypeError('The body must be a string, bytes, or provide a read() method.')
3106
+
3107
+ if hasattr(model_defined_metadatum_artifact, 'fileno') and hasattr(model_defined_metadatum_artifact, 'name') and model_defined_metadatum_artifact.name != '<stdin>':
3108
+ if requests.utils.super_len(model_defined_metadatum_artifact) == 0:
3109
+ header_params['Content-Length'] = '0'
3110
+
3111
+ # If content length is not given and stream object have no 'fileno' and is not a string or bytes, try to calculate content length
3112
+ elif 'Content-Length' not in header_params and not is_content_length_calculable_by_req_util(model_defined_metadatum_artifact):
3113
+ calculated_obj = back_up_body_calculate_stream_content_length(model_defined_metadatum_artifact, kwargs.get("buffer_limit"))
3114
+ header_params['Content-Length'] = calculated_obj["content_length"]
3115
+ model_defined_metadatum_artifact = calculated_obj["byte_content"]
3116
+
3004
3117
  retry_strategy = self.base_client.get_preferred_retry_strategy(
3005
3118
  operation_retry_strategy=kwargs.get('retry_strategy'),
3006
3119
  client_retry_strategy=self.retry_strategy
3007
3120
  )
3008
- if retry_strategy is None:
3009
- retry_strategy = retry.DEFAULT_RETRY_STRATEGY
3010
3121
 
3011
3122
  if retry_strategy:
3012
3123
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
3013
- self.base_client.add_opc_retry_token_if_needed(header_params)
3014
3124
  self.base_client.add_opc_client_retries_header(header_params)
3015
3125
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
3016
3126
  return retry_strategy.make_retrying_call(
@@ -3019,8 +3129,8 @@ class DataScienceClient(object):
3019
3129
  method=method,
3020
3130
  path_params=path_params,
3021
3131
  header_params=header_params,
3022
- body=create_model_provenance_details,
3023
- response_type="ModelProvenance",
3132
+ body=model_defined_metadatum_artifact,
3133
+ enforce_content_headers=False,
3024
3134
  allow_control_chars=kwargs.get('allow_control_chars'),
3025
3135
  operation_name=operation_name,
3026
3136
  api_reference_link=api_reference_link,
@@ -3031,20 +3141,20 @@ class DataScienceClient(object):
3031
3141
  method=method,
3032
3142
  path_params=path_params,
3033
3143
  header_params=header_params,
3034
- body=create_model_provenance_details,
3035
- response_type="ModelProvenance",
3144
+ body=model_defined_metadatum_artifact,
3145
+ enforce_content_headers=False,
3036
3146
  allow_control_chars=kwargs.get('allow_control_chars'),
3037
3147
  operation_name=operation_name,
3038
3148
  api_reference_link=api_reference_link,
3039
3149
  required_arguments=required_arguments)
3040
3150
 
3041
- def create_model_version_set(self, create_model_version_set_details, **kwargs):
3151
+ def create_model_deployment(self, create_model_deployment_details, **kwargs):
3042
3152
  """
3043
- Creates a new modelVersionSet.
3153
+ Creates a new model deployment.
3044
3154
 
3045
3155
 
3046
- :param oci.data_science.models.CreateModelVersionSetDetails create_model_version_set_details: (required)
3047
- Details for creating a new modelVersionSet.
3156
+ :param oci.data_science.models.CreateModelDeploymentDetails create_model_deployment_details: (required)
3157
+ Details for creating a new model deployment.
3048
3158
 
3049
3159
  :param str opc_request_id: (optional)
3050
3160
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
@@ -3052,6 +3162,9 @@ class DataScienceClient(object):
3052
3162
  :param str opc_retry_token: (optional)
3053
3163
  A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3054
3164
 
3165
+ :param str opc_parent_rpt_url: (optional)
3166
+ URL to fetch the Resource Principal Token from the parent resource.
3167
+
3055
3168
  :param obj retry_strategy: (optional)
3056
3169
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
3057
3170
 
@@ -3064,36 +3177,38 @@ class DataScienceClient(object):
3064
3177
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3065
3178
  By default, the response will not allow control characters in strings
3066
3179
 
3067
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelVersionSet`
3180
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelDeployment`
3068
3181
  :rtype: :class:`~oci.response.Response`
3069
3182
 
3070
3183
  :example:
3071
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_model_version_set.py.html>`__ to see an example of how to use create_model_version_set API.
3184
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_deployment.py.html>`__ to see an example of how to use create_model_deployment API.
3072
3185
  """
3073
3186
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3074
3187
  required_arguments = []
3075
- resource_path = "/modelVersionSets"
3188
+ resource_path = "/modelDeployments"
3076
3189
  method = "POST"
3077
- operation_name = "create_model_version_set"
3078
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/CreateModelVersionSet"
3190
+ operation_name = "create_model_deployment"
3191
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/CreateModelDeployment"
3079
3192
 
3080
3193
  # Don't accept unknown kwargs
3081
3194
  expected_kwargs = [
3082
3195
  "allow_control_chars",
3083
3196
  "retry_strategy",
3084
3197
  "opc_request_id",
3085
- "opc_retry_token"
3198
+ "opc_retry_token",
3199
+ "opc_parent_rpt_url"
3086
3200
  ]
3087
3201
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3088
3202
  if extra_kwargs:
3089
3203
  raise ValueError(
3090
- f"create_model_version_set got unknown kwargs: {extra_kwargs!r}")
3204
+ f"create_model_deployment got unknown kwargs: {extra_kwargs!r}")
3091
3205
 
3092
3206
  header_params = {
3093
3207
  "accept": "application/json",
3094
3208
  "content-type": "application/json",
3095
3209
  "opc-request-id": kwargs.get("opc_request_id", missing),
3096
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
3210
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
3211
+ "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing)
3097
3212
  }
3098
3213
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3099
3214
 
@@ -3114,8 +3229,8 @@ class DataScienceClient(object):
3114
3229
  resource_path=resource_path,
3115
3230
  method=method,
3116
3231
  header_params=header_params,
3117
- body=create_model_version_set_details,
3118
- response_type="ModelVersionSet",
3232
+ body=create_model_deployment_details,
3233
+ response_type="ModelDeployment",
3119
3234
  allow_control_chars=kwargs.get('allow_control_chars'),
3120
3235
  operation_name=operation_name,
3121
3236
  api_reference_link=api_reference_link,
@@ -3125,20 +3240,25 @@ class DataScienceClient(object):
3125
3240
  resource_path=resource_path,
3126
3241
  method=method,
3127
3242
  header_params=header_params,
3128
- body=create_model_version_set_details,
3129
- response_type="ModelVersionSet",
3243
+ body=create_model_deployment_details,
3244
+ response_type="ModelDeployment",
3130
3245
  allow_control_chars=kwargs.get('allow_control_chars'),
3131
3246
  operation_name=operation_name,
3132
3247
  api_reference_link=api_reference_link,
3133
3248
  required_arguments=required_arguments)
3134
3249
 
3135
- def create_notebook_session(self, create_notebook_session_details, **kwargs):
3250
+ def create_model_provenance(self, model_id, create_model_provenance_details, **kwargs):
3136
3251
  """
3137
- Creates a new notebook session.
3252
+ Creates provenance information for the specified model.
3138
3253
 
3139
3254
 
3140
- :param oci.data_science.models.CreateNotebookSessionDetails create_notebook_session_details: (required)
3141
- Details for creating a new notebook session.
3255
+ :param str model_id: (required)
3256
+ The `OCID`__ of the model.
3257
+
3258
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
3259
+
3260
+ :param oci.data_science.models.CreateModelProvenanceDetails create_model_provenance_details: (required)
3261
+ Provenance information for specified model.
3142
3262
 
3143
3263
  :param str opc_request_id: (optional)
3144
3264
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
@@ -3158,18 +3278,18 @@ class DataScienceClient(object):
3158
3278
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3159
3279
  By default, the response will not allow control characters in strings
3160
3280
 
3161
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.NotebookSession`
3281
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelProvenance`
3162
3282
  :rtype: :class:`~oci.response.Response`
3163
3283
 
3164
3284
  :example:
3165
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_notebook_session.py.html>`__ to see an example of how to use create_notebook_session API.
3285
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_provenance.py.html>`__ to see an example of how to use create_model_provenance API.
3166
3286
  """
3167
3287
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3168
- required_arguments = []
3169
- resource_path = "/notebookSessions"
3288
+ required_arguments = ['modelId']
3289
+ resource_path = "/models/{modelId}/provenance"
3170
3290
  method = "POST"
3171
- operation_name = "create_notebook_session"
3172
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/CreateNotebookSession"
3291
+ operation_name = "create_model_provenance"
3292
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelProvenance"
3173
3293
 
3174
3294
  # Don't accept unknown kwargs
3175
3295
  expected_kwargs = [
@@ -3181,7 +3301,17 @@ class DataScienceClient(object):
3181
3301
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3182
3302
  if extra_kwargs:
3183
3303
  raise ValueError(
3184
- f"create_notebook_session got unknown kwargs: {extra_kwargs!r}")
3304
+ f"create_model_provenance got unknown kwargs: {extra_kwargs!r}")
3305
+
3306
+ path_params = {
3307
+ "modelId": model_id
3308
+ }
3309
+
3310
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
3311
+
3312
+ for (k, v) in six.iteritems(path_params):
3313
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
3314
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
3185
3315
 
3186
3316
  header_params = {
3187
3317
  "accept": "application/json",
@@ -3207,9 +3337,10 @@ class DataScienceClient(object):
3207
3337
  self.base_client.call_api,
3208
3338
  resource_path=resource_path,
3209
3339
  method=method,
3340
+ path_params=path_params,
3210
3341
  header_params=header_params,
3211
- body=create_notebook_session_details,
3212
- response_type="NotebookSession",
3342
+ body=create_model_provenance_details,
3343
+ response_type="ModelProvenance",
3213
3344
  allow_control_chars=kwargs.get('allow_control_chars'),
3214
3345
  operation_name=operation_name,
3215
3346
  api_reference_link=api_reference_link,
@@ -3218,24 +3349,213 @@ class DataScienceClient(object):
3218
3349
  return self.base_client.call_api(
3219
3350
  resource_path=resource_path,
3220
3351
  method=method,
3352
+ path_params=path_params,
3221
3353
  header_params=header_params,
3222
- body=create_notebook_session_details,
3223
- response_type="NotebookSession",
3354
+ body=create_model_provenance_details,
3355
+ response_type="ModelProvenance",
3224
3356
  allow_control_chars=kwargs.get('allow_control_chars'),
3225
3357
  operation_name=operation_name,
3226
3358
  api_reference_link=api_reference_link,
3227
3359
  required_arguments=required_arguments)
3228
3360
 
3229
- def create_pipeline(self, create_pipeline_details, **kwargs):
3361
+ def create_model_version_set(self, create_model_version_set_details, **kwargs):
3230
3362
  """
3231
- Creates a new Pipeline.
3232
-
3363
+ Creates a new modelVersionSet.
3233
3364
 
3234
- :param oci.data_science.models.CreatePipelineDetails create_pipeline_details: (required)
3235
- Details for the new Pipeline.
3236
3365
 
3237
- :param str opc_retry_token: (optional)
3238
- A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3366
+ :param oci.data_science.models.CreateModelVersionSetDetails create_model_version_set_details: (required)
3367
+ Details for creating a new modelVersionSet.
3368
+
3369
+ :param str opc_request_id: (optional)
3370
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
3371
+
3372
+ :param str opc_retry_token: (optional)
3373
+ A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3374
+
3375
+ :param obj retry_strategy: (optional)
3376
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
3377
+
3378
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
3379
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
3380
+
3381
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
3382
+
3383
+ :param bool allow_control_chars: (optional)
3384
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3385
+ By default, the response will not allow control characters in strings
3386
+
3387
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelVersionSet`
3388
+ :rtype: :class:`~oci.response.Response`
3389
+
3390
+ :example:
3391
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_model_version_set.py.html>`__ to see an example of how to use create_model_version_set API.
3392
+ """
3393
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3394
+ required_arguments = []
3395
+ resource_path = "/modelVersionSets"
3396
+ method = "POST"
3397
+ operation_name = "create_model_version_set"
3398
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/CreateModelVersionSet"
3399
+
3400
+ # Don't accept unknown kwargs
3401
+ expected_kwargs = [
3402
+ "allow_control_chars",
3403
+ "retry_strategy",
3404
+ "opc_request_id",
3405
+ "opc_retry_token"
3406
+ ]
3407
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3408
+ if extra_kwargs:
3409
+ raise ValueError(
3410
+ f"create_model_version_set got unknown kwargs: {extra_kwargs!r}")
3411
+
3412
+ header_params = {
3413
+ "accept": "application/json",
3414
+ "content-type": "application/json",
3415
+ "opc-request-id": kwargs.get("opc_request_id", missing),
3416
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
3417
+ }
3418
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3419
+
3420
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
3421
+ operation_retry_strategy=kwargs.get('retry_strategy'),
3422
+ client_retry_strategy=self.retry_strategy
3423
+ )
3424
+ if retry_strategy is None:
3425
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
3426
+
3427
+ if retry_strategy:
3428
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
3429
+ self.base_client.add_opc_retry_token_if_needed(header_params)
3430
+ self.base_client.add_opc_client_retries_header(header_params)
3431
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
3432
+ return retry_strategy.make_retrying_call(
3433
+ self.base_client.call_api,
3434
+ resource_path=resource_path,
3435
+ method=method,
3436
+ header_params=header_params,
3437
+ body=create_model_version_set_details,
3438
+ response_type="ModelVersionSet",
3439
+ allow_control_chars=kwargs.get('allow_control_chars'),
3440
+ operation_name=operation_name,
3441
+ api_reference_link=api_reference_link,
3442
+ required_arguments=required_arguments)
3443
+ else:
3444
+ return self.base_client.call_api(
3445
+ resource_path=resource_path,
3446
+ method=method,
3447
+ header_params=header_params,
3448
+ body=create_model_version_set_details,
3449
+ response_type="ModelVersionSet",
3450
+ allow_control_chars=kwargs.get('allow_control_chars'),
3451
+ operation_name=operation_name,
3452
+ api_reference_link=api_reference_link,
3453
+ required_arguments=required_arguments)
3454
+
3455
+ def create_notebook_session(self, create_notebook_session_details, **kwargs):
3456
+ """
3457
+ Creates a new notebook session.
3458
+
3459
+
3460
+ :param oci.data_science.models.CreateNotebookSessionDetails create_notebook_session_details: (required)
3461
+ Details for creating a new notebook session.
3462
+
3463
+ :param str opc_request_id: (optional)
3464
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
3465
+
3466
+ :param str opc_retry_token: (optional)
3467
+ A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3468
+
3469
+ :param obj retry_strategy: (optional)
3470
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
3471
+
3472
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
3473
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
3474
+
3475
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
3476
+
3477
+ :param bool allow_control_chars: (optional)
3478
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3479
+ By default, the response will not allow control characters in strings
3480
+
3481
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.NotebookSession`
3482
+ :rtype: :class:`~oci.response.Response`
3483
+
3484
+ :example:
3485
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_notebook_session.py.html>`__ to see an example of how to use create_notebook_session API.
3486
+ """
3487
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3488
+ required_arguments = []
3489
+ resource_path = "/notebookSessions"
3490
+ method = "POST"
3491
+ operation_name = "create_notebook_session"
3492
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/NotebookSession/CreateNotebookSession"
3493
+
3494
+ # Don't accept unknown kwargs
3495
+ expected_kwargs = [
3496
+ "allow_control_chars",
3497
+ "retry_strategy",
3498
+ "opc_request_id",
3499
+ "opc_retry_token"
3500
+ ]
3501
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3502
+ if extra_kwargs:
3503
+ raise ValueError(
3504
+ f"create_notebook_session got unknown kwargs: {extra_kwargs!r}")
3505
+
3506
+ header_params = {
3507
+ "accept": "application/json",
3508
+ "content-type": "application/json",
3509
+ "opc-request-id": kwargs.get("opc_request_id", missing),
3510
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
3511
+ }
3512
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3513
+
3514
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
3515
+ operation_retry_strategy=kwargs.get('retry_strategy'),
3516
+ client_retry_strategy=self.retry_strategy
3517
+ )
3518
+ if retry_strategy is None:
3519
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
3520
+
3521
+ if retry_strategy:
3522
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
3523
+ self.base_client.add_opc_retry_token_if_needed(header_params)
3524
+ self.base_client.add_opc_client_retries_header(header_params)
3525
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
3526
+ return retry_strategy.make_retrying_call(
3527
+ self.base_client.call_api,
3528
+ resource_path=resource_path,
3529
+ method=method,
3530
+ header_params=header_params,
3531
+ body=create_notebook_session_details,
3532
+ response_type="NotebookSession",
3533
+ allow_control_chars=kwargs.get('allow_control_chars'),
3534
+ operation_name=operation_name,
3535
+ api_reference_link=api_reference_link,
3536
+ required_arguments=required_arguments)
3537
+ else:
3538
+ return self.base_client.call_api(
3539
+ resource_path=resource_path,
3540
+ method=method,
3541
+ header_params=header_params,
3542
+ body=create_notebook_session_details,
3543
+ response_type="NotebookSession",
3544
+ allow_control_chars=kwargs.get('allow_control_chars'),
3545
+ operation_name=operation_name,
3546
+ api_reference_link=api_reference_link,
3547
+ required_arguments=required_arguments)
3548
+
3549
+ def create_pipeline(self, create_pipeline_details, **kwargs):
3550
+ """
3551
+ Creates a new Pipeline.
3552
+
3553
+
3554
+ :param oci.data_science.models.CreatePipelineDetails create_pipeline_details: (required)
3555
+ Details for the new Pipeline.
3556
+
3557
+ :param str opc_retry_token: (optional)
3558
+ A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
3239
3559
 
3240
3560
  :param str opc_request_id: (optional)
3241
3561
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
@@ -3256,7 +3576,7 @@ class DataScienceClient(object):
3256
3576
  :rtype: :class:`~oci.response.Response`
3257
3577
 
3258
3578
  :example:
3259
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_pipeline.py.html>`__ to see an example of how to use create_pipeline API.
3579
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_pipeline.py.html>`__ to see an example of how to use create_pipeline API.
3260
3580
  """
3261
3581
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3262
3582
  required_arguments = []
@@ -3353,7 +3673,7 @@ class DataScienceClient(object):
3353
3673
  :rtype: :class:`~oci.response.Response`
3354
3674
 
3355
3675
  :example:
3356
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_pipeline_run.py.html>`__ to see an example of how to use create_pipeline_run API.
3676
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_pipeline_run.py.html>`__ to see an example of how to use create_pipeline_run API.
3357
3677
  """
3358
3678
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3359
3679
  required_arguments = []
@@ -3449,7 +3769,7 @@ class DataScienceClient(object):
3449
3769
  :rtype: :class:`~oci.response.Response`
3450
3770
 
3451
3771
  :example:
3452
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_project.py.html>`__ to see an example of how to use create_project API.
3772
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_project.py.html>`__ to see an example of how to use create_project API.
3453
3773
  """
3454
3774
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3455
3775
  required_arguments = []
@@ -3543,7 +3863,7 @@ class DataScienceClient(object):
3543
3863
  :rtype: :class:`~oci.response.Response`
3544
3864
 
3545
3865
  :example:
3546
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_schedule.py.html>`__ to see an example of how to use create_schedule API.
3866
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_schedule.py.html>`__ to see an example of how to use create_schedule API.
3547
3867
  """
3548
3868
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3549
3869
  required_arguments = []
@@ -3664,7 +3984,7 @@ class DataScienceClient(object):
3664
3984
  :rtype: :class:`~oci.response.Response`
3665
3985
 
3666
3986
  :example:
3667
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/create_step_artifact.py.html>`__ to see an example of how to use create_step_artifact API.
3987
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/create_step_artifact.py.html>`__ to see an example of how to use create_step_artifact API.
3668
3988
  """
3669
3989
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3670
3990
  required_arguments = ['pipelineId', 'stepName']
@@ -3800,7 +4120,7 @@ class DataScienceClient(object):
3800
4120
  :rtype: :class:`~oci.response.Response`
3801
4121
 
3802
4122
  :example:
3803
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/deactivate_model.py.html>`__ to see an example of how to use deactivate_model API.
4123
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/deactivate_model.py.html>`__ to see an example of how to use deactivate_model API.
3804
4124
  """
3805
4125
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3806
4126
  required_arguments = ['modelId']
@@ -3909,7 +4229,7 @@ class DataScienceClient(object):
3909
4229
  :rtype: :class:`~oci.response.Response`
3910
4230
 
3911
4231
  :example:
3912
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/deactivate_model_deployment.py.html>`__ to see an example of how to use deactivate_model_deployment API.
4232
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/deactivate_model_deployment.py.html>`__ to see an example of how to use deactivate_model_deployment API.
3913
4233
  """
3914
4234
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3915
4235
  required_arguments = ['modelDeploymentId']
@@ -4014,7 +4334,7 @@ class DataScienceClient(object):
4014
4334
  :rtype: :class:`~oci.response.Response`
4015
4335
 
4016
4336
  :example:
4017
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/deactivate_notebook_session.py.html>`__ to see an example of how to use deactivate_notebook_session API.
4337
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/deactivate_notebook_session.py.html>`__ to see an example of how to use deactivate_notebook_session API.
4018
4338
  """
4019
4339
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4020
4340
  required_arguments = ['notebookSessionId']
@@ -4120,7 +4440,7 @@ class DataScienceClient(object):
4120
4440
  :rtype: :class:`~oci.response.Response`
4121
4441
 
4122
4442
  :example:
4123
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/deactivate_schedule.py.html>`__ to see an example of how to use deactivate_schedule API.
4443
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/deactivate_schedule.py.html>`__ to see an example of how to use deactivate_schedule API.
4124
4444
  """
4125
4445
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4126
4446
  required_arguments = ['scheduleId']
@@ -4228,7 +4548,7 @@ class DataScienceClient(object):
4228
4548
  :rtype: :class:`~oci.response.Response`
4229
4549
 
4230
4550
  :example:
4231
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_data_science_private_endpoint.py.html>`__ to see an example of how to use delete_data_science_private_endpoint API.
4551
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_data_science_private_endpoint.py.html>`__ to see an example of how to use delete_data_science_private_endpoint API.
4232
4552
  """
4233
4553
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4234
4554
  required_arguments = ['dataSciencePrivateEndpointId']
@@ -4336,7 +4656,7 @@ class DataScienceClient(object):
4336
4656
  :rtype: :class:`~oci.response.Response`
4337
4657
 
4338
4658
  :example:
4339
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_job.py.html>`__ to see an example of how to use delete_job API.
4659
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_job.py.html>`__ to see an example of how to use delete_job API.
4340
4660
  """
4341
4661
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4342
4662
  required_arguments = ['jobId']
@@ -4451,7 +4771,7 @@ class DataScienceClient(object):
4451
4771
  :rtype: :class:`~oci.response.Response`
4452
4772
 
4453
4773
  :example:
4454
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_job_run.py.html>`__ to see an example of how to use delete_job_run API.
4774
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_job_run.py.html>`__ to see an example of how to use delete_job_run API.
4455
4775
  """
4456
4776
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4457
4777
  required_arguments = ['jobRunId']
@@ -4558,7 +4878,7 @@ class DataScienceClient(object):
4558
4878
  :rtype: :class:`~oci.response.Response`
4559
4879
 
4560
4880
  :example:
4561
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_model.py.html>`__ to see an example of how to use delete_model API.
4881
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_model.py.html>`__ to see an example of how to use delete_model API.
4562
4882
  """
4563
4883
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4564
4884
  required_arguments = ['modelId']
@@ -4629,16 +4949,22 @@ class DataScienceClient(object):
4629
4949
  api_reference_link=api_reference_link,
4630
4950
  required_arguments=required_arguments)
4631
4951
 
4632
- def delete_model_deployment(self, model_deployment_id, **kwargs):
4952
+ def delete_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **kwargs):
4633
4953
  """
4634
- Deletes the specified model deployment. Any unsaved work in this model deployment is lost.
4954
+ Deletes model custom metadata artifact for specified model metadata key.
4635
4955
 
4636
4956
 
4637
- :param str model_deployment_id: (required)
4638
- The `OCID`__ of the model deployment.
4957
+ :param str model_id: (required)
4958
+ The `OCID`__ of the model.
4639
4959
 
4640
4960
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
4641
4961
 
4962
+ :param str metadatum_key_name: (required)
4963
+ The name of the model metadatum in the metadata.
4964
+
4965
+ :param str opc_request_id: (optional)
4966
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
4967
+
4642
4968
  :param str if_match: (optional)
4643
4969
  For optimistic concurrency control. In the PUT or DELETE call
4644
4970
  for a resource, set the `if-match` parameter to the value of the
@@ -4646,9 +4972,6 @@ class DataScienceClient(object):
4646
4972
  The resource is updated or deleted only if the `etag` you
4647
4973
  provide matches the resource's current `etag` value.
4648
4974
 
4649
- :param str opc_request_id: (optional)
4650
- Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
4651
-
4652
4975
  :param obj retry_strategy: (optional)
4653
4976
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
4654
4977
 
@@ -4665,29 +4988,30 @@ class DataScienceClient(object):
4665
4988
  :rtype: :class:`~oci.response.Response`
4666
4989
 
4667
4990
  :example:
4668
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_model_deployment.py.html>`__ to see an example of how to use delete_model_deployment API.
4991
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_model_custom_metadatum_artifact.py.html>`__ to see an example of how to use delete_model_custom_metadatum_artifact API.
4669
4992
  """
4670
4993
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4671
- required_arguments = ['modelDeploymentId']
4672
- resource_path = "/modelDeployments/{modelDeploymentId}"
4994
+ required_arguments = ['modelId', 'metadatumKeyName']
4995
+ resource_path = "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact"
4673
4996
  method = "DELETE"
4674
- operation_name = "delete_model_deployment"
4675
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/DeleteModelDeployment"
4997
+ operation_name = "delete_model_custom_metadatum_artifact"
4998
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/DeleteModelCustomMetadatumArtifact"
4676
4999
 
4677
5000
  # Don't accept unknown kwargs
4678
5001
  expected_kwargs = [
4679
5002
  "allow_control_chars",
4680
5003
  "retry_strategy",
4681
- "if_match",
4682
- "opc_request_id"
5004
+ "opc_request_id",
5005
+ "if_match"
4683
5006
  ]
4684
5007
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4685
5008
  if extra_kwargs:
4686
5009
  raise ValueError(
4687
- f"delete_model_deployment got unknown kwargs: {extra_kwargs!r}")
5010
+ f"delete_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
4688
5011
 
4689
5012
  path_params = {
4690
- "modelDeploymentId": model_deployment_id
5013
+ "modelId": model_id,
5014
+ "metadatumKeyName": metadatum_key_name
4691
5015
  }
4692
5016
 
4693
5017
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4699,8 +5023,8 @@ class DataScienceClient(object):
4699
5023
  header_params = {
4700
5024
  "accept": "application/json",
4701
5025
  "content-type": "application/json",
4702
- "if-match": kwargs.get("if_match", missing),
4703
- "opc-request-id": kwargs.get("opc_request_id", missing)
5026
+ "opc-request-id": kwargs.get("opc_request_id", missing),
5027
+ "if-match": kwargs.get("if_match", missing)
4704
5028
  }
4705
5029
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
4706
5030
 
@@ -4736,19 +5060,21 @@ class DataScienceClient(object):
4736
5060
  api_reference_link=api_reference_link,
4737
5061
  required_arguments=required_arguments)
4738
5062
 
4739
- def delete_model_version_set(self, model_version_set_id, **kwargs):
5063
+ def delete_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, **kwargs):
4740
5064
  """
4741
- Deletes the specified modelVersionSet.
5065
+ Deletes model defined metadata artifact for specified model metadata key.
4742
5066
 
4743
5067
 
4744
- :param str model_version_set_id: (required)
4745
- The `OCID`__ of the model version set.
5068
+ :param str model_id: (required)
5069
+ The `OCID`__ of the model.
4746
5070
 
4747
5071
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
4748
5072
 
4749
- :param bool is_delete_related_models: (optional)
4750
- By default, this parameter is false. A model version set can only be deleted if all the models associate with it are already in the DELETED state.
4751
- You can optionally specify the deleteRelatedModels boolean query parameters to true, which deletes all associated models for you.
5073
+ :param str metadatum_key_name: (required)
5074
+ The name of the model metadatum in the metadata.
5075
+
5076
+ :param str opc_request_id: (optional)
5077
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
4752
5078
 
4753
5079
  :param str if_match: (optional)
4754
5080
  For optimistic concurrency control. In the PUT or DELETE call
@@ -4757,9 +5083,6 @@ class DataScienceClient(object):
4757
5083
  The resource is updated or deleted only if the `etag` you
4758
5084
  provide matches the resource's current `etag` value.
4759
5085
 
4760
- :param str opc_request_id: (optional)
4761
- Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
4762
-
4763
5086
  :param obj retry_strategy: (optional)
4764
5087
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
4765
5088
 
@@ -4776,30 +5099,30 @@ class DataScienceClient(object):
4776
5099
  :rtype: :class:`~oci.response.Response`
4777
5100
 
4778
5101
  :example:
4779
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_model_version_set.py.html>`__ to see an example of how to use delete_model_version_set API.
5102
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_model_defined_metadatum_artifact.py.html>`__ to see an example of how to use delete_model_defined_metadatum_artifact API.
4780
5103
  """
4781
5104
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4782
- required_arguments = ['modelVersionSetId']
4783
- resource_path = "/modelVersionSets/{modelVersionSetId}"
5105
+ required_arguments = ['modelId', 'metadatumKeyName']
5106
+ resource_path = "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact"
4784
5107
  method = "DELETE"
4785
- operation_name = "delete_model_version_set"
4786
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/DeleteModelVersionSet"
5108
+ operation_name = "delete_model_defined_metadatum_artifact"
5109
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/DeleteModelDefinedMetadatumArtifact"
4787
5110
 
4788
5111
  # Don't accept unknown kwargs
4789
5112
  expected_kwargs = [
4790
5113
  "allow_control_chars",
4791
5114
  "retry_strategy",
4792
- "is_delete_related_models",
4793
- "if_match",
4794
- "opc_request_id"
5115
+ "opc_request_id",
5116
+ "if_match"
4795
5117
  ]
4796
5118
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4797
5119
  if extra_kwargs:
4798
5120
  raise ValueError(
4799
- f"delete_model_version_set got unknown kwargs: {extra_kwargs!r}")
5121
+ f"delete_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
4800
5122
 
4801
5123
  path_params = {
4802
- "modelVersionSetId": model_version_set_id
5124
+ "modelId": model_id,
5125
+ "metadatumKeyName": metadatum_key_name
4803
5126
  }
4804
5127
 
4805
5128
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4808,16 +5131,11 @@ class DataScienceClient(object):
4808
5131
  if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
4809
5132
  raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
4810
5133
 
4811
- query_params = {
4812
- "isDeleteRelatedModels": kwargs.get("is_delete_related_models", missing)
4813
- }
4814
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
4815
-
4816
5134
  header_params = {
4817
5135
  "accept": "application/json",
4818
5136
  "content-type": "application/json",
4819
- "if-match": kwargs.get("if_match", missing),
4820
- "opc-request-id": kwargs.get("opc_request_id", missing)
5137
+ "opc-request-id": kwargs.get("opc_request_id", missing),
5138
+ "if-match": kwargs.get("if_match", missing)
4821
5139
  }
4822
5140
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
4823
5141
 
@@ -4837,7 +5155,6 @@ class DataScienceClient(object):
4837
5155
  resource_path=resource_path,
4838
5156
  method=method,
4839
5157
  path_params=path_params,
4840
- query_params=query_params,
4841
5158
  header_params=header_params,
4842
5159
  allow_control_chars=kwargs.get('allow_control_chars'),
4843
5160
  operation_name=operation_name,
@@ -4848,20 +5165,245 @@ class DataScienceClient(object):
4848
5165
  resource_path=resource_path,
4849
5166
  method=method,
4850
5167
  path_params=path_params,
4851
- query_params=query_params,
4852
5168
  header_params=header_params,
4853
5169
  allow_control_chars=kwargs.get('allow_control_chars'),
4854
5170
  operation_name=operation_name,
4855
5171
  api_reference_link=api_reference_link,
4856
5172
  required_arguments=required_arguments)
4857
5173
 
4858
- def delete_notebook_session(self, notebook_session_id, **kwargs):
5174
+ def delete_model_deployment(self, model_deployment_id, **kwargs):
4859
5175
  """
4860
- Deletes the specified notebook session. Any unsaved work in this notebook session are lost.
5176
+ Deletes the specified model deployment. Any unsaved work in this model deployment is lost.
4861
5177
 
4862
5178
 
4863
- :param str notebook_session_id: (required)
4864
- The `OCID`__ of the notebook session.
5179
+ :param str model_deployment_id: (required)
5180
+ The `OCID`__ of the model deployment.
5181
+
5182
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
5183
+
5184
+ :param str if_match: (optional)
5185
+ For optimistic concurrency control. In the PUT or DELETE call
5186
+ for a resource, set the `if-match` parameter to the value of the
5187
+ etag from a previous GET or POST response for that resource.
5188
+ The resource is updated or deleted only if the `etag` you
5189
+ provide matches the resource's current `etag` value.
5190
+
5191
+ :param str opc_request_id: (optional)
5192
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
5193
+
5194
+ :param obj retry_strategy: (optional)
5195
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
5196
+
5197
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
5198
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
5199
+
5200
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
5201
+
5202
+ :param bool allow_control_chars: (optional)
5203
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
5204
+ By default, the response will not allow control characters in strings
5205
+
5206
+ :return: A :class:`~oci.response.Response` object with data of type None
5207
+ :rtype: :class:`~oci.response.Response`
5208
+
5209
+ :example:
5210
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_model_deployment.py.html>`__ to see an example of how to use delete_model_deployment API.
5211
+ """
5212
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5213
+ required_arguments = ['modelDeploymentId']
5214
+ resource_path = "/modelDeployments/{modelDeploymentId}"
5215
+ method = "DELETE"
5216
+ operation_name = "delete_model_deployment"
5217
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/DeleteModelDeployment"
5218
+
5219
+ # Don't accept unknown kwargs
5220
+ expected_kwargs = [
5221
+ "allow_control_chars",
5222
+ "retry_strategy",
5223
+ "if_match",
5224
+ "opc_request_id"
5225
+ ]
5226
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5227
+ if extra_kwargs:
5228
+ raise ValueError(
5229
+ f"delete_model_deployment got unknown kwargs: {extra_kwargs!r}")
5230
+
5231
+ path_params = {
5232
+ "modelDeploymentId": model_deployment_id
5233
+ }
5234
+
5235
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
5236
+
5237
+ for (k, v) in six.iteritems(path_params):
5238
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
5239
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
5240
+
5241
+ header_params = {
5242
+ "accept": "application/json",
5243
+ "content-type": "application/json",
5244
+ "if-match": kwargs.get("if_match", missing),
5245
+ "opc-request-id": kwargs.get("opc_request_id", missing)
5246
+ }
5247
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
5248
+
5249
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
5250
+ operation_retry_strategy=kwargs.get('retry_strategy'),
5251
+ client_retry_strategy=self.retry_strategy
5252
+ )
5253
+ if retry_strategy is None:
5254
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
5255
+
5256
+ if retry_strategy:
5257
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
5258
+ self.base_client.add_opc_client_retries_header(header_params)
5259
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
5260
+ return retry_strategy.make_retrying_call(
5261
+ self.base_client.call_api,
5262
+ resource_path=resource_path,
5263
+ method=method,
5264
+ path_params=path_params,
5265
+ header_params=header_params,
5266
+ allow_control_chars=kwargs.get('allow_control_chars'),
5267
+ operation_name=operation_name,
5268
+ api_reference_link=api_reference_link,
5269
+ required_arguments=required_arguments)
5270
+ else:
5271
+ return self.base_client.call_api(
5272
+ resource_path=resource_path,
5273
+ method=method,
5274
+ path_params=path_params,
5275
+ header_params=header_params,
5276
+ allow_control_chars=kwargs.get('allow_control_chars'),
5277
+ operation_name=operation_name,
5278
+ api_reference_link=api_reference_link,
5279
+ required_arguments=required_arguments)
5280
+
5281
+ def delete_model_version_set(self, model_version_set_id, **kwargs):
5282
+ """
5283
+ Deletes the specified modelVersionSet.
5284
+
5285
+
5286
+ :param str model_version_set_id: (required)
5287
+ The `OCID`__ of the model version set.
5288
+
5289
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
5290
+
5291
+ :param bool is_delete_related_models: (optional)
5292
+ By default, this parameter is false. A model version set can only be deleted if all the models associate with it are already in the DELETED state.
5293
+ You can optionally specify the deleteRelatedModels boolean query parameters to true, which deletes all associated models for you.
5294
+
5295
+ :param str if_match: (optional)
5296
+ For optimistic concurrency control. In the PUT or DELETE call
5297
+ for a resource, set the `if-match` parameter to the value of the
5298
+ etag from a previous GET or POST response for that resource.
5299
+ The resource is updated or deleted only if the `etag` you
5300
+ provide matches the resource's current `etag` value.
5301
+
5302
+ :param str opc_request_id: (optional)
5303
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
5304
+
5305
+ :param obj retry_strategy: (optional)
5306
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
5307
+
5308
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
5309
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
5310
+
5311
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
5312
+
5313
+ :param bool allow_control_chars: (optional)
5314
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
5315
+ By default, the response will not allow control characters in strings
5316
+
5317
+ :return: A :class:`~oci.response.Response` object with data of type None
5318
+ :rtype: :class:`~oci.response.Response`
5319
+
5320
+ :example:
5321
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_model_version_set.py.html>`__ to see an example of how to use delete_model_version_set API.
5322
+ """
5323
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5324
+ required_arguments = ['modelVersionSetId']
5325
+ resource_path = "/modelVersionSets/{modelVersionSetId}"
5326
+ method = "DELETE"
5327
+ operation_name = "delete_model_version_set"
5328
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelVersionSet/DeleteModelVersionSet"
5329
+
5330
+ # Don't accept unknown kwargs
5331
+ expected_kwargs = [
5332
+ "allow_control_chars",
5333
+ "retry_strategy",
5334
+ "is_delete_related_models",
5335
+ "if_match",
5336
+ "opc_request_id"
5337
+ ]
5338
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5339
+ if extra_kwargs:
5340
+ raise ValueError(
5341
+ f"delete_model_version_set got unknown kwargs: {extra_kwargs!r}")
5342
+
5343
+ path_params = {
5344
+ "modelVersionSetId": model_version_set_id
5345
+ }
5346
+
5347
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
5348
+
5349
+ for (k, v) in six.iteritems(path_params):
5350
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
5351
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
5352
+
5353
+ query_params = {
5354
+ "isDeleteRelatedModels": kwargs.get("is_delete_related_models", missing)
5355
+ }
5356
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
5357
+
5358
+ header_params = {
5359
+ "accept": "application/json",
5360
+ "content-type": "application/json",
5361
+ "if-match": kwargs.get("if_match", missing),
5362
+ "opc-request-id": kwargs.get("opc_request_id", missing)
5363
+ }
5364
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
5365
+
5366
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
5367
+ operation_retry_strategy=kwargs.get('retry_strategy'),
5368
+ client_retry_strategy=self.retry_strategy
5369
+ )
5370
+ if retry_strategy is None:
5371
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
5372
+
5373
+ if retry_strategy:
5374
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
5375
+ self.base_client.add_opc_client_retries_header(header_params)
5376
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
5377
+ return retry_strategy.make_retrying_call(
5378
+ self.base_client.call_api,
5379
+ resource_path=resource_path,
5380
+ method=method,
5381
+ path_params=path_params,
5382
+ query_params=query_params,
5383
+ header_params=header_params,
5384
+ allow_control_chars=kwargs.get('allow_control_chars'),
5385
+ operation_name=operation_name,
5386
+ api_reference_link=api_reference_link,
5387
+ required_arguments=required_arguments)
5388
+ else:
5389
+ return self.base_client.call_api(
5390
+ resource_path=resource_path,
5391
+ method=method,
5392
+ path_params=path_params,
5393
+ query_params=query_params,
5394
+ header_params=header_params,
5395
+ allow_control_chars=kwargs.get('allow_control_chars'),
5396
+ operation_name=operation_name,
5397
+ api_reference_link=api_reference_link,
5398
+ required_arguments=required_arguments)
5399
+
5400
+ def delete_notebook_session(self, notebook_session_id, **kwargs):
5401
+ """
5402
+ Deletes the specified notebook session. Any unsaved work in this notebook session are lost.
5403
+
5404
+
5405
+ :param str notebook_session_id: (required)
5406
+ The `OCID`__ of the notebook session.
4865
5407
 
4866
5408
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
4867
5409
 
@@ -4891,7 +5433,7 @@ class DataScienceClient(object):
4891
5433
  :rtype: :class:`~oci.response.Response`
4892
5434
 
4893
5435
  :example:
4894
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_notebook_session.py.html>`__ to see an example of how to use delete_notebook_session API.
5436
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_notebook_session.py.html>`__ to see an example of how to use delete_notebook_session API.
4895
5437
  """
4896
5438
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4897
5439
  required_arguments = ['notebookSessionId']
@@ -5004,7 +5546,7 @@ class DataScienceClient(object):
5004
5546
  :rtype: :class:`~oci.response.Response`
5005
5547
 
5006
5548
  :example:
5007
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_pipeline.py.html>`__ to see an example of how to use delete_pipeline API.
5549
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_pipeline.py.html>`__ to see an example of how to use delete_pipeline API.
5008
5550
  """
5009
5551
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5010
5552
  required_arguments = ['pipelineId']
@@ -5122,7 +5664,7 @@ class DataScienceClient(object):
5122
5664
  :rtype: :class:`~oci.response.Response`
5123
5665
 
5124
5666
  :example:
5125
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_pipeline_run.py.html>`__ to see an example of how to use delete_pipeline_run API.
5667
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_pipeline_run.py.html>`__ to see an example of how to use delete_pipeline_run API.
5126
5668
  """
5127
5669
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5128
5670
  required_arguments = ['pipelineRunId']
@@ -5235,7 +5777,7 @@ class DataScienceClient(object):
5235
5777
  :rtype: :class:`~oci.response.Response`
5236
5778
 
5237
5779
  :example:
5238
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_project.py.html>`__ to see an example of how to use delete_project API.
5780
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_project.py.html>`__ to see an example of how to use delete_project API.
5239
5781
  """
5240
5782
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5241
5783
  required_arguments = ['projectId']
@@ -5340,7 +5882,7 @@ class DataScienceClient(object):
5340
5882
  :rtype: :class:`~oci.response.Response`
5341
5883
 
5342
5884
  :example:
5343
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/delete_schedule.py.html>`__ to see an example of how to use delete_schedule API.
5885
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/delete_schedule.py.html>`__ to see an example of how to use delete_schedule API.
5344
5886
  """
5345
5887
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5346
5888
  required_arguments = ['scheduleId']
@@ -5451,7 +5993,7 @@ class DataScienceClient(object):
5451
5993
  :rtype: :class:`~oci.response.Response`
5452
5994
 
5453
5995
  :example:
5454
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/export_model_artifact.py.html>`__ to see an example of how to use export_model_artifact API.
5996
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/export_model_artifact.py.html>`__ to see an example of how to use export_model_artifact API.
5455
5997
  """
5456
5998
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5457
5999
  required_arguments = ['modelId']
@@ -5554,7 +6096,7 @@ class DataScienceClient(object):
5554
6096
  :rtype: :class:`~oci.response.Response`
5555
6097
 
5556
6098
  :example:
5557
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_data_science_private_endpoint.py.html>`__ to see an example of how to use get_data_science_private_endpoint API.
6099
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_data_science_private_endpoint.py.html>`__ to see an example of how to use get_data_science_private_endpoint API.
5558
6100
  """
5559
6101
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5560
6102
  required_arguments = ['dataSciencePrivateEndpointId']
@@ -5654,7 +6196,7 @@ class DataScienceClient(object):
5654
6196
  :rtype: :class:`~oci.response.Response`
5655
6197
 
5656
6198
  :example:
5657
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_job.py.html>`__ to see an example of how to use get_job API.
6199
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_job.py.html>`__ to see an example of how to use get_job API.
5658
6200
  """
5659
6201
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5660
6202
  required_arguments = ['jobId']
@@ -5760,7 +6302,7 @@ class DataScienceClient(object):
5760
6302
  :rtype: :class:`~oci.response.Response`
5761
6303
 
5762
6304
  :example:
5763
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_job_artifact_content.py.html>`__ to see an example of how to use get_job_artifact_content API.
6305
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_job_artifact_content.py.html>`__ to see an example of how to use get_job_artifact_content API.
5764
6306
  """
5765
6307
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5766
6308
  required_arguments = ['jobId']
@@ -5862,7 +6404,7 @@ class DataScienceClient(object):
5862
6404
  :rtype: :class:`~oci.response.Response`
5863
6405
 
5864
6406
  :example:
5865
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_job_run.py.html>`__ to see an example of how to use get_job_run API.
6407
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_job_run.py.html>`__ to see an example of how to use get_job_run API.
5866
6408
  """
5867
6409
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5868
6410
  required_arguments = ['jobRunId']
@@ -5962,7 +6504,7 @@ class DataScienceClient(object):
5962
6504
  :rtype: :class:`~oci.response.Response`
5963
6505
 
5964
6506
  :example:
5965
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_model.py.html>`__ to see an example of how to use get_model API.
6507
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model.py.html>`__ to see an example of how to use get_model API.
5966
6508
  """
5967
6509
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5968
6510
  required_arguments = ['modelId']
@@ -6068,7 +6610,7 @@ class DataScienceClient(object):
6068
6610
  :rtype: :class:`~oci.response.Response`
6069
6611
 
6070
6612
  :example:
6071
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_model_artifact_content.py.html>`__ to see an example of how to use get_model_artifact_content API.
6613
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_artifact_content.py.html>`__ to see an example of how to use get_model_artifact_content API.
6072
6614
  """
6073
6615
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6074
6616
  required_arguments = ['modelId']
@@ -6141,19 +6683,28 @@ class DataScienceClient(object):
6141
6683
  api_reference_link=api_reference_link,
6142
6684
  required_arguments=required_arguments)
6143
6685
 
6144
- def get_model_deployment(self, model_deployment_id, **kwargs):
6686
+ def get_model_custom_metadatum_artifact_content(self, model_id, metadatum_key_name, **kwargs):
6145
6687
  """
6146
- Retrieves the model deployment for the specified `modelDeploymentId`.
6688
+ Downloads model custom metadata artifact content for specified model metadata key.
6147
6689
 
6148
6690
 
6149
- :param str model_deployment_id: (required)
6150
- The `OCID`__ of the model deployment.
6691
+ :param str model_id: (required)
6692
+ The `OCID`__ of the model.
6151
6693
 
6152
6694
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
6153
6695
 
6696
+ :param str metadatum_key_name: (required)
6697
+ The name of the model metadatum in the metadata.
6698
+
6154
6699
  :param str opc_request_id: (optional)
6155
6700
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
6156
6701
 
6702
+ :param str range: (optional)
6703
+ Optional byte range to fetch, as described in `RFC 7233`__, section 2.1.
6704
+ Note that only a single range of bytes is supported.
6705
+
6706
+ __ https://tools.ietf.org/html/rfc7232#section-2.1
6707
+
6157
6708
  :param obj retry_strategy: (optional)
6158
6709
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
6159
6710
 
@@ -6166,32 +6717,34 @@ class DataScienceClient(object):
6166
6717
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
6167
6718
  By default, the response will not allow control characters in strings
6168
6719
 
6169
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelDeployment`
6720
+ :return: A :class:`~oci.response.Response` object with data of type stream
6170
6721
  :rtype: :class:`~oci.response.Response`
6171
6722
 
6172
6723
  :example:
6173
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_model_deployment.py.html>`__ to see an example of how to use get_model_deployment API.
6724
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_custom_metadatum_artifact_content.py.html>`__ to see an example of how to use get_model_custom_metadatum_artifact_content API.
6174
6725
  """
6175
6726
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6176
- required_arguments = ['modelDeploymentId']
6177
- resource_path = "/modelDeployments/{modelDeploymentId}"
6727
+ required_arguments = ['modelId', 'metadatumKeyName']
6728
+ resource_path = "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact/content"
6178
6729
  method = "GET"
6179
- operation_name = "get_model_deployment"
6180
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/GetModelDeployment"
6730
+ operation_name = "get_model_custom_metadatum_artifact_content"
6731
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelCustomMetadatumArtifactContent"
6181
6732
 
6182
6733
  # Don't accept unknown kwargs
6183
6734
  expected_kwargs = [
6184
6735
  "allow_control_chars",
6185
6736
  "retry_strategy",
6186
- "opc_request_id"
6737
+ "opc_request_id",
6738
+ "range"
6187
6739
  ]
6188
6740
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
6189
6741
  if extra_kwargs:
6190
6742
  raise ValueError(
6191
- f"get_model_deployment got unknown kwargs: {extra_kwargs!r}")
6743
+ f"get_model_custom_metadatum_artifact_content got unknown kwargs: {extra_kwargs!r}")
6192
6744
 
6193
6745
  path_params = {
6194
- "modelDeploymentId": model_deployment_id
6746
+ "modelId": model_id,
6747
+ "metadatumKeyName": metadatum_key_name
6195
6748
  }
6196
6749
 
6197
6750
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -6201,9 +6754,10 @@ class DataScienceClient(object):
6201
6754
  raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
6202
6755
 
6203
6756
  header_params = {
6204
- "accept": "application/json",
6757
+ "accept": "application/octet-stream",
6205
6758
  "content-type": "application/json",
6206
- "opc-request-id": kwargs.get("opc_request_id", missing)
6759
+ "opc-request-id": kwargs.get("opc_request_id", missing),
6760
+ "range": kwargs.get("range", missing)
6207
6761
  }
6208
6762
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
6209
6763
 
@@ -6224,7 +6778,219 @@ class DataScienceClient(object):
6224
6778
  method=method,
6225
6779
  path_params=path_params,
6226
6780
  header_params=header_params,
6227
- response_type="ModelDeployment",
6781
+ response_type="stream",
6782
+ allow_control_chars=kwargs.get('allow_control_chars'),
6783
+ operation_name=operation_name,
6784
+ api_reference_link=api_reference_link,
6785
+ required_arguments=required_arguments)
6786
+ else:
6787
+ return self.base_client.call_api(
6788
+ resource_path=resource_path,
6789
+ method=method,
6790
+ path_params=path_params,
6791
+ header_params=header_params,
6792
+ response_type="stream",
6793
+ allow_control_chars=kwargs.get('allow_control_chars'),
6794
+ operation_name=operation_name,
6795
+ api_reference_link=api_reference_link,
6796
+ required_arguments=required_arguments)
6797
+
6798
+ def get_model_defined_metadatum_artifact_content(self, model_id, metadatum_key_name, **kwargs):
6799
+ """
6800
+ Downloads model defined metadata artifact content for specified model metadata key.
6801
+
6802
+
6803
+ :param str model_id: (required)
6804
+ The `OCID`__ of the model.
6805
+
6806
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
6807
+
6808
+ :param str metadatum_key_name: (required)
6809
+ The name of the model metadatum in the metadata.
6810
+
6811
+ :param str opc_request_id: (optional)
6812
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
6813
+
6814
+ :param str range: (optional)
6815
+ Optional byte range to fetch, as described in `RFC 7233`__, section 2.1.
6816
+ Note that only a single range of bytes is supported.
6817
+
6818
+ __ https://tools.ietf.org/html/rfc7232#section-2.1
6819
+
6820
+ :param obj retry_strategy: (optional)
6821
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
6822
+
6823
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
6824
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
6825
+
6826
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
6827
+
6828
+ :param bool allow_control_chars: (optional)
6829
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
6830
+ By default, the response will not allow control characters in strings
6831
+
6832
+ :return: A :class:`~oci.response.Response` object with data of type stream
6833
+ :rtype: :class:`~oci.response.Response`
6834
+
6835
+ :example:
6836
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_defined_metadatum_artifact_content.py.html>`__ to see an example of how to use get_model_defined_metadatum_artifact_content API.
6837
+ """
6838
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6839
+ required_arguments = ['modelId', 'metadatumKeyName']
6840
+ resource_path = "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact/content"
6841
+ method = "GET"
6842
+ operation_name = "get_model_defined_metadatum_artifact_content"
6843
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelDefinedMetadatumArtifactContent"
6844
+
6845
+ # Don't accept unknown kwargs
6846
+ expected_kwargs = [
6847
+ "allow_control_chars",
6848
+ "retry_strategy",
6849
+ "opc_request_id",
6850
+ "range"
6851
+ ]
6852
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
6853
+ if extra_kwargs:
6854
+ raise ValueError(
6855
+ f"get_model_defined_metadatum_artifact_content got unknown kwargs: {extra_kwargs!r}")
6856
+
6857
+ path_params = {
6858
+ "modelId": model_id,
6859
+ "metadatumKeyName": metadatum_key_name
6860
+ }
6861
+
6862
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
6863
+
6864
+ for (k, v) in six.iteritems(path_params):
6865
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
6866
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
6867
+
6868
+ header_params = {
6869
+ "accept": "application/octet-stream",
6870
+ "content-type": "application/json",
6871
+ "opc-request-id": kwargs.get("opc_request_id", missing),
6872
+ "range": kwargs.get("range", missing)
6873
+ }
6874
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
6875
+
6876
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
6877
+ operation_retry_strategy=kwargs.get('retry_strategy'),
6878
+ client_retry_strategy=self.retry_strategy
6879
+ )
6880
+ if retry_strategy is None:
6881
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
6882
+
6883
+ if retry_strategy:
6884
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
6885
+ self.base_client.add_opc_client_retries_header(header_params)
6886
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
6887
+ return retry_strategy.make_retrying_call(
6888
+ self.base_client.call_api,
6889
+ resource_path=resource_path,
6890
+ method=method,
6891
+ path_params=path_params,
6892
+ header_params=header_params,
6893
+ response_type="stream",
6894
+ allow_control_chars=kwargs.get('allow_control_chars'),
6895
+ operation_name=operation_name,
6896
+ api_reference_link=api_reference_link,
6897
+ required_arguments=required_arguments)
6898
+ else:
6899
+ return self.base_client.call_api(
6900
+ resource_path=resource_path,
6901
+ method=method,
6902
+ path_params=path_params,
6903
+ header_params=header_params,
6904
+ response_type="stream",
6905
+ allow_control_chars=kwargs.get('allow_control_chars'),
6906
+ operation_name=operation_name,
6907
+ api_reference_link=api_reference_link,
6908
+ required_arguments=required_arguments)
6909
+
6910
+ def get_model_deployment(self, model_deployment_id, **kwargs):
6911
+ """
6912
+ Retrieves the model deployment for the specified `modelDeploymentId`.
6913
+
6914
+
6915
+ :param str model_deployment_id: (required)
6916
+ The `OCID`__ of the model deployment.
6917
+
6918
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
6919
+
6920
+ :param str opc_request_id: (optional)
6921
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
6922
+
6923
+ :param obj retry_strategy: (optional)
6924
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
6925
+
6926
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
6927
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
6928
+
6929
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
6930
+
6931
+ :param bool allow_control_chars: (optional)
6932
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
6933
+ By default, the response will not allow control characters in strings
6934
+
6935
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.ModelDeployment`
6936
+ :rtype: :class:`~oci.response.Response`
6937
+
6938
+ :example:
6939
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_deployment.py.html>`__ to see an example of how to use get_model_deployment API.
6940
+ """
6941
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6942
+ required_arguments = ['modelDeploymentId']
6943
+ resource_path = "/modelDeployments/{modelDeploymentId}"
6944
+ method = "GET"
6945
+ operation_name = "get_model_deployment"
6946
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ModelDeployment/GetModelDeployment"
6947
+
6948
+ # Don't accept unknown kwargs
6949
+ expected_kwargs = [
6950
+ "allow_control_chars",
6951
+ "retry_strategy",
6952
+ "opc_request_id"
6953
+ ]
6954
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
6955
+ if extra_kwargs:
6956
+ raise ValueError(
6957
+ f"get_model_deployment got unknown kwargs: {extra_kwargs!r}")
6958
+
6959
+ path_params = {
6960
+ "modelDeploymentId": model_deployment_id
6961
+ }
6962
+
6963
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
6964
+
6965
+ for (k, v) in six.iteritems(path_params):
6966
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
6967
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
6968
+
6969
+ header_params = {
6970
+ "accept": "application/json",
6971
+ "content-type": "application/json",
6972
+ "opc-request-id": kwargs.get("opc_request_id", missing)
6973
+ }
6974
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
6975
+
6976
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
6977
+ operation_retry_strategy=kwargs.get('retry_strategy'),
6978
+ client_retry_strategy=self.retry_strategy
6979
+ )
6980
+ if retry_strategy is None:
6981
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
6982
+
6983
+ if retry_strategy:
6984
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
6985
+ self.base_client.add_opc_client_retries_header(header_params)
6986
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
6987
+ return retry_strategy.make_retrying_call(
6988
+ self.base_client.call_api,
6989
+ resource_path=resource_path,
6990
+ method=method,
6991
+ path_params=path_params,
6992
+ header_params=header_params,
6993
+ response_type="ModelDeployment",
6228
6994
  allow_control_chars=kwargs.get('allow_control_chars'),
6229
6995
  operation_name=operation_name,
6230
6996
  api_reference_link=api_reference_link,
@@ -6270,7 +7036,7 @@ class DataScienceClient(object):
6270
7036
  :rtype: :class:`~oci.response.Response`
6271
7037
 
6272
7038
  :example:
6273
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_model_provenance.py.html>`__ to see an example of how to use get_model_provenance API.
7039
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_provenance.py.html>`__ to see an example of how to use get_model_provenance API.
6274
7040
  """
6275
7041
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6276
7042
  required_arguments = ['modelId']
@@ -6370,7 +7136,7 @@ class DataScienceClient(object):
6370
7136
  :rtype: :class:`~oci.response.Response`
6371
7137
 
6372
7138
  :example:
6373
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_model_version_set.py.html>`__ to see an example of how to use get_model_version_set API.
7139
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_model_version_set.py.html>`__ to see an example of how to use get_model_version_set API.
6374
7140
  """
6375
7141
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6376
7142
  required_arguments = ['modelVersionSetId']
@@ -6470,7 +7236,7 @@ class DataScienceClient(object):
6470
7236
  :rtype: :class:`~oci.response.Response`
6471
7237
 
6472
7238
  :example:
6473
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_notebook_session.py.html>`__ to see an example of how to use get_notebook_session API.
7239
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_notebook_session.py.html>`__ to see an example of how to use get_notebook_session API.
6474
7240
  """
6475
7241
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6476
7242
  required_arguments = ['notebookSessionId']
@@ -6570,7 +7336,7 @@ class DataScienceClient(object):
6570
7336
  :rtype: :class:`~oci.response.Response`
6571
7337
 
6572
7338
  :example:
6573
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_pipeline.py.html>`__ to see an example of how to use get_pipeline API.
7339
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_pipeline.py.html>`__ to see an example of how to use get_pipeline API.
6574
7340
  """
6575
7341
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6576
7342
  required_arguments = ['pipelineId']
@@ -6670,7 +7436,7 @@ class DataScienceClient(object):
6670
7436
  :rtype: :class:`~oci.response.Response`
6671
7437
 
6672
7438
  :example:
6673
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_pipeline_run.py.html>`__ to see an example of how to use get_pipeline_run API.
7439
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_pipeline_run.py.html>`__ to see an example of how to use get_pipeline_run API.
6674
7440
  """
6675
7441
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6676
7442
  required_arguments = ['pipelineRunId']
@@ -6770,7 +7536,7 @@ class DataScienceClient(object):
6770
7536
  :rtype: :class:`~oci.response.Response`
6771
7537
 
6772
7538
  :example:
6773
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_project.py.html>`__ to see an example of how to use get_project API.
7539
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_project.py.html>`__ to see an example of how to use get_project API.
6774
7540
  """
6775
7541
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6776
7542
  required_arguments = ['projectId']
@@ -6868,7 +7634,7 @@ class DataScienceClient(object):
6868
7634
  :rtype: :class:`~oci.response.Response`
6869
7635
 
6870
7636
  :example:
6871
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_schedule.py.html>`__ to see an example of how to use get_schedule API.
7637
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_schedule.py.html>`__ to see an example of how to use get_schedule API.
6872
7638
  """
6873
7639
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6874
7640
  required_arguments = ['scheduleId']
@@ -6977,7 +7743,7 @@ class DataScienceClient(object):
6977
7743
  :rtype: :class:`~oci.response.Response`
6978
7744
 
6979
7745
  :example:
6980
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_step_artifact_content.py.html>`__ to see an example of how to use get_step_artifact_content API.
7746
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_step_artifact_content.py.html>`__ to see an example of how to use get_step_artifact_content API.
6981
7747
  """
6982
7748
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6983
7749
  required_arguments = ['pipelineId', 'stepName']
@@ -7082,7 +7848,7 @@ class DataScienceClient(object):
7082
7848
  :rtype: :class:`~oci.response.Response`
7083
7849
 
7084
7850
  :example:
7085
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
7851
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
7086
7852
  """
7087
7853
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7088
7854
  required_arguments = ['workRequestId']
@@ -7182,7 +7948,7 @@ class DataScienceClient(object):
7182
7948
  :rtype: :class:`~oci.response.Response`
7183
7949
 
7184
7950
  :example:
7185
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/head_job_artifact.py.html>`__ to see an example of how to use head_job_artifact API.
7951
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/head_job_artifact.py.html>`__ to see an example of how to use head_job_artifact API.
7186
7952
  """
7187
7953
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7188
7954
  required_arguments = ['jobId']
@@ -7280,7 +8046,7 @@ class DataScienceClient(object):
7280
8046
  :rtype: :class:`~oci.response.Response`
7281
8047
 
7282
8048
  :example:
7283
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/head_model_artifact.py.html>`__ to see an example of how to use head_model_artifact API.
8049
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/head_model_artifact.py.html>`__ to see an example of how to use head_model_artifact API.
7284
8050
  """
7285
8051
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7286
8052
  required_arguments = ['modelId']
@@ -7349,18 +8115,18 @@ class DataScienceClient(object):
7349
8115
  api_reference_link=api_reference_link,
7350
8116
  required_arguments=required_arguments)
7351
8117
 
7352
- def head_step_artifact(self, pipeline_id, step_name, **kwargs):
8118
+ def head_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **kwargs):
7353
8119
  """
7354
- Get the artifact metadata for a step in the pipeline.
8120
+ Gets custom metadata artifact metadata for specified model metadata key.
7355
8121
 
7356
8122
 
7357
- :param str pipeline_id: (required)
7358
- The `OCID`__ of the pipeline.
8123
+ :param str model_id: (required)
8124
+ The `OCID`__ of the model.
7359
8125
 
7360
8126
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
7361
8127
 
7362
- :param str step_name: (required)
7363
- Unique Step identifier in a pipeline.
8128
+ :param str metadatum_key_name: (required)
8129
+ The name of the model metadatum in the metadata.
7364
8130
 
7365
8131
  :param str opc_request_id: (optional)
7366
8132
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
@@ -7381,14 +8147,14 @@ class DataScienceClient(object):
7381
8147
  :rtype: :class:`~oci.response.Response`
7382
8148
 
7383
8149
  :example:
7384
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/head_step_artifact.py.html>`__ to see an example of how to use head_step_artifact API.
8150
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/head_model_custom_metadatum_artifact.py.html>`__ to see an example of how to use head_model_custom_metadatum_artifact API.
7385
8151
  """
7386
8152
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7387
- required_arguments = ['pipelineId', 'stepName']
7388
- resource_path = "/pipelines/{pipelineId}/steps/{stepName}/artifact/content"
8153
+ required_arguments = ['modelId', 'metadatumKeyName']
8154
+ resource_path = "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact/content"
7389
8155
  method = "HEAD"
7390
- operation_name = "head_step_artifact"
7391
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/HeadStepArtifact"
8156
+ operation_name = "head_model_custom_metadatum_artifact"
8157
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/HeadModelCustomMetadatumArtifact"
7392
8158
 
7393
8159
  # Don't accept unknown kwargs
7394
8160
  expected_kwargs = [
@@ -7399,11 +8165,11 @@ class DataScienceClient(object):
7399
8165
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7400
8166
  if extra_kwargs:
7401
8167
  raise ValueError(
7402
- f"head_step_artifact got unknown kwargs: {extra_kwargs!r}")
8168
+ f"head_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
7403
8169
 
7404
8170
  path_params = {
7405
- "pipelineId": pipeline_id,
7406
- "stepName": step_name
8171
+ "modelId": model_id,
8172
+ "metadatumKeyName": metadatum_key_name
7407
8173
  }
7408
8174
 
7409
8175
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -7451,9 +8217,9 @@ class DataScienceClient(object):
7451
8217
  api_reference_link=api_reference_link,
7452
8218
  required_arguments=required_arguments)
7453
8219
 
7454
- def import_model_artifact(self, model_id, import_model_artifact_details, **kwargs):
8220
+ def head_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, **kwargs):
7455
8221
  """
7456
- Import model artifact from service bucket
8222
+ Gets defined metadata artifact metadata for specified model metadata key.
7457
8223
 
7458
8224
 
7459
8225
  :param str model_id: (required)
@@ -7461,23 +8227,16 @@ class DataScienceClient(object):
7461
8227
 
7462
8228
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
7463
8229
 
7464
- :param oci.data_science.models.ImportModelArtifactDetails import_model_artifact_details: (required)
7465
- Model artifact source details for importing.
8230
+ :param str metadatum_key_name: (required)
8231
+ The name of the model metadatum in the metadata.
7466
8232
 
7467
8233
  :param str opc_request_id: (optional)
7468
8234
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
7469
8235
 
7470
- :param str if_match: (optional)
7471
- For optimistic concurrency control. In the PUT or DELETE call
7472
- for a resource, set the `if-match` parameter to the value of the
7473
- etag from a previous GET or POST response for that resource.
7474
- The resource is updated or deleted only if the `etag` you
7475
- provide matches the resource's current `etag` value.
7476
-
7477
8236
  :param obj retry_strategy: (optional)
7478
8237
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
7479
8238
 
7480
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
8239
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
7481
8240
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
7482
8241
 
7483
8242
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -7490,29 +8249,29 @@ class DataScienceClient(object):
7490
8249
  :rtype: :class:`~oci.response.Response`
7491
8250
 
7492
8251
  :example:
7493
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/import_model_artifact.py.html>`__ to see an example of how to use import_model_artifact API.
8252
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/head_model_defined_metadatum_artifact.py.html>`__ to see an example of how to use head_model_defined_metadatum_artifact API.
7494
8253
  """
7495
8254
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7496
- required_arguments = ['modelId']
7497
- resource_path = "/models/{modelId}/actions/importArtifact"
7498
- method = "POST"
7499
- operation_name = "import_model_artifact"
7500
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/ImportModelArtifact"
8255
+ required_arguments = ['modelId', 'metadatumKeyName']
8256
+ resource_path = "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact/content"
8257
+ method = "HEAD"
8258
+ operation_name = "head_model_defined_metadatum_artifact"
8259
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/HeadModelDefinedMetadatumArtifact"
7501
8260
 
7502
8261
  # Don't accept unknown kwargs
7503
8262
  expected_kwargs = [
7504
8263
  "allow_control_chars",
7505
8264
  "retry_strategy",
7506
- "opc_request_id",
7507
- "if_match"
8265
+ "opc_request_id"
7508
8266
  ]
7509
8267
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7510
8268
  if extra_kwargs:
7511
8269
  raise ValueError(
7512
- f"import_model_artifact got unknown kwargs: {extra_kwargs!r}")
8270
+ f"head_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
7513
8271
 
7514
8272
  path_params = {
7515
- "modelId": model_id
8273
+ "modelId": model_id,
8274
+ "metadatumKeyName": metadatum_key_name
7516
8275
  }
7517
8276
 
7518
8277
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -7524,8 +8283,7 @@ class DataScienceClient(object):
7524
8283
  header_params = {
7525
8284
  "accept": "application/json",
7526
8285
  "content-type": "application/json",
7527
- "opc-request-id": kwargs.get("opc_request_id", missing),
7528
- "if-match": kwargs.get("if_match", missing)
8286
+ "opc-request-id": kwargs.get("opc_request_id", missing)
7529
8287
  }
7530
8288
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
7531
8289
 
@@ -7533,6 +8291,8 @@ class DataScienceClient(object):
7533
8291
  operation_retry_strategy=kwargs.get('retry_strategy'),
7534
8292
  client_retry_strategy=self.retry_strategy
7535
8293
  )
8294
+ if retry_strategy is None:
8295
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
7536
8296
 
7537
8297
  if retry_strategy:
7538
8298
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
@@ -7544,7 +8304,6 @@ class DataScienceClient(object):
7544
8304
  method=method,
7545
8305
  path_params=path_params,
7546
8306
  header_params=header_params,
7547
- body=import_model_artifact_details,
7548
8307
  allow_control_chars=kwargs.get('allow_control_chars'),
7549
8308
  operation_name=operation_name,
7550
8309
  api_reference_link=api_reference_link,
@@ -7555,22 +8314,233 @@ class DataScienceClient(object):
7555
8314
  method=method,
7556
8315
  path_params=path_params,
7557
8316
  header_params=header_params,
7558
- body=import_model_artifact_details,
7559
8317
  allow_control_chars=kwargs.get('allow_control_chars'),
7560
8318
  operation_name=operation_name,
7561
8319
  api_reference_link=api_reference_link,
7562
8320
  required_arguments=required_arguments)
7563
8321
 
7564
- def list_containers(self, **kwargs):
8322
+ def head_step_artifact(self, pipeline_id, step_name, **kwargs):
7565
8323
  """
7566
- List containers.
8324
+ Get the artifact metadata for a step in the pipeline.
7567
8325
 
7568
8326
 
7569
- :param str opc_request_id: (optional)
7570
- Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
8327
+ :param str pipeline_id: (required)
8328
+ The `OCID`__ of the pipeline.
7571
8329
 
7572
- :param bool is_latest: (optional)
7573
- if true, this returns latest version of container.
8330
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
8331
+
8332
+ :param str step_name: (required)
8333
+ Unique Step identifier in a pipeline.
8334
+
8335
+ :param str opc_request_id: (optional)
8336
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
8337
+
8338
+ :param obj retry_strategy: (optional)
8339
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
8340
+
8341
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
8342
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
8343
+
8344
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
8345
+
8346
+ :param bool allow_control_chars: (optional)
8347
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
8348
+ By default, the response will not allow control characters in strings
8349
+
8350
+ :return: A :class:`~oci.response.Response` object with data of type None
8351
+ :rtype: :class:`~oci.response.Response`
8352
+
8353
+ :example:
8354
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/head_step_artifact.py.html>`__ to see an example of how to use head_step_artifact API.
8355
+ """
8356
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8357
+ required_arguments = ['pipelineId', 'stepName']
8358
+ resource_path = "/pipelines/{pipelineId}/steps/{stepName}/artifact/content"
8359
+ method = "HEAD"
8360
+ operation_name = "head_step_artifact"
8361
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/HeadStepArtifact"
8362
+
8363
+ # Don't accept unknown kwargs
8364
+ expected_kwargs = [
8365
+ "allow_control_chars",
8366
+ "retry_strategy",
8367
+ "opc_request_id"
8368
+ ]
8369
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
8370
+ if extra_kwargs:
8371
+ raise ValueError(
8372
+ f"head_step_artifact got unknown kwargs: {extra_kwargs!r}")
8373
+
8374
+ path_params = {
8375
+ "pipelineId": pipeline_id,
8376
+ "stepName": step_name
8377
+ }
8378
+
8379
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
8380
+
8381
+ for (k, v) in six.iteritems(path_params):
8382
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
8383
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
8384
+
8385
+ header_params = {
8386
+ "accept": "application/json",
8387
+ "content-type": "application/json",
8388
+ "opc-request-id": kwargs.get("opc_request_id", missing)
8389
+ }
8390
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
8391
+
8392
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
8393
+ operation_retry_strategy=kwargs.get('retry_strategy'),
8394
+ client_retry_strategy=self.retry_strategy
8395
+ )
8396
+ if retry_strategy is None:
8397
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
8398
+
8399
+ if retry_strategy:
8400
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
8401
+ self.base_client.add_opc_client_retries_header(header_params)
8402
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
8403
+ return retry_strategy.make_retrying_call(
8404
+ self.base_client.call_api,
8405
+ resource_path=resource_path,
8406
+ method=method,
8407
+ path_params=path_params,
8408
+ header_params=header_params,
8409
+ allow_control_chars=kwargs.get('allow_control_chars'),
8410
+ operation_name=operation_name,
8411
+ api_reference_link=api_reference_link,
8412
+ required_arguments=required_arguments)
8413
+ else:
8414
+ return self.base_client.call_api(
8415
+ resource_path=resource_path,
8416
+ method=method,
8417
+ path_params=path_params,
8418
+ header_params=header_params,
8419
+ allow_control_chars=kwargs.get('allow_control_chars'),
8420
+ operation_name=operation_name,
8421
+ api_reference_link=api_reference_link,
8422
+ required_arguments=required_arguments)
8423
+
8424
+ def import_model_artifact(self, model_id, import_model_artifact_details, **kwargs):
8425
+ """
8426
+ Import model artifact from service bucket
8427
+
8428
+
8429
+ :param str model_id: (required)
8430
+ The `OCID`__ of the model.
8431
+
8432
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
8433
+
8434
+ :param oci.data_science.models.ImportModelArtifactDetails import_model_artifact_details: (required)
8435
+ Model artifact source details for importing.
8436
+
8437
+ :param str opc_request_id: (optional)
8438
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
8439
+
8440
+ :param str if_match: (optional)
8441
+ For optimistic concurrency control. In the PUT or DELETE call
8442
+ for a resource, set the `if-match` parameter to the value of the
8443
+ etag from a previous GET or POST response for that resource.
8444
+ The resource is updated or deleted only if the `etag` you
8445
+ provide matches the resource's current `etag` value.
8446
+
8447
+ :param obj retry_strategy: (optional)
8448
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
8449
+
8450
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
8451
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
8452
+
8453
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
8454
+
8455
+ :param bool allow_control_chars: (optional)
8456
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
8457
+ By default, the response will not allow control characters in strings
8458
+
8459
+ :return: A :class:`~oci.response.Response` object with data of type None
8460
+ :rtype: :class:`~oci.response.Response`
8461
+
8462
+ :example:
8463
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/import_model_artifact.py.html>`__ to see an example of how to use import_model_artifact API.
8464
+ """
8465
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8466
+ required_arguments = ['modelId']
8467
+ resource_path = "/models/{modelId}/actions/importArtifact"
8468
+ method = "POST"
8469
+ operation_name = "import_model_artifact"
8470
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/ImportModelArtifact"
8471
+
8472
+ # Don't accept unknown kwargs
8473
+ expected_kwargs = [
8474
+ "allow_control_chars",
8475
+ "retry_strategy",
8476
+ "opc_request_id",
8477
+ "if_match"
8478
+ ]
8479
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
8480
+ if extra_kwargs:
8481
+ raise ValueError(
8482
+ f"import_model_artifact got unknown kwargs: {extra_kwargs!r}")
8483
+
8484
+ path_params = {
8485
+ "modelId": model_id
8486
+ }
8487
+
8488
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
8489
+
8490
+ for (k, v) in six.iteritems(path_params):
8491
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
8492
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
8493
+
8494
+ header_params = {
8495
+ "accept": "application/json",
8496
+ "content-type": "application/json",
8497
+ "opc-request-id": kwargs.get("opc_request_id", missing),
8498
+ "if-match": kwargs.get("if_match", missing)
8499
+ }
8500
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
8501
+
8502
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
8503
+ operation_retry_strategy=kwargs.get('retry_strategy'),
8504
+ client_retry_strategy=self.retry_strategy
8505
+ )
8506
+
8507
+ if retry_strategy:
8508
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
8509
+ self.base_client.add_opc_client_retries_header(header_params)
8510
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
8511
+ return retry_strategy.make_retrying_call(
8512
+ self.base_client.call_api,
8513
+ resource_path=resource_path,
8514
+ method=method,
8515
+ path_params=path_params,
8516
+ header_params=header_params,
8517
+ body=import_model_artifact_details,
8518
+ allow_control_chars=kwargs.get('allow_control_chars'),
8519
+ operation_name=operation_name,
8520
+ api_reference_link=api_reference_link,
8521
+ required_arguments=required_arguments)
8522
+ else:
8523
+ return self.base_client.call_api(
8524
+ resource_path=resource_path,
8525
+ method=method,
8526
+ path_params=path_params,
8527
+ header_params=header_params,
8528
+ body=import_model_artifact_details,
8529
+ allow_control_chars=kwargs.get('allow_control_chars'),
8530
+ operation_name=operation_name,
8531
+ api_reference_link=api_reference_link,
8532
+ required_arguments=required_arguments)
8533
+
8534
+ def list_containers(self, **kwargs):
8535
+ """
8536
+ List containers.
8537
+
8538
+
8539
+ :param str opc_request_id: (optional)
8540
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
8541
+
8542
+ :param bool is_latest: (optional)
8543
+ if true, this returns latest version of container.
7574
8544
 
7575
8545
  :param str display_name: (optional)
7576
8546
  <b>Filter</b> results by its user-friendly name.
@@ -7631,7 +8601,7 @@ class DataScienceClient(object):
7631
8601
  :rtype: :class:`~oci.response.Response`
7632
8602
 
7633
8603
  :example:
7634
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_containers.py.html>`__ to see an example of how to use list_containers API.
8604
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_containers.py.html>`__ to see an example of how to use list_containers API.
7635
8605
  """
7636
8606
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7637
8607
  required_arguments = []
@@ -7810,7 +8780,7 @@ class DataScienceClient(object):
7810
8780
  :rtype: :class:`~oci.response.Response`
7811
8781
 
7812
8782
  :example:
7813
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_data_science_private_endpoints.py.html>`__ to see an example of how to use list_data_science_private_endpoints API.
8783
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_data_science_private_endpoints.py.html>`__ to see an example of how to use list_data_science_private_endpoints API.
7814
8784
  """
7815
8785
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7816
8786
  required_arguments = ['compartmentId']
@@ -7967,7 +8937,7 @@ class DataScienceClient(object):
7967
8937
  :rtype: :class:`~oci.response.Response`
7968
8938
 
7969
8939
  :example:
7970
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_fast_launch_job_configs.py.html>`__ to see an example of how to use list_fast_launch_job_configs API.
8940
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_fast_launch_job_configs.py.html>`__ to see an example of how to use list_fast_launch_job_configs API.
7971
8941
  """
7972
8942
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7973
8943
  required_arguments = ['compartmentId']
@@ -8121,7 +9091,7 @@ class DataScienceClient(object):
8121
9091
  :rtype: :class:`~oci.response.Response`
8122
9092
 
8123
9093
  :example:
8124
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_job_runs.py.html>`__ to see an example of how to use list_job_runs API.
9094
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_job_runs.py.html>`__ to see an example of how to use list_job_runs API.
8125
9095
  """
8126
9096
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8127
9097
  required_arguments = ['compartmentId']
@@ -8273,7 +9243,7 @@ class DataScienceClient(object):
8273
9243
  :rtype: :class:`~oci.response.Response`
8274
9244
 
8275
9245
  :example:
8276
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_job_shapes.py.html>`__ to see an example of how to use list_job_shapes API.
9246
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_job_shapes.py.html>`__ to see an example of how to use list_job_shapes API.
8277
9247
  """
8278
9248
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8279
9249
  required_arguments = ['compartmentId']
@@ -8427,7 +9397,7 @@ class DataScienceClient(object):
8427
9397
  :rtype: :class:`~oci.response.Response`
8428
9398
 
8429
9399
  :example:
8430
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_jobs.py.html>`__ to see an example of how to use list_jobs API.
9400
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_jobs.py.html>`__ to see an example of how to use list_jobs API.
8431
9401
  """
8432
9402
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8433
9403
  required_arguments = ['compartmentId']
@@ -8579,7 +9549,7 @@ class DataScienceClient(object):
8579
9549
  :rtype: :class:`~oci.response.Response`
8580
9550
 
8581
9551
  :example:
8582
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_model_deployment_shapes.py.html>`__ to see an example of how to use list_model_deployment_shapes API.
9552
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_model_deployment_shapes.py.html>`__ to see an example of how to use list_model_deployment_shapes API.
8583
9553
  """
8584
9554
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8585
9555
  required_arguments = ['compartmentId']
@@ -8733,7 +9703,7 @@ class DataScienceClient(object):
8733
9703
  :rtype: :class:`~oci.response.Response`
8734
9704
 
8735
9705
  :example:
8736
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_model_deployments.py.html>`__ to see an example of how to use list_model_deployments API.
9706
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_model_deployments.py.html>`__ to see an example of how to use list_model_deployments API.
8737
9707
  """
8738
9708
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8739
9709
  required_arguments = ['compartmentId']
@@ -8848,6 +9818,11 @@ class DataScienceClient(object):
8848
9818
 
8849
9819
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
8850
9820
 
9821
+ :param str category: (optional)
9822
+ Specifies the type of model version sets to list. By default, user model version sets are listed.
9823
+
9824
+ Allowed values are: "USER", "SERVICE"
9825
+
8851
9826
  :param str id: (optional)
8852
9827
  <b>Filter</b> results by `OCID`__. Must be an OCID of the correct type for the resource type.
8853
9828
 
@@ -8920,7 +9895,7 @@ class DataScienceClient(object):
8920
9895
  :rtype: :class:`~oci.response.Response`
8921
9896
 
8922
9897
  :example:
8923
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_model_version_sets.py.html>`__ to see an example of how to use list_model_version_sets API.
9898
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_model_version_sets.py.html>`__ to see an example of how to use list_model_version_sets API.
8924
9899
  """
8925
9900
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8926
9901
  required_arguments = ['compartmentId']
@@ -8933,6 +9908,7 @@ class DataScienceClient(object):
8933
9908
  expected_kwargs = [
8934
9909
  "allow_control_chars",
8935
9910
  "retry_strategy",
9911
+ "category",
8936
9912
  "id",
8937
9913
  "project_id",
8938
9914
  "name",
@@ -8949,6 +9925,13 @@ class DataScienceClient(object):
8949
9925
  raise ValueError(
8950
9926
  f"list_model_version_sets got unknown kwargs: {extra_kwargs!r}")
8951
9927
 
9928
+ if 'category' in kwargs:
9929
+ category_allowed_values = ["USER", "SERVICE"]
9930
+ if kwargs['category'] not in category_allowed_values:
9931
+ raise ValueError(
9932
+ f"Invalid value for `category`, must be one of { category_allowed_values }"
9933
+ )
9934
+
8952
9935
  if 'lifecycle_state' in kwargs:
8953
9936
  lifecycle_state_allowed_values = ["ACTIVE", "DELETING", "DELETED", "FAILED"]
8954
9937
  if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
@@ -8972,6 +9955,7 @@ class DataScienceClient(object):
8972
9955
 
8973
9956
  query_params = {
8974
9957
  "compartmentId": compartment_id,
9958
+ "category": kwargs.get("category", missing),
8975
9959
  "id": kwargs.get("id", missing),
8976
9960
  "projectId": kwargs.get("project_id", missing),
8977
9961
  "name": kwargs.get("name", missing),
@@ -9041,6 +10025,11 @@ class DataScienceClient(object):
9041
10025
  :param str version_label: (optional)
9042
10026
  <b>Filter</b> results by version label.
9043
10027
 
10028
+ :param str category: (optional)
10029
+ Specifies the type of models to list. By default, user models are listed.
10030
+
10031
+ Allowed values are: "USER", "SERVICE"
10032
+
9044
10033
  :param str id: (optional)
9045
10034
  <b>Filter</b> results by `OCID`__. Must be an OCID of the correct type for the resource type.
9046
10035
 
@@ -9114,7 +10103,7 @@ class DataScienceClient(object):
9114
10103
  :rtype: :class:`~oci.response.Response`
9115
10104
 
9116
10105
  :example:
9117
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_models.py.html>`__ to see an example of how to use list_models API.
10106
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_models.py.html>`__ to see an example of how to use list_models API.
9118
10107
  """
9119
10108
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9120
10109
  required_arguments = ['compartmentId']
@@ -9129,6 +10118,7 @@ class DataScienceClient(object):
9129
10118
  "retry_strategy",
9130
10119
  "model_version_set_name",
9131
10120
  "version_label",
10121
+ "category",
9132
10122
  "id",
9133
10123
  "project_id",
9134
10124
  "display_name",
@@ -9145,6 +10135,13 @@ class DataScienceClient(object):
9145
10135
  raise ValueError(
9146
10136
  f"list_models got unknown kwargs: {extra_kwargs!r}")
9147
10137
 
10138
+ if 'category' in kwargs:
10139
+ category_allowed_values = ["USER", "SERVICE"]
10140
+ if kwargs['category'] not in category_allowed_values:
10141
+ raise ValueError(
10142
+ f"Invalid value for `category`, must be one of { category_allowed_values }"
10143
+ )
10144
+
9148
10145
  if 'lifecycle_state' in kwargs:
9149
10146
  lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED", "INACTIVE"]
9150
10147
  if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
@@ -9170,6 +10167,7 @@ class DataScienceClient(object):
9170
10167
  "compartmentId": compartment_id,
9171
10168
  "modelVersionSetName": kwargs.get("model_version_set_name", missing),
9172
10169
  "versionLabel": kwargs.get("version_label", missing),
10170
+ "category": kwargs.get("category", missing),
9173
10171
  "id": kwargs.get("id", missing),
9174
10172
  "projectId": kwargs.get("project_id", missing),
9175
10173
  "displayName": kwargs.get("display_name", missing),
@@ -9270,7 +10268,7 @@ class DataScienceClient(object):
9270
10268
  :rtype: :class:`~oci.response.Response`
9271
10269
 
9272
10270
  :example:
9273
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_notebook_session_shapes.py.html>`__ to see an example of how to use list_notebook_session_shapes API.
10271
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_notebook_session_shapes.py.html>`__ to see an example of how to use list_notebook_session_shapes API.
9274
10272
  """
9275
10273
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9276
10274
  required_arguments = ['compartmentId']
@@ -9424,7 +10422,7 @@ class DataScienceClient(object):
9424
10422
  :rtype: :class:`~oci.response.Response`
9425
10423
 
9426
10424
  :example:
9427
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_notebook_sessions.py.html>`__ to see an example of how to use list_notebook_sessions API.
10425
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_notebook_sessions.py.html>`__ to see an example of how to use list_notebook_sessions API.
9428
10426
  """
9429
10427
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9430
10428
  required_arguments = ['compartmentId']
@@ -9612,7 +10610,7 @@ class DataScienceClient(object):
9612
10610
  :rtype: :class:`~oci.response.Response`
9613
10611
 
9614
10612
  :example:
9615
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_pipeline_runs.py.html>`__ to see an example of how to use list_pipeline_runs API.
10613
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_pipeline_runs.py.html>`__ to see an example of how to use list_pipeline_runs API.
9616
10614
  """
9617
10615
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9618
10616
  required_arguments = ['compartmentId']
@@ -9800,7 +10798,7 @@ class DataScienceClient(object):
9800
10798
  :rtype: :class:`~oci.response.Response`
9801
10799
 
9802
10800
  :example:
9803
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_pipelines.py.html>`__ to see an example of how to use list_pipelines API.
10801
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_pipelines.py.html>`__ to see an example of how to use list_pipelines API.
9804
10802
  """
9805
10803
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9806
10804
  required_arguments = ['compartmentId']
@@ -9984,7 +10982,7 @@ class DataScienceClient(object):
9984
10982
  :rtype: :class:`~oci.response.Response`
9985
10983
 
9986
10984
  :example:
9987
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_projects.py.html>`__ to see an example of how to use list_projects API.
10985
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_projects.py.html>`__ to see an example of how to use list_projects API.
9988
10986
  """
9989
10987
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9990
10988
  required_arguments = ['compartmentId']
@@ -10160,7 +11158,7 @@ class DataScienceClient(object):
10160
11158
  :rtype: :class:`~oci.response.Response`
10161
11159
 
10162
11160
  :example:
10163
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_schedules.py.html>`__ to see an example of how to use list_schedules API.
11161
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_schedules.py.html>`__ to see an example of how to use list_schedules API.
10164
11162
  """
10165
11163
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10166
11164
  required_arguments = ['compartmentId']
@@ -10310,7 +11308,7 @@ class DataScienceClient(object):
10310
11308
  :rtype: :class:`~oci.response.Response`
10311
11309
 
10312
11310
  :example:
10313
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
11311
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
10314
11312
  """
10315
11313
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10316
11314
  required_arguments = ['workRequestId']
@@ -10438,7 +11436,7 @@ class DataScienceClient(object):
10438
11436
  :rtype: :class:`~oci.response.Response`
10439
11437
 
10440
11438
  :example:
10441
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
11439
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
10442
11440
  """
10443
11441
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10444
11442
  required_arguments = ['workRequestId']
@@ -10537,7 +11535,7 @@ class DataScienceClient(object):
10537
11535
  :param str operation_type: (optional)
10538
11536
  <b>Filter</b> results by the type of the operation associated with the work request.
10539
11537
 
10540
- Allowed values are: "NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "RESTORE_ARCHIVED_MODEL"
11538
+ Allowed values are: "NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "REGISTER_MODEL_ARTIFACT", "RESTORE_ARCHIVED_MODEL"
10541
11539
 
10542
11540
  :param str status: (optional)
10543
11541
  <b>Filter</b> results by work request status.
@@ -10591,7 +11589,7 @@ class DataScienceClient(object):
10591
11589
  :rtype: :class:`~oci.response.Response`
10592
11590
 
10593
11591
  :example:
10594
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
11592
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
10595
11593
  """
10596
11594
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10597
11595
  required_arguments = ['compartmentId']
@@ -10619,7 +11617,7 @@ class DataScienceClient(object):
10619
11617
  f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
10620
11618
 
10621
11619
  if 'operation_type' in kwargs:
10622
- operation_type_allowed_values = ["NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "RESTORE_ARCHIVED_MODEL"]
11620
+ operation_type_allowed_values = ["NOTEBOOK_SESSION_CREATE", "NOTEBOOK_SESSION_DELETE", "NOTEBOOK_SESSION_ACTIVATE", "NOTEBOOK_SESSION_DEACTIVATE", "MODELVERSIONSET_DELETE", "EXPORT_MODEL_ARTIFACT", "IMPORT_MODEL_ARTIFACT", "MODEL_DEPLOYMENT_CREATE", "MODEL_DEPLOYMENT_DELETE", "MODEL_DEPLOYMENT_ACTIVATE", "MODEL_DEPLOYMENT_DEACTIVATE", "MODEL_DEPLOYMENT_UPDATE", "PROJECT_DELETE", "WORKREQUEST_CANCEL", "JOB_DELETE", "PIPELINE_CREATE", "PIPELINE_DELETE", "PIPELINE_RUN_CREATE", "PIPELINE_RUN_CANCEL", "PIPELINE_RUN_DELETE", "PRIVATE_ENDPOINT_CREATE", "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", "SCHEDULE_CREATE", "SCHEDULE_UPDATE", "SCHEDULE_DELETE", "SCHEDULE_MOVE", "SCHEDULE_ACTIVATE", "SCHEDULE_DEACTIVATE", "REGISTER_MODEL_ARTIFACT", "RESTORE_ARCHIVED_MODEL"]
10623
11621
  if kwargs['operation_type'] not in operation_type_allowed_values:
10624
11622
  raise ValueError(
10625
11623
  f"Invalid value for `operation_type`, must be one of { operation_type_allowed_values }"
@@ -10699,25 +11697,376 @@ class DataScienceClient(object):
10699
11697
  api_reference_link=api_reference_link,
10700
11698
  required_arguments=required_arguments)
10701
11699
 
10702
- def restore_archived_model_artifact(self, model_id, **kwargs):
11700
+ def register_model_artifact_reference(self, register_model_artifact_reference_details, model_id, **kwargs):
10703
11701
  """
10704
- Restore archived model artifact
11702
+ Registers model artifact reference metadata
10705
11703
 
10706
11704
 
11705
+ :param oci.data_science.models.RegisterModelArtifactReferenceDetails register_model_artifact_reference_details: (required)
11706
+ register model artifact reference metadata
11707
+
10707
11708
  :param str model_id: (required)
10708
11709
  The `OCID`__ of the model.
10709
11710
 
10710
11711
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
10711
11712
 
10712
- :param int restore_model_for_hours_specified: (optional)
10713
- Duration in hours for which the archived model is available for access.
11713
+ :param str opc_request_id: (optional)
11714
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
11715
+
11716
+ :param str opc_retry_token: (optional)
11717
+ A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
11718
+
11719
+ :param str if_match: (optional)
11720
+ For optimistic concurrency control. In the PUT or DELETE call
11721
+ for a resource, set the `if-match` parameter to the value of the
11722
+ etag from a previous GET or POST response for that resource.
11723
+ The resource is updated or deleted only if the `etag` you
11724
+ provide matches the resource's current `etag` value.
11725
+
11726
+ :param obj retry_strategy: (optional)
11727
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
11728
+
11729
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
11730
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
11731
+
11732
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
11733
+
11734
+ :param bool allow_control_chars: (optional)
11735
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
11736
+ By default, the response will not allow control characters in strings
11737
+
11738
+ :return: A :class:`~oci.response.Response` object with data of type None
11739
+ :rtype: :class:`~oci.response.Response`
11740
+
11741
+ :example:
11742
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/register_model_artifact_reference.py.html>`__ to see an example of how to use register_model_artifact_reference API.
11743
+ """
11744
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11745
+ required_arguments = ['modelId']
11746
+ resource_path = "/models/{modelId}/actions/registerArtifactReference"
11747
+ method = "POST"
11748
+ operation_name = "register_model_artifact_reference"
11749
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/RegisterModelArtifactReferenceDetails/RegisterModelArtifactReference"
11750
+
11751
+ # Don't accept unknown kwargs
11752
+ expected_kwargs = [
11753
+ "allow_control_chars",
11754
+ "retry_strategy",
11755
+ "opc_request_id",
11756
+ "opc_retry_token",
11757
+ "if_match"
11758
+ ]
11759
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
11760
+ if extra_kwargs:
11761
+ raise ValueError(
11762
+ f"register_model_artifact_reference got unknown kwargs: {extra_kwargs!r}")
11763
+
11764
+ path_params = {
11765
+ "modelId": model_id
11766
+ }
11767
+
11768
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
11769
+
11770
+ for (k, v) in six.iteritems(path_params):
11771
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
11772
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
11773
+
11774
+ header_params = {
11775
+ "accept": "application/json",
11776
+ "content-type": "application/json",
11777
+ "opc-request-id": kwargs.get("opc_request_id", missing),
11778
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
11779
+ "if-match": kwargs.get("if_match", missing)
11780
+ }
11781
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
11782
+
11783
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
11784
+ operation_retry_strategy=kwargs.get('retry_strategy'),
11785
+ client_retry_strategy=self.retry_strategy
11786
+ )
11787
+ if retry_strategy is None:
11788
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
11789
+
11790
+ if retry_strategy:
11791
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
11792
+ self.base_client.add_opc_retry_token_if_needed(header_params)
11793
+ self.base_client.add_opc_client_retries_header(header_params)
11794
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
11795
+ return retry_strategy.make_retrying_call(
11796
+ self.base_client.call_api,
11797
+ resource_path=resource_path,
11798
+ method=method,
11799
+ path_params=path_params,
11800
+ header_params=header_params,
11801
+ body=register_model_artifact_reference_details,
11802
+ allow_control_chars=kwargs.get('allow_control_chars'),
11803
+ operation_name=operation_name,
11804
+ api_reference_link=api_reference_link,
11805
+ required_arguments=required_arguments)
11806
+ else:
11807
+ return self.base_client.call_api(
11808
+ resource_path=resource_path,
11809
+ method=method,
11810
+ path_params=path_params,
11811
+ header_params=header_params,
11812
+ body=register_model_artifact_reference_details,
11813
+ allow_control_chars=kwargs.get('allow_control_chars'),
11814
+ operation_name=operation_name,
11815
+ api_reference_link=api_reference_link,
11816
+ required_arguments=required_arguments)
11817
+
11818
+ def restore_archived_model_artifact(self, model_id, **kwargs):
11819
+ """
11820
+ Restore archived model artifact
11821
+
11822
+
11823
+ :param str model_id: (required)
11824
+ The `OCID`__ of the model.
11825
+
11826
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
11827
+
11828
+ :param int restore_model_for_hours_specified: (optional)
11829
+ Duration in hours for which the archived model is available for access.
11830
+
11831
+ :param str opc_request_id: (optional)
11832
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
11833
+
11834
+ :param str opc_retry_token: (optional)
11835
+ A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
11836
+
11837
+ :param str if_match: (optional)
11838
+ For optimistic concurrency control. In the PUT or DELETE call
11839
+ for a resource, set the `if-match` parameter to the value of the
11840
+ etag from a previous GET or POST response for that resource.
11841
+ The resource is updated or deleted only if the `etag` you
11842
+ provide matches the resource's current `etag` value.
11843
+
11844
+ :param obj retry_strategy: (optional)
11845
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
11846
+
11847
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
11848
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
11849
+
11850
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
11851
+
11852
+ :param bool allow_control_chars: (optional)
11853
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
11854
+ By default, the response will not allow control characters in strings
11855
+
11856
+ :return: A :class:`~oci.response.Response` object with data of type None
11857
+ :rtype: :class:`~oci.response.Response`
11858
+
11859
+ :example:
11860
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/restore_archived_model_artifact.py.html>`__ to see an example of how to use restore_archived_model_artifact API.
11861
+ """
11862
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11863
+ required_arguments = ['modelId']
11864
+ resource_path = "/models/{modelId}/actions/restore"
11865
+ method = "POST"
11866
+ operation_name = "restore_archived_model_artifact"
11867
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/RestoreArchivedModelArtifact"
11868
+
11869
+ # Don't accept unknown kwargs
11870
+ expected_kwargs = [
11871
+ "allow_control_chars",
11872
+ "retry_strategy",
11873
+ "restore_model_for_hours_specified",
11874
+ "opc_request_id",
11875
+ "opc_retry_token",
11876
+ "if_match"
11877
+ ]
11878
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
11879
+ if extra_kwargs:
11880
+ raise ValueError(
11881
+ f"restore_archived_model_artifact got unknown kwargs: {extra_kwargs!r}")
11882
+
11883
+ path_params = {
11884
+ "modelId": model_id
11885
+ }
11886
+
11887
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
11888
+
11889
+ for (k, v) in six.iteritems(path_params):
11890
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
11891
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
11892
+
11893
+ query_params = {
11894
+ "restoreModelForHoursSpecified": kwargs.get("restore_model_for_hours_specified", missing)
11895
+ }
11896
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
11897
+
11898
+ header_params = {
11899
+ "accept": "application/json",
11900
+ "content-type": "application/json",
11901
+ "opc-request-id": kwargs.get("opc_request_id", missing),
11902
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
11903
+ "if-match": kwargs.get("if_match", missing)
11904
+ }
11905
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
11906
+
11907
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
11908
+ operation_retry_strategy=kwargs.get('retry_strategy'),
11909
+ client_retry_strategy=self.retry_strategy
11910
+ )
11911
+ if retry_strategy is None:
11912
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
11913
+
11914
+ if retry_strategy:
11915
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
11916
+ self.base_client.add_opc_retry_token_if_needed(header_params)
11917
+ self.base_client.add_opc_client_retries_header(header_params)
11918
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
11919
+ return retry_strategy.make_retrying_call(
11920
+ self.base_client.call_api,
11921
+ resource_path=resource_path,
11922
+ method=method,
11923
+ path_params=path_params,
11924
+ query_params=query_params,
11925
+ header_params=header_params,
11926
+ allow_control_chars=kwargs.get('allow_control_chars'),
11927
+ operation_name=operation_name,
11928
+ api_reference_link=api_reference_link,
11929
+ required_arguments=required_arguments)
11930
+ else:
11931
+ return self.base_client.call_api(
11932
+ resource_path=resource_path,
11933
+ method=method,
11934
+ path_params=path_params,
11935
+ query_params=query_params,
11936
+ header_params=header_params,
11937
+ allow_control_chars=kwargs.get('allow_control_chars'),
11938
+ operation_name=operation_name,
11939
+ api_reference_link=api_reference_link,
11940
+ required_arguments=required_arguments)
11941
+
11942
+ def update_data_science_private_endpoint(self, data_science_private_endpoint_id, update_data_science_private_endpoint_details, **kwargs):
11943
+ """
11944
+ Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match
11945
+ a previously defined private endpoint, then a 409 status code is returned. This indicates
11946
+ that a conflict has been detected.
11947
+
11948
+
11949
+ :param str data_science_private_endpoint_id: (required)
11950
+ The unique ID for a Data Science private endpoint.
11951
+
11952
+ :param oci.data_science.models.UpdateDataSciencePrivateEndpointDetails update_data_science_private_endpoint_details: (required)
11953
+ Details for updating a private endpoint.
11954
+
11955
+ :param str opc_request_id: (optional)
11956
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
11957
+
11958
+ :param str if_match: (optional)
11959
+ For optimistic concurrency control. In the PUT or DELETE call
11960
+ for a resource, set the `if-match` parameter to the value of the
11961
+ etag from a previous GET or POST response for that resource.
11962
+ The resource is updated or deleted only if the `etag` you
11963
+ provide matches the resource's current `etag` value.
11964
+
11965
+ :param obj retry_strategy: (optional)
11966
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
11967
+
11968
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
11969
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
11970
+
11971
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
11972
+
11973
+ :param bool allow_control_chars: (optional)
11974
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
11975
+ By default, the response will not allow control characters in strings
11976
+
11977
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.DataSciencePrivateEndpoint`
11978
+ :rtype: :class:`~oci.response.Response`
11979
+
11980
+ :example:
11981
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_data_science_private_endpoint.py.html>`__ to see an example of how to use update_data_science_private_endpoint API.
11982
+ """
11983
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11984
+ required_arguments = ['dataSciencePrivateEndpointId']
11985
+ resource_path = "/dataSciencePrivateEndpoints/{dataSciencePrivateEndpointId}"
11986
+ method = "PUT"
11987
+ operation_name = "update_data_science_private_endpoint"
11988
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/DataSciencePrivateEndpoint/UpdateDataSciencePrivateEndpoint"
11989
+
11990
+ # Don't accept unknown kwargs
11991
+ expected_kwargs = [
11992
+ "allow_control_chars",
11993
+ "retry_strategy",
11994
+ "opc_request_id",
11995
+ "if_match"
11996
+ ]
11997
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
11998
+ if extra_kwargs:
11999
+ raise ValueError(
12000
+ f"update_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}")
12001
+
12002
+ path_params = {
12003
+ "dataSciencePrivateEndpointId": data_science_private_endpoint_id
12004
+ }
12005
+
12006
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
12007
+
12008
+ for (k, v) in six.iteritems(path_params):
12009
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
12010
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
12011
+
12012
+ header_params = {
12013
+ "accept": "application/json",
12014
+ "content-type": "application/json",
12015
+ "opc-request-id": kwargs.get("opc_request_id", missing),
12016
+ "if-match": kwargs.get("if_match", missing)
12017
+ }
12018
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
12019
+
12020
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
12021
+ operation_retry_strategy=kwargs.get('retry_strategy'),
12022
+ client_retry_strategy=self.retry_strategy
12023
+ )
12024
+
12025
+ if retry_strategy:
12026
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
12027
+ self.base_client.add_opc_client_retries_header(header_params)
12028
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
12029
+ return retry_strategy.make_retrying_call(
12030
+ self.base_client.call_api,
12031
+ resource_path=resource_path,
12032
+ method=method,
12033
+ path_params=path_params,
12034
+ header_params=header_params,
12035
+ body=update_data_science_private_endpoint_details,
12036
+ response_type="DataSciencePrivateEndpoint",
12037
+ allow_control_chars=kwargs.get('allow_control_chars'),
12038
+ operation_name=operation_name,
12039
+ api_reference_link=api_reference_link,
12040
+ required_arguments=required_arguments)
12041
+ else:
12042
+ return self.base_client.call_api(
12043
+ resource_path=resource_path,
12044
+ method=method,
12045
+ path_params=path_params,
12046
+ header_params=header_params,
12047
+ body=update_data_science_private_endpoint_details,
12048
+ response_type="DataSciencePrivateEndpoint",
12049
+ allow_control_chars=kwargs.get('allow_control_chars'),
12050
+ operation_name=operation_name,
12051
+ api_reference_link=api_reference_link,
12052
+ required_arguments=required_arguments)
12053
+
12054
+ def update_job(self, job_id, update_job_details, **kwargs):
12055
+ """
12056
+ Updates a job.
12057
+
12058
+
12059
+ :param str job_id: (required)
12060
+ The `OCID`__ of the job.
12061
+
12062
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
12063
+
12064
+ :param oci.data_science.models.UpdateJobDetails update_job_details: (required)
12065
+ Details for updating a job.
10714
12066
 
10715
12067
  :param str opc_request_id: (optional)
10716
12068
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
10717
12069
 
10718
- :param str opc_retry_token: (optional)
10719
- A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
10720
-
10721
12070
  :param str if_match: (optional)
10722
12071
  For optimistic concurrency control. In the PUT or DELETE call
10723
12072
  for a resource, set the `if-match` parameter to the value of the
@@ -10737,35 +12086,33 @@ class DataScienceClient(object):
10737
12086
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
10738
12087
  By default, the response will not allow control characters in strings
10739
12088
 
10740
- :return: A :class:`~oci.response.Response` object with data of type None
12089
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Job`
10741
12090
  :rtype: :class:`~oci.response.Response`
10742
12091
 
10743
12092
  :example:
10744
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/restore_archived_model_artifact.py.html>`__ to see an example of how to use restore_archived_model_artifact API.
12093
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_job.py.html>`__ to see an example of how to use update_job API.
10745
12094
  """
10746
12095
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10747
- required_arguments = ['modelId']
10748
- resource_path = "/models/{modelId}/actions/restore"
10749
- method = "POST"
10750
- operation_name = "restore_archived_model_artifact"
10751
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/RestoreArchivedModelArtifact"
12096
+ required_arguments = ['jobId']
12097
+ resource_path = "/jobs/{jobId}"
12098
+ method = "PUT"
12099
+ operation_name = "update_job"
12100
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Job/UpdateJob"
10752
12101
 
10753
12102
  # Don't accept unknown kwargs
10754
12103
  expected_kwargs = [
10755
12104
  "allow_control_chars",
10756
12105
  "retry_strategy",
10757
- "restore_model_for_hours_specified",
10758
12106
  "opc_request_id",
10759
- "opc_retry_token",
10760
12107
  "if_match"
10761
12108
  ]
10762
12109
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
10763
12110
  if extra_kwargs:
10764
12111
  raise ValueError(
10765
- f"restore_archived_model_artifact got unknown kwargs: {extra_kwargs!r}")
12112
+ f"update_job got unknown kwargs: {extra_kwargs!r}")
10766
12113
 
10767
12114
  path_params = {
10768
- "modelId": model_id
12115
+ "jobId": job_id
10769
12116
  }
10770
12117
 
10771
12118
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10774,16 +12121,10 @@ class DataScienceClient(object):
10774
12121
  if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
10775
12122
  raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
10776
12123
 
10777
- query_params = {
10778
- "restoreModelForHoursSpecified": kwargs.get("restore_model_for_hours_specified", missing)
10779
- }
10780
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
10781
-
10782
12124
  header_params = {
10783
12125
  "accept": "application/json",
10784
12126
  "content-type": "application/json",
10785
12127
  "opc-request-id": kwargs.get("opc_request_id", missing),
10786
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
10787
12128
  "if-match": kwargs.get("if_match", missing)
10788
12129
  }
10789
12130
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -10797,7 +12138,6 @@ class DataScienceClient(object):
10797
12138
 
10798
12139
  if retry_strategy:
10799
12140
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
10800
- self.base_client.add_opc_retry_token_if_needed(header_params)
10801
12141
  self.base_client.add_opc_client_retries_header(header_params)
10802
12142
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
10803
12143
  return retry_strategy.make_retrying_call(
@@ -10805,8 +12145,9 @@ class DataScienceClient(object):
10805
12145
  resource_path=resource_path,
10806
12146
  method=method,
10807
12147
  path_params=path_params,
10808
- query_params=query_params,
10809
12148
  header_params=header_params,
12149
+ body=update_job_details,
12150
+ response_type="Job",
10810
12151
  allow_control_chars=kwargs.get('allow_control_chars'),
10811
12152
  operation_name=operation_name,
10812
12153
  api_reference_link=api_reference_link,
@@ -10816,25 +12157,26 @@ class DataScienceClient(object):
10816
12157
  resource_path=resource_path,
10817
12158
  method=method,
10818
12159
  path_params=path_params,
10819
- query_params=query_params,
10820
12160
  header_params=header_params,
12161
+ body=update_job_details,
12162
+ response_type="Job",
10821
12163
  allow_control_chars=kwargs.get('allow_control_chars'),
10822
12164
  operation_name=operation_name,
10823
12165
  api_reference_link=api_reference_link,
10824
12166
  required_arguments=required_arguments)
10825
12167
 
10826
- def update_data_science_private_endpoint(self, data_science_private_endpoint_id, update_data_science_private_endpoint_details, **kwargs):
12168
+ def update_job_run(self, job_run_id, update_job_run_details, **kwargs):
10827
12169
  """
10828
- Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match
10829
- a previously defined private endpoint, then a 409 status code is returned. This indicates
10830
- that a conflict has been detected.
12170
+ Updates a job run.
10831
12171
 
10832
12172
 
10833
- :param str data_science_private_endpoint_id: (required)
10834
- The unique ID for a Data Science private endpoint.
12173
+ :param str job_run_id: (required)
12174
+ The `OCID`__ of the job run.
10835
12175
 
10836
- :param oci.data_science.models.UpdateDataSciencePrivateEndpointDetails update_data_science_private_endpoint_details: (required)
10837
- Details for updating a private endpoint.
12176
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
12177
+
12178
+ :param oci.data_science.models.UpdateJobRunDetails update_job_run_details: (required)
12179
+ Details for updating a job.
10838
12180
 
10839
12181
  :param str opc_request_id: (optional)
10840
12182
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
@@ -10849,7 +12191,7 @@ class DataScienceClient(object):
10849
12191
  :param obj retry_strategy: (optional)
10850
12192
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
10851
12193
 
10852
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
12194
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
10853
12195
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
10854
12196
 
10855
12197
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -10858,18 +12200,18 @@ class DataScienceClient(object):
10858
12200
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
10859
12201
  By default, the response will not allow control characters in strings
10860
12202
 
10861
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.DataSciencePrivateEndpoint`
12203
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.JobRun`
10862
12204
  :rtype: :class:`~oci.response.Response`
10863
12205
 
10864
12206
  :example:
10865
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_data_science_private_endpoint.py.html>`__ to see an example of how to use update_data_science_private_endpoint API.
12207
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_job_run.py.html>`__ to see an example of how to use update_job_run API.
10866
12208
  """
10867
12209
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10868
- required_arguments = ['dataSciencePrivateEndpointId']
10869
- resource_path = "/dataSciencePrivateEndpoints/{dataSciencePrivateEndpointId}"
12210
+ required_arguments = ['jobRunId']
12211
+ resource_path = "/jobRuns/{jobRunId}"
10870
12212
  method = "PUT"
10871
- operation_name = "update_data_science_private_endpoint"
10872
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/DataSciencePrivateEndpoint/UpdateDataSciencePrivateEndpoint"
12213
+ operation_name = "update_job_run"
12214
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/JobRun/UpdateJobRun"
10873
12215
 
10874
12216
  # Don't accept unknown kwargs
10875
12217
  expected_kwargs = [
@@ -10881,10 +12223,10 @@ class DataScienceClient(object):
10881
12223
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
10882
12224
  if extra_kwargs:
10883
12225
  raise ValueError(
10884
- f"update_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}")
12226
+ f"update_job_run got unknown kwargs: {extra_kwargs!r}")
10885
12227
 
10886
12228
  path_params = {
10887
- "dataSciencePrivateEndpointId": data_science_private_endpoint_id
12229
+ "jobRunId": job_run_id
10888
12230
  }
10889
12231
 
10890
12232
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10905,6 +12247,8 @@ class DataScienceClient(object):
10905
12247
  operation_retry_strategy=kwargs.get('retry_strategy'),
10906
12248
  client_retry_strategy=self.retry_strategy
10907
12249
  )
12250
+ if retry_strategy is None:
12251
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
10908
12252
 
10909
12253
  if retry_strategy:
10910
12254
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
@@ -10916,8 +12260,8 @@ class DataScienceClient(object):
10916
12260
  method=method,
10917
12261
  path_params=path_params,
10918
12262
  header_params=header_params,
10919
- body=update_data_science_private_endpoint_details,
10920
- response_type="DataSciencePrivateEndpoint",
12263
+ body=update_job_run_details,
12264
+ response_type="JobRun",
10921
12265
  allow_control_chars=kwargs.get('allow_control_chars'),
10922
12266
  operation_name=operation_name,
10923
12267
  api_reference_link=api_reference_link,
@@ -10928,28 +12272,25 @@ class DataScienceClient(object):
10928
12272
  method=method,
10929
12273
  path_params=path_params,
10930
12274
  header_params=header_params,
10931
- body=update_data_science_private_endpoint_details,
10932
- response_type="DataSciencePrivateEndpoint",
12275
+ body=update_job_run_details,
12276
+ response_type="JobRun",
10933
12277
  allow_control_chars=kwargs.get('allow_control_chars'),
10934
12278
  operation_name=operation_name,
10935
12279
  api_reference_link=api_reference_link,
10936
12280
  required_arguments=required_arguments)
10937
12281
 
10938
- def update_job(self, job_id, update_job_details, **kwargs):
12282
+ def update_model(self, model_id, update_model_details, **kwargs):
10939
12283
  """
10940
- Updates a job.
12284
+ Updates the properties of a model. You can update the `displayName`, `description`, `freeformTags`, and `definedTags` properties.
10941
12285
 
10942
12286
 
10943
- :param str job_id: (required)
10944
- The `OCID`__ of the job.
12287
+ :param str model_id: (required)
12288
+ The `OCID`__ of the model.
10945
12289
 
10946
12290
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
10947
12291
 
10948
- :param oci.data_science.models.UpdateJobDetails update_job_details: (required)
10949
- Details for updating a job.
10950
-
10951
- :param str opc_request_id: (optional)
10952
- Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
12292
+ :param oci.data_science.models.UpdateModelDetails update_model_details: (required)
12293
+ Details for updating a model. You can update the `displayName`, `description`, `freeformTags`, and `definedTags` properties.
10953
12294
 
10954
12295
  :param str if_match: (optional)
10955
12296
  For optimistic concurrency control. In the PUT or DELETE call
@@ -10958,6 +12299,9 @@ class DataScienceClient(object):
10958
12299
  The resource is updated or deleted only if the `etag` you
10959
12300
  provide matches the resource's current `etag` value.
10960
12301
 
12302
+ :param str opc_request_id: (optional)
12303
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
12304
+
10961
12305
  :param obj retry_strategy: (optional)
10962
12306
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
10963
12307
 
@@ -10970,33 +12314,33 @@ class DataScienceClient(object):
10970
12314
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
10971
12315
  By default, the response will not allow control characters in strings
10972
12316
 
10973
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Job`
12317
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Model`
10974
12318
  :rtype: :class:`~oci.response.Response`
10975
12319
 
10976
12320
  :example:
10977
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_job.py.html>`__ to see an example of how to use update_job API.
12321
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model.py.html>`__ to see an example of how to use update_model API.
10978
12322
  """
10979
12323
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10980
- required_arguments = ['jobId']
10981
- resource_path = "/jobs/{jobId}"
12324
+ required_arguments = ['modelId']
12325
+ resource_path = "/models/{modelId}"
10982
12326
  method = "PUT"
10983
- operation_name = "update_job"
10984
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Job/UpdateJob"
12327
+ operation_name = "update_model"
12328
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModel"
10985
12329
 
10986
12330
  # Don't accept unknown kwargs
10987
12331
  expected_kwargs = [
10988
12332
  "allow_control_chars",
10989
12333
  "retry_strategy",
10990
- "opc_request_id",
10991
- "if_match"
12334
+ "if_match",
12335
+ "opc_request_id"
10992
12336
  ]
10993
12337
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
10994
12338
  if extra_kwargs:
10995
12339
  raise ValueError(
10996
- f"update_job got unknown kwargs: {extra_kwargs!r}")
12340
+ f"update_model got unknown kwargs: {extra_kwargs!r}")
10997
12341
 
10998
12342
  path_params = {
10999
- "jobId": job_id
12343
+ "modelId": model_id
11000
12344
  }
11001
12345
 
11002
12346
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11008,8 +12352,8 @@ class DataScienceClient(object):
11008
12352
  header_params = {
11009
12353
  "accept": "application/json",
11010
12354
  "content-type": "application/json",
11011
- "opc-request-id": kwargs.get("opc_request_id", missing),
11012
- "if-match": kwargs.get("if_match", missing)
12355
+ "if-match": kwargs.get("if_match", missing),
12356
+ "opc-request-id": kwargs.get("opc_request_id", missing)
11013
12357
  }
11014
12358
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
11015
12359
 
@@ -11030,8 +12374,8 @@ class DataScienceClient(object):
11030
12374
  method=method,
11031
12375
  path_params=path_params,
11032
12376
  header_params=header_params,
11033
- body=update_job_details,
11034
- response_type="Job",
12377
+ body=update_model_details,
12378
+ response_type="Model",
11035
12379
  allow_control_chars=kwargs.get('allow_control_chars'),
11036
12380
  operation_name=operation_name,
11037
12381
  api_reference_link=api_reference_link,
@@ -11042,29 +12386,44 @@ class DataScienceClient(object):
11042
12386
  method=method,
11043
12387
  path_params=path_params,
11044
12388
  header_params=header_params,
11045
- body=update_job_details,
11046
- response_type="Job",
12389
+ body=update_model_details,
12390
+ response_type="Model",
11047
12391
  allow_control_chars=kwargs.get('allow_control_chars'),
11048
12392
  operation_name=operation_name,
11049
12393
  api_reference_link=api_reference_link,
11050
12394
  required_arguments=required_arguments)
11051
12395
 
11052
- def update_job_run(self, job_run_id, update_job_run_details, **kwargs):
12396
+ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, model_custom_metadatum_artifact, **kwargs):
11053
12397
  """
11054
- Updates a job run.
12398
+ Updates model custom metadata artifact for specified model metadata key.
11055
12399
 
11056
12400
 
11057
- :param str job_run_id: (required)
11058
- The `OCID`__ of the job run.
12401
+ :param str model_id: (required)
12402
+ The `OCID`__ of the model.
11059
12403
 
11060
12404
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
11061
12405
 
11062
- :param oci.data_science.models.UpdateJobRunDetails update_job_run_details: (required)
11063
- Details for updating a job.
12406
+ :param str metadatum_key_name: (required)
12407
+ The name of the model metadatum in the metadata.
12408
+
12409
+ :param stream model_custom_metadatum_artifact: (required)
12410
+ The model custom metadata artifact to upload.
12411
+
12412
+ :param int content_length: (optional)
12413
+ The content length of the body.
11064
12414
 
11065
12415
  :param str opc_request_id: (optional)
11066
12416
  Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
11067
12417
 
12418
+ :param str content_disposition: (optional)
12419
+ This header allows you to specify a filename during upload. This file name is used to dispose of the file contents
12420
+ while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
12421
+ name when downloading.
12422
+ Example: `{\"Content-Disposition\": \"attachment\"
12423
+ \"filename\"=\"model.tar.gz\"
12424
+ \"Content-Length\": \"2347\"
12425
+ \"Content-Type\": \"application/gzip\"}`
12426
+
11068
12427
  :param str if_match: (optional)
11069
12428
  For optimistic concurrency control. In the PUT or DELETE call
11070
12429
  for a resource, set the `if-match` parameter to the value of the
@@ -11083,34 +12442,45 @@ class DataScienceClient(object):
11083
12442
  :param bool allow_control_chars: (optional)
11084
12443
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
11085
12444
  By default, the response will not allow control characters in strings
12445
+ :param int buffer_limit: (optional)
12446
+ A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
12447
+ If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
11086
12448
 
11087
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.JobRun`
12449
+ The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
12450
+ If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
12451
+ Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
12452
+
12453
+ :return: A :class:`~oci.response.Response` object with data of type None
11088
12454
  :rtype: :class:`~oci.response.Response`
11089
12455
 
11090
12456
  :example:
11091
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_job_run.py.html>`__ to see an example of how to use update_job_run API.
12457
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model_custom_metadatum_artifact.py.html>`__ to see an example of how to use update_model_custom_metadatum_artifact API.
11092
12458
  """
11093
12459
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11094
- required_arguments = ['jobRunId']
11095
- resource_path = "/jobRuns/{jobRunId}"
12460
+ required_arguments = ['modelId', 'metadatumKeyName']
12461
+ resource_path = "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact"
11096
12462
  method = "PUT"
11097
- operation_name = "update_job_run"
11098
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/JobRun/UpdateJobRun"
12463
+ operation_name = "update_model_custom_metadatum_artifact"
12464
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModelCustomMetadatumArtifact"
11099
12465
 
11100
12466
  # Don't accept unknown kwargs
11101
12467
  expected_kwargs = [
11102
12468
  "allow_control_chars",
11103
12469
  "retry_strategy",
12470
+ "buffer_limit",
12471
+ "content_length",
11104
12472
  "opc_request_id",
12473
+ "content_disposition",
11105
12474
  "if_match"
11106
12475
  ]
11107
12476
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
11108
12477
  if extra_kwargs:
11109
12478
  raise ValueError(
11110
- f"update_job_run got unknown kwargs: {extra_kwargs!r}")
12479
+ f"update_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
11111
12480
 
11112
12481
  path_params = {
11113
- "jobRunId": job_run_id
12482
+ "modelId": model_id,
12483
+ "metadatumKeyName": metadatum_key_name
11114
12484
  }
11115
12485
 
11116
12486
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11121,12 +12491,34 @@ class DataScienceClient(object):
11121
12491
 
11122
12492
  header_params = {
11123
12493
  "accept": "application/json",
11124
- "content-type": "application/json",
11125
12494
  "opc-request-id": kwargs.get("opc_request_id", missing),
12495
+ "content-length": kwargs.get("content_length", missing),
12496
+ "content-disposition": kwargs.get("content_disposition", missing),
11126
12497
  "if-match": kwargs.get("if_match", missing)
11127
12498
  }
11128
12499
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
11129
12500
 
12501
+ # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed.
12502
+ try:
12503
+ model_custom_metadatum_artifact
12504
+ except NameError:
12505
+ model_custom_metadatum_artifact = kwargs.get("model_custom_metadatum_artifact", missing)
12506
+
12507
+ if model_custom_metadatum_artifact is not missing and model_custom_metadatum_artifact is not None:
12508
+ if (not isinstance(model_custom_metadatum_artifact, (six.binary_type, six.string_types)) and
12509
+ not hasattr(model_custom_metadatum_artifact, "read")):
12510
+ raise TypeError('The body must be a string, bytes, or provide a read() method.')
12511
+
12512
+ if hasattr(model_custom_metadatum_artifact, 'fileno') and hasattr(model_custom_metadatum_artifact, 'name') and model_custom_metadatum_artifact.name != '<stdin>':
12513
+ if requests.utils.super_len(model_custom_metadatum_artifact) == 0:
12514
+ header_params['Content-Length'] = '0'
12515
+
12516
+ # If content length is not given and stream object have no 'fileno' and is not a string or bytes, try to calculate content length
12517
+ elif 'Content-Length' not in header_params and not is_content_length_calculable_by_req_util(model_custom_metadatum_artifact):
12518
+ calculated_obj = back_up_body_calculate_stream_content_length(model_custom_metadatum_artifact, kwargs.get("buffer_limit"))
12519
+ header_params['Content-Length'] = calculated_obj["content_length"]
12520
+ model_custom_metadatum_artifact = calculated_obj["byte_content"]
12521
+
11130
12522
  retry_strategy = self.base_client.get_preferred_retry_strategy(
11131
12523
  operation_retry_strategy=kwargs.get('retry_strategy'),
11132
12524
  client_retry_strategy=self.retry_strategy
@@ -11144,8 +12536,8 @@ class DataScienceClient(object):
11144
12536
  method=method,
11145
12537
  path_params=path_params,
11146
12538
  header_params=header_params,
11147
- body=update_job_run_details,
11148
- response_type="JobRun",
12539
+ body=model_custom_metadatum_artifact,
12540
+ enforce_content_headers=False,
11149
12541
  allow_control_chars=kwargs.get('allow_control_chars'),
11150
12542
  operation_name=operation_name,
11151
12543
  api_reference_link=api_reference_link,
@@ -11156,16 +12548,16 @@ class DataScienceClient(object):
11156
12548
  method=method,
11157
12549
  path_params=path_params,
11158
12550
  header_params=header_params,
11159
- body=update_job_run_details,
11160
- response_type="JobRun",
12551
+ body=model_custom_metadatum_artifact,
12552
+ enforce_content_headers=False,
11161
12553
  allow_control_chars=kwargs.get('allow_control_chars'),
11162
12554
  operation_name=operation_name,
11163
12555
  api_reference_link=api_reference_link,
11164
12556
  required_arguments=required_arguments)
11165
12557
 
11166
- def update_model(self, model_id, update_model_details, **kwargs):
12558
+ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, model_defined_metadatum_artifact, **kwargs):
11167
12559
  """
11168
- Updates the properties of a model. You can update the `displayName`, `description`, `freeformTags`, and `definedTags` properties.
12560
+ Updates model defined metadata artifact for specified model metadata key.
11169
12561
 
11170
12562
 
11171
12563
  :param str model_id: (required)
@@ -11173,8 +12565,26 @@ class DataScienceClient(object):
11173
12565
 
11174
12566
  __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
11175
12567
 
11176
- :param oci.data_science.models.UpdateModelDetails update_model_details: (required)
11177
- Details for updating a model. You can update the `displayName`, `description`, `freeformTags`, and `definedTags` properties.
12568
+ :param str metadatum_key_name: (required)
12569
+ The name of the model metadatum in the metadata.
12570
+
12571
+ :param stream model_defined_metadatum_artifact: (required)
12572
+ The model defined metadata artifact to upload.
12573
+
12574
+ :param int content_length: (optional)
12575
+ The content length of the body.
12576
+
12577
+ :param str opc_request_id: (optional)
12578
+ Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
12579
+
12580
+ :param str content_disposition: (optional)
12581
+ This header allows you to specify a filename during upload. This file name is used to dispose of the file contents
12582
+ while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file
12583
+ name when downloading.
12584
+ Example: `{\"Content-Disposition\": \"attachment\"
12585
+ \"filename\"=\"model.tar.gz\"
12586
+ \"Content-Length\": \"2347\"
12587
+ \"Content-Type\": \"application/gzip\"}`
11178
12588
 
11179
12589
  :param str if_match: (optional)
11180
12590
  For optimistic concurrency control. In the PUT or DELETE call
@@ -11183,9 +12593,6 @@ class DataScienceClient(object):
11183
12593
  The resource is updated or deleted only if the `etag` you
11184
12594
  provide matches the resource's current `etag` value.
11185
12595
 
11186
- :param str opc_request_id: (optional)
11187
- Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.
11188
-
11189
12596
  :param obj retry_strategy: (optional)
11190
12597
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
11191
12598
 
@@ -11197,34 +12604,45 @@ class DataScienceClient(object):
11197
12604
  :param bool allow_control_chars: (optional)
11198
12605
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
11199
12606
  By default, the response will not allow control characters in strings
12607
+ :param int buffer_limit: (optional)
12608
+ A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
12609
+ If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.
11200
12610
 
11201
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_science.models.Model`
12611
+ The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
12612
+ If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
12613
+ Large streams can cause the process to freeze, consider passing in content-length for large streams instead.
12614
+
12615
+ :return: A :class:`~oci.response.Response` object with data of type None
11202
12616
  :rtype: :class:`~oci.response.Response`
11203
12617
 
11204
12618
  :example:
11205
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_model.py.html>`__ to see an example of how to use update_model API.
12619
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model_defined_metadatum_artifact.py.html>`__ to see an example of how to use update_model_defined_metadatum_artifact API.
11206
12620
  """
11207
12621
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11208
- required_arguments = ['modelId']
11209
- resource_path = "/models/{modelId}"
12622
+ required_arguments = ['modelId', 'metadatumKeyName']
12623
+ resource_path = "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact"
11210
12624
  method = "PUT"
11211
- operation_name = "update_model"
11212
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModel"
12625
+ operation_name = "update_model_defined_metadatum_artifact"
12626
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModelDefinedMetadatumArtifact"
11213
12627
 
11214
12628
  # Don't accept unknown kwargs
11215
12629
  expected_kwargs = [
11216
12630
  "allow_control_chars",
11217
12631
  "retry_strategy",
11218
- "if_match",
11219
- "opc_request_id"
12632
+ "buffer_limit",
12633
+ "content_length",
12634
+ "opc_request_id",
12635
+ "content_disposition",
12636
+ "if_match"
11220
12637
  ]
11221
12638
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
11222
12639
  if extra_kwargs:
11223
12640
  raise ValueError(
11224
- f"update_model got unknown kwargs: {extra_kwargs!r}")
12641
+ f"update_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}")
11225
12642
 
11226
12643
  path_params = {
11227
- "modelId": model_id
12644
+ "modelId": model_id,
12645
+ "metadatumKeyName": metadatum_key_name
11228
12646
  }
11229
12647
 
11230
12648
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11235,12 +12653,34 @@ class DataScienceClient(object):
11235
12653
 
11236
12654
  header_params = {
11237
12655
  "accept": "application/json",
11238
- "content-type": "application/json",
11239
- "if-match": kwargs.get("if_match", missing),
11240
- "opc-request-id": kwargs.get("opc_request_id", missing)
12656
+ "opc-request-id": kwargs.get("opc_request_id", missing),
12657
+ "content-length": kwargs.get("content_length", missing),
12658
+ "content-disposition": kwargs.get("content_disposition", missing),
12659
+ "if-match": kwargs.get("if_match", missing)
11241
12660
  }
11242
12661
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
11243
12662
 
12663
+ # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed.
12664
+ try:
12665
+ model_defined_metadatum_artifact
12666
+ except NameError:
12667
+ model_defined_metadatum_artifact = kwargs.get("model_defined_metadatum_artifact", missing)
12668
+
12669
+ if model_defined_metadatum_artifact is not missing and model_defined_metadatum_artifact is not None:
12670
+ if (not isinstance(model_defined_metadatum_artifact, (six.binary_type, six.string_types)) and
12671
+ not hasattr(model_defined_metadatum_artifact, "read")):
12672
+ raise TypeError('The body must be a string, bytes, or provide a read() method.')
12673
+
12674
+ if hasattr(model_defined_metadatum_artifact, 'fileno') and hasattr(model_defined_metadatum_artifact, 'name') and model_defined_metadatum_artifact.name != '<stdin>':
12675
+ if requests.utils.super_len(model_defined_metadatum_artifact) == 0:
12676
+ header_params['Content-Length'] = '0'
12677
+
12678
+ # If content length is not given and stream object have no 'fileno' and is not a string or bytes, try to calculate content length
12679
+ elif 'Content-Length' not in header_params and not is_content_length_calculable_by_req_util(model_defined_metadatum_artifact):
12680
+ calculated_obj = back_up_body_calculate_stream_content_length(model_defined_metadatum_artifact, kwargs.get("buffer_limit"))
12681
+ header_params['Content-Length'] = calculated_obj["content_length"]
12682
+ model_defined_metadatum_artifact = calculated_obj["byte_content"]
12683
+
11244
12684
  retry_strategy = self.base_client.get_preferred_retry_strategy(
11245
12685
  operation_retry_strategy=kwargs.get('retry_strategy'),
11246
12686
  client_retry_strategy=self.retry_strategy
@@ -11258,8 +12698,8 @@ class DataScienceClient(object):
11258
12698
  method=method,
11259
12699
  path_params=path_params,
11260
12700
  header_params=header_params,
11261
- body=update_model_details,
11262
- response_type="Model",
12701
+ body=model_defined_metadatum_artifact,
12702
+ enforce_content_headers=False,
11263
12703
  allow_control_chars=kwargs.get('allow_control_chars'),
11264
12704
  operation_name=operation_name,
11265
12705
  api_reference_link=api_reference_link,
@@ -11270,8 +12710,8 @@ class DataScienceClient(object):
11270
12710
  method=method,
11271
12711
  path_params=path_params,
11272
12712
  header_params=header_params,
11273
- body=update_model_details,
11274
- response_type="Model",
12713
+ body=model_defined_metadatum_artifact,
12714
+ enforce_content_headers=False,
11275
12715
  allow_control_chars=kwargs.get('allow_control_chars'),
11276
12716
  operation_name=operation_name,
11277
12717
  api_reference_link=api_reference_link,
@@ -11322,7 +12762,7 @@ class DataScienceClient(object):
11322
12762
  :rtype: :class:`~oci.response.Response`
11323
12763
 
11324
12764
  :example:
11325
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_model_deployment.py.html>`__ to see an example of how to use update_model_deployment API.
12765
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model_deployment.py.html>`__ to see an example of how to use update_model_deployment API.
11326
12766
  """
11327
12767
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11328
12768
  required_arguments = ['modelDeploymentId']
@@ -11434,7 +12874,7 @@ class DataScienceClient(object):
11434
12874
  :rtype: :class:`~oci.response.Response`
11435
12875
 
11436
12876
  :example:
11437
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_model_provenance.py.html>`__ to see an example of how to use update_model_provenance API.
12877
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model_provenance.py.html>`__ to see an example of how to use update_model_provenance API.
11438
12878
  """
11439
12879
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11440
12880
  required_arguments = ['modelId']
@@ -11548,7 +12988,7 @@ class DataScienceClient(object):
11548
12988
  :rtype: :class:`~oci.response.Response`
11549
12989
 
11550
12990
  :example:
11551
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_model_version_set.py.html>`__ to see an example of how to use update_model_version_set API.
12991
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_model_version_set.py.html>`__ to see an example of how to use update_model_version_set API.
11552
12992
  """
11553
12993
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11554
12994
  required_arguments = ['modelVersionSetId']
@@ -11665,7 +13105,7 @@ class DataScienceClient(object):
11665
13105
  :rtype: :class:`~oci.response.Response`
11666
13106
 
11667
13107
  :example:
11668
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_notebook_session.py.html>`__ to see an example of how to use update_notebook_session API.
13108
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_notebook_session.py.html>`__ to see an example of how to use update_notebook_session API.
11669
13109
  """
11670
13110
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11671
13111
  required_arguments = ['notebookSessionId']
@@ -11779,7 +13219,7 @@ class DataScienceClient(object):
11779
13219
  :rtype: :class:`~oci.response.Response`
11780
13220
 
11781
13221
  :example:
11782
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_pipeline.py.html>`__ to see an example of how to use update_pipeline API.
13222
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_pipeline.py.html>`__ to see an example of how to use update_pipeline API.
11783
13223
  """
11784
13224
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11785
13225
  required_arguments = ['pipelineId']
@@ -11891,7 +13331,7 @@ class DataScienceClient(object):
11891
13331
  :rtype: :class:`~oci.response.Response`
11892
13332
 
11893
13333
  :example:
11894
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_pipeline_run.py.html>`__ to see an example of how to use update_pipeline_run API.
13334
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_pipeline_run.py.html>`__ to see an example of how to use update_pipeline_run API.
11895
13335
  """
11896
13336
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
11897
13337
  required_arguments = ['pipelineRunId']
@@ -12003,7 +13443,7 @@ class DataScienceClient(object):
12003
13443
  :rtype: :class:`~oci.response.Response`
12004
13444
 
12005
13445
  :example:
12006
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_project.py.html>`__ to see an example of how to use update_project API.
13446
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_project.py.html>`__ to see an example of how to use update_project API.
12007
13447
  """
12008
13448
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
12009
13449
  required_arguments = ['projectId']
@@ -12115,7 +13555,7 @@ class DataScienceClient(object):
12115
13555
  :rtype: :class:`~oci.response.Response`
12116
13556
 
12117
13557
  :example:
12118
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/datascience/update_schedule.py.html>`__ to see an example of how to use update_schedule API.
13558
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.148.0/datascience/update_schedule.py.html>`__ to see an example of how to use update_schedule API.
12119
13559
  """
12120
13560
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
12121
13561
  required_arguments = ['scheduleId']