oci 2.151.0__py3-none-any.whl → 2.152.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 (325) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/addons/__init__.py +20 -0
  4. oci/addons/adk/__init__.py +13 -0
  5. oci/addons/adk/agent.py +852 -0
  6. oci/addons/adk/agent_client.py +682 -0
  7. oci/addons/adk/agent_error.py +36 -0
  8. oci/addons/adk/auth/__init__.py +3 -0
  9. oci/addons/adk/auth/auth_provider.py +28 -0
  10. oci/addons/adk/auth/factory.py +78 -0
  11. oci/addons/adk/auth/oci/__init__.py +3 -0
  12. oci/addons/adk/auth/oci/instance_principal.py +53 -0
  13. oci/addons/adk/auth/oci/resource_principal.py +53 -0
  14. oci/addons/adk/auth/oci/session.py +91 -0
  15. oci/addons/adk/auth/oci/user_principal.py +64 -0
  16. oci/addons/adk/constants.py +17 -0
  17. oci/addons/adk/logger.py +163 -0
  18. oci/addons/adk/run/__init__.py +3 -0
  19. oci/addons/adk/run/response.py +56 -0
  20. oci/addons/adk/run/types.py +32 -0
  21. oci/addons/adk/tool/__init__.py +13 -0
  22. oci/addons/adk/tool/function_tool.py +334 -0
  23. oci/addons/adk/tool/prebuilt/__init__.py +8 -0
  24. oci/addons/adk/tool/prebuilt/agentic_rag_tool.py +49 -0
  25. oci/addons/adk/tool/prebuilt/calculator_toolkit.py +104 -0
  26. oci/addons/adk/tool/tool.py +37 -0
  27. oci/addons/adk/tool/toolkit.py +189 -0
  28. oci/addons/adk/tool/utils.py +120 -0
  29. oci/addons/adk/util.py +325 -0
  30. oci/adm/application_dependency_management_client.py +36 -36
  31. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  32. oci/ai_document/ai_service_document_client.py +26 -26
  33. oci/ai_language/ai_service_language_client.py +44 -44
  34. oci/ai_speech/ai_service_speech_client.py +19 -19
  35. oci/ai_vision/ai_service_vision_client.py +28 -28
  36. oci/analytics/analytics_client.py +24 -24
  37. oci/announcements_service/announcement_client.py +5 -5
  38. oci/announcements_service/announcement_subscription_client.py +9 -9
  39. oci/announcements_service/announcements_preferences_client.py +4 -4
  40. oci/announcements_service/service_client.py +1 -1
  41. oci/apigateway/api_gateway_client.py +21 -21
  42. oci/apigateway/deployment_client.py +6 -6
  43. oci/apigateway/gateway_client.py +6 -6
  44. oci/apigateway/subscribers_client.py +6 -6
  45. oci/apigateway/usage_plans_client.py +6 -6
  46. oci/apigateway/work_requests_client.py +5 -5
  47. oci/apm_config/config_client.py +12 -12
  48. oci/apm_control_plane/apm_domain_client.py +14 -14
  49. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  50. oci/apm_traces/attributes_client.py +8 -8
  51. oci/apm_traces/query_client.py +2 -2
  52. oci/apm_traces/trace_client.py +4 -4
  53. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  54. oci/artifacts/artifacts_client.py +32 -32
  55. oci/audit/audit_client.py +3 -3
  56. oci/autoscaling/auto_scaling_client.py +11 -11
  57. oci/bastion/bastion_client.py +15 -15
  58. oci/bds/bds_client.py +84 -84
  59. oci/blockchain/blockchain_platform_client.py +27 -27
  60. oci/budget/budget_client.py +10 -10
  61. oci/capacity_management/capacity_management_client.py +32 -32
  62. oci/certificates/certificates_client.py +5 -5
  63. oci/certificates_management/certificates_management_client.py +32 -32
  64. oci/cims/incident_client.py +6 -6
  65. oci/cloud_bridge/common_client.py +5 -5
  66. oci/cloud_bridge/discovery_client.py +15 -15
  67. oci/cloud_bridge/inventory_client.py +16 -16
  68. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  69. oci/cloud_guard/cloud_guard_client.py +155 -155
  70. oci/cloud_migrations/migration_client.py +43 -43
  71. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  72. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  73. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  74. oci/compute_instance_agent/plugin_client.py +2 -2
  75. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  76. oci/container_engine/container_engine_client.py +46 -46
  77. oci/container_instances/container_instance_client.py +18 -18
  78. oci/core/blockstorage_client.py +60 -60
  79. oci/core/compute_client.py +117 -117
  80. oci/core/compute_management_client.py +32 -32
  81. oci/core/virtual_network_client.py +258 -258
  82. oci/dashboard_service/dashboard_client.py +6 -6
  83. oci/dashboard_service/dashboard_group_client.py +6 -6
  84. oci/data_catalog/data_catalog_client.py +149 -149
  85. oci/data_flow/data_flow_client.py +45 -45
  86. oci/data_integration/data_integration_client.py +163 -163
  87. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  88. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  89. oci/data_safe/data_safe_client.py +317 -317
  90. oci/data_science/data_science_client.py +145 -145
  91. oci/database/database_client.py +415 -415
  92. oci/database_management/db_management_client.py +356 -230
  93. oci/database_management/db_management_client_composite_operations.py +44 -0
  94. oci/database_management/diagnosability_client.py +4 -4
  95. oci/database_management/managed_my_sql_databases_client.py +7 -247
  96. oci/database_management/models/__init__.py +0 -4
  97. oci/database_management/models/database_diagnostics_and_management_feature_details.py +35 -4
  98. oci/database_management/models/disable_database_management_feature_details.py +33 -2
  99. oci/database_management/models/disable_external_container_database_management_feature_details.py +33 -2
  100. oci/database_management/models/discovered_external_database.py +64 -2
  101. oci/database_management/models/exadata_infrastructure_lifecycle_state_values.py +40 -36
  102. oci/database_management/models/external_database_diagnostics_and_management_feature_details.py +64 -2
  103. oci/database_management/models/managed_database.py +2 -4
  104. oci/database_management/models/managed_database_summary.py +2 -4
  105. oci/database_management/models/modify_database_management_feature_details.py +1 -1
  106. oci/database_management/perfhub_client.py +1 -1
  107. oci/database_management/sql_tuning_client.py +17 -17
  108. oci/database_migration/database_migration_client.py +42 -42
  109. oci/database_tools/database_tools_client.py +23 -23
  110. oci/dblm/db_life_cycle_management_client.py +14 -14
  111. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  112. oci/delegate_access_control/work_request_client.py +4 -4
  113. oci/demand_signal/occ_demand_signal_client.py +7 -7
  114. oci/desktops/desktop_service_client.py +21 -21
  115. oci/devops/devops_client.py +141 -141
  116. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  117. oci/dns/dns_client.py +54 -54
  118. oci/dts/appliance_export_job_client.py +6 -6
  119. oci/dts/shipping_vendors_client.py +1 -1
  120. oci/dts/transfer_appliance_client.py +8 -8
  121. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  122. oci/dts/transfer_device_client.py +5 -5
  123. oci/dts/transfer_job_client.py +6 -6
  124. oci/dts/transfer_package_client.py +7 -7
  125. oci/em_warehouse/em_warehouse_client.py +13 -13
  126. oci/email/email_client.py +31 -31
  127. oci/email_data_plane/email_dp_client.py +1 -1
  128. oci/events/events_client.py +6 -6
  129. oci/file_storage/file_storage_client.py +74 -74
  130. oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
  131. oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
  132. oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
  133. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  134. oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
  135. oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
  136. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
  137. oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
  138. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  139. oci/functions/functions_invoke_client.py +1 -1
  140. oci/functions/functions_management_client.py +16 -16
  141. oci/fusion_apps/fusion_applications_client.py +41 -41
  142. oci/generative_ai/generative_ai_client.py +22 -22
  143. oci/generative_ai/models/create_dedicated_ai_cluster_details.py +4 -0
  144. oci/generative_ai/models/dedicated_ai_cluster.py +11 -3
  145. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  146. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  147. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  148. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  149. oci/globally_distributed_database/sharded_database_service_client.py +58 -58
  150. oci/golden_gate/golden_gate_client.py +89 -89
  151. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  152. oci/governance_rules_control_plane/work_request_client.py +5 -5
  153. oci/healthchecks/health_checks_client.py +17 -17
  154. oci/identity/identity_client.py +145 -145
  155. oci/identity_data_plane/dataplane_client.py +2 -2
  156. oci/identity_domains/identity_domains_client.py +311 -311
  157. oci/integration/integration_instance_client.py +19 -19
  158. oci/jms/java_management_service_client.py +79 -79
  159. oci/jms_java_downloads/java_download_client.py +25 -25
  160. oci/key_management/ekm_client.py +5 -5
  161. oci/key_management/kms_crypto_client.py +6 -6
  162. oci/key_management/kms_hsm_cluster_client.py +12 -12
  163. oci/key_management/kms_management_client.py +21 -21
  164. oci/key_management/kms_vault_client.py +14 -14
  165. oci/license_manager/license_manager_client.py +18 -18
  166. oci/limits/limits_client.py +4 -4
  167. oci/limits/quotas_client.py +7 -7
  168. oci/load_balancer/load_balancer_client.py +61 -61
  169. oci/lockbox/lockbox_client.py +24 -24
  170. oci/log_analytics/log_analytics_client.py +200 -200
  171. oci/logging/logging_management_client.py +30 -30
  172. oci/loggingingestion/logging_client.py +1 -1
  173. oci/loggingsearch/log_search_client.py +1 -1
  174. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  175. oci/management_agent/management_agent_client.py +28 -28
  176. oci/management_dashboard/dashx_apis_client.py +14 -14
  177. oci/marketplace/account_client.py +2 -2
  178. oci/marketplace/marketplace_client.py +30 -30
  179. oci/marketplace_private_offer/attachment_client.py +5 -5
  180. oci/marketplace_private_offer/offer_client.py +6 -6
  181. oci/marketplace_publisher/attachment_client.py +5 -5
  182. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  183. oci/marketplace_publisher/offer_client.py +6 -6
  184. oci/media_services/media_services_client.py +60 -60
  185. oci/media_services/media_stream_client.py +2 -2
  186. oci/mngdmac/mac_device_client.py +3 -3
  187. oci/mngdmac/mac_order_client.py +11 -11
  188. oci/model_deployment/__init__.py +14 -0
  189. oci/model_deployment/model_deployment_client.py +331 -0
  190. oci/model_deployment/model_deployment_client_composite_operations.py +26 -0
  191. oci/model_deployment/models/__init__.py +14 -0
  192. oci/model_deployment/models/inference_result.py +70 -0
  193. oci/monitoring/monitoring_client.py +18 -18
  194. oci/mysql/channels_client.py +7 -7
  195. oci/mysql/db_backups_client.py +7 -7
  196. oci/mysql/db_system_client.py +17 -17
  197. oci/mysql/mysqlaas_client.py +7 -7
  198. oci/mysql/replicas_client.py +5 -5
  199. oci/mysql/work_requests_client.py +4 -4
  200. oci/network_firewall/network_firewall_client.py +86 -86
  201. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  202. oci/nosql/nosql_client.py +24 -24
  203. oci/object_storage/object_storage_client.py +55 -55
  204. oci/oce/oce_instance_client.py +10 -10
  205. oci/oci_control_center/occ_metrics_client.py +3 -3
  206. oci/ocvp/cluster_client.py +5 -5
  207. oci/ocvp/esxi_host_client.py +8 -8
  208. oci/ocvp/sddc_client.py +14 -14
  209. oci/ocvp/work_request_client.py +4 -4
  210. oci/oda/management_client.py +59 -59
  211. oci/oda/oda_client.py +17 -17
  212. oci/oda/odapackage_client.py +7 -7
  213. oci/onesubscription/billing_schedule_client.py +1 -1
  214. oci/onesubscription/commitment_client.py +2 -2
  215. oci/onesubscription/computed_usage_client.py +3 -3
  216. oci/onesubscription/invoice_summary_client.py +2 -2
  217. oci/onesubscription/organization_subscription_client.py +1 -1
  218. oci/onesubscription/ratecard_client.py +1 -1
  219. oci/onesubscription/subscribed_service_client.py +2 -2
  220. oci/onesubscription/subscription_client.py +1 -1
  221. oci/ons/notification_control_plane_client.py +6 -6
  222. oci/ons/notification_data_plane_client.py +10 -10
  223. oci/opa/opa_instance_client.py +13 -13
  224. oci/opensearch/models/__init__.py +2 -0
  225. oci/opensearch/models/create_opensearch_cluster_details.py +291 -0
  226. oci/opensearch/models/create_opensearch_cluster_pipeline_details.py +31 -0
  227. oci/opensearch/models/opensearch_cluster.py +291 -0
  228. oci/opensearch/models/opensearch_cluster_pipeline.py +31 -0
  229. oci/opensearch/models/opensearch_cluster_pipeline_summary.py +31 -0
  230. oci/opensearch/models/resize_opensearch_cluster_horizontal_details.py +31 -0
  231. oci/opensearch/models/resize_opensearch_cluster_vertical_details.py +217 -0
  232. oci/opensearch/models/shapes_details.py +70 -0
  233. oci/opensearch/models/update_cluster_specs_details.py +186 -0
  234. oci/opensearch/models/update_opensearch_cluster_pipeline_details.py +31 -0
  235. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  236. oci/opensearch/opensearch_cluster_client.py +87 -16
  237. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  238. oci/operator_access_control/access_requests_client.py +10 -10
  239. oci/operator_access_control/operator_actions_client.py +2 -2
  240. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  241. oci/operator_access_control/operator_control_client.py +6 -6
  242. oci/opsi/operations_insights_client.py +181 -181
  243. oci/optimizer/optimizer_client.py +26 -26
  244. oci/os_management/event_client.py +8 -8
  245. oci/os_management/os_management_client.py +69 -69
  246. oci/os_management_hub/event_client.py +8 -8
  247. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  248. oci/os_management_hub/managed_instance_client.py +33 -33
  249. oci/os_management_hub/managed_instance_group_client.py +26 -26
  250. oci/os_management_hub/management_station_client.py +10 -10
  251. oci/os_management_hub/onboarding_client.py +13 -13
  252. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  253. oci/os_management_hub/scheduled_job_client.py +7 -7
  254. oci/os_management_hub/software_source_client.py +33 -33
  255. oci/os_management_hub/work_request_client.py +5 -5
  256. oci/osp_gateway/address_rule_service_client.py +1 -1
  257. oci/osp_gateway/address_service_client.py +2 -2
  258. oci/osp_gateway/invoice_service_client.py +5 -5
  259. oci/osp_gateway/subscription_service_client.py +5 -5
  260. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  261. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  262. oci/osub_subscription/commitment_client.py +2 -2
  263. oci/osub_subscription/ratecard_client.py +1 -1
  264. oci/osub_subscription/subscription_client.py +1 -1
  265. oci/osub_usage/computed_usage_client.py +3 -3
  266. oci/psql/postgresql_client.py +34 -34
  267. oci/queue/queue_admin_client.py +11 -11
  268. oci/queue/queue_client.py +8 -8
  269. oci/recovery/database_recovery_client.py +26 -26
  270. oci/redis/redis_cluster_client.py +12 -12
  271. oci/resource_manager/resource_manager_client.py +52 -52
  272. oci/resource_scheduler/schedule_client.py +14 -14
  273. oci/resource_search/resource_search_client.py +3 -3
  274. oci/rover/rover_bundle_client.py +8 -8
  275. oci/rover/rover_cluster_client.py +8 -8
  276. oci/rover/rover_entitlement_client.py +6 -6
  277. oci/rover/rover_node_client.py +15 -15
  278. oci/rover/shape_client.py +1 -1
  279. oci/rover/work_requests_client.py +5 -5
  280. oci/sch/connector_plugins_client.py +2 -2
  281. oci/sch/service_connector_client.py +12 -12
  282. oci/secrets/secrets_client.py +3 -3
  283. oci/security_attribute/security_attribute_client.py +18 -18
  284. oci/service_catalog/service_catalog_client.py +26 -26
  285. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  286. oci/service_mesh/service_mesh_client.py +48 -48
  287. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  288. oci/streaming/stream_admin_client.py +18 -18
  289. oci/streaming/stream_client.py +8 -8
  290. oci/tenant_manager_control_plane/domain_client.py +5 -5
  291. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  292. oci/tenant_manager_control_plane/governance_client.py +2 -2
  293. oci/tenant_manager_control_plane/link_client.py +3 -3
  294. oci/tenant_manager_control_plane/orders_client.py +2 -2
  295. oci/tenant_manager_control_plane/organization_client.py +10 -10
  296. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  297. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  298. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  299. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  300. oci/threat_intelligence/threatintel_client.py +5 -5
  301. oci/usage/resources_client.py +2 -2
  302. oci/usage/rewards_client.py +6 -6
  303. oci/usage/usagelimits_client.py +1 -1
  304. oci/usage_api/usageapi_client.py +33 -33
  305. oci/vault/vaults_client.py +13 -13
  306. oci/vbs_inst/vbs_instance_client.py +10 -10
  307. oci/version.py +1 -1
  308. oci/visual_builder/vb_instance_client.py +14 -14
  309. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  310. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  311. oci/waa/waa_client.py +13 -13
  312. oci/waa/work_request_client.py +4 -4
  313. oci/waas/redirect_client.py +6 -6
  314. oci/waas/waas_client.py +66 -66
  315. oci/waf/waf_client.py +24 -24
  316. oci/work_requests/work_request_client.py +4 -4
  317. oci/zpr/zpr_client.py +15 -15
  318. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/METADATA +6 -1
  319. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/RECORD +323 -292
  320. oci/database_management/models/disable_external_mysql_associated_service_details.py +0 -144
  321. oci/database_management/models/enable_external_mysql_associated_service_details.py +0 -144
  322. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/LICENSE.txt +0 -0
  323. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  324. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/WHEEL +0 -0
  325. {oci-2.151.0.dist-info → oci-2.152.0.dist-info}/top_level.txt +0 -0
@@ -151,7 +151,7 @@ class MacDeviceClient(object):
151
151
  :rtype: :class:`~oci.response.Response`
152
152
 
153
153
  :example:
154
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/get_mac_device.py.html>`__ to see an example of how to use get_mac_device API.
154
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/get_mac_device.py.html>`__ to see an example of how to use get_mac_device API.
155
155
  """
156
156
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
157
157
  required_arguments = ['macDeviceId', 'macOrderId']
@@ -297,7 +297,7 @@ class MacDeviceClient(object):
297
297
  :rtype: :class:`~oci.response.Response`
298
298
 
299
299
  :example:
300
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/list_mac_devices.py.html>`__ to see an example of how to use list_mac_devices API.
300
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/list_mac_devices.py.html>`__ to see an example of how to use list_mac_devices API.
301
301
  """
302
302
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
303
303
  required_arguments = ['macOrderId']
@@ -459,7 +459,7 @@ class MacDeviceClient(object):
459
459
  :rtype: :class:`~oci.response.Response`
460
460
 
461
461
  :example:
462
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/terminate_mac_device.py.html>`__ to see an example of how to use terminate_mac_device API.
462
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/terminate_mac_device.py.html>`__ to see an example of how to use terminate_mac_device API.
463
463
  """
464
464
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
465
465
  required_arguments = ['macDeviceId', 'macOrderId']
@@ -164,7 +164,7 @@ class MacOrderClient(object):
164
164
  :rtype: :class:`~oci.response.Response`
165
165
 
166
166
  :example:
167
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/cancel_mac_order.py.html>`__ to see an example of how to use cancel_mac_order API.
167
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/cancel_mac_order.py.html>`__ to see an example of how to use cancel_mac_order API.
168
168
  """
169
169
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
170
170
  required_arguments = ['macOrderId']
@@ -279,7 +279,7 @@ class MacOrderClient(object):
279
279
  :rtype: :class:`~oci.response.Response`
280
280
 
281
281
  :example:
282
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
282
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
283
283
  """
284
284
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
285
285
  required_arguments = ['workRequestId']
@@ -394,7 +394,7 @@ class MacOrderClient(object):
394
394
  :rtype: :class:`~oci.response.Response`
395
395
 
396
396
  :example:
397
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/change_mac_order_compartment.py.html>`__ to see an example of how to use change_mac_order_compartment API.
397
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/change_mac_order_compartment.py.html>`__ to see an example of how to use change_mac_order_compartment API.
398
398
  """
399
399
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
400
400
  required_arguments = ['macOrderId']
@@ -504,7 +504,7 @@ class MacOrderClient(object):
504
504
  :rtype: :class:`~oci.response.Response`
505
505
 
506
506
  :example:
507
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/create_mac_order.py.html>`__ to see an example of how to use create_mac_order API.
507
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/create_mac_order.py.html>`__ to see an example of how to use create_mac_order API.
508
508
  """
509
509
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
510
510
  required_arguments = []
@@ -600,7 +600,7 @@ class MacOrderClient(object):
600
600
  :rtype: :class:`~oci.response.Response`
601
601
 
602
602
  :example:
603
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/get_mac_order.py.html>`__ to see an example of how to use get_mac_order API.
603
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/get_mac_order.py.html>`__ to see an example of how to use get_mac_order API.
604
604
  """
605
605
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
606
606
  required_arguments = ['macOrderId']
@@ -703,7 +703,7 @@ class MacOrderClient(object):
703
703
  :rtype: :class:`~oci.response.Response`
704
704
 
705
705
  :example:
706
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
706
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
707
707
  """
708
708
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
709
709
  required_arguments = ['workRequestId']
@@ -845,7 +845,7 @@ class MacOrderClient(object):
845
845
  :rtype: :class:`~oci.response.Response`
846
846
 
847
847
  :example:
848
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/list_mac_orders.py.html>`__ to see an example of how to use list_mac_orders API.
848
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/list_mac_orders.py.html>`__ to see an example of how to use list_mac_orders API.
849
849
  """
850
850
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
851
851
  required_arguments = []
@@ -1003,7 +1003,7 @@ class MacOrderClient(object):
1003
1003
  :rtype: :class:`~oci.response.Response`
1004
1004
 
1005
1005
  :example:
1006
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1006
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1007
1007
  """
1008
1008
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1009
1009
  required_arguments = ['workRequestId']
@@ -1158,7 +1158,7 @@ class MacOrderClient(object):
1158
1158
  :rtype: :class:`~oci.response.Response`
1159
1159
 
1160
1160
  :example:
1161
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1161
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1162
1162
  """
1163
1163
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1164
1164
  required_arguments = ['workRequestId']
@@ -1328,7 +1328,7 @@ class MacOrderClient(object):
1328
1328
  :rtype: :class:`~oci.response.Response`
1329
1329
 
1330
1330
  :example:
1331
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1331
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1332
1332
  """
1333
1333
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1334
1334
  required_arguments = []
@@ -1471,7 +1471,7 @@ class MacOrderClient(object):
1471
1471
  :rtype: :class:`~oci.response.Response`
1472
1472
 
1473
1473
  :example:
1474
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.151.0/mngdmac/update_mac_order.py.html>`__ to see an example of how to use update_mac_order API.
1474
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/mngdmac/update_mac_order.py.html>`__ to see an example of how to use update_mac_order API.
1475
1475
  """
1476
1476
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1477
1477
  required_arguments = ['macOrderId']
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240424
6
+
7
+ from __future__ import absolute_import
8
+
9
+
10
+ from .model_deployment_client import ModelDeploymentClient
11
+ from .model_deployment_client_composite_operations import ModelDeploymentClientCompositeOperations
12
+ from . import models
13
+
14
+ __all__ = ["ModelDeploymentClient", "ModelDeploymentClientCompositeOperations", "models"]
@@ -0,0 +1,331 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240424
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import model_deployment_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class ModelDeploymentClient(object):
24
+ """
25
+ Model deployments are a managed resource in the OCI Data Science service to use to deploy machine learning models as HTTP endpoints in OCI. Deploying machine learning models as web applications (HTTP API endpoints) serving predictions in real time is the most common way that models are productionized. HTTP endpoints are flexible and can serve requests for model predictions.
26
+
27
+ For more information, see [Model Deployments](https://docs.oracle.com/en-us/iaas/data-science/using/model-dep-about.htm)
28
+ """
29
+
30
+ def __init__(self, config, **kwargs):
31
+ """
32
+ Creates a new service client
33
+
34
+ :param dict config:
35
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
36
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
37
+ the dict using :py:meth:`~oci.config.validate_config`
38
+
39
+ :param str service_endpoint: (optional)
40
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
41
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
42
+ need to specify a service endpoint.
43
+
44
+ :param timeout: (optional)
45
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
46
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
47
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
48
+ :type timeout: float or tuple(float, float)
49
+
50
+ :param signer: (optional)
51
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
52
+ provided in the config parameter.
53
+
54
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
55
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
56
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
57
+
58
+ :param obj retry_strategy: (optional)
59
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
60
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
61
+ Any value provided at the operation level will override whatever is specified at the client level.
62
+
63
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
64
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
65
+
66
+ :param obj circuit_breaker_strategy: (optional)
67
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
68
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
69
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
70
+
71
+ :param function circuit_breaker_callback: (optional)
72
+ Callback function to receive any exceptions triggerred by the circuit breaker.
73
+
74
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
75
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
76
+
77
+ :param allow_control_chars: (optional)
78
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
79
+ allow control characters to be in the response object.
80
+ """
81
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("model_deployment"):
82
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
83
+
84
+ validate_config(config, signer=kwargs.get('signer'))
85
+ if 'signer' in kwargs:
86
+ signer = kwargs['signer']
87
+
88
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
89
+ signer = get_signer_from_authentication_type(config)
90
+
91
+ else:
92
+ signer = Signer(
93
+ tenancy=config["tenancy"],
94
+ user=config["user"],
95
+ fingerprint=config["fingerprint"],
96
+ private_key_file_location=config.get("key_file"),
97
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
98
+ private_key_content=config.get("key_content")
99
+ )
100
+
101
+ base_client_init_kwargs = {
102
+ 'regional_client': True,
103
+ 'service_endpoint': kwargs.get('service_endpoint'),
104
+ 'base_path': '/',
105
+ 'service_endpoint_template': 'https://md.datascience.{region}.oci.{secondLevelDomain}',
106
+ 'service_endpoint_template_per_realm': { 'oc1': 'https://modeldeployment.{region}.oci.customer-oci.com' }, # noqa: E201 E202
107
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
108
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
109
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
110
+ }
111
+ if 'timeout' in kwargs:
112
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
113
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
114
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
115
+ if 'allow_control_chars' in kwargs:
116
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
117
+ self.base_client = BaseClient("model_deployment", config, signer, model_deployment_type_mapping, **base_client_init_kwargs)
118
+ self.retry_strategy = kwargs.get('retry_strategy')
119
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
120
+
121
+ def predict(self, model_deployment_id, request_body, **kwargs):
122
+ """
123
+ Invoking a model deployment calls the predict endpoint of the model deployment URI.
124
+ This endpoint takes sample data as input and is processed using the predict() function in score.py model artifact file
125
+
126
+
127
+ :param str model_deployment_id: (required)
128
+ The `OCID`__ of the model deployment.
129
+
130
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
131
+
132
+ :param str request_body: (required)
133
+ Input data details for making a prediction call
134
+
135
+ :param str opc_request_id: (optional)
136
+ Unique Oracle identifier for request
137
+
138
+ :param obj retry_strategy: (optional)
139
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
140
+
141
+ 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.
142
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
143
+
144
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
145
+
146
+ :param bool allow_control_chars: (optional)
147
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
148
+ By default, the response will not allow control characters in strings
149
+
150
+ :return: A :class:`~oci.response.Response` object with data of type str
151
+ :rtype: :class:`~oci.response.Response`
152
+
153
+ :example:
154
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/modeldeployment/predict.py.html>`__ to see an example of how to use predict API.
155
+ """
156
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
157
+ required_arguments = ['modelDeploymentId']
158
+ resource_path = "/{modelDeploymentId}/predict"
159
+ method = "POST"
160
+ operation_name = "predict"
161
+ api_reference_link = ""
162
+
163
+ # Don't accept unknown kwargs
164
+ expected_kwargs = [
165
+ "allow_control_chars",
166
+ "retry_strategy",
167
+ "opc_request_id"
168
+ ]
169
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
170
+ if extra_kwargs:
171
+ raise ValueError(
172
+ f"predict got unknown kwargs: {extra_kwargs!r}")
173
+
174
+ path_params = {
175
+ "modelDeploymentId": model_deployment_id
176
+ }
177
+
178
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
179
+
180
+ for (k, v) in six.iteritems(path_params):
181
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
182
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
183
+
184
+ header_params = {
185
+ "accept": "application/json",
186
+ "content-type": "application/json",
187
+ "opc-request-id": kwargs.get("opc_request_id", missing)
188
+ }
189
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
190
+
191
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
192
+ operation_retry_strategy=kwargs.get('retry_strategy'),
193
+ client_retry_strategy=self.retry_strategy
194
+ )
195
+ if retry_strategy is None:
196
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
197
+
198
+ if retry_strategy:
199
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
200
+ self.base_client.add_opc_client_retries_header(header_params)
201
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
202
+ return retry_strategy.make_retrying_call(
203
+ self.base_client.call_api,
204
+ resource_path=resource_path,
205
+ method=method,
206
+ path_params=path_params,
207
+ header_params=header_params,
208
+ body=request_body,
209
+ response_type="str",
210
+ allow_control_chars=kwargs.get('allow_control_chars'),
211
+ operation_name=operation_name,
212
+ api_reference_link=api_reference_link,
213
+ required_arguments=required_arguments)
214
+ else:
215
+ return self.base_client.call_api(
216
+ resource_path=resource_path,
217
+ method=method,
218
+ path_params=path_params,
219
+ header_params=header_params,
220
+ body=request_body,
221
+ response_type="str",
222
+ allow_control_chars=kwargs.get('allow_control_chars'),
223
+ operation_name=operation_name,
224
+ api_reference_link=api_reference_link,
225
+ required_arguments=required_arguments)
226
+
227
+ def predict_with_response_stream(self, model_deployment_id, request_body, **kwargs):
228
+ """
229
+ Invoking a model deployment calls the predictWithResponseStream endpoint of the model deployment URI to get the streaming result.
230
+ This endpoint takes sample data as input and is processed using the predict() function in score.py model artifact file
231
+
232
+
233
+ :param str model_deployment_id: (required)
234
+ The `OCID`__ of the model deployment.
235
+
236
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
237
+
238
+ :param str request_body: (required)
239
+ Input data details for making a prediction call
240
+
241
+ :param str opc_request_id: (optional)
242
+ Unique Oracle identifier for request
243
+
244
+ :param obj retry_strategy: (optional)
245
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
246
+
247
+ 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.
248
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
249
+
250
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
251
+
252
+ :param bool allow_control_chars: (optional)
253
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
254
+ By default, the response will not allow control characters in strings
255
+
256
+ :return: A :class:`~oci.response.Response` object with data of type stream
257
+ :rtype: :class:`~oci.response.Response`
258
+
259
+ :example:
260
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.152.0/modeldeployment/predict_with_response_stream.py.html>`__ to see an example of how to use predict_with_response_stream API.
261
+ """
262
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
263
+ required_arguments = ['modelDeploymentId']
264
+ resource_path = "/{modelDeploymentId}/predictWithResponseStream"
265
+ method = "POST"
266
+ operation_name = "predict_with_response_stream"
267
+ api_reference_link = ""
268
+
269
+ # Don't accept unknown kwargs
270
+ expected_kwargs = [
271
+ "allow_control_chars",
272
+ "retry_strategy",
273
+ "opc_request_id"
274
+ ]
275
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
276
+ if extra_kwargs:
277
+ raise ValueError(
278
+ f"predict_with_response_stream got unknown kwargs: {extra_kwargs!r}")
279
+
280
+ path_params = {
281
+ "modelDeploymentId": model_deployment_id
282
+ }
283
+
284
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
285
+
286
+ for (k, v) in six.iteritems(path_params):
287
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
288
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
289
+
290
+ header_params = {
291
+ "accept": "application/json, text/event-stream",
292
+ "content-type": "application/json",
293
+ "opc-request-id": kwargs.get("opc_request_id", missing)
294
+ }
295
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
296
+
297
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
298
+ operation_retry_strategy=kwargs.get('retry_strategy'),
299
+ client_retry_strategy=self.retry_strategy
300
+ )
301
+ if retry_strategy is None:
302
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
303
+
304
+ if retry_strategy:
305
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
306
+ self.base_client.add_opc_client_retries_header(header_params)
307
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
308
+ return retry_strategy.make_retrying_call(
309
+ self.base_client.call_api,
310
+ resource_path=resource_path,
311
+ method=method,
312
+ path_params=path_params,
313
+ header_params=header_params,
314
+ body=request_body,
315
+ response_type="stream",
316
+ allow_control_chars=kwargs.get('allow_control_chars'),
317
+ operation_name=operation_name,
318
+ api_reference_link=api_reference_link,
319
+ required_arguments=required_arguments)
320
+ else:
321
+ return self.base_client.call_api(
322
+ resource_path=resource_path,
323
+ method=method,
324
+ path_params=path_params,
325
+ header_params=header_params,
326
+ body=request_body,
327
+ response_type="stream",
328
+ allow_control_chars=kwargs.get('allow_control_chars'),
329
+ operation_name=operation_name,
330
+ api_reference_link=api_reference_link,
331
+ required_arguments=required_arguments)
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240424
6
+
7
+ import oci # noqa: F401
8
+ from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
9
+
10
+
11
+ class ModelDeploymentClientCompositeOperations(object):
12
+ """
13
+ This class provides a wrapper around :py:class:`~oci.model_deployment.ModelDeploymentClient` and offers convenience methods
14
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
15
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
16
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
17
+ """
18
+
19
+ def __init__(self, client, **kwargs):
20
+ """
21
+ Creates a new ModelDeploymentClientCompositeOperations object
22
+
23
+ :param ModelDeploymentClient client:
24
+ The service client which will be wrapped by this object
25
+ """
26
+ self.client = client
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240424
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from .inference_result import InferenceResult
10
+
11
+ # Maps type names to classes for model_deployment services.
12
+ model_deployment_type_mapping = {
13
+ "InferenceResult": InferenceResult
14
+ }
@@ -0,0 +1,70 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240424
6
+
7
+
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class InferenceResult(object):
14
+ """
15
+ A model used in x-related-resource for grouping actions with no returned body.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new InferenceResult object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param data:
24
+ The value to assign to the data property of this InferenceResult.
25
+ :type data: str
26
+
27
+ """
28
+ self.swagger_types = {
29
+ 'data': 'str'
30
+ }
31
+ self.attribute_map = {
32
+ 'data': 'data'
33
+ }
34
+ self._data = None
35
+
36
+ @property
37
+ def data(self):
38
+ """
39
+ **[Required]** Gets the data of this InferenceResult.
40
+ The predict result returned by model
41
+
42
+
43
+ :return: The data of this InferenceResult.
44
+ :rtype: str
45
+ """
46
+ return self._data
47
+
48
+ @data.setter
49
+ def data(self, data):
50
+ """
51
+ Sets the data of this InferenceResult.
52
+ The predict result returned by model
53
+
54
+
55
+ :param data: The data of this InferenceResult.
56
+ :type: str
57
+ """
58
+ self._data = data
59
+
60
+ def __repr__(self):
61
+ return formatted_flat_dict(self)
62
+
63
+ def __eq__(self, other):
64
+ if other is None:
65
+ return False
66
+
67
+ return self.__dict__ == other.__dict__
68
+
69
+ def __ne__(self, other):
70
+ return not self == other