oci 2.134.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.
- 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 +102 -102
- oci/core/compute_management_client.py +32 -32
- 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/topology.py +5 -5
- oci/core/virtual_network_client.py +250 -250
- 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 +31 -0
- oci/database/models/autonomous_database_summary.py +31 -0
- oci/database/models/create_autonomous_database_base.py +11 -3
- oci/database/models/create_autonomous_database_clone_details.py +1 -1
- oci/database/models/create_autonomous_database_details.py +1 -1
- oci/database/models/create_autonomous_database_from_backup_details.py +1 -1
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +1 -1
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +1 -1
- oci/database/models/create_cross_region_disaster_recovery_details.py +1 -1
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +1 -1
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +1 -1
- oci/database/models/external_database_base.py +15 -15
- oci/database/models/infrastructure_target_version_summary.py +5 -5
- 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 +440 -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 +255 -18
- oci/integration/integration_instance_client_composite_operations.py +81 -0
- oci/integration/models/__init__.py +2 -0
- oci/integration/models/add_oracle_managed_custom_endpoint_details.py +146 -0
- oci/integration/models/custom_endpoint_details.py +121 -0
- oci/integration/models/integration_instance.py +34 -7
- oci/integration/models/integration_instance_summary.py +34 -7
- oci/integration/models/work_request.py +11 -3
- oci/integration/models/work_request_summary.py +11 -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/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/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/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/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-2.134.0.dist-info → oci-2.135.0.dist-info}/METADATA +1 -1
- {oci-2.134.0.dist-info → oci-2.135.0.dist-info}/RECORD +612 -497
- {oci-2.134.0.dist-info → oci-2.135.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.134.0.dist-info → oci-2.135.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.134.0.dist-info → oci-2.135.0.dist-info}/WHEEL +0 -0
- {oci-2.134.0.dist-info → oci-2.135.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,774 @@
|
|
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
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class GenerativeAiAgentClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.generative_ai_agent.GenerativeAiAgentClient` and offers convenience methods
|
14
|
+
for operations that would otherwise need to be chained together. For example, instead of performing an action
|
15
|
+
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
16
|
+
to enter a given state, you can call a single method in this class to accomplish the same functionality
|
17
|
+
"""
|
18
|
+
|
19
|
+
def __init__(self, client, **kwargs):
|
20
|
+
"""
|
21
|
+
Creates a new GenerativeAiAgentClientCompositeOperations object
|
22
|
+
|
23
|
+
:param GenerativeAiAgentClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def change_agent_compartment_and_wait_for_state(self, agent_id, change_agent_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param str agent_id: (required)
|
34
|
+
The `OCID`__ of the agent.
|
35
|
+
|
36
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
37
|
+
|
38
|
+
:param oci.generative_ai_agent.models.ChangeAgentCompartmentDetails change_agent_compartment_details: (required)
|
39
|
+
The information to be updated.
|
40
|
+
|
41
|
+
:param list[str] wait_for_states:
|
42
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
43
|
+
|
44
|
+
:param dict operation_kwargs:
|
45
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_compartment`
|
46
|
+
|
47
|
+
:param dict waiter_kwargs:
|
48
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
49
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
50
|
+
"""
|
51
|
+
operation_result = self.client.change_agent_compartment(agent_id, change_agent_compartment_details, **operation_kwargs)
|
52
|
+
if not wait_for_states:
|
53
|
+
return operation_result
|
54
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
55
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
56
|
+
return operation_result
|
57
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
58
|
+
|
59
|
+
try:
|
60
|
+
waiter_result = oci.wait_until(
|
61
|
+
self.client,
|
62
|
+
self.client.get_work_request(wait_for_resource_id),
|
63
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
64
|
+
**waiter_kwargs
|
65
|
+
)
|
66
|
+
result_to_return = waiter_result
|
67
|
+
|
68
|
+
return result_to_return
|
69
|
+
except Exception as e:
|
70
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
71
|
+
|
72
|
+
def change_agent_endpoint_compartment_and_wait_for_state(self, agent_endpoint_id, change_agent_endpoint_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
73
|
+
"""
|
74
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_endpoint_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
75
|
+
to enter the given state(s).
|
76
|
+
|
77
|
+
:param str agent_endpoint_id: (required)
|
78
|
+
The `OCID`__ of the endpoint.
|
79
|
+
|
80
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
81
|
+
|
82
|
+
:param oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails change_agent_endpoint_compartment_details: (required)
|
83
|
+
The information to be updated.
|
84
|
+
|
85
|
+
:param list[str] wait_for_states:
|
86
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
87
|
+
|
88
|
+
:param dict operation_kwargs:
|
89
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_endpoint_compartment`
|
90
|
+
|
91
|
+
:param dict waiter_kwargs:
|
92
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
93
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
94
|
+
"""
|
95
|
+
operation_result = self.client.change_agent_endpoint_compartment(agent_endpoint_id, change_agent_endpoint_compartment_details, **operation_kwargs)
|
96
|
+
if not wait_for_states:
|
97
|
+
return operation_result
|
98
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
99
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
100
|
+
return operation_result
|
101
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
102
|
+
|
103
|
+
try:
|
104
|
+
waiter_result = oci.wait_until(
|
105
|
+
self.client,
|
106
|
+
self.client.get_work_request(wait_for_resource_id),
|
107
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
108
|
+
**waiter_kwargs
|
109
|
+
)
|
110
|
+
result_to_return = waiter_result
|
111
|
+
|
112
|
+
return result_to_return
|
113
|
+
except Exception as e:
|
114
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
115
|
+
|
116
|
+
def change_knowledge_base_compartment_and_wait_for_state(self, knowledge_base_id, change_knowledge_base_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
117
|
+
"""
|
118
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_knowledge_base_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
119
|
+
to enter the given state(s).
|
120
|
+
|
121
|
+
:param str knowledge_base_id: (required)
|
122
|
+
The `OCID`__ of the knowledge base.
|
123
|
+
|
124
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
125
|
+
|
126
|
+
:param oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails change_knowledge_base_compartment_details: (required)
|
127
|
+
The information to be updated.
|
128
|
+
|
129
|
+
:param list[str] wait_for_states:
|
130
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
131
|
+
|
132
|
+
:param dict operation_kwargs:
|
133
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_knowledge_base_compartment`
|
134
|
+
|
135
|
+
:param dict waiter_kwargs:
|
136
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
137
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
138
|
+
"""
|
139
|
+
operation_result = self.client.change_knowledge_base_compartment(knowledge_base_id, change_knowledge_base_compartment_details, **operation_kwargs)
|
140
|
+
if not wait_for_states:
|
141
|
+
return operation_result
|
142
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
143
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
144
|
+
return operation_result
|
145
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
146
|
+
|
147
|
+
try:
|
148
|
+
waiter_result = oci.wait_until(
|
149
|
+
self.client,
|
150
|
+
self.client.get_work_request(wait_for_resource_id),
|
151
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
152
|
+
**waiter_kwargs
|
153
|
+
)
|
154
|
+
result_to_return = waiter_result
|
155
|
+
|
156
|
+
return result_to_return
|
157
|
+
except Exception as e:
|
158
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
159
|
+
|
160
|
+
def create_agent_and_wait_for_state(self, create_agent_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
161
|
+
"""
|
162
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
163
|
+
to enter the given state(s).
|
164
|
+
|
165
|
+
:param oci.generative_ai_agent.models.CreateAgentDetails create_agent_details: (required)
|
166
|
+
Details for the new agent.
|
167
|
+
|
168
|
+
:param list[str] wait_for_states:
|
169
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
170
|
+
|
171
|
+
:param dict operation_kwargs:
|
172
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent`
|
173
|
+
|
174
|
+
:param dict waiter_kwargs:
|
175
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
176
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
177
|
+
"""
|
178
|
+
operation_result = self.client.create_agent(create_agent_details, **operation_kwargs)
|
179
|
+
if not wait_for_states:
|
180
|
+
return operation_result
|
181
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
182
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
183
|
+
return operation_result
|
184
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
185
|
+
|
186
|
+
try:
|
187
|
+
waiter_result = oci.wait_until(
|
188
|
+
self.client,
|
189
|
+
self.client.get_work_request(wait_for_resource_id),
|
190
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
191
|
+
**waiter_kwargs
|
192
|
+
)
|
193
|
+
result_to_return = waiter_result
|
194
|
+
|
195
|
+
return result_to_return
|
196
|
+
except Exception as e:
|
197
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
198
|
+
|
199
|
+
def create_agent_endpoint_and_wait_for_state(self, create_agent_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
200
|
+
"""
|
201
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
202
|
+
to enter the given state(s).
|
203
|
+
|
204
|
+
:param oci.generative_ai_agent.models.CreateAgentEndpointDetails create_agent_endpoint_details: (required)
|
205
|
+
Details for the new endpoint.
|
206
|
+
|
207
|
+
:param list[str] wait_for_states:
|
208
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
209
|
+
|
210
|
+
:param dict operation_kwargs:
|
211
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent_endpoint`
|
212
|
+
|
213
|
+
:param dict waiter_kwargs:
|
214
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
215
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
216
|
+
"""
|
217
|
+
operation_result = self.client.create_agent_endpoint(create_agent_endpoint_details, **operation_kwargs)
|
218
|
+
if not wait_for_states:
|
219
|
+
return operation_result
|
220
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
221
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
222
|
+
return operation_result
|
223
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
224
|
+
|
225
|
+
try:
|
226
|
+
waiter_result = oci.wait_until(
|
227
|
+
self.client,
|
228
|
+
self.client.get_work_request(wait_for_resource_id),
|
229
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
230
|
+
**waiter_kwargs
|
231
|
+
)
|
232
|
+
result_to_return = waiter_result
|
233
|
+
|
234
|
+
return result_to_return
|
235
|
+
except Exception as e:
|
236
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
237
|
+
|
238
|
+
def create_data_ingestion_job_and_wait_for_state(self, create_data_ingestion_job_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
239
|
+
"""
|
240
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_ingestion_job` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
241
|
+
to enter the given state(s).
|
242
|
+
|
243
|
+
:param oci.generative_ai_agent.models.CreateDataIngestionJobDetails create_data_ingestion_job_details: (required)
|
244
|
+
Details for the new data ingestion job.
|
245
|
+
|
246
|
+
:param list[str] wait_for_states:
|
247
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
248
|
+
|
249
|
+
:param dict operation_kwargs:
|
250
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_ingestion_job`
|
251
|
+
|
252
|
+
:param dict waiter_kwargs:
|
253
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
254
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
255
|
+
"""
|
256
|
+
operation_result = self.client.create_data_ingestion_job(create_data_ingestion_job_details, **operation_kwargs)
|
257
|
+
if not wait_for_states:
|
258
|
+
return operation_result
|
259
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
260
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
261
|
+
return operation_result
|
262
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
263
|
+
|
264
|
+
try:
|
265
|
+
waiter_result = oci.wait_until(
|
266
|
+
self.client,
|
267
|
+
self.client.get_work_request(wait_for_resource_id),
|
268
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
269
|
+
**waiter_kwargs
|
270
|
+
)
|
271
|
+
result_to_return = waiter_result
|
272
|
+
|
273
|
+
return result_to_return
|
274
|
+
except Exception as e:
|
275
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
276
|
+
|
277
|
+
def create_data_source_and_wait_for_state(self, create_data_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
278
|
+
"""
|
279
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
280
|
+
to enter the given state(s).
|
281
|
+
|
282
|
+
:param oci.generative_ai_agent.models.CreateDataSourceDetails create_data_source_details: (required)
|
283
|
+
Details for the new data source.
|
284
|
+
|
285
|
+
:param list[str] wait_for_states:
|
286
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
287
|
+
|
288
|
+
:param dict operation_kwargs:
|
289
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_source`
|
290
|
+
|
291
|
+
:param dict waiter_kwargs:
|
292
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
293
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
294
|
+
"""
|
295
|
+
operation_result = self.client.create_data_source(create_data_source_details, **operation_kwargs)
|
296
|
+
if not wait_for_states:
|
297
|
+
return operation_result
|
298
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
299
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
300
|
+
return operation_result
|
301
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
302
|
+
|
303
|
+
try:
|
304
|
+
waiter_result = oci.wait_until(
|
305
|
+
self.client,
|
306
|
+
self.client.get_work_request(wait_for_resource_id),
|
307
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
308
|
+
**waiter_kwargs
|
309
|
+
)
|
310
|
+
result_to_return = waiter_result
|
311
|
+
|
312
|
+
return result_to_return
|
313
|
+
except Exception as e:
|
314
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
315
|
+
|
316
|
+
def create_knowledge_base_and_wait_for_state(self, create_knowledge_base_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
317
|
+
"""
|
318
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
319
|
+
to enter the given state(s).
|
320
|
+
|
321
|
+
:param oci.generative_ai_agent.models.CreateKnowledgeBaseDetails create_knowledge_base_details: (required)
|
322
|
+
Details for the new knowledge base.
|
323
|
+
|
324
|
+
:param list[str] wait_for_states:
|
325
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
326
|
+
|
327
|
+
:param dict operation_kwargs:
|
328
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_knowledge_base`
|
329
|
+
|
330
|
+
:param dict waiter_kwargs:
|
331
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
332
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
333
|
+
"""
|
334
|
+
operation_result = self.client.create_knowledge_base(create_knowledge_base_details, **operation_kwargs)
|
335
|
+
if not wait_for_states:
|
336
|
+
return operation_result
|
337
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
338
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
339
|
+
return operation_result
|
340
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
341
|
+
|
342
|
+
try:
|
343
|
+
waiter_result = oci.wait_until(
|
344
|
+
self.client,
|
345
|
+
self.client.get_work_request(wait_for_resource_id),
|
346
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
347
|
+
**waiter_kwargs
|
348
|
+
)
|
349
|
+
result_to_return = waiter_result
|
350
|
+
|
351
|
+
return result_to_return
|
352
|
+
except Exception as e:
|
353
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
354
|
+
|
355
|
+
def delete_agent_and_wait_for_state(self, agent_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
356
|
+
"""
|
357
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
358
|
+
to enter the given state(s).
|
359
|
+
|
360
|
+
:param str agent_id: (required)
|
361
|
+
The `OCID`__ of the agent.
|
362
|
+
|
363
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
364
|
+
|
365
|
+
:param list[str] wait_for_states:
|
366
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
367
|
+
|
368
|
+
:param dict operation_kwargs:
|
369
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent`
|
370
|
+
|
371
|
+
:param dict waiter_kwargs:
|
372
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
373
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
374
|
+
"""
|
375
|
+
operation_result = None
|
376
|
+
try:
|
377
|
+
operation_result = self.client.delete_agent(agent_id, **operation_kwargs)
|
378
|
+
except oci.exceptions.ServiceError as e:
|
379
|
+
if e.status == 404:
|
380
|
+
return WAIT_RESOURCE_NOT_FOUND
|
381
|
+
else:
|
382
|
+
raise e
|
383
|
+
|
384
|
+
if not wait_for_states:
|
385
|
+
return operation_result
|
386
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
387
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
388
|
+
return operation_result
|
389
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
390
|
+
|
391
|
+
try:
|
392
|
+
waiter_result = oci.wait_until(
|
393
|
+
self.client,
|
394
|
+
self.client.get_work_request(wait_for_resource_id),
|
395
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
396
|
+
**waiter_kwargs
|
397
|
+
)
|
398
|
+
result_to_return = waiter_result
|
399
|
+
|
400
|
+
return result_to_return
|
401
|
+
except Exception as e:
|
402
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
403
|
+
|
404
|
+
def delete_agent_endpoint_and_wait_for_state(self, agent_endpoint_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
405
|
+
"""
|
406
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
407
|
+
to enter the given state(s).
|
408
|
+
|
409
|
+
:param str agent_endpoint_id: (required)
|
410
|
+
The `OCID`__ of the endpoint.
|
411
|
+
|
412
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
413
|
+
|
414
|
+
:param list[str] wait_for_states:
|
415
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
416
|
+
|
417
|
+
:param dict operation_kwargs:
|
418
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent_endpoint`
|
419
|
+
|
420
|
+
:param dict waiter_kwargs:
|
421
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
422
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
423
|
+
"""
|
424
|
+
operation_result = None
|
425
|
+
try:
|
426
|
+
operation_result = self.client.delete_agent_endpoint(agent_endpoint_id, **operation_kwargs)
|
427
|
+
except oci.exceptions.ServiceError as e:
|
428
|
+
if e.status == 404:
|
429
|
+
return WAIT_RESOURCE_NOT_FOUND
|
430
|
+
else:
|
431
|
+
raise e
|
432
|
+
|
433
|
+
if not wait_for_states:
|
434
|
+
return operation_result
|
435
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
436
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
437
|
+
return operation_result
|
438
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
439
|
+
|
440
|
+
try:
|
441
|
+
waiter_result = oci.wait_until(
|
442
|
+
self.client,
|
443
|
+
self.client.get_work_request(wait_for_resource_id),
|
444
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
445
|
+
**waiter_kwargs
|
446
|
+
)
|
447
|
+
result_to_return = waiter_result
|
448
|
+
|
449
|
+
return result_to_return
|
450
|
+
except Exception as e:
|
451
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
452
|
+
|
453
|
+
def delete_data_ingestion_job_and_wait_for_state(self, data_ingestion_job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
454
|
+
"""
|
455
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_ingestion_job` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
456
|
+
to enter the given state(s).
|
457
|
+
|
458
|
+
:param str data_ingestion_job_id: (required)
|
459
|
+
The `OCID`__ of the data ingestion job.
|
460
|
+
|
461
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
462
|
+
|
463
|
+
:param list[str] wait_for_states:
|
464
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
465
|
+
|
466
|
+
:param dict operation_kwargs:
|
467
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_ingestion_job`
|
468
|
+
|
469
|
+
:param dict waiter_kwargs:
|
470
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
471
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
472
|
+
"""
|
473
|
+
operation_result = None
|
474
|
+
try:
|
475
|
+
operation_result = self.client.delete_data_ingestion_job(data_ingestion_job_id, **operation_kwargs)
|
476
|
+
except oci.exceptions.ServiceError as e:
|
477
|
+
if e.status == 404:
|
478
|
+
return WAIT_RESOURCE_NOT_FOUND
|
479
|
+
else:
|
480
|
+
raise e
|
481
|
+
|
482
|
+
if not wait_for_states:
|
483
|
+
return operation_result
|
484
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
485
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
486
|
+
return operation_result
|
487
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
488
|
+
|
489
|
+
try:
|
490
|
+
waiter_result = oci.wait_until(
|
491
|
+
self.client,
|
492
|
+
self.client.get_work_request(wait_for_resource_id),
|
493
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
494
|
+
**waiter_kwargs
|
495
|
+
)
|
496
|
+
result_to_return = waiter_result
|
497
|
+
|
498
|
+
return result_to_return
|
499
|
+
except Exception as e:
|
500
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
501
|
+
|
502
|
+
def delete_data_source_and_wait_for_state(self, data_source_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
503
|
+
"""
|
504
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
505
|
+
to enter the given state(s).
|
506
|
+
|
507
|
+
:param str data_source_id: (required)
|
508
|
+
The `OCID`__ of the data source.
|
509
|
+
|
510
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
511
|
+
|
512
|
+
:param list[str] wait_for_states:
|
513
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
514
|
+
|
515
|
+
:param dict operation_kwargs:
|
516
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_source`
|
517
|
+
|
518
|
+
:param dict waiter_kwargs:
|
519
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
520
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
521
|
+
"""
|
522
|
+
operation_result = None
|
523
|
+
try:
|
524
|
+
operation_result = self.client.delete_data_source(data_source_id, **operation_kwargs)
|
525
|
+
except oci.exceptions.ServiceError as e:
|
526
|
+
if e.status == 404:
|
527
|
+
return WAIT_RESOURCE_NOT_FOUND
|
528
|
+
else:
|
529
|
+
raise e
|
530
|
+
|
531
|
+
if not wait_for_states:
|
532
|
+
return operation_result
|
533
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
534
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
535
|
+
return operation_result
|
536
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
537
|
+
|
538
|
+
try:
|
539
|
+
waiter_result = oci.wait_until(
|
540
|
+
self.client,
|
541
|
+
self.client.get_work_request(wait_for_resource_id),
|
542
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
543
|
+
**waiter_kwargs
|
544
|
+
)
|
545
|
+
result_to_return = waiter_result
|
546
|
+
|
547
|
+
return result_to_return
|
548
|
+
except Exception as e:
|
549
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
550
|
+
|
551
|
+
def delete_knowledge_base_and_wait_for_state(self, knowledge_base_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
552
|
+
"""
|
553
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
554
|
+
to enter the given state(s).
|
555
|
+
|
556
|
+
:param str knowledge_base_id: (required)
|
557
|
+
The `OCID`__ of the knowledge base.
|
558
|
+
|
559
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
560
|
+
|
561
|
+
:param list[str] wait_for_states:
|
562
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
563
|
+
|
564
|
+
:param dict operation_kwargs:
|
565
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_knowledge_base`
|
566
|
+
|
567
|
+
:param dict waiter_kwargs:
|
568
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
569
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
570
|
+
"""
|
571
|
+
operation_result = None
|
572
|
+
try:
|
573
|
+
operation_result = self.client.delete_knowledge_base(knowledge_base_id, **operation_kwargs)
|
574
|
+
except oci.exceptions.ServiceError as e:
|
575
|
+
if e.status == 404:
|
576
|
+
return WAIT_RESOURCE_NOT_FOUND
|
577
|
+
else:
|
578
|
+
raise e
|
579
|
+
|
580
|
+
if not wait_for_states:
|
581
|
+
return operation_result
|
582
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
583
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
584
|
+
return operation_result
|
585
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
586
|
+
|
587
|
+
try:
|
588
|
+
waiter_result = oci.wait_until(
|
589
|
+
self.client,
|
590
|
+
self.client.get_work_request(wait_for_resource_id),
|
591
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
592
|
+
**waiter_kwargs
|
593
|
+
)
|
594
|
+
result_to_return = waiter_result
|
595
|
+
|
596
|
+
return result_to_return
|
597
|
+
except Exception as e:
|
598
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
599
|
+
|
600
|
+
def update_agent_and_wait_for_state(self, agent_id, update_agent_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
601
|
+
"""
|
602
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
603
|
+
to enter the given state(s).
|
604
|
+
|
605
|
+
:param str agent_id: (required)
|
606
|
+
The `OCID`__ of the agent.
|
607
|
+
|
608
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
609
|
+
|
610
|
+
:param oci.generative_ai_agent.models.UpdateAgentDetails update_agent_details: (required)
|
611
|
+
The information to be updated.
|
612
|
+
|
613
|
+
:param list[str] wait_for_states:
|
614
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
615
|
+
|
616
|
+
:param dict operation_kwargs:
|
617
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent`
|
618
|
+
|
619
|
+
:param dict waiter_kwargs:
|
620
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
621
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
622
|
+
"""
|
623
|
+
operation_result = self.client.update_agent(agent_id, update_agent_details, **operation_kwargs)
|
624
|
+
if not wait_for_states:
|
625
|
+
return operation_result
|
626
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
627
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
628
|
+
return operation_result
|
629
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
630
|
+
|
631
|
+
try:
|
632
|
+
waiter_result = oci.wait_until(
|
633
|
+
self.client,
|
634
|
+
self.client.get_work_request(wait_for_resource_id),
|
635
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
636
|
+
**waiter_kwargs
|
637
|
+
)
|
638
|
+
result_to_return = waiter_result
|
639
|
+
|
640
|
+
return result_to_return
|
641
|
+
except Exception as e:
|
642
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
643
|
+
|
644
|
+
def update_agent_endpoint_and_wait_for_state(self, agent_endpoint_id, update_agent_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
645
|
+
"""
|
646
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
647
|
+
to enter the given state(s).
|
648
|
+
|
649
|
+
:param str agent_endpoint_id: (required)
|
650
|
+
The `OCID`__ of the endpoint.
|
651
|
+
|
652
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
653
|
+
|
654
|
+
:param oci.generative_ai_agent.models.UpdateAgentEndpointDetails update_agent_endpoint_details: (required)
|
655
|
+
The information to be updated.
|
656
|
+
|
657
|
+
:param list[str] wait_for_states:
|
658
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
659
|
+
|
660
|
+
:param dict operation_kwargs:
|
661
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent_endpoint`
|
662
|
+
|
663
|
+
:param dict waiter_kwargs:
|
664
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
665
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
666
|
+
"""
|
667
|
+
operation_result = self.client.update_agent_endpoint(agent_endpoint_id, update_agent_endpoint_details, **operation_kwargs)
|
668
|
+
if not wait_for_states:
|
669
|
+
return operation_result
|
670
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
671
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
672
|
+
return operation_result
|
673
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
674
|
+
|
675
|
+
try:
|
676
|
+
waiter_result = oci.wait_until(
|
677
|
+
self.client,
|
678
|
+
self.client.get_work_request(wait_for_resource_id),
|
679
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
680
|
+
**waiter_kwargs
|
681
|
+
)
|
682
|
+
result_to_return = waiter_result
|
683
|
+
|
684
|
+
return result_to_return
|
685
|
+
except Exception as e:
|
686
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
687
|
+
|
688
|
+
def update_data_source_and_wait_for_state(self, data_source_id, update_data_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
689
|
+
"""
|
690
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
691
|
+
to enter the given state(s).
|
692
|
+
|
693
|
+
:param str data_source_id: (required)
|
694
|
+
The `OCID`__ of the data source.
|
695
|
+
|
696
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
697
|
+
|
698
|
+
:param oci.generative_ai_agent.models.UpdateDataSourceDetails update_data_source_details: (required)
|
699
|
+
The data source information to be updated.
|
700
|
+
|
701
|
+
:param list[str] wait_for_states:
|
702
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
703
|
+
|
704
|
+
:param dict operation_kwargs:
|
705
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_data_source`
|
706
|
+
|
707
|
+
:param dict waiter_kwargs:
|
708
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
709
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
710
|
+
"""
|
711
|
+
operation_result = self.client.update_data_source(data_source_id, update_data_source_details, **operation_kwargs)
|
712
|
+
if not wait_for_states:
|
713
|
+
return operation_result
|
714
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
715
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
716
|
+
return operation_result
|
717
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
718
|
+
|
719
|
+
try:
|
720
|
+
waiter_result = oci.wait_until(
|
721
|
+
self.client,
|
722
|
+
self.client.get_work_request(wait_for_resource_id),
|
723
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
724
|
+
**waiter_kwargs
|
725
|
+
)
|
726
|
+
result_to_return = waiter_result
|
727
|
+
|
728
|
+
return result_to_return
|
729
|
+
except Exception as e:
|
730
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
731
|
+
|
732
|
+
def update_knowledge_base_and_wait_for_state(self, knowledge_base_id, update_knowledge_base_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
733
|
+
"""
|
734
|
+
Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest`
|
735
|
+
to enter the given state(s).
|
736
|
+
|
737
|
+
:param str knowledge_base_id: (required)
|
738
|
+
The `OCID`__ of the knowledge base.
|
739
|
+
|
740
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
741
|
+
|
742
|
+
:param oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails update_knowledge_base_details: (required)
|
743
|
+
The information to be updated.
|
744
|
+
|
745
|
+
:param list[str] wait_for_states:
|
746
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status`
|
747
|
+
|
748
|
+
:param dict operation_kwargs:
|
749
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_knowledge_base`
|
750
|
+
|
751
|
+
:param dict waiter_kwargs:
|
752
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
753
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
754
|
+
"""
|
755
|
+
operation_result = self.client.update_knowledge_base(knowledge_base_id, update_knowledge_base_details, **operation_kwargs)
|
756
|
+
if not wait_for_states:
|
757
|
+
return operation_result
|
758
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
759
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
760
|
+
return operation_result
|
761
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
762
|
+
|
763
|
+
try:
|
764
|
+
waiter_result = oci.wait_until(
|
765
|
+
self.client,
|
766
|
+
self.client.get_work_request(wait_for_resource_id),
|
767
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
768
|
+
**waiter_kwargs
|
769
|
+
)
|
770
|
+
result_to_return = waiter_result
|
771
|
+
|
772
|
+
return result_to_return
|
773
|
+
except Exception as e:
|
774
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|