oci 2.134.0__py3-none-any.whl → 2.135.1__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.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/analytics/models/analytics_instance.py +55 -0
- oci/analytics/models/create_analytics_instance_details.py +55 -0
- oci/analytics/models/update_analytics_instance_details.py +57 -2
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/models/base_announcement.py +25 -25
- oci/announcements_service/models/base_create_announcements_preferences_details.py +5 -5
- oci/announcements_service/models/base_service.py +15 -15
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/models/body_validation_request_policy.py +5 -5
- oci/apigateway/models/header_validation_request_policy.py +5 -5
- oci/apigateway/models/validation_request_policy.py +5 -5
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_control_plane/models/base_domain_details.py +5 -5
- oci/apm_control_plane/models/base_key_details.py +5 -5
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/blockchain/models/availability_domain.py +5 -5
- oci/blockchain/models/peer_role.py +5 -5
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +108 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/models/add_network_security_group_security_rules_details.py +6 -2
- oci/core/models/compute_bare_metal_host.py +10 -10
- oci/core/models/compute_hpc_island.py +5 -5
- oci/core/models/compute_network_block.py +5 -5
- oci/core/models/create_service_gateway_details.py +2 -2
- oci/core/models/create_vcn_details.py +35 -0
- oci/core/models/create_vnic_details.py +35 -0
- oci/core/models/instance.py +82 -0
- oci/core/models/instance_configuration_create_vnic_details.py +35 -0
- oci/core/models/instance_configuration_launch_instance_details.py +35 -0
- oci/core/models/launch_instance_details.py +35 -0
- oci/core/models/service_gateway.py +4 -4
- oci/core/models/topology.py +5 -5
- oci/core/models/update_instance_details.py +35 -0
- oci/core/models/update_vcn_details.py +37 -2
- oci/core/models/update_vnic_details.py +35 -0
- oci/core/models/vcn.py +35 -0
- oci/core/models/vnic.py +35 -0
- oci/core/virtual_network_client.py +256 -253
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_catalog/models/base_tag.py +5 -5
- oci/data_catalog/models/base_tag_summary.py +5 -5
- oci/data_catalog/models/object_lineage.py +5 -5
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_integration/models/abstract_call_attribute.py +5 -5
- oci/data_integration/models/abstract_data_operation_config.py +5 -5
- oci/data_integration/models/cancel_rest_call_config.py +5 -5
- oci/data_integration/models/composite_type.py +2 -1
- oci/data_integration/models/conditional_composite_field_map.py +2 -1
- oci/data_integration/models/connection_details.py +5 -5
- oci/data_integration/models/connection_from_adwc_details.py +2 -1
- oci/data_integration/models/connection_from_atp_details.py +2 -1
- oci/data_integration/models/connection_from_hdfs_details.py +2 -1
- oci/data_integration/models/connection_from_jdbc_details.py +2 -1
- oci/data_integration/models/connection_from_lake_details.py +2 -1
- oci/data_integration/models/connection_from_my_sql_details.py +2 -1
- oci/data_integration/models/connection_from_my_sql_heat_wave_details.py +2 -1
- oci/data_integration/models/connection_from_o_auth2_details.py +7 -6
- oci/data_integration/models/connection_from_object_storage_details.py +2 -1
- oci/data_integration/models/connection_from_oracle_ebs_details.py +2 -1
- oci/data_integration/models/connection_from_oracle_people_soft_details.py +2 -1
- oci/data_integration/models/connection_from_oracle_siebel_details.py +2 -1
- oci/data_integration/models/connection_summary_from_adwc.py +2 -1
- oci/data_integration/models/connection_summary_from_atp.py +2 -1
- oci/data_integration/models/connection_summary_from_hdfs.py +2 -1
- oci/data_integration/models/connection_summary_from_jdbc.py +2 -1
- oci/data_integration/models/connection_summary_from_lake.py +2 -1
- oci/data_integration/models/connection_summary_from_my_sql.py +2 -1
- oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py +2 -1
- oci/data_integration/models/connection_summary_from_oracle_ebs.py +2 -1
- oci/data_integration/models/connection_summary_from_oracle_people_soft.py +2 -1
- oci/data_integration/models/connection_summary_from_oracle_siebel.py +2 -1
- oci/data_integration/models/connector_attribute.py +5 -5
- oci/data_integration/models/derived_type.py +2 -1
- oci/data_integration/models/dynamic_proxy_field.py +2 -1
- oci/data_integration/models/flow_port_link.py +5 -5
- oci/data_integration/models/key.py +5 -5
- oci/data_integration/models/materialized_composite_type.py +2 -1
- oci/data_integration/models/materialized_dynamic_field.py +2 -1
- oci/data_integration/models/output_link.py +2 -1
- oci/data_integration/models/poll_rest_call_config.py +5 -5
- oci/data_integration/models/rest_call_config.py +5 -5
- oci/data_integration/models/shape_field.py +2 -1
- oci/data_integration/models/task_run_lineage_details.py +5 -5
- oci/data_integration/models/typed_expression.py +2 -1
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +781 -287
- oci/data_safe/data_safe_client_composite_operations.py +164 -0
- oci/data_safe/models/__init__.py +12 -0
- oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py +142 -0
- oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py +99 -0
- oci/data_safe/models/generate_report_details.py +7 -3
- oci/data_safe/models/list_selection_mode.py +84 -0
- oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py +103 -0
- oci/data_safe/models/report.py +7 -3
- oci/data_safe/models/report_definition.py +7 -3
- oci/data_safe/models/report_summary.py +7 -3
- oci/data_safe/models/schedule_report_details.py +7 -3
- oci/data_safe/models/scim_query_selection_mode.py +98 -0
- oci/data_safe/models/selection_details.py +113 -0
- oci/data_safe/models/sql_firewall_allowed_sql.py +10 -10
- oci/data_safe/models/work_request.py +15 -3
- oci/data_safe/models/work_request_summary.py +15 -3
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/custom_expression_query_scaling_configuration.py +2 -1
- oci/data_science/models/scaling_configuration.py +5 -5
- oci/database/database_client.py +652 -394
- oci/database/database_client_composite_operations.py +176 -0
- oci/database/models/__init__.py +6 -0
- oci/database/models/autonomous_database.py +70 -0
- oci/database/models/autonomous_database_summary.py +70 -0
- oci/database/models/cloud_autonomous_vm_cluster.py +39 -0
- oci/database/models/cloud_autonomous_vm_cluster_summary.py +39 -0
- oci/database/models/cloud_vm_cluster.py +39 -0
- oci/database/models/cloud_vm_cluster_summary.py +39 -0
- oci/database/models/create_autonomous_database_base.py +50 -3
- oci/database/models/create_autonomous_database_clone_details.py +8 -1
- oci/database/models/create_autonomous_database_details.py +8 -1
- oci/database/models/create_autonomous_database_from_backup_details.py +8 -1
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +8 -1
- oci/database/models/create_cloud_autonomous_vm_cluster_details.py +41 -2
- oci/database/models/create_cloud_vm_cluster_details.py +39 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +8 -1
- oci/database/models/create_cross_region_disaster_recovery_details.py +8 -1
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +8 -1
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +39 -0
- oci/database/models/create_exadb_vm_cluster_details.py +39 -0
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +8 -1
- oci/database/models/db_system.py +39 -0
- oci/database/models/db_system_summary.py +39 -0
- oci/database/models/exadb_vm_cluster.py +39 -0
- oci/database/models/exadb_vm_cluster_summary.py +39 -0
- oci/database/models/external_database_base.py +15 -15
- oci/database/models/infrastructure_target_version_summary.py +5 -5
- oci/database/models/launch_db_system_base.py +39 -0
- oci/database/models/launch_db_system_details.py +7 -0
- oci/database/models/launch_db_system_from_backup_details.py +7 -0
- oci/database/models/launch_db_system_from_database_details.py +7 -0
- oci/database/models/launch_db_system_from_db_system_details.py +7 -0
- oci/database/models/oci_provider_set_key_version_details.py +82 -0
- oci/database/models/pluggable_database.py +62 -0
- oci/database/models/pluggable_database_summary.py +62 -0
- oci/database/models/set_key_version_details.py +101 -0
- oci/database/models/undelete_autonomous_database_details.py +447 -0
- oci/database/models/update_autonomous_database_details.py +39 -0
- oci/database/models/update_cloud_autonomous_vm_cluster_details.py +41 -2
- oci/database/models/update_cloud_vm_cluster_details.py +39 -0
- oci/database/models/update_db_system_details.py +39 -0
- oci/database/models/update_exadb_vm_cluster_details.py +39 -0
- oci/database_management/db_management_client.py +211 -211
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/awr_query_result.py +5 -5
- oci/database_management/models/dbm_resource.py +10 -10
- oci/database_management/models/discovered_external_asm_instance.py +4 -2
- oci/database_management/models/discovered_external_pluggable_database.py +4 -2
- oci/database_management/models/entity_discovered.py +10 -10
- oci/database_management/models/external_exadata_infrastructure_discovery_summary.py +9 -7
- oci/database_management/models/external_exadata_storage_grid_summary.py +4 -2
- oci/database_management/models/external_serviced_database.py +10 -10
- oci/database_management/models/external_storage_grid_discovery_summary.py +4 -2
- oci/database_management/models/external_storage_server_discovery_summary.py +4 -2
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_migration/models/migration_parameter_base.py +5 -5
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/devops/models/build_run_snapshot.py +5 -5
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +54 -54
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +13 -13
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
- oci/fleet_apps_management/models/fleet_target.py +10 -10
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/allow_rule.py +1 -1
- oci/fusion_apps/models/create_refresh_activity_details.py +31 -0
- oci/fusion_apps/models/maintenance_policy.py +10 -10
- oci/fusion_apps/models/refresh_activity.py +31 -0
- oci/fusion_apps/models/refresh_activity_summary.py +31 -0
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/__init__.py +14 -0
- oci/generative_ai_agent/generative_ai_agent_client.py +4245 -0
- oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py +774 -0
- oci/generative_ai_agent/models/__init__.py +118 -0
- oci/generative_ai_agent/models/agent.py +536 -0
- oci/generative_ai_agent/models/agent_collection.py +74 -0
- oci/generative_ai_agent/models/agent_endpoint.py +648 -0
- oci/generative_ai_agent/models/agent_endpoint_collection.py +74 -0
- oci/generative_ai_agent/models/agent_endpoint_summary.py +612 -0
- oci/generative_ai_agent/models/agent_summary.py +500 -0
- oci/generative_ai_agent/models/basic_auth_secret.py +88 -0
- oci/generative_ai_agent/models/change_agent_compartment_details.py +78 -0
- oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py +78 -0
- oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py +78 -0
- oci/generative_ai_agent/models/content_moderation_config.py +103 -0
- oci/generative_ai_agent/models/create_agent_details.py +288 -0
- oci/generative_ai_agent/models/create_agent_endpoint_details.py +400 -0
- oci/generative_ai_agent/models/create_data_ingestion_job_details.py +257 -0
- oci/generative_ai_agent/models/create_data_source_details.py +284 -0
- oci/generative_ai_agent/models/create_knowledge_base_details.py +249 -0
- oci/generative_ai_agent/models/data_ingestion_job.py +536 -0
- oci/generative_ai_agent/models/data_ingestion_job_collection.py +74 -0
- oci/generative_ai_agent/models/data_ingestion_job_statistics.py +136 -0
- oci/generative_ai_agent/models/data_ingestion_job_summary.py +469 -0
- oci/generative_ai_agent/models/data_source.py +536 -0
- oci/generative_ai_agent/models/data_source_collection.py +74 -0
- oci/generative_ai_agent/models/data_source_config.py +107 -0
- oci/generative_ai_agent/models/data_source_summary.py +469 -0
- oci/generative_ai_agent/models/database_connection.py +107 -0
- oci/generative_ai_agent/models/database_function.py +74 -0
- oci/generative_ai_agent/models/database_tool_connection.py +88 -0
- oci/generative_ai_agent/models/default_index_config.py +84 -0
- oci/generative_ai_agent/models/idcs_secret.py +181 -0
- oci/generative_ai_agent/models/index.py +101 -0
- oci/generative_ai_agent/models/index_config.py +127 -0
- oci/generative_ai_agent/models/index_schema.py +167 -0
- oci/generative_ai_agent/models/knowledge_base.py +501 -0
- oci/generative_ai_agent/models/knowledge_base_collection.py +74 -0
- oci/generative_ai_agent/models/knowledge_base_summary.py +434 -0
- oci/generative_ai_agent/models/object_storage_prefix.py +136 -0
- oci/generative_ai_agent/models/oci_database_config.py +111 -0
- oci/generative_ai_agent/models/oci_object_storage_data_source_config.py +84 -0
- oci/generative_ai_agent/models/oci_open_search_index_config.py +146 -0
- oci/generative_ai_agent/models/secret_detail.py +117 -0
- oci/generative_ai_agent/models/session_config.py +74 -0
- oci/generative_ai_agent/models/update_agent_details.py +253 -0
- oci/generative_ai_agent/models/update_agent_endpoint_details.py +303 -0
- oci/generative_ai_agent/models/update_data_source_details.py +214 -0
- oci/generative_ai_agent/models/update_knowledge_base_details.py +214 -0
- oci/generative_ai_agent/models/work_request.py +505 -0
- oci/generative_ai_agent/models/work_request_error.py +148 -0
- oci/generative_ai_agent/models/work_request_error_collection.py +74 -0
- oci/generative_ai_agent/models/work_request_log_entry.py +111 -0
- oci/generative_ai_agent/models/work_request_log_entry_collection.py +74 -0
- oci/generative_ai_agent/models/work_request_resource.py +240 -0
- oci/generative_ai_agent/models/work_request_summary.py +503 -0
- oci/generative_ai_agent/models/work_request_summary_collection.py +74 -0
- oci/generative_ai_agent_runtime/__init__.py +14 -0
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +689 -0
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py +26 -0
- oci/generative_ai_agent_runtime/models/__init__.py +44 -0
- oci/generative_ai_agent_runtime/models/chat_details.py +134 -0
- oci/generative_ai_agent_runtime/models/chat_result.py +99 -0
- oci/generative_ai_agent_runtime/models/citation.py +99 -0
- oci/generative_ai_agent_runtime/models/create_session_details.py +103 -0
- oci/generative_ai_agent_runtime/models/error_trace.py +89 -0
- oci/generative_ai_agent_runtime/models/generation_trace.py +89 -0
- oci/generative_ai_agent_runtime/models/message.py +146 -0
- oci/generative_ai_agent_runtime/models/message_content.py +103 -0
- oci/generative_ai_agent_runtime/models/oci_database_source_location.py +148 -0
- oci/generative_ai_agent_runtime/models/oci_object_storage_source_location.py +82 -0
- oci/generative_ai_agent_runtime/models/oci_open_search_source_location.py +144 -0
- oci/generative_ai_agent_runtime/models/retrieval_trace.py +120 -0
- oci/generative_ai_agent_runtime/models/session.py +227 -0
- oci/generative_ai_agent_runtime/models/source_location.py +117 -0
- oci/generative_ai_agent_runtime/models/trace.py +148 -0
- oci/generative_ai_agent_runtime/models/update_session_details.py +103 -0
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +307 -307
- oci/integration/integration_instance_client.py +374 -18
- oci/integration/integration_instance_client_composite_operations.py +120 -0
- oci/integration/models/__init__.py +6 -0
- oci/integration/models/add_oracle_managed_custom_endpoint_details.py +146 -0
- oci/integration/models/create_integration_instance_details.py +31 -0
- oci/integration/models/cross_region_integration_instance_details.py +185 -0
- oci/integration/models/custom_endpoint_details.py +121 -0
- oci/integration/models/disaster_recovery_details.py +150 -0
- oci/integration/models/integration_instance.py +123 -7
- oci/integration/models/integration_instance_summary.py +96 -7
- oci/integration/models/work_request.py +15 -3
- oci/integration/models/work_request_summary.py +15 -3
- oci/jms/java_management_service_client.py +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/create_load_balancer_details.py +35 -0
- oci/load_balancer/models/load_balancer.py +35 -0
- oci/load_balancer/models/update_load_balancer_details.py +37 -2
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/log_analytics/models/chart_data_column.py +6 -3
- oci/log_analytics/models/function_field.py +4 -2
- oci/log_analytics/models/time_cluster_data_column.py +6 -3
- oci/log_analytics/models/time_stats_data_column.py +6 -3
- oci/logging/logging_management_client.py +30 -30
- oci/logging/models/unified_agent_monitoring_filter.py +5 -5
- oci/logging/models/unified_agent_tail_log_source.py +2 -1
- oci/logging/models/unified_agent_url_filter.py +2 -1
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/models/__init__.py +6 -0
- oci/monitoring/models/alarm_status_summary.py +2 -0
- oci/monitoring/models/alarm_suppression.py +94 -2
- oci/monitoring/models/alarm_suppression_alarm_target.py +1 -1
- oci/monitoring/models/alarm_suppression_collection.py +3 -3
- oci/monitoring/models/alarm_suppression_compartment_target.py +127 -0
- oci/monitoring/models/alarm_suppression_history_item.py +43 -2
- oci/monitoring/models/alarm_suppression_summary.py +78 -2
- oci/monitoring/models/alarm_suppression_target.py +11 -3
- oci/monitoring/models/create_alarm_suppression_details.py +86 -6
- oci/monitoring/models/recurrence.py +127 -0
- oci/monitoring/models/suppression.py +1 -0
- oci/monitoring/models/suppression_condition.py +101 -0
- oci/monitoring/monitoring_client.py +115 -33
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/models/create_network_load_balancer_details.py +43 -2
- oci/network_load_balancer/models/network_load_balancer.py +41 -0
- oci/network_load_balancer/models/network_load_balancer_summary.py +41 -0
- oci/network_load_balancer/models/update_network_load_balancer_details.py +43 -2
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/models/bot.py +15 -15
- oci/oda/models/parameter.py +10 -10
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/models/__init__.py +50 -0
- oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py +1 -1
- oci/opsi/models/add_exadata_insight_members_details.py +11 -3
- oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py +78 -0
- oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py +1 -1
- oci/opsi/models/autonomous_database_configuration_summary.py +1 -1
- oci/opsi/models/autonomous_database_insight.py +1 -1
- oci/opsi/models/autonomous_database_insight_summary.py +1 -1
- oci/opsi/models/awr_query_result.py +5 -5
- oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py +130 -0
- oci/opsi/models/create_database_insight_details.py +11 -3
- oci/opsi/models/create_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/create_em_managed_external_exadata_insight_details.py +1 -1
- oci/opsi/models/create_em_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/create_exadata_insight_details.py +11 -3
- oci/opsi/models/create_host_insight_details.py +7 -3
- oci/opsi/models/create_macs_managed_cloud_database_insight_details.py +315 -0
- oci/opsi/models/create_macs_managed_cloud_exadata_cluster_details.py +171 -0
- oci/opsi/models/create_macs_managed_cloud_exadata_insight_details.py +134 -0
- oci/opsi/models/create_macs_managed_cloud_exadata_vmcluster_details.py +96 -0
- oci/opsi/models/create_macs_managed_cloud_host_insight_details.py +1 -1
- oci/opsi/models/create_macs_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/create_mds_my_sql_database_insight_details.py +1 -1
- oci/opsi/models/create_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/create_pe_comanaged_exadata_insight_details.py +1 -1
- oci/opsi/models/database_configuration_metric_group.py +35 -3
- oci/opsi/models/database_configuration_summary.py +11 -3
- oci/opsi/models/database_insight.py +11 -3
- oci/opsi/models/database_insight_summary.py +11 -3
- oci/opsi/models/db_connection_status.py +58 -0
- oci/opsi/models/db_external_instance.py +1 -1
- oci/opsi/models/db_external_properties.py +1 -1
- oci/opsi/models/db_parameters.py +1 -1
- oci/opsi/models/dbos_config_instance.py +1 -1
- oci/opsi/models/em_managed_external_database_configuration_summary.py +127 -3
- oci/opsi/models/em_managed_external_database_insight.py +1 -1
- oci/opsi/models/em_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/em_managed_external_exadata_insight.py +2 -2
- oci/opsi/models/em_managed_external_exadata_insight_summary.py +2 -2
- oci/opsi/models/em_managed_external_host_configuration_summary.py +127 -3
- oci/opsi/models/em_managed_external_host_insight.py +1 -1
- oci/opsi/models/em_managed_external_host_insight_summary.py +1 -1
- oci/opsi/models/enable_database_insight_details.py +11 -3
- oci/opsi/models/enable_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/enable_em_managed_external_exadata_insight_details.py +1 -1
- oci/opsi/models/enable_em_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/enable_exadata_insight_details.py +11 -3
- oci/opsi/models/enable_host_insight_details.py +7 -3
- oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py +274 -0
- oci/opsi/models/enable_macs_managed_cloud_exadata_insight_details.py +51 -0
- oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py +1 -1
- oci/opsi/models/enable_macs_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/enable_mds_my_sql_database_insight_details.py +1 -1
- oci/opsi/models/enable_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py +1 -1
- oci/opsi/models/exadata_asm_entity.py +151 -0
- oci/opsi/models/exadata_cell_config.py +213 -0
- oci/opsi/models/exadata_configuration_summary.py +30 -6
- oci/opsi/models/exadata_database_machine_configuration_summary.py +128 -4
- oci/opsi/models/exadata_exacc_configuration_summary.py +186 -0
- oci/opsi/models/exadata_exacs_configuration_summary.py +2 -2
- oci/opsi/models/exadata_insight.py +30 -6
- oci/opsi/models/exadata_insight_summary.py +30 -6
- oci/opsi/models/exadata_member_collection.py +19 -3
- oci/opsi/models/host_allocation.py +120 -0
- oci/opsi/models/host_configuration_summary.py +11 -3
- oci/opsi/models/host_containers.py +2 -2
- oci/opsi/models/host_insight.py +11 -3
- oci/opsi/models/host_insight_summary.py +11 -3
- oci/opsi/models/macs_managed_cloud_database_configuration_summary.py +253 -0
- oci/opsi/models/macs_managed_cloud_database_host_insight.py +394 -0
- oci/opsi/models/macs_managed_cloud_database_host_insight_summary.py +339 -0
- oci/opsi/models/macs_managed_cloud_database_insight.py +469 -0
- oci/opsi/models/macs_managed_cloud_database_insight_summary.py +315 -0
- oci/opsi/models/macs_managed_cloud_db_host_configuration_summary.py +282 -0
- oci/opsi/models/macs_managed_cloud_exadata_insight.py +278 -0
- oci/opsi/models/macs_managed_cloud_exadata_insight_summary.py +271 -0
- oci/opsi/models/macs_managed_cloud_host_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_cloud_host_insight.py +1 -1
- oci/opsi/models/macs_managed_cloud_host_insight_summary.py +1 -1
- oci/opsi/models/macs_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/macs_managed_external_host_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_external_host_insight.py +1 -1
- oci/opsi/models/macs_managed_external_host_insight_summary.py +1 -1
- oci/opsi/models/mds_my_sql_database_insight.py +1 -1
- oci/opsi/models/mds_my_sql_database_insight_summary.py +1 -1
- oci/opsi/models/mds_mysql_database_configuration_summary.py +1 -1
- oci/opsi/models/pe_comanaged_database_insight.py +1 -1
- oci/opsi/models/pe_comanaged_database_insight_summary.py +1 -1
- oci/opsi/models/pe_comanaged_exadata_insight.py +9 -5
- oci/opsi/models/pe_comanaged_exadata_insight_summary.py +9 -5
- oci/opsi/models/pe_comanaged_host_configuration_summary.py +1 -1
- oci/opsi/models/pe_comanaged_host_insight.py +1 -1
- oci/opsi/models/pe_comanaged_host_insight_summary.py +1 -1
- oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py +130 -0
- oci/opsi/models/update_autonomous_database_insight_details.py +1 -1
- oci/opsi/models/update_database_insight_details.py +11 -3
- oci/opsi/models/update_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/update_em_managed_external_exadata_insight_details.py +1 -1
- oci/opsi/models/update_em_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/update_exadata_insight_details.py +11 -3
- oci/opsi/models/update_host_insight_details.py +11 -3
- oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py +65 -0
- oci/opsi/models/update_macs_managed_cloud_database_insight_details.py +65 -0
- oci/opsi/models/update_macs_managed_cloud_exadata_insight_details.py +65 -0
- oci/opsi/models/update_macs_managed_cloud_host_insight_details.py +1 -1
- oci/opsi/models/update_macs_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/update_macs_managed_external_host_insight_details.py +1 -1
- oci/opsi/models/update_mds_my_sql_database_insight.py +1 -1
- oci/opsi/models/update_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/update_pe_comanaged_exadata_insight_details.py +1 -1
- oci/opsi/models/update_pe_comanaged_host_insight_details.py +1 -1
- oci/opsi/models/work_request.py +11 -3
- oci/opsi/operations_insights_client.py +482 -214
- oci/opsi/operations_insights_client_composite_operations.py +81 -0
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/models/event_content.py +5 -5
- oci/os_management_hub/models/exploit_attempt_event_content.py +2 -1
- oci/os_management_hub/models/package_summary.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/regions_definitions.py +8 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/__init__.py +14 -0
- oci/security_attribute/models/__init__.py +54 -0
- oci/security_attribute/models/base_security_attribute_validator.py +122 -0
- oci/security_attribute/models/bulk_delete_security_attributes_details.py +72 -0
- oci/security_attribute/models/bulk_edit_resource.py +134 -0
- oci/security_attribute/models/bulk_edit_security_attribute_details.py +134 -0
- oci/security_attribute/models/bulk_edit_security_attribute_operation_details.py +147 -0
- oci/security_attribute/models/change_security_attribute_namespace_compartment_details.py +72 -0
- oci/security_attribute/models/create_security_attribute_details.py +132 -0
- oci/security_attribute/models/create_security_attribute_namespace_details.py +216 -0
- oci/security_attribute/models/default_security_attribute_validator.py +53 -0
- oci/security_attribute/models/enum_security_attribute_validator.py +85 -0
- oci/security_attribute/models/security_attribute.py +421 -0
- oci/security_attribute/models/security_attribute_namespace.py +446 -0
- oci/security_attribute/models/security_attribute_namespace_summary.py +410 -0
- oci/security_attribute/models/security_attribute_summary.py +361 -0
- oci/security_attribute/models/security_attribute_work_request.py +387 -0
- oci/security_attribute/models/security_attribute_work_request_error_summary.py +136 -0
- oci/security_attribute/models/security_attribute_work_request_log_summary.py +105 -0
- oci/security_attribute/models/security_attribute_work_request_summary.py +386 -0
- oci/security_attribute/models/update_security_attribute_details.py +136 -0
- oci/security_attribute/models/update_security_attribute_namespace_details.py +191 -0
- oci/security_attribute/models/work_request_resource.py +197 -0
- oci/security_attribute/security_attribute_client.py +2321 -0
- oci/security_attribute/security_attribute_client_composite_operations.py +265 -0
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/models/traffic_rule_target.py +5 -5
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/models/topology.py +5 -5
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/models/protection_rule.py +4 -2
- oci/waf/models/request_rate_limiting_rule.py +4 -2
- oci/waf/models/web_app_firewall_policy_rule.py +10 -10
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/__init__.py +14 -0
- oci/zpr/models/__init__.py +42 -0
- oci/zpr/models/configuration.py +449 -0
- oci/zpr/models/create_configuration_details.py +189 -0
- oci/zpr/models/create_zpr_policy_details.py +251 -0
- oci/zpr/models/update_zpr_policy_details.py +185 -0
- oci/zpr/models/work_request.py +459 -0
- oci/zpr/models/work_request_error.py +146 -0
- oci/zpr/models/work_request_error_collection.py +72 -0
- oci/zpr/models/work_request_log_entry.py +109 -0
- oci/zpr/models/work_request_log_entry_collection.py +72 -0
- oci/zpr/models/work_request_resource.py +238 -0
- oci/zpr/models/work_request_summary.py +457 -0
- oci/zpr/models/work_request_summary_collection.py +72 -0
- oci/zpr/models/zpr_policy.py +505 -0
- oci/zpr/models/zpr_policy_collection.py +72 -0
- oci/zpr/models/zpr_policy_summary.py +463 -0
- oci/zpr/zpr_client.py +2124 -0
- oci/zpr/zpr_client_composite_operations.py +197 -0
- {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/METADATA +1 -1
- {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/RECORD +703 -542
- {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.134.0.dist-info → oci-2.135.1.dist-info}/WHEEL +0 -0
- {oci-2.134.0.dist-info → oci-2.135.1.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.1/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.1/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.1/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.1/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.1/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)
|