oci 2.133.0__py3-none-any.whl → 2.135.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 (656) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +26 -26
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +214 -17
  8. oci/ai_speech/models/__init__.py +23 -1
  9. oci/ai_speech/models/synthesize_speech_details.py +196 -0
  10. oci/ai_speech/models/tts_audio_config.py +106 -0
  11. oci/ai_speech/models/tts_base_audio_config.py +82 -0
  12. oci/ai_speech/models/tts_configuration.py +103 -0
  13. oci/ai_speech/models/tts_oracle_configuration.py +105 -0
  14. oci/ai_speech/models/tts_oracle_model_details.py +113 -0
  15. oci/ai_speech/models/tts_oracle_speech_settings.py +246 -0
  16. oci/ai_speech/models/tts_oracle_tts1_standard_model_details.py +84 -0
  17. oci/ai_speech/models/tts_oracle_tts2_natural_model_details.py +84 -0
  18. oci/ai_speech/models/voice_collection.py +72 -0
  19. oci/ai_speech/models/voice_summary.py +379 -0
  20. oci/ai_vision/ai_service_vision_client.py +25 -25
  21. oci/analytics/analytics_client.py +24 -24
  22. oci/analytics/models/analytics_instance.py +55 -0
  23. oci/analytics/models/create_analytics_instance_details.py +55 -0
  24. oci/analytics/models/update_analytics_instance_details.py +57 -2
  25. oci/announcements_service/announcement_client.py +5 -5
  26. oci/announcements_service/announcement_subscription_client.py +9 -9
  27. oci/announcements_service/announcements_preferences_client.py +4 -4
  28. oci/announcements_service/models/base_announcement.py +25 -25
  29. oci/announcements_service/models/base_create_announcements_preferences_details.py +5 -5
  30. oci/announcements_service/models/base_service.py +15 -15
  31. oci/announcements_service/service_client.py +1 -1
  32. oci/apigateway/api_gateway_client.py +21 -21
  33. oci/apigateway/deployment_client.py +6 -6
  34. oci/apigateway/gateway_client.py +6 -6
  35. oci/apigateway/models/body_validation_request_policy.py +5 -5
  36. oci/apigateway/models/header_validation_request_policy.py +5 -5
  37. oci/apigateway/models/validation_request_policy.py +5 -5
  38. oci/apigateway/subscribers_client.py +6 -6
  39. oci/apigateway/usage_plans_client.py +6 -6
  40. oci/apigateway/work_requests_client.py +5 -5
  41. oci/apm_config/config_client.py +9 -9
  42. oci/apm_control_plane/apm_domain_client.py +14 -14
  43. oci/apm_control_plane/models/base_domain_details.py +5 -5
  44. oci/apm_control_plane/models/base_key_details.py +5 -5
  45. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  46. oci/apm_traces/attributes_client.py +8 -8
  47. oci/apm_traces/query_client.py +2 -2
  48. oci/apm_traces/trace_client.py +4 -4
  49. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  50. oci/artifacts/artifacts_client.py +32 -32
  51. oci/audit/audit_client.py +3 -3
  52. oci/autoscaling/auto_scaling_client.py +11 -11
  53. oci/bastion/bastion_client.py +15 -15
  54. oci/bds/bds_client.py +72 -72
  55. oci/blockchain/blockchain_platform_client.py +27 -27
  56. oci/blockchain/models/availability_domain.py +5 -5
  57. oci/blockchain/models/peer_role.py +5 -5
  58. oci/budget/budget_client.py +10 -10
  59. oci/capacity_management/capacity_management_client.py +1692 -423
  60. oci/capacity_management/capacity_management_client_composite_operations.py +146 -0
  61. oci/capacity_management/models/__init__.py +23 -1
  62. oci/capacity_management/models/associated_capacity_request_details.py +103 -0
  63. oci/capacity_management/models/associated_occ_handover_resource_block.py +103 -0
  64. oci/capacity_management/models/create_occ_capacity_request_details.py +3 -3
  65. oci/capacity_management/models/create_occ_customer_details.py +181 -0
  66. oci/capacity_management/models/create_occ_customer_group_details.py +309 -0
  67. oci/capacity_management/models/occ_capacity_request_base_details.py +62 -0
  68. oci/capacity_management/models/occ_handover_resource_block_collection.py +72 -0
  69. oci/capacity_management/models/occ_handover_resource_block_detail_collection.py +72 -0
  70. oci/capacity_management/models/occ_handover_resource_block_detail_summary.py +104 -0
  71. oci/capacity_management/models/occ_handover_resource_block_summary.py +332 -0
  72. oci/capacity_management/models/placement_details.py +227 -0
  73. oci/capacity_management/models/update_occ_customer_details.py +150 -0
  74. oci/capacity_management/models/update_occ_customer_group_details.py +216 -0
  75. oci/certificates/certificates_client.py +5 -5
  76. oci/certificates_management/certificates_management_client.py +32 -32
  77. oci/cims/incident_client.py +8 -8
  78. oci/cims/user_client.py +1 -1
  79. oci/cloud_bridge/common_client.py +5 -5
  80. oci/cloud_bridge/discovery_client.py +14 -14
  81. oci/cloud_bridge/inventory_client.py +16 -16
  82. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  83. oci/cloud_guard/cloud_guard_client.py +155 -155
  84. oci/cloud_migrations/migration_client.py +43 -43
  85. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  86. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  87. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  88. oci/compute_instance_agent/plugin_client.py +2 -2
  89. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  90. oci/container_engine/container_engine_client.py +44 -44
  91. oci/container_instances/container_instance_client.py +18 -18
  92. oci/core/blockstorage_client.py +60 -60
  93. oci/core/compute_client.py +102 -102
  94. oci/core/compute_management_client.py +32 -32
  95. oci/core/models/compute_bare_metal_host.py +10 -10
  96. oci/core/models/compute_hpc_island.py +5 -5
  97. oci/core/models/compute_network_block.py +5 -5
  98. oci/core/models/topology.py +5 -5
  99. oci/core/virtual_network_client.py +250 -250
  100. oci/dashboard_service/dashboard_client.py +6 -6
  101. oci/dashboard_service/dashboard_group_client.py +6 -6
  102. oci/data_catalog/data_catalog_client.py +149 -149
  103. oci/data_catalog/models/base_tag.py +5 -5
  104. oci/data_catalog/models/base_tag_summary.py +5 -5
  105. oci/data_catalog/models/object_lineage.py +5 -5
  106. oci/data_flow/data_flow_client.py +42 -42
  107. oci/data_integration/data_integration_client.py +163 -163
  108. oci/data_integration/models/abstract_call_attribute.py +5 -5
  109. oci/data_integration/models/abstract_data_operation_config.py +5 -5
  110. oci/data_integration/models/cancel_rest_call_config.py +5 -5
  111. oci/data_integration/models/composite_type.py +2 -1
  112. oci/data_integration/models/conditional_composite_field_map.py +2 -1
  113. oci/data_integration/models/connection_details.py +5 -5
  114. oci/data_integration/models/connection_from_adwc_details.py +2 -1
  115. oci/data_integration/models/connection_from_atp_details.py +2 -1
  116. oci/data_integration/models/connection_from_hdfs_details.py +2 -1
  117. oci/data_integration/models/connection_from_jdbc_details.py +2 -1
  118. oci/data_integration/models/connection_from_lake_details.py +2 -1
  119. oci/data_integration/models/connection_from_my_sql_details.py +2 -1
  120. oci/data_integration/models/connection_from_my_sql_heat_wave_details.py +2 -1
  121. oci/data_integration/models/connection_from_o_auth2_details.py +7 -6
  122. oci/data_integration/models/connection_from_object_storage_details.py +2 -1
  123. oci/data_integration/models/connection_from_oracle_ebs_details.py +2 -1
  124. oci/data_integration/models/connection_from_oracle_people_soft_details.py +2 -1
  125. oci/data_integration/models/connection_from_oracle_siebel_details.py +2 -1
  126. oci/data_integration/models/connection_summary_from_adwc.py +2 -1
  127. oci/data_integration/models/connection_summary_from_atp.py +2 -1
  128. oci/data_integration/models/connection_summary_from_hdfs.py +2 -1
  129. oci/data_integration/models/connection_summary_from_jdbc.py +2 -1
  130. oci/data_integration/models/connection_summary_from_lake.py +2 -1
  131. oci/data_integration/models/connection_summary_from_my_sql.py +2 -1
  132. oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py +2 -1
  133. oci/data_integration/models/connection_summary_from_oracle_ebs.py +2 -1
  134. oci/data_integration/models/connection_summary_from_oracle_people_soft.py +2 -1
  135. oci/data_integration/models/connection_summary_from_oracle_siebel.py +2 -1
  136. oci/data_integration/models/connector_attribute.py +5 -5
  137. oci/data_integration/models/derived_type.py +2 -1
  138. oci/data_integration/models/dynamic_proxy_field.py +2 -1
  139. oci/data_integration/models/flow_port_link.py +5 -5
  140. oci/data_integration/models/key.py +5 -5
  141. oci/data_integration/models/materialized_composite_type.py +2 -1
  142. oci/data_integration/models/materialized_dynamic_field.py +2 -1
  143. oci/data_integration/models/output_link.py +2 -1
  144. oci/data_integration/models/poll_rest_call_config.py +5 -5
  145. oci/data_integration/models/rest_call_config.py +5 -5
  146. oci/data_integration/models/shape_field.py +2 -1
  147. oci/data_integration/models/task_run_lineage_details.py +5 -5
  148. oci/data_integration/models/typed_expression.py +2 -1
  149. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  150. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  151. oci/data_safe/data_safe_client.py +781 -287
  152. oci/data_safe/data_safe_client_composite_operations.py +164 -0
  153. oci/data_safe/models/__init__.py +12 -0
  154. oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py +142 -0
  155. oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py +99 -0
  156. oci/data_safe/models/generate_report_details.py +7 -3
  157. oci/data_safe/models/list_selection_mode.py +84 -0
  158. oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py +103 -0
  159. oci/data_safe/models/report.py +7 -3
  160. oci/data_safe/models/report_definition.py +7 -3
  161. oci/data_safe/models/report_summary.py +7 -3
  162. oci/data_safe/models/schedule_report_details.py +7 -3
  163. oci/data_safe/models/scim_query_selection_mode.py +98 -0
  164. oci/data_safe/models/selection_details.py +113 -0
  165. oci/data_safe/models/sql_firewall_allowed_sql.py +10 -10
  166. oci/data_safe/models/work_request.py +15 -3
  167. oci/data_safe/models/work_request_summary.py +15 -3
  168. oci/data_science/data_science_client.py +91 -91
  169. oci/data_science/models/custom_expression_query_scaling_configuration.py +2 -1
  170. oci/data_science/models/scaling_configuration.py +5 -5
  171. oci/database/database_client.py +652 -394
  172. oci/database/database_client_composite_operations.py +176 -0
  173. oci/database/models/__init__.py +6 -0
  174. oci/database/models/autonomous_database.py +31 -0
  175. oci/database/models/autonomous_database_summary.py +31 -0
  176. oci/database/models/create_autonomous_database_base.py +11 -3
  177. oci/database/models/create_autonomous_database_clone_details.py +1 -1
  178. oci/database/models/create_autonomous_database_details.py +1 -1
  179. oci/database/models/create_autonomous_database_from_backup_details.py +1 -1
  180. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +1 -1
  181. oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +1 -1
  182. oci/database/models/create_cross_region_disaster_recovery_details.py +1 -1
  183. oci/database/models/create_cross_tenancy_disaster_recovery_details.py +1 -1
  184. oci/database/models/create_refreshable_autonomous_database_clone_details.py +1 -1
  185. oci/database/models/external_database_base.py +15 -15
  186. oci/database/models/infrastructure_target_version_summary.py +5 -5
  187. oci/database/models/oci_provider_set_key_version_details.py +82 -0
  188. oci/database/models/pluggable_database.py +62 -0
  189. oci/database/models/pluggable_database_summary.py +62 -0
  190. oci/database/models/set_key_version_details.py +101 -0
  191. oci/database/models/undelete_autonomous_database_details.py +440 -0
  192. oci/database_management/db_management_client.py +211 -211
  193. oci/database_management/diagnosability_client.py +4 -4
  194. oci/database_management/managed_my_sql_databases_client.py +7 -7
  195. oci/database_management/models/awr_query_result.py +5 -5
  196. oci/database_management/models/dbm_resource.py +10 -10
  197. oci/database_management/models/discovered_external_asm_instance.py +4 -2
  198. oci/database_management/models/discovered_external_pluggable_database.py +4 -2
  199. oci/database_management/models/entity_discovered.py +10 -10
  200. oci/database_management/models/external_exadata_infrastructure_discovery_summary.py +9 -7
  201. oci/database_management/models/external_exadata_storage_grid_summary.py +4 -2
  202. oci/database_management/models/external_serviced_database.py +10 -10
  203. oci/database_management/models/external_storage_grid_discovery_summary.py +4 -2
  204. oci/database_management/models/external_storage_server_discovery_summary.py +4 -2
  205. oci/database_management/perfhub_client.py +1 -1
  206. oci/database_management/sql_tuning_client.py +17 -17
  207. oci/database_migration/database_migration_client.py +42 -42
  208. oci/database_migration/models/migration_parameter_base.py +5 -5
  209. oci/database_tools/database_tools_client.py +23 -23
  210. oci/delegate_access_control/delegate_access_control_client.py +52 -52
  211. oci/delegate_access_control/work_request_client.py +8 -8
  212. oci/demand_signal/occ_demand_signal_client.py +7 -7
  213. oci/desktops/desktop_service_client.py +21 -21
  214. oci/devops/devops_client.py +141 -141
  215. oci/devops/models/build_run_snapshot.py +5 -5
  216. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  217. oci/dns/dns_client.py +52 -52
  218. oci/dts/appliance_export_job_client.py +6 -6
  219. oci/dts/shipping_vendors_client.py +1 -1
  220. oci/dts/transfer_appliance_client.py +8 -8
  221. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  222. oci/dts/transfer_device_client.py +5 -5
  223. oci/dts/transfer_job_client.py +6 -6
  224. oci/dts/transfer_package_client.py +7 -7
  225. oci/em_warehouse/em_data_lake_client.py +13 -13
  226. oci/em_warehouse/em_warehouse_client.py +13 -13
  227. oci/email/email_client.py +31 -31
  228. oci/email_data_plane/email_dp_client.py +1 -1
  229. oci/events/events_client.py +6 -6
  230. oci/file_storage/file_storage_client.py +54 -54
  231. oci/fleet_apps_management/fleet_apps_management_admin_client.py +16 -16
  232. oci/fleet_apps_management/fleet_apps_management_client.py +70 -70
  233. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +10 -10
  234. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  235. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +8 -8
  236. oci/fleet_apps_management/models/fleet_target.py +10 -10
  237. oci/fleet_software_update/fleet_software_update_client.py +48 -48
  238. oci/fleet_software_update/models/create_db_fsu_collection_details.py +7 -3
  239. oci/fleet_software_update/models/create_gi_fsu_collection_details.py +7 -3
  240. oci/fleet_software_update/models/db_collection.py +7 -3
  241. oci/fleet_software_update/models/db_discovery_details.py +7 -3
  242. oci/fleet_software_update/models/db_fsu_collection_summary.py +7 -3
  243. oci/fleet_software_update/models/gi_collection.py +7 -3
  244. oci/fleet_software_update/models/gi_discovery_details.py +7 -3
  245. oci/fleet_software_update/models/gi_fsu_collection_summary.py +7 -3
  246. oci/fleet_software_update/models/work_request.py +7 -3
  247. oci/fleet_software_update/models/work_request_summary.py +7 -3
  248. oci/functions/functions_invoke_client.py +1 -1
  249. oci/functions/functions_management_client.py +16 -16
  250. oci/fusion_apps/data_masking_activity_client.py +3 -3
  251. oci/fusion_apps/fusion_applications_client.py +41 -41
  252. oci/fusion_apps/fusion_environment_client.py +15 -15
  253. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  254. oci/fusion_apps/models/allow_rule.py +1 -1
  255. oci/fusion_apps/models/create_refresh_activity_details.py +31 -0
  256. oci/fusion_apps/models/maintenance_policy.py +10 -10
  257. oci/fusion_apps/models/refresh_activity.py +31 -0
  258. oci/fusion_apps/models/refresh_activity_summary.py +31 -0
  259. oci/fusion_apps/refresh_activity_client.py +4 -4
  260. oci/fusion_apps/scheduled_activity_client.py +2 -2
  261. oci/fusion_apps/service_attachment_client.py +2 -2
  262. oci/generative_ai/generative_ai_client.py +23 -23
  263. oci/generative_ai/models/create_endpoint_details.py +2 -2
  264. oci/generative_ai/models/dedicated_ai_cluster.py +7 -3
  265. oci/generative_ai_agent/__init__.py +14 -0
  266. oci/generative_ai_agent/generative_ai_agent_client.py +4245 -0
  267. oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py +774 -0
  268. oci/generative_ai_agent/models/__init__.py +118 -0
  269. oci/generative_ai_agent/models/agent.py +536 -0
  270. oci/generative_ai_agent/models/agent_collection.py +74 -0
  271. oci/generative_ai_agent/models/agent_endpoint.py +648 -0
  272. oci/generative_ai_agent/models/agent_endpoint_collection.py +74 -0
  273. oci/generative_ai_agent/models/agent_endpoint_summary.py +612 -0
  274. oci/generative_ai_agent/models/agent_summary.py +500 -0
  275. oci/generative_ai_agent/models/basic_auth_secret.py +88 -0
  276. oci/generative_ai_agent/models/change_agent_compartment_details.py +78 -0
  277. oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py +78 -0
  278. oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py +78 -0
  279. oci/generative_ai_agent/models/content_moderation_config.py +103 -0
  280. oci/generative_ai_agent/models/create_agent_details.py +288 -0
  281. oci/generative_ai_agent/models/create_agent_endpoint_details.py +400 -0
  282. oci/generative_ai_agent/models/create_data_ingestion_job_details.py +257 -0
  283. oci/generative_ai_agent/models/create_data_source_details.py +284 -0
  284. oci/generative_ai_agent/models/create_knowledge_base_details.py +249 -0
  285. oci/generative_ai_agent/models/data_ingestion_job.py +536 -0
  286. oci/generative_ai_agent/models/data_ingestion_job_collection.py +74 -0
  287. oci/generative_ai_agent/models/data_ingestion_job_statistics.py +136 -0
  288. oci/generative_ai_agent/models/data_ingestion_job_summary.py +469 -0
  289. oci/generative_ai_agent/models/data_source.py +536 -0
  290. oci/generative_ai_agent/models/data_source_collection.py +74 -0
  291. oci/generative_ai_agent/models/data_source_config.py +107 -0
  292. oci/generative_ai_agent/models/data_source_summary.py +469 -0
  293. oci/generative_ai_agent/models/database_connection.py +107 -0
  294. oci/generative_ai_agent/models/database_function.py +74 -0
  295. oci/generative_ai_agent/models/database_tool_connection.py +88 -0
  296. oci/generative_ai_agent/models/default_index_config.py +84 -0
  297. oci/generative_ai_agent/models/idcs_secret.py +181 -0
  298. oci/generative_ai_agent/models/index.py +101 -0
  299. oci/generative_ai_agent/models/index_config.py +127 -0
  300. oci/generative_ai_agent/models/index_schema.py +167 -0
  301. oci/generative_ai_agent/models/knowledge_base.py +501 -0
  302. oci/generative_ai_agent/models/knowledge_base_collection.py +74 -0
  303. oci/generative_ai_agent/models/knowledge_base_summary.py +434 -0
  304. oci/generative_ai_agent/models/object_storage_prefix.py +136 -0
  305. oci/generative_ai_agent/models/oci_database_config.py +111 -0
  306. oci/generative_ai_agent/models/oci_object_storage_data_source_config.py +84 -0
  307. oci/generative_ai_agent/models/oci_open_search_index_config.py +146 -0
  308. oci/generative_ai_agent/models/secret_detail.py +117 -0
  309. oci/generative_ai_agent/models/session_config.py +74 -0
  310. oci/generative_ai_agent/models/update_agent_details.py +253 -0
  311. oci/generative_ai_agent/models/update_agent_endpoint_details.py +303 -0
  312. oci/generative_ai_agent/models/update_data_source_details.py +214 -0
  313. oci/generative_ai_agent/models/update_knowledge_base_details.py +214 -0
  314. oci/generative_ai_agent/models/work_request.py +505 -0
  315. oci/generative_ai_agent/models/work_request_error.py +148 -0
  316. oci/generative_ai_agent/models/work_request_error_collection.py +74 -0
  317. oci/generative_ai_agent/models/work_request_log_entry.py +111 -0
  318. oci/generative_ai_agent/models/work_request_log_entry_collection.py +74 -0
  319. oci/generative_ai_agent/models/work_request_resource.py +240 -0
  320. oci/generative_ai_agent/models/work_request_summary.py +503 -0
  321. oci/generative_ai_agent/models/work_request_summary_collection.py +74 -0
  322. oci/generative_ai_agent_runtime/__init__.py +14 -0
  323. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +689 -0
  324. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py +26 -0
  325. oci/generative_ai_agent_runtime/models/__init__.py +44 -0
  326. oci/generative_ai_agent_runtime/models/chat_details.py +134 -0
  327. oci/generative_ai_agent_runtime/models/chat_result.py +99 -0
  328. oci/generative_ai_agent_runtime/models/citation.py +99 -0
  329. oci/generative_ai_agent_runtime/models/create_session_details.py +103 -0
  330. oci/generative_ai_agent_runtime/models/error_trace.py +89 -0
  331. oci/generative_ai_agent_runtime/models/generation_trace.py +89 -0
  332. oci/generative_ai_agent_runtime/models/message.py +146 -0
  333. oci/generative_ai_agent_runtime/models/message_content.py +103 -0
  334. oci/generative_ai_agent_runtime/models/oci_database_source_location.py +148 -0
  335. oci/generative_ai_agent_runtime/models/oci_object_storage_source_location.py +82 -0
  336. oci/generative_ai_agent_runtime/models/oci_open_search_source_location.py +144 -0
  337. oci/generative_ai_agent_runtime/models/retrieval_trace.py +120 -0
  338. oci/generative_ai_agent_runtime/models/session.py +227 -0
  339. oci/generative_ai_agent_runtime/models/source_location.py +117 -0
  340. oci/generative_ai_agent_runtime/models/trace.py +148 -0
  341. oci/generative_ai_agent_runtime/models/update_session_details.py +103 -0
  342. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  343. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  344. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  345. oci/golden_gate/golden_gate_client.py +68 -68
  346. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  347. oci/governance_rules_control_plane/work_request_client.py +5 -5
  348. oci/healthchecks/health_checks_client.py +17 -17
  349. oci/identity/identity_client.py +145 -145
  350. oci/identity_data_plane/dataplane_client.py +2 -2
  351. oci/identity_domains/identity_domains_client.py +307 -307
  352. oci/integration/integration_instance_client.py +255 -18
  353. oci/integration/integration_instance_client_composite_operations.py +81 -0
  354. oci/integration/models/__init__.py +2 -0
  355. oci/integration/models/add_oracle_managed_custom_endpoint_details.py +146 -0
  356. oci/integration/models/custom_endpoint_details.py +121 -0
  357. oci/integration/models/integration_instance.py +34 -7
  358. oci/integration/models/integration_instance_summary.py +34 -7
  359. oci/integration/models/work_request.py +11 -3
  360. oci/integration/models/work_request_summary.py +11 -3
  361. oci/jms/java_management_service_client.py +75 -75
  362. oci/jms_java_downloads/java_download_client.py +25 -25
  363. oci/key_management/ekm_client.py +5 -5
  364. oci/key_management/kms_crypto_client.py +6 -6
  365. oci/key_management/kms_hsm_cluster_client.py +12 -12
  366. oci/key_management/kms_management_client.py +21 -21
  367. oci/key_management/kms_vault_client.py +14 -14
  368. oci/license_manager/license_manager_client.py +18 -18
  369. oci/limits/limits_client.py +4 -4
  370. oci/limits/quotas_client.py +7 -7
  371. oci/load_balancer/load_balancer_client.py +61 -61
  372. oci/lockbox/lockbox_client.py +24 -24
  373. oci/lockbox/models/access_request.py +35 -2
  374. oci/lockbox/models/access_request_ext.py +35 -2
  375. oci/lockbox/models/access_request_summary.py +33 -0
  376. oci/lockbox/models/create_access_request_details.py +35 -2
  377. oci/log_analytics/log_analytics_client.py +193 -193
  378. oci/log_analytics/models/chart_data_column.py +6 -3
  379. oci/log_analytics/models/function_field.py +4 -2
  380. oci/log_analytics/models/time_cluster_data_column.py +6 -3
  381. oci/log_analytics/models/time_stats_data_column.py +6 -3
  382. oci/logging/logging_management_client.py +30 -30
  383. oci/logging/models/unified_agent_monitoring_filter.py +5 -5
  384. oci/logging/models/unified_agent_tail_log_source.py +2 -1
  385. oci/logging/models/unified_agent_url_filter.py +2 -1
  386. oci/loggingingestion/logging_client.py +1 -1
  387. oci/loggingsearch/log_search_client.py +1 -1
  388. oci/management_agent/management_agent_client.py +28 -28
  389. oci/management_dashboard/dashx_apis_client.py +14 -14
  390. oci/marketplace/account_client.py +2 -2
  391. oci/marketplace/marketplace_client.py +30 -30
  392. oci/marketplace_private_offer/attachment_client.py +5 -5
  393. oci/marketplace_private_offer/offer_client.py +6 -6
  394. oci/marketplace_publisher/attachment_client.py +5 -5
  395. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  396. oci/marketplace_publisher/offer_client.py +6 -6
  397. oci/media_services/media_services_client.py +60 -60
  398. oci/media_services/media_stream_client.py +2 -2
  399. oci/monitoring/models/__init__.py +6 -0
  400. oci/monitoring/models/alarm_status_summary.py +2 -0
  401. oci/monitoring/models/alarm_suppression.py +94 -2
  402. oci/monitoring/models/alarm_suppression_alarm_target.py +1 -1
  403. oci/monitoring/models/alarm_suppression_collection.py +3 -3
  404. oci/monitoring/models/alarm_suppression_compartment_target.py +127 -0
  405. oci/monitoring/models/alarm_suppression_history_item.py +43 -2
  406. oci/monitoring/models/alarm_suppression_summary.py +78 -2
  407. oci/monitoring/models/alarm_suppression_target.py +11 -3
  408. oci/monitoring/models/create_alarm_suppression_details.py +86 -6
  409. oci/monitoring/models/recurrence.py +127 -0
  410. oci/monitoring/models/suppression.py +1 -0
  411. oci/monitoring/models/suppression_condition.py +101 -0
  412. oci/monitoring/monitoring_client.py +115 -33
  413. oci/mysql/channels_client.py +7 -7
  414. oci/mysql/db_backups_client.py +7 -7
  415. oci/mysql/db_system_client.py +17 -17
  416. oci/mysql/mysqlaas_client.py +7 -7
  417. oci/mysql/replicas_client.py +5 -5
  418. oci/mysql/work_requests_client.py +4 -4
  419. oci/network_firewall/network_firewall_client.py +86 -86
  420. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  421. oci/nosql/nosql_client.py +24 -24
  422. oci/object_storage/object_storage_client.py +55 -55
  423. oci/oce/oce_instance_client.py +10 -10
  424. oci/oci_control_center/occ_metrics_client.py +3 -3
  425. oci/ocvp/cluster_client.py +5 -5
  426. oci/ocvp/esxi_host_client.py +8 -8
  427. oci/ocvp/sddc_client.py +14 -14
  428. oci/ocvp/work_request_client.py +4 -4
  429. oci/oda/management_client.py +59 -59
  430. oci/oda/models/bot.py +15 -15
  431. oci/oda/models/parameter.py +10 -10
  432. oci/oda/oda_client.py +17 -17
  433. oci/oda/odapackage_client.py +7 -7
  434. oci/onesubscription/billing_schedule_client.py +1 -1
  435. oci/onesubscription/commitment_client.py +2 -2
  436. oci/onesubscription/computed_usage_client.py +3 -3
  437. oci/onesubscription/invoice_summary_client.py +2 -2
  438. oci/onesubscription/organization_subscription_client.py +1 -1
  439. oci/onesubscription/ratecard_client.py +1 -1
  440. oci/onesubscription/subscribed_service_client.py +2 -2
  441. oci/onesubscription/subscription_client.py +1 -1
  442. oci/ons/notification_control_plane_client.py +6 -6
  443. oci/ons/notification_data_plane_client.py +10 -10
  444. oci/opa/opa_instance_client.py +13 -13
  445. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  446. oci/opensearch/opensearch_cluster_client.py +14 -14
  447. oci/operator_access_control/access_requests_client.py +10 -10
  448. oci/operator_access_control/operator_actions_client.py +2 -2
  449. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  450. oci/operator_access_control/operator_control_client.py +6 -6
  451. oci/opsi/models/__init__.py +50 -0
  452. oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py +1 -1
  453. oci/opsi/models/add_exadata_insight_members_details.py +11 -3
  454. oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py +78 -0
  455. oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py +1 -1
  456. oci/opsi/models/autonomous_database_configuration_summary.py +1 -1
  457. oci/opsi/models/autonomous_database_insight.py +1 -1
  458. oci/opsi/models/autonomous_database_insight_summary.py +1 -1
  459. oci/opsi/models/awr_query_result.py +5 -5
  460. oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py +130 -0
  461. oci/opsi/models/create_database_insight_details.py +11 -3
  462. oci/opsi/models/create_em_managed_external_database_insight_details.py +1 -1
  463. oci/opsi/models/create_em_managed_external_exadata_insight_details.py +1 -1
  464. oci/opsi/models/create_em_managed_external_host_insight_details.py +1 -1
  465. oci/opsi/models/create_exadata_insight_details.py +11 -3
  466. oci/opsi/models/create_host_insight_details.py +7 -3
  467. oci/opsi/models/create_macs_managed_cloud_database_insight_details.py +315 -0
  468. oci/opsi/models/create_macs_managed_cloud_exadata_cluster_details.py +171 -0
  469. oci/opsi/models/create_macs_managed_cloud_exadata_insight_details.py +134 -0
  470. oci/opsi/models/create_macs_managed_cloud_exadata_vmcluster_details.py +96 -0
  471. oci/opsi/models/create_macs_managed_cloud_host_insight_details.py +1 -1
  472. oci/opsi/models/create_macs_managed_external_host_insight_details.py +1 -1
  473. oci/opsi/models/create_mds_my_sql_database_insight_details.py +1 -1
  474. oci/opsi/models/create_pe_comanaged_database_insight_details.py +1 -1
  475. oci/opsi/models/create_pe_comanaged_exadata_insight_details.py +1 -1
  476. oci/opsi/models/database_configuration_metric_group.py +35 -3
  477. oci/opsi/models/database_configuration_summary.py +11 -3
  478. oci/opsi/models/database_insight.py +11 -3
  479. oci/opsi/models/database_insight_summary.py +11 -3
  480. oci/opsi/models/db_connection_status.py +58 -0
  481. oci/opsi/models/db_external_instance.py +1 -1
  482. oci/opsi/models/db_external_properties.py +1 -1
  483. oci/opsi/models/db_parameters.py +1 -1
  484. oci/opsi/models/dbos_config_instance.py +1 -1
  485. oci/opsi/models/em_managed_external_database_configuration_summary.py +127 -3
  486. oci/opsi/models/em_managed_external_database_insight.py +1 -1
  487. oci/opsi/models/em_managed_external_database_insight_summary.py +1 -1
  488. oci/opsi/models/em_managed_external_exadata_insight.py +2 -2
  489. oci/opsi/models/em_managed_external_exadata_insight_summary.py +2 -2
  490. oci/opsi/models/em_managed_external_host_configuration_summary.py +127 -3
  491. oci/opsi/models/em_managed_external_host_insight.py +1 -1
  492. oci/opsi/models/em_managed_external_host_insight_summary.py +1 -1
  493. oci/opsi/models/enable_database_insight_details.py +11 -3
  494. oci/opsi/models/enable_em_managed_external_database_insight_details.py +1 -1
  495. oci/opsi/models/enable_em_managed_external_exadata_insight_details.py +1 -1
  496. oci/opsi/models/enable_em_managed_external_host_insight_details.py +1 -1
  497. oci/opsi/models/enable_exadata_insight_details.py +11 -3
  498. oci/opsi/models/enable_host_insight_details.py +7 -3
  499. oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py +274 -0
  500. oci/opsi/models/enable_macs_managed_cloud_exadata_insight_details.py +51 -0
  501. oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py +1 -1
  502. oci/opsi/models/enable_macs_managed_external_host_insight_details.py +1 -1
  503. oci/opsi/models/enable_mds_my_sql_database_insight_details.py +1 -1
  504. oci/opsi/models/enable_pe_comanaged_database_insight_details.py +1 -1
  505. oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py +1 -1
  506. oci/opsi/models/exadata_asm_entity.py +151 -0
  507. oci/opsi/models/exadata_cell_config.py +213 -0
  508. oci/opsi/models/exadata_configuration_summary.py +30 -6
  509. oci/opsi/models/exadata_database_machine_configuration_summary.py +128 -4
  510. oci/opsi/models/exadata_exacc_configuration_summary.py +186 -0
  511. oci/opsi/models/exadata_exacs_configuration_summary.py +2 -2
  512. oci/opsi/models/exadata_insight.py +30 -6
  513. oci/opsi/models/exadata_insight_summary.py +30 -6
  514. oci/opsi/models/exadata_member_collection.py +19 -3
  515. oci/opsi/models/host_allocation.py +120 -0
  516. oci/opsi/models/host_configuration_summary.py +11 -3
  517. oci/opsi/models/host_containers.py +2 -2
  518. oci/opsi/models/host_insight.py +11 -3
  519. oci/opsi/models/host_insight_summary.py +11 -3
  520. oci/opsi/models/macs_managed_cloud_database_configuration_summary.py +253 -0
  521. oci/opsi/models/macs_managed_cloud_database_host_insight.py +394 -0
  522. oci/opsi/models/macs_managed_cloud_database_host_insight_summary.py +339 -0
  523. oci/opsi/models/macs_managed_cloud_database_insight.py +469 -0
  524. oci/opsi/models/macs_managed_cloud_database_insight_summary.py +315 -0
  525. oci/opsi/models/macs_managed_cloud_db_host_configuration_summary.py +282 -0
  526. oci/opsi/models/macs_managed_cloud_exadata_insight.py +278 -0
  527. oci/opsi/models/macs_managed_cloud_exadata_insight_summary.py +271 -0
  528. oci/opsi/models/macs_managed_cloud_host_configuration_summary.py +1 -1
  529. oci/opsi/models/macs_managed_cloud_host_insight.py +1 -1
  530. oci/opsi/models/macs_managed_cloud_host_insight_summary.py +1 -1
  531. oci/opsi/models/macs_managed_external_database_configuration_summary.py +1 -1
  532. oci/opsi/models/macs_managed_external_database_insight.py +1 -1
  533. oci/opsi/models/macs_managed_external_database_insight_summary.py +1 -1
  534. oci/opsi/models/macs_managed_external_host_configuration_summary.py +1 -1
  535. oci/opsi/models/macs_managed_external_host_insight.py +1 -1
  536. oci/opsi/models/macs_managed_external_host_insight_summary.py +1 -1
  537. oci/opsi/models/mds_my_sql_database_insight.py +1 -1
  538. oci/opsi/models/mds_my_sql_database_insight_summary.py +1 -1
  539. oci/opsi/models/mds_mysql_database_configuration_summary.py +1 -1
  540. oci/opsi/models/pe_comanaged_database_insight.py +1 -1
  541. oci/opsi/models/pe_comanaged_database_insight_summary.py +1 -1
  542. oci/opsi/models/pe_comanaged_exadata_insight.py +9 -5
  543. oci/opsi/models/pe_comanaged_exadata_insight_summary.py +9 -5
  544. oci/opsi/models/pe_comanaged_host_configuration_summary.py +1 -1
  545. oci/opsi/models/pe_comanaged_host_insight.py +1 -1
  546. oci/opsi/models/pe_comanaged_host_insight_summary.py +1 -1
  547. oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py +1 -1
  548. oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py +130 -0
  549. oci/opsi/models/update_autonomous_database_insight_details.py +1 -1
  550. oci/opsi/models/update_database_insight_details.py +11 -3
  551. oci/opsi/models/update_em_managed_external_database_insight_details.py +1 -1
  552. oci/opsi/models/update_em_managed_external_exadata_insight_details.py +1 -1
  553. oci/opsi/models/update_em_managed_external_host_insight_details.py +1 -1
  554. oci/opsi/models/update_exadata_insight_details.py +11 -3
  555. oci/opsi/models/update_host_insight_details.py +11 -3
  556. oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py +65 -0
  557. oci/opsi/models/update_macs_managed_cloud_database_insight_details.py +65 -0
  558. oci/opsi/models/update_macs_managed_cloud_exadata_insight_details.py +65 -0
  559. oci/opsi/models/update_macs_managed_cloud_host_insight_details.py +1 -1
  560. oci/opsi/models/update_macs_managed_external_database_insight_details.py +1 -1
  561. oci/opsi/models/update_macs_managed_external_host_insight_details.py +1 -1
  562. oci/opsi/models/update_mds_my_sql_database_insight.py +1 -1
  563. oci/opsi/models/update_pe_comanaged_database_insight_details.py +1 -1
  564. oci/opsi/models/update_pe_comanaged_exadata_insight_details.py +1 -1
  565. oci/opsi/models/update_pe_comanaged_host_insight_details.py +1 -1
  566. oci/opsi/models/work_request.py +11 -3
  567. oci/opsi/operations_insights_client.py +482 -214
  568. oci/opsi/operations_insights_client_composite_operations.py +81 -0
  569. oci/optimizer/optimizer_client.py +26 -26
  570. oci/os_management/event_client.py +8 -8
  571. oci/os_management/os_management_client.py +69 -69
  572. oci/os_management_hub/event_client.py +8 -8
  573. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  574. oci/os_management_hub/managed_instance_client.py +31 -31
  575. oci/os_management_hub/managed_instance_group_client.py +25 -25
  576. oci/os_management_hub/management_station_client.py +10 -10
  577. oci/os_management_hub/models/event_content.py +5 -5
  578. oci/os_management_hub/models/exploit_attempt_event_content.py +2 -1
  579. oci/os_management_hub/models/package_summary.py +10 -10
  580. oci/os_management_hub/onboarding_client.py +6 -6
  581. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  582. oci/os_management_hub/scheduled_job_client.py +7 -7
  583. oci/os_management_hub/software_source_client.py +27 -27
  584. oci/os_management_hub/work_request_client.py +4 -4
  585. oci/osp_gateway/address_rule_service_client.py +1 -1
  586. oci/osp_gateway/address_service_client.py +2 -2
  587. oci/osp_gateway/invoice_service_client.py +5 -5
  588. oci/osp_gateway/subscription_service_client.py +5 -5
  589. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  590. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  591. oci/osub_subscription/commitment_client.py +2 -2
  592. oci/osub_subscription/ratecard_client.py +1 -1
  593. oci/osub_subscription/subscription_client.py +1 -1
  594. oci/osub_usage/computed_usage_client.py +3 -3
  595. oci/psql/postgresql_client.py +33 -33
  596. oci/queue/queue_admin_client.py +11 -11
  597. oci/queue/queue_client.py +8 -8
  598. oci/recovery/database_recovery_client.py +26 -26
  599. oci/redis/redis_cluster_client.py +12 -12
  600. oci/regions_definitions.py +3 -0
  601. oci/resource_manager/resource_manager_client.py +52 -52
  602. oci/resource_scheduler/schedule_client.py +13 -13
  603. oci/resource_search/resource_search_client.py +3 -3
  604. oci/rover/rover_bundle_client.py +8 -8
  605. oci/rover/rover_cluster_client.py +8 -8
  606. oci/rover/rover_entitlement_client.py +6 -6
  607. oci/rover/rover_node_client.py +15 -15
  608. oci/rover/shape_client.py +1 -1
  609. oci/rover/work_requests_client.py +5 -5
  610. oci/sch/connector_plugins_client.py +2 -2
  611. oci/sch/service_connector_client.py +12 -12
  612. oci/secrets/secrets_client.py +3 -3
  613. oci/service_catalog/service_catalog_client.py +26 -26
  614. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  615. oci/service_mesh/models/traffic_rule_target.py +5 -5
  616. oci/service_mesh/service_mesh_client.py +48 -48
  617. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  618. oci/streaming/stream_admin_client.py +18 -18
  619. oci/streaming/stream_client.py +8 -8
  620. oci/tenant_manager_control_plane/domain_client.py +5 -5
  621. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  622. oci/tenant_manager_control_plane/governance_client.py +2 -2
  623. oci/tenant_manager_control_plane/link_client.py +3 -3
  624. oci/tenant_manager_control_plane/orders_client.py +2 -2
  625. oci/tenant_manager_control_plane/organization_client.py +10 -10
  626. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  627. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  628. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  629. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  630. oci/threat_intelligence/threatintel_client.py +5 -5
  631. oci/usage/resources_client.py +2 -2
  632. oci/usage/rewards_client.py +6 -6
  633. oci/usage/usagelimits_client.py +1 -1
  634. oci/usage_api/usageapi_client.py +33 -33
  635. oci/vault/vaults_client.py +13 -13
  636. oci/vbs_inst/vbs_instance_client.py +10 -10
  637. oci/version.py +1 -1
  638. oci/visual_builder/vb_instance_client.py +13 -13
  639. oci/vn_monitoring/models/topology.py +5 -5
  640. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  641. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  642. oci/waa/waa_client.py +13 -13
  643. oci/waa/work_request_client.py +4 -4
  644. oci/waas/redirect_client.py +6 -6
  645. oci/waas/waas_client.py +66 -66
  646. oci/waf/models/protection_rule.py +4 -2
  647. oci/waf/models/request_rate_limiting_rule.py +4 -2
  648. oci/waf/models/web_app_firewall_policy_rule.py +10 -10
  649. oci/waf/waf_client.py +24 -24
  650. oci/work_requests/work_request_client.py +4 -4
  651. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/METADATA +1 -1
  652. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/RECORD +656 -519
  653. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/LICENSE.txt +0 -0
  654. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  655. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/WHEEL +0 -0
  656. {oci-2.133.0.dist-info → oci-2.135.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,689 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, 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: 20240531
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 generative_ai_agent_runtime_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class GenerativeAiAgentRuntimeClient(object):
24
+ """
25
+ OCI Generative AI Agents is a fully managed service that combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications smart and efficient.
26
+
27
+ OCI Generative AI Agents supports several ways to onboard your data and then allows you and your customers to interact with your data using a chat interface or API.
28
+
29
+ Use the Generative AI Agents Client API to create and manage client chat sessions. A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.
30
+
31
+ For creating and managing agents, knowledge bases, data sources, endpoints, and data ingestion jobs see the [Generative AI Agents Management API](#/EN/generative-ai-agents/latest/).
32
+
33
+ To learn more about the service, see the [Generative AI Agents documentation](/iaas/Content/generative-ai-agents/home.htm).
34
+ """
35
+
36
+ def __init__(self, config, **kwargs):
37
+ """
38
+ Creates a new service client
39
+
40
+ :param dict config:
41
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
42
+ 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
43
+ the dict using :py:meth:`~oci.config.validate_config`
44
+
45
+ :param str service_endpoint: (optional)
46
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
47
+ 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
48
+ need to specify a service endpoint.
49
+
50
+ :param timeout: (optional)
51
+ 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
52
+ 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
53
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
54
+ :type timeout: float or tuple(float, float)
55
+
56
+ :param signer: (optional)
57
+ 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
58
+ provided in the config parameter.
59
+
60
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
61
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
62
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
63
+
64
+ :param obj retry_strategy: (optional)
65
+ 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.
66
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
67
+ Any value provided at the operation level will override whatever is specified at the client level.
68
+
69
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
70
+ 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>`__.
71
+
72
+ :param obj circuit_breaker_strategy: (optional)
73
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
74
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
75
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
76
+
77
+ :param function circuit_breaker_callback: (optional)
78
+ Callback function to receive any exceptions triggerred by the circuit breaker.
79
+
80
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
81
+ 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.
82
+
83
+ :param allow_control_chars: (optional)
84
+ 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
85
+ allow control characters to be in the response object.
86
+ """
87
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("generative_ai_agent_runtime"):
88
+ 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")
89
+
90
+ validate_config(config, signer=kwargs.get('signer'))
91
+ if 'signer' in kwargs:
92
+ signer = kwargs['signer']
93
+
94
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
95
+ signer = get_signer_from_authentication_type(config)
96
+
97
+ else:
98
+ signer = Signer(
99
+ tenancy=config["tenancy"],
100
+ user=config["user"],
101
+ fingerprint=config["fingerprint"],
102
+ private_key_file_location=config.get("key_file"),
103
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
104
+ private_key_content=config.get("key_content")
105
+ )
106
+
107
+ base_client_init_kwargs = {
108
+ 'regional_client': True,
109
+ 'service_endpoint': kwargs.get('service_endpoint'),
110
+ 'base_path': '/20240531',
111
+ 'service_endpoint_template': 'https://genai-agent-service.{region}.oci.{secondLevelDomain}',
112
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
113
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
114
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
115
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
116
+ }
117
+ if 'timeout' in kwargs:
118
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
119
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
120
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
121
+ if 'allow_control_chars' in kwargs:
122
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
123
+ self.base_client = BaseClient("generative_ai_agent_runtime", config, signer, generative_ai_agent_runtime_type_mapping, **base_client_init_kwargs)
124
+ self.retry_strategy = kwargs.get('retry_strategy')
125
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
126
+
127
+ def chat(self, agent_endpoint_id, chat_details, **kwargs):
128
+ """
129
+ Chat on endpoint with provided messages.
130
+
131
+
132
+ :param str agent_endpoint_id: (required)
133
+ A unique ID for the endpoint.
134
+
135
+ :param oci.generative_ai_agent_runtime.models.ChatDetails chat_details: (required)
136
+ Input for chat.
137
+
138
+ :param str opc_request_id: (optional)
139
+ The client request ID for tracing.
140
+
141
+ :param str if_match: (optional)
142
+ For optimistic concurrency control. In the PUT or DELETE call
143
+ for a resource, set the `if-match` parameter to the value of the
144
+ etag from a previous GET or POST response for that resource.
145
+ The resource will be updated or deleted only if the etag you
146
+ provide matches the resource's current etag value.
147
+
148
+ :param str opc_retry_token: (optional)
149
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
150
+ server error without risk of executing that same action again. Retry tokens expire after 24
151
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
152
+ has been deleted and purged from the system, then a retry of the original creation request
153
+ might be rejected.
154
+
155
+ :param obj retry_strategy: (optional)
156
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
157
+
158
+ 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.
159
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
160
+
161
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
162
+
163
+ :param bool allow_control_chars: (optional)
164
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
165
+ By default, the response will not allow control characters in strings
166
+
167
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.ChatResult`
168
+ :rtype: :class:`~oci.response.Response`
169
+
170
+ :example:
171
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.0/generativeaiagentruntime/chat.py.html>`__ to see an example of how to use chat API.
172
+ """
173
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
174
+ required_arguments = ['agentEndpointId']
175
+ resource_path = "/agentEndpoints/{agentEndpointId}/actions/chat"
176
+ method = "POST"
177
+ operation_name = "chat"
178
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/Chat"
179
+
180
+ # Don't accept unknown kwargs
181
+ expected_kwargs = [
182
+ "allow_control_chars",
183
+ "retry_strategy",
184
+ "opc_request_id",
185
+ "if_match",
186
+ "opc_retry_token"
187
+ ]
188
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
189
+ if extra_kwargs:
190
+ raise ValueError(
191
+ f"chat got unknown kwargs: {extra_kwargs!r}")
192
+
193
+ path_params = {
194
+ "agentEndpointId": agent_endpoint_id
195
+ }
196
+
197
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
198
+
199
+ for (k, v) in six.iteritems(path_params):
200
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
201
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
202
+
203
+ header_params = {
204
+ "accept": "application/json, text/event-stream",
205
+ "content-type": "application/json",
206
+ "opc-request-id": kwargs.get("opc_request_id", missing),
207
+ "if-match": kwargs.get("if_match", missing),
208
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
209
+ }
210
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
211
+
212
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
213
+ operation_retry_strategy=kwargs.get('retry_strategy'),
214
+ client_retry_strategy=self.retry_strategy
215
+ )
216
+ if retry_strategy is None:
217
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
218
+
219
+ if retry_strategy:
220
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
221
+ self.base_client.add_opc_retry_token_if_needed(header_params)
222
+ self.base_client.add_opc_client_retries_header(header_params)
223
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
224
+ return retry_strategy.make_retrying_call(
225
+ self.base_client.call_api,
226
+ resource_path=resource_path,
227
+ method=method,
228
+ path_params=path_params,
229
+ header_params=header_params,
230
+ body=chat_details,
231
+ response_type="ChatResult",
232
+ allow_control_chars=kwargs.get('allow_control_chars'),
233
+ operation_name=operation_name,
234
+ api_reference_link=api_reference_link,
235
+ required_arguments=required_arguments)
236
+ else:
237
+ return self.base_client.call_api(
238
+ resource_path=resource_path,
239
+ method=method,
240
+ path_params=path_params,
241
+ header_params=header_params,
242
+ body=chat_details,
243
+ response_type="ChatResult",
244
+ allow_control_chars=kwargs.get('allow_control_chars'),
245
+ operation_name=operation_name,
246
+ api_reference_link=api_reference_link,
247
+ required_arguments=required_arguments)
248
+
249
+ def create_session(self, create_session_details, agent_endpoint_id, **kwargs):
250
+ """
251
+ A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.Creates an agent session.
252
+
253
+ Use this API to create an agent session.
254
+
255
+
256
+ :param oci.generative_ai_agent_runtime.models.CreateSessionDetails create_session_details: (required)
257
+ Details for the new agent session.
258
+
259
+ :param str agent_endpoint_id: (required)
260
+ A unique ID for the endpoint.
261
+
262
+ :param str opc_retry_token: (optional)
263
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
264
+ server error without risk of executing that same action again. Retry tokens expire after 24
265
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
266
+ has been deleted and purged from the system, then a retry of the original creation request
267
+ might be rejected.
268
+
269
+ :param str opc_request_id: (optional)
270
+ The client request ID for tracing.
271
+
272
+ :param obj retry_strategy: (optional)
273
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
274
+
275
+ 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.
276
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
277
+
278
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
279
+
280
+ :param bool allow_control_chars: (optional)
281
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
282
+ By default, the response will not allow control characters in strings
283
+
284
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session`
285
+ :rtype: :class:`~oci.response.Response`
286
+
287
+ :example:
288
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.0/generativeaiagentruntime/create_session.py.html>`__ to see an example of how to use create_session API.
289
+ """
290
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
291
+ required_arguments = ['agentEndpointId']
292
+ resource_path = "/agentEndpoints/{agentEndpointId}/sessions"
293
+ method = "POST"
294
+ operation_name = "create_session"
295
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/CreateSession"
296
+
297
+ # Don't accept unknown kwargs
298
+ expected_kwargs = [
299
+ "allow_control_chars",
300
+ "retry_strategy",
301
+ "opc_retry_token",
302
+ "opc_request_id"
303
+ ]
304
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
305
+ if extra_kwargs:
306
+ raise ValueError(
307
+ f"create_session got unknown kwargs: {extra_kwargs!r}")
308
+
309
+ path_params = {
310
+ "agentEndpointId": agent_endpoint_id
311
+ }
312
+
313
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
314
+
315
+ for (k, v) in six.iteritems(path_params):
316
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
317
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
318
+
319
+ header_params = {
320
+ "accept": "application/json",
321
+ "content-type": "application/json",
322
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
323
+ "opc-request-id": kwargs.get("opc_request_id", missing)
324
+ }
325
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
326
+
327
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
328
+ operation_retry_strategy=kwargs.get('retry_strategy'),
329
+ client_retry_strategy=self.retry_strategy
330
+ )
331
+ if retry_strategy is None:
332
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
333
+
334
+ if retry_strategy:
335
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
336
+ self.base_client.add_opc_retry_token_if_needed(header_params)
337
+ self.base_client.add_opc_client_retries_header(header_params)
338
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
339
+ return retry_strategy.make_retrying_call(
340
+ self.base_client.call_api,
341
+ resource_path=resource_path,
342
+ method=method,
343
+ path_params=path_params,
344
+ header_params=header_params,
345
+ body=create_session_details,
346
+ response_type="Session",
347
+ allow_control_chars=kwargs.get('allow_control_chars'),
348
+ operation_name=operation_name,
349
+ api_reference_link=api_reference_link,
350
+ required_arguments=required_arguments)
351
+ else:
352
+ return self.base_client.call_api(
353
+ resource_path=resource_path,
354
+ method=method,
355
+ path_params=path_params,
356
+ header_params=header_params,
357
+ body=create_session_details,
358
+ response_type="Session",
359
+ allow_control_chars=kwargs.get('allow_control_chars'),
360
+ operation_name=operation_name,
361
+ api_reference_link=api_reference_link,
362
+ required_arguments=required_arguments)
363
+
364
+ def delete_session(self, agent_endpoint_id, session_id, **kwargs):
365
+ """
366
+ Delete a session and all its associated information.
367
+
368
+
369
+ :param str agent_endpoint_id: (required)
370
+ A unique ID for the endpoint.
371
+
372
+ :param str session_id: (required)
373
+ A unique ID for the session.
374
+
375
+ :param str if_match: (optional)
376
+ For optimistic concurrency control. In the PUT or DELETE call
377
+ for a resource, set the `if-match` parameter to the value of the
378
+ etag from a previous GET or POST response for that resource.
379
+ The resource will be updated or deleted only if the etag you
380
+ provide matches the resource's current etag value.
381
+
382
+ :param str opc_request_id: (optional)
383
+ The client request ID for tracing.
384
+
385
+ :param obj retry_strategy: (optional)
386
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
387
+
388
+ 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.
389
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
390
+
391
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
392
+
393
+ :param bool allow_control_chars: (optional)
394
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
395
+ By default, the response will not allow control characters in strings
396
+
397
+ :return: A :class:`~oci.response.Response` object with data of type None
398
+ :rtype: :class:`~oci.response.Response`
399
+
400
+ :example:
401
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.0/generativeaiagentruntime/delete_session.py.html>`__ to see an example of how to use delete_session API.
402
+ """
403
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
404
+ required_arguments = ['agentEndpointId', 'sessionId']
405
+ resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}"
406
+ method = "DELETE"
407
+ operation_name = "delete_session"
408
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/DeleteSession"
409
+
410
+ # Don't accept unknown kwargs
411
+ expected_kwargs = [
412
+ "allow_control_chars",
413
+ "retry_strategy",
414
+ "if_match",
415
+ "opc_request_id"
416
+ ]
417
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
418
+ if extra_kwargs:
419
+ raise ValueError(
420
+ f"delete_session got unknown kwargs: {extra_kwargs!r}")
421
+
422
+ path_params = {
423
+ "agentEndpointId": agent_endpoint_id,
424
+ "sessionId": session_id
425
+ }
426
+
427
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
428
+
429
+ for (k, v) in six.iteritems(path_params):
430
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
431
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
432
+
433
+ header_params = {
434
+ "accept": "application/json",
435
+ "content-type": "application/json",
436
+ "if-match": kwargs.get("if_match", missing),
437
+ "opc-request-id": kwargs.get("opc_request_id", missing)
438
+ }
439
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
440
+
441
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
442
+ operation_retry_strategy=kwargs.get('retry_strategy'),
443
+ client_retry_strategy=self.retry_strategy
444
+ )
445
+ if retry_strategy is None:
446
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
447
+
448
+ if retry_strategy:
449
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
450
+ self.base_client.add_opc_client_retries_header(header_params)
451
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
452
+ return retry_strategy.make_retrying_call(
453
+ self.base_client.call_api,
454
+ resource_path=resource_path,
455
+ method=method,
456
+ path_params=path_params,
457
+ header_params=header_params,
458
+ allow_control_chars=kwargs.get('allow_control_chars'),
459
+ operation_name=operation_name,
460
+ api_reference_link=api_reference_link,
461
+ required_arguments=required_arguments)
462
+ else:
463
+ return self.base_client.call_api(
464
+ resource_path=resource_path,
465
+ method=method,
466
+ path_params=path_params,
467
+ header_params=header_params,
468
+ allow_control_chars=kwargs.get('allow_control_chars'),
469
+ operation_name=operation_name,
470
+ api_reference_link=api_reference_link,
471
+ required_arguments=required_arguments)
472
+
473
+ def get_session(self, agent_endpoint_id, session_id, **kwargs):
474
+ """
475
+ Return the session resource identified by the session ID.
476
+
477
+
478
+ :param str agent_endpoint_id: (required)
479
+ A unique ID for the endpoint.
480
+
481
+ :param str session_id: (required)
482
+ A unique ID for the session.
483
+
484
+ :param str opc_request_id: (optional)
485
+ The client request ID for tracing.
486
+
487
+ :param obj retry_strategy: (optional)
488
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
489
+
490
+ 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.
491
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
492
+
493
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
494
+
495
+ :param bool allow_control_chars: (optional)
496
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
497
+ By default, the response will not allow control characters in strings
498
+
499
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session`
500
+ :rtype: :class:`~oci.response.Response`
501
+
502
+ :example:
503
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.0/generativeaiagentruntime/get_session.py.html>`__ to see an example of how to use get_session API.
504
+ """
505
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
506
+ required_arguments = ['agentEndpointId', 'sessionId']
507
+ resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}"
508
+ method = "GET"
509
+ operation_name = "get_session"
510
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/GetSession"
511
+
512
+ # Don't accept unknown kwargs
513
+ expected_kwargs = [
514
+ "allow_control_chars",
515
+ "retry_strategy",
516
+ "opc_request_id"
517
+ ]
518
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
519
+ if extra_kwargs:
520
+ raise ValueError(
521
+ f"get_session got unknown kwargs: {extra_kwargs!r}")
522
+
523
+ path_params = {
524
+ "agentEndpointId": agent_endpoint_id,
525
+ "sessionId": session_id
526
+ }
527
+
528
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
529
+
530
+ for (k, v) in six.iteritems(path_params):
531
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
532
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
533
+
534
+ header_params = {
535
+ "accept": "application/json",
536
+ "content-type": "application/json",
537
+ "opc-request-id": kwargs.get("opc_request_id", missing)
538
+ }
539
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
540
+
541
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
542
+ operation_retry_strategy=kwargs.get('retry_strategy'),
543
+ client_retry_strategy=self.retry_strategy
544
+ )
545
+ if retry_strategy is None:
546
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
547
+
548
+ if retry_strategy:
549
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
550
+ self.base_client.add_opc_client_retries_header(header_params)
551
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
552
+ return retry_strategy.make_retrying_call(
553
+ self.base_client.call_api,
554
+ resource_path=resource_path,
555
+ method=method,
556
+ path_params=path_params,
557
+ header_params=header_params,
558
+ response_type="Session",
559
+ allow_control_chars=kwargs.get('allow_control_chars'),
560
+ operation_name=operation_name,
561
+ api_reference_link=api_reference_link,
562
+ required_arguments=required_arguments)
563
+ else:
564
+ return self.base_client.call_api(
565
+ resource_path=resource_path,
566
+ method=method,
567
+ path_params=path_params,
568
+ header_params=header_params,
569
+ response_type="Session",
570
+ allow_control_chars=kwargs.get('allow_control_chars'),
571
+ operation_name=operation_name,
572
+ api_reference_link=api_reference_link,
573
+ required_arguments=required_arguments)
574
+
575
+ def update_session(self, agent_endpoint_id, session_id, update_session_details, **kwargs):
576
+ """
577
+ Update session metadata, including but not limited to description, tags.
578
+
579
+
580
+ :param str agent_endpoint_id: (required)
581
+ A unique ID for the endpoint.
582
+
583
+ :param str session_id: (required)
584
+ A unique ID for the session.
585
+
586
+ :param oci.generative_ai_agent_runtime.models.UpdateSessionDetails update_session_details: (required)
587
+ Details to update an agent session.
588
+
589
+ :param str if_match: (optional)
590
+ For optimistic concurrency control. In the PUT or DELETE call
591
+ for a resource, set the `if-match` parameter to the value of the
592
+ etag from a previous GET or POST response for that resource.
593
+ The resource will be updated or deleted only if the etag you
594
+ provide matches the resource's current etag value.
595
+
596
+ :param str opc_request_id: (optional)
597
+ The client request ID for tracing.
598
+
599
+ :param obj retry_strategy: (optional)
600
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
601
+
602
+ 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.
603
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
604
+
605
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
606
+
607
+ :param bool allow_control_chars: (optional)
608
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
609
+ By default, the response will not allow control characters in strings
610
+
611
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session`
612
+ :rtype: :class:`~oci.response.Response`
613
+
614
+ :example:
615
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.135.0/generativeaiagentruntime/update_session.py.html>`__ to see an example of how to use update_session API.
616
+ """
617
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
618
+ required_arguments = ['agentEndpointId', 'sessionId']
619
+ resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}"
620
+ method = "PUT"
621
+ operation_name = "update_session"
622
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/UpdateSession"
623
+
624
+ # Don't accept unknown kwargs
625
+ expected_kwargs = [
626
+ "allow_control_chars",
627
+ "retry_strategy",
628
+ "if_match",
629
+ "opc_request_id"
630
+ ]
631
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
632
+ if extra_kwargs:
633
+ raise ValueError(
634
+ f"update_session got unknown kwargs: {extra_kwargs!r}")
635
+
636
+ path_params = {
637
+ "agentEndpointId": agent_endpoint_id,
638
+ "sessionId": session_id
639
+ }
640
+
641
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
642
+
643
+ for (k, v) in six.iteritems(path_params):
644
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
645
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
646
+
647
+ header_params = {
648
+ "accept": "application/json",
649
+ "content-type": "application/json",
650
+ "if-match": kwargs.get("if_match", missing),
651
+ "opc-request-id": kwargs.get("opc_request_id", missing)
652
+ }
653
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
654
+
655
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
656
+ operation_retry_strategy=kwargs.get('retry_strategy'),
657
+ client_retry_strategy=self.retry_strategy
658
+ )
659
+ if retry_strategy is None:
660
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
661
+
662
+ if retry_strategy:
663
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
664
+ self.base_client.add_opc_client_retries_header(header_params)
665
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
666
+ return retry_strategy.make_retrying_call(
667
+ self.base_client.call_api,
668
+ resource_path=resource_path,
669
+ method=method,
670
+ path_params=path_params,
671
+ header_params=header_params,
672
+ body=update_session_details,
673
+ response_type="Session",
674
+ allow_control_chars=kwargs.get('allow_control_chars'),
675
+ operation_name=operation_name,
676
+ api_reference_link=api_reference_link,
677
+ required_arguments=required_arguments)
678
+ else:
679
+ return self.base_client.call_api(
680
+ resource_path=resource_path,
681
+ method=method,
682
+ path_params=path_params,
683
+ header_params=header_params,
684
+ body=update_session_details,
685
+ response_type="Session",
686
+ allow_control_chars=kwargs.get('allow_control_chars'),
687
+ operation_name=operation_name,
688
+ api_reference_link=api_reference_link,
689
+ required_arguments=required_arguments)