oci 2.137.1__py3-none-any.whl → 2.138.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/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/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/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/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_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/auth/auth_utils.py +9 -6
- oci/auth/federation_client.py +59 -5
- oci/auth/rpt_path_providers.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/base_client.py +5 -12
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- 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 +69 -245
- oci/cims/models/__init__.py +6 -0
- oci/cims/models/activity_item.py +37 -6
- oci/cims/models/create_account_item_details.py +3 -0
- oci/cims/models/create_incident.py +22 -2
- oci/cims/models/create_limit_item_details.py +10 -3
- oci/cims/models/create_tech_support_item_details.py +3 -0
- oci/cims/models/create_user_details.py +22 -2
- oci/cims/models/incident.py +22 -2
- oci/cims/models/incident_resource_type.py +46 -15
- oci/cims/models/incident_summary.py +22 -2
- oci/cims/models/item.py +1 -1
- oci/cims/models/limit_item.py +40 -5
- oci/cims/models/service_categories.py +34 -34
- oci/cims/models/service_category.py +31 -0
- oci/cims/models/sub_categories.py +165 -0
- oci/cims/models/sub_components.py +103 -0
- oci/cims/models/subscription_info.py +103 -0
- oci/cims/models/ticket.py +4 -4
- oci/cims/models/update_incident.py +22 -2
- oci/cims/models/user.py +22 -2
- oci/circuit_breaker/__init__.py +24 -2
- oci/circuit_breaker/circuit_breaker.py +11 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +22 -22
- 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/virtual_network_client.py +247 -247
- 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_flow/data_flow_client.py +270 -44
- oci/data_flow/data_flow_client_composite_operations.py +78 -0
- oci/data_flow/models/sql_endpoint.py +7 -3
- oci/data_flow/models/sql_endpoint_summary.py +7 -3
- oci/data_flow/models/update_sql_endpoint_details.py +344 -3
- oci/data_integration/data_integration_client.py +163 -163
- 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 +292 -292
- oci/data_science/data_science_client.py +92 -92
- oci/database/database_client.py +396 -396
- 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/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_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/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +54 -54
- 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_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 +68 -68
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- 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 +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- 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/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai/models/create_dedicated_ai_cluster_details.py +8 -0
- oci/generative_ai/models/dedicated_ai_cluster.py +20 -4
- oci/generative_ai/models/endpoint.py +1 -1
- oci/generative_ai/models/model.py +1 -1
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- oci/generative_ai_inference/models/__init__.py +10 -0
- oci/generative_ai_inference/models/base_chat_request.py +6 -2
- oci/generative_ai_inference/models/chat_content.py +11 -3
- oci/generative_ai_inference/models/cohere_chat_request.py +60 -2
- oci/generative_ai_inference/models/cohere_response_format.py +109 -0
- oci/generative_ai_inference/models/cohere_response_json_format.py +82 -0
- oci/generative_ai_inference/models/cohere_response_text_format.py +51 -0
- oci/generative_ai_inference/models/image_content.py +78 -0
- oci/generative_ai_inference/models/image_url.py +123 -0
- oci/generative_ai_inference/models/text_content.py +1 -1
- 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 +191 -69
- oci/golden_gate/golden_gate_client_composite_operations.py +44 -0
- oci/golden_gate/models/__init__.py +4 -0
- oci/golden_gate/models/amazon_kinesis_connection.py +46 -2
- oci/golden_gate/models/amazon_kinesis_connection_summary.py +46 -2
- oci/golden_gate/models/amazon_redshift_connection.py +52 -2
- oci/golden_gate/models/amazon_redshift_connection_summary.py +52 -2
- oci/golden_gate/models/amazon_s3_connection.py +46 -2
- oci/golden_gate/models/amazon_s3_connection_summary.py +46 -2
- oci/golden_gate/models/azure_data_lake_storage_connection.py +120 -2
- oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +120 -2
- oci/golden_gate/models/azure_synapse_connection.py +52 -2
- oci/golden_gate/models/azure_synapse_connection_summary.py +52 -2
- oci/golden_gate/models/connection.py +33 -2
- oci/golden_gate/models/connection_summary.py +33 -2
- oci/golden_gate/models/create_amazon_kinesis_connection_details.py +47 -3
- oci/golden_gate/models/create_amazon_redshift_connection_details.py +53 -3
- oci/golden_gate/models/create_amazon_s3_connection_details.py +47 -3
- oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +118 -0
- oci/golden_gate/models/create_azure_synapse_connection_details.py +53 -3
- oci/golden_gate/models/create_connection_details.py +33 -2
- oci/golden_gate/models/create_db2_connection_details.py +125 -1
- oci/golden_gate/models/create_deployment_backup_details.py +31 -0
- oci/golden_gate/models/create_elasticsearch_connection_details.py +50 -0
- oci/golden_gate/models/create_generic_connection_details.py +7 -0
- oci/golden_gate/models/create_golden_gate_connection_details.py +46 -0
- oci/golden_gate/models/create_google_big_query_connection_details.py +49 -3
- oci/golden_gate/models/create_google_cloud_storage_connection_details.py +49 -3
- oci/golden_gate/models/create_hdfs_connection_details.py +7 -0
- oci/golden_gate/models/create_java_message_service_connection_details.py +270 -0
- oci/golden_gate/models/create_kafka_connection_details.py +235 -0
- oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +239 -4
- oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +45 -1
- oci/golden_gate/models/create_mongo_db_connection_details.py +44 -0
- oci/golden_gate/models/create_mysql_connection_details.py +90 -1
- oci/golden_gate/models/create_oci_object_storage_connection_details.py +84 -1
- oci/golden_gate/models/create_oracle_connection_details.py +90 -1
- oci/golden_gate/models/create_oracle_nosql_connection_details.py +84 -1
- oci/golden_gate/models/create_postgresql_connection_details.py +88 -1
- oci/golden_gate/models/create_redis_connection_details.py +198 -0
- oci/golden_gate/models/create_snowflake_connection_details.py +128 -2
- oci/golden_gate/models/db2_connection.py +126 -2
- oci/golden_gate/models/db2_connection_summary.py +126 -2
- oci/golden_gate/models/default_refresh_connection_details.py +51 -0
- oci/golden_gate/models/deployment_backup.py +31 -0
- oci/golden_gate/models/deployment_backup_summary.py +31 -0
- oci/golden_gate/models/elasticsearch_connection.py +52 -2
- oci/golden_gate/models/elasticsearch_connection_summary.py +52 -2
- oci/golden_gate/models/export_deployment_wallet_details.py +35 -0
- oci/golden_gate/models/generic_connection.py +7 -0
- oci/golden_gate/models/generic_connection_summary.py +7 -0
- oci/golden_gate/models/golden_gate_connection.py +48 -2
- oci/golden_gate/models/golden_gate_connection_summary.py +48 -2
- oci/golden_gate/models/google_big_query_connection.py +48 -2
- oci/golden_gate/models/google_big_query_connection_summary.py +48 -2
- oci/golden_gate/models/google_cloud_storage_connection.py +48 -2
- oci/golden_gate/models/google_cloud_storage_connection_summary.py +48 -2
- oci/golden_gate/models/hdfs_connection.py +7 -0
- oci/golden_gate/models/hdfs_connection_summary.py +7 -0
- oci/golden_gate/models/import_deployment_wallet_details.py +35 -0
- oci/golden_gate/models/java_message_service_connection.py +272 -2
- oci/golden_gate/models/java_message_service_connection_summary.py +272 -2
- oci/golden_gate/models/kafka_connection.py +299 -2
- oci/golden_gate/models/kafka_connection_summary.py +237 -2
- oci/golden_gate/models/kafka_schema_registry_connection.py +239 -4
- oci/golden_gate/models/kafka_schema_registry_connection_summary.py +239 -4
- oci/golden_gate/models/microsoft_sqlserver_connection.py +46 -2
- oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +46 -2
- oci/golden_gate/models/mongo_db_connection.py +46 -2
- oci/golden_gate/models/mongo_db_connection_summary.py +46 -2
- oci/golden_gate/models/mysql_connection.py +91 -2
- oci/golden_gate/models/mysql_connection_summary.py +91 -2
- oci/golden_gate/models/oci_object_storage_connection.py +85 -2
- oci/golden_gate/models/oci_object_storage_connection_summary.py +85 -2
- oci/golden_gate/models/oracle_connection.py +91 -2
- oci/golden_gate/models/oracle_connection_summary.py +91 -2
- oci/golden_gate/models/oracle_nosql_connection.py +85 -2
- oci/golden_gate/models/oracle_nosql_connection_summary.py +85 -2
- oci/golden_gate/models/postgresql_connection.py +89 -2
- oci/golden_gate/models/postgresql_connection_summary.py +89 -2
- oci/golden_gate/models/redis_connection.py +200 -2
- oci/golden_gate/models/redis_connection_summary.py +200 -2
- oci/golden_gate/models/refresh_connection_details.py +101 -0
- oci/golden_gate/models/snowflake_connection.py +128 -2
- oci/golden_gate/models/snowflake_connection_summary.py +128 -2
- oci/golden_gate/models/update_amazon_kinesis_connection_details.py +46 -2
- oci/golden_gate/models/update_amazon_redshift_connection_details.py +52 -2
- oci/golden_gate/models/update_amazon_s3_connection_details.py +46 -2
- oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +118 -0
- oci/golden_gate/models/update_azure_synapse_connection_details.py +52 -2
- oci/golden_gate/models/update_connection_details.py +33 -2
- oci/golden_gate/models/update_db2_connection_details.py +124 -0
- oci/golden_gate/models/update_elasticsearch_connection_details.py +50 -0
- oci/golden_gate/models/update_generic_connection_details.py +7 -0
- oci/golden_gate/models/update_golden_gate_connection_details.py +46 -0
- oci/golden_gate/models/update_google_big_query_connection_details.py +48 -2
- oci/golden_gate/models/update_google_cloud_storage_connection_details.py +48 -2
- oci/golden_gate/models/update_hdfs_connection_details.py +7 -0
- oci/golden_gate/models/update_java_message_service_connection_details.py +270 -0
- oci/golden_gate/models/update_kafka_connection_details.py +235 -0
- oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +241 -4
- oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +44 -0
- oci/golden_gate/models/update_mongo_db_connection_details.py +44 -0
- oci/golden_gate/models/update_mysql_connection_details.py +89 -0
- oci/golden_gate/models/update_oci_object_storage_connection_details.py +83 -0
- oci/golden_gate/models/update_oracle_connection_details.py +89 -0
- oci/golden_gate/models/update_oracle_nosql_connection_details.py +83 -0
- oci/golden_gate/models/update_postgresql_connection_details.py +87 -0
- oci/golden_gate/models/update_redis_connection_details.py +198 -0
- oci/golden_gate/models/update_snowflake_connection_details.py +122 -2
- oci/golden_gate/models/work_request.py +7 -3
- 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 +874 -333
- oci/identity_domains/models/__init__.py +20 -0
- oci/identity_domains/models/condition.py +31 -2
- oci/identity_domains/models/condition_extension_ociconsolesignonpolicyconsent_policy.py +194 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consent.py +1041 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consent_consent_signed_by.py +260 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consent_modified_resource.py +223 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consent_policy_resource.py +148 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consent_search_request.py +364 -0
- oci/identity_domains/models/oci_console_sign_on_policy_consents.py +196 -0
- oci/identity_domains/models/policy.py +31 -2
- oci/identity_domains/models/policy_extension_ociconsolesignonpolicyconsent_policy.py +194 -0
- oci/identity_domains/models/policy_policy_type.py +2 -2
- oci/identity_domains/models/restore_oci_console_policy.py +722 -0
- oci/identity_domains/models/rule.py +31 -2
- oci/identity_domains/models/rule_condition_group.py +2 -2
- oci/identity_domains/models/rule_extension_ociconsolesignonpolicyconsent_policy.py +194 -0
- oci/integration/integration_instance_client.py +19 -19
- 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/logging/logging_management_client.py +30 -30
- 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/monitoring_client.py +18 -18
- 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/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/operations_insights_client.py +180 -180
- 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/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 +18 -4
- 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/retry/__init__.py +20 -0
- 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/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +71 -71
- 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/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/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/METADATA +1 -1
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/RECORD +430 -410
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/WHEEL +0 -0
- {oci-2.137.1.dist-info → oci-2.138.1.dist-info}/top_level.txt +0 -0
@@ -15,7 +15,7 @@ class DedicatedAiCluster(object):
|
|
15
15
|
Dedicated AI clusters are compute resources that you can use for fine-tuning custom models or for hosting endpoints for custom models. The clusters are dedicated to your models and not shared with users in other tenancies.
|
16
16
|
|
17
17
|
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See
|
18
|
-
`Getting Started with Policies`__ and `Getting Access to Generative AI
|
18
|
+
`Getting Started with Policies`__ and `Getting Access to Generative AI Resources`__.
|
19
19
|
|
20
20
|
__ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm
|
21
21
|
__ https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm
|
@@ -73,6 +73,10 @@ class DedicatedAiCluster(object):
|
|
73
73
|
#: This constant has a value of "SMALL_COHERE_V2"
|
74
74
|
UNIT_SHAPE_SMALL_COHERE_V2 = "SMALL_COHERE_V2"
|
75
75
|
|
76
|
+
#: A constant which can be used with the unit_shape property of a DedicatedAiCluster.
|
77
|
+
#: This constant has a value of "SMALL_COHERE_4"
|
78
|
+
UNIT_SHAPE_SMALL_COHERE_4 = "SMALL_COHERE_4"
|
79
|
+
|
76
80
|
#: A constant which can be used with the unit_shape property of a DedicatedAiCluster.
|
77
81
|
#: This constant has a value of "EMBED_COHERE"
|
78
82
|
UNIT_SHAPE_EMBED_COHERE = "EMBED_COHERE"
|
@@ -93,6 +97,18 @@ class DedicatedAiCluster(object):
|
|
93
97
|
#: This constant has a value of "LARGE_GENERIC_4"
|
94
98
|
UNIT_SHAPE_LARGE_GENERIC_4 = "LARGE_GENERIC_4"
|
95
99
|
|
100
|
+
#: A constant which can be used with the unit_shape property of a DedicatedAiCluster.
|
101
|
+
#: This constant has a value of "SMALL_GENERIC_V2"
|
102
|
+
UNIT_SHAPE_SMALL_GENERIC_V2 = "SMALL_GENERIC_V2"
|
103
|
+
|
104
|
+
#: A constant which can be used with the unit_shape property of a DedicatedAiCluster.
|
105
|
+
#: This constant has a value of "LARGE_GENERIC_2"
|
106
|
+
UNIT_SHAPE_LARGE_GENERIC_2 = "LARGE_GENERIC_2"
|
107
|
+
|
108
|
+
#: A constant which can be used with the unit_shape property of a DedicatedAiCluster.
|
109
|
+
#: This constant has a value of "LARGE_GENERIC_V2"
|
110
|
+
UNIT_SHAPE_LARGE_GENERIC_V2 = "LARGE_GENERIC_V2"
|
111
|
+
|
96
112
|
def __init__(self, **kwargs):
|
97
113
|
"""
|
98
114
|
Initializes a new DedicatedAiCluster object with values from keyword arguments.
|
@@ -144,7 +160,7 @@ class DedicatedAiCluster(object):
|
|
144
160
|
|
145
161
|
:param unit_shape:
|
146
162
|
The value to assign to the unit_shape property of this DedicatedAiCluster.
|
147
|
-
Allowed values for this property are: "LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4", 'UNKNOWN_ENUM_VALUE'.
|
163
|
+
Allowed values for this property are: "LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "SMALL_COHERE_4", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4", "SMALL_GENERIC_V2", "LARGE_GENERIC_2", "LARGE_GENERIC_V2", 'UNKNOWN_ENUM_VALUE'.
|
148
164
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
149
165
|
:type unit_shape: str
|
150
166
|
|
@@ -486,7 +502,7 @@ class DedicatedAiCluster(object):
|
|
486
502
|
**[Required]** Gets the unit_shape of this DedicatedAiCluster.
|
487
503
|
The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
|
488
504
|
|
489
|
-
Allowed values for this property are: "LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4", 'UNKNOWN_ENUM_VALUE'.
|
505
|
+
Allowed values for this property are: "LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "SMALL_COHERE_4", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4", "SMALL_GENERIC_V2", "LARGE_GENERIC_2", "LARGE_GENERIC_V2", 'UNKNOWN_ENUM_VALUE'.
|
490
506
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
491
507
|
|
492
508
|
|
@@ -505,7 +521,7 @@ class DedicatedAiCluster(object):
|
|
505
521
|
:param unit_shape: The unit_shape of this DedicatedAiCluster.
|
506
522
|
:type: str
|
507
523
|
"""
|
508
|
-
allowed_values = ["LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4"]
|
524
|
+
allowed_values = ["LARGE_COHERE", "LARGE_COHERE_V2", "SMALL_COHERE", "SMALL_COHERE_V2", "SMALL_COHERE_4", "EMBED_COHERE", "LLAMA2_70", "LARGE_GENERIC", "LARGE_COHERE_V2_2", "LARGE_GENERIC_4", "SMALL_GENERIC_V2", "LARGE_GENERIC_2", "LARGE_GENERIC_V2"]
|
509
525
|
if not value_allowed_none_or_none_sentinel(unit_shape, allowed_values):
|
510
526
|
unit_shape = 'UNKNOWN_ENUM_VALUE'
|
511
527
|
self._unit_shape = unit_shape
|
@@ -15,7 +15,7 @@ class Endpoint(object):
|
|
15
15
|
To host a custom model for inference, create an endpoint for that model on a dedicated AI cluster of type HOSTING.
|
16
16
|
|
17
17
|
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See
|
18
|
-
`Getting Started with Policies`__ and `Getting Access to Generative AI
|
18
|
+
`Getting Started with Policies`__ and `Getting Access to Generative AI Resources`__.
|
19
19
|
|
20
20
|
__ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm
|
21
21
|
__ https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm
|
@@ -15,7 +15,7 @@ class Model(object):
|
|
15
15
|
You can create a custom model by using your dataset to fine-tune an out-of-the-box text generation base model. Have your dataset ready before you create a custom model. See `Training Data Requirements`__.
|
16
16
|
|
17
17
|
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See
|
18
|
-
`Getting Started with Policies`__ and `Getting Access to Generative AI
|
18
|
+
`Getting Started with Policies`__ and `Getting Access to Generative AI Resources`__.
|
19
19
|
|
20
20
|
__ https://docs.cloud.oracle.com/iaas/Content/generative-ai/training-data-requirements.htm
|
21
21
|
__ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm
|
@@ -167,7 +167,7 @@ class GenerativeAiAgentClient(object):
|
|
167
167
|
:rtype: :class:`~oci.response.Response`
|
168
168
|
|
169
169
|
:example:
|
170
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
170
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
171
171
|
"""
|
172
172
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
173
173
|
required_arguments = ['workRequestId']
|
@@ -291,7 +291,7 @@ class GenerativeAiAgentClient(object):
|
|
291
291
|
:rtype: :class:`~oci.response.Response`
|
292
292
|
|
293
293
|
:example:
|
294
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
294
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/change_agent_compartment.py.html>`__ to see an example of how to use change_agent_compartment API.
|
295
295
|
"""
|
296
296
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
297
297
|
required_arguments = ['agentId']
|
@@ -420,7 +420,7 @@ class GenerativeAiAgentClient(object):
|
|
420
420
|
:rtype: :class:`~oci.response.Response`
|
421
421
|
|
422
422
|
:example:
|
423
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
423
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/change_agent_endpoint_compartment.py.html>`__ to see an example of how to use change_agent_endpoint_compartment API.
|
424
424
|
"""
|
425
425
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
426
426
|
required_arguments = ['agentEndpointId']
|
@@ -549,7 +549,7 @@ class GenerativeAiAgentClient(object):
|
|
549
549
|
:rtype: :class:`~oci.response.Response`
|
550
550
|
|
551
551
|
:example:
|
552
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
552
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/change_knowledge_base_compartment.py.html>`__ to see an example of how to use change_knowledge_base_compartment API.
|
553
553
|
"""
|
554
554
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
555
555
|
required_arguments = ['knowledgeBaseId']
|
@@ -664,7 +664,7 @@ class GenerativeAiAgentClient(object):
|
|
664
664
|
:rtype: :class:`~oci.response.Response`
|
665
665
|
|
666
666
|
:example:
|
667
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
667
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/create_agent.py.html>`__ to see an example of how to use create_agent API.
|
668
668
|
"""
|
669
669
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
670
670
|
required_arguments = []
|
@@ -767,7 +767,7 @@ class GenerativeAiAgentClient(object):
|
|
767
767
|
:rtype: :class:`~oci.response.Response`
|
768
768
|
|
769
769
|
:example:
|
770
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
770
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/create_agent_endpoint.py.html>`__ to see an example of how to use create_agent_endpoint API.
|
771
771
|
"""
|
772
772
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
773
773
|
required_arguments = []
|
@@ -870,7 +870,7 @@ class GenerativeAiAgentClient(object):
|
|
870
870
|
:rtype: :class:`~oci.response.Response`
|
871
871
|
|
872
872
|
:example:
|
873
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
873
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/create_data_ingestion_job.py.html>`__ to see an example of how to use create_data_ingestion_job API.
|
874
874
|
"""
|
875
875
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
876
876
|
required_arguments = []
|
@@ -973,7 +973,7 @@ class GenerativeAiAgentClient(object):
|
|
973
973
|
:rtype: :class:`~oci.response.Response`
|
974
974
|
|
975
975
|
:example:
|
976
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
976
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/create_data_source.py.html>`__ to see an example of how to use create_data_source API.
|
977
977
|
"""
|
978
978
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
979
979
|
required_arguments = []
|
@@ -1076,7 +1076,7 @@ class GenerativeAiAgentClient(object):
|
|
1076
1076
|
:rtype: :class:`~oci.response.Response`
|
1077
1077
|
|
1078
1078
|
:example:
|
1079
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1079
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/create_knowledge_base.py.html>`__ to see an example of how to use create_knowledge_base API.
|
1080
1080
|
"""
|
1081
1081
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1082
1082
|
required_arguments = []
|
@@ -1180,7 +1180,7 @@ class GenerativeAiAgentClient(object):
|
|
1180
1180
|
:rtype: :class:`~oci.response.Response`
|
1181
1181
|
|
1182
1182
|
:example:
|
1183
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1183
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/delete_agent.py.html>`__ to see an example of how to use delete_agent API.
|
1184
1184
|
"""
|
1185
1185
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1186
1186
|
required_arguments = ['agentId']
|
@@ -1291,7 +1291,7 @@ class GenerativeAiAgentClient(object):
|
|
1291
1291
|
:rtype: :class:`~oci.response.Response`
|
1292
1292
|
|
1293
1293
|
:example:
|
1294
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1294
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/delete_agent_endpoint.py.html>`__ to see an example of how to use delete_agent_endpoint API.
|
1295
1295
|
"""
|
1296
1296
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1297
1297
|
required_arguments = ['agentEndpointId']
|
@@ -1402,7 +1402,7 @@ class GenerativeAiAgentClient(object):
|
|
1402
1402
|
:rtype: :class:`~oci.response.Response`
|
1403
1403
|
|
1404
1404
|
:example:
|
1405
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1405
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/delete_data_ingestion_job.py.html>`__ to see an example of how to use delete_data_ingestion_job API.
|
1406
1406
|
"""
|
1407
1407
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1408
1408
|
required_arguments = ['dataIngestionJobId']
|
@@ -1513,7 +1513,7 @@ class GenerativeAiAgentClient(object):
|
|
1513
1513
|
:rtype: :class:`~oci.response.Response`
|
1514
1514
|
|
1515
1515
|
:example:
|
1516
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1516
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/delete_data_source.py.html>`__ to see an example of how to use delete_data_source API.
|
1517
1517
|
"""
|
1518
1518
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1519
1519
|
required_arguments = ['dataSourceId']
|
@@ -1624,7 +1624,7 @@ class GenerativeAiAgentClient(object):
|
|
1624
1624
|
:rtype: :class:`~oci.response.Response`
|
1625
1625
|
|
1626
1626
|
:example:
|
1627
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1627
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/delete_knowledge_base.py.html>`__ to see an example of how to use delete_knowledge_base API.
|
1628
1628
|
"""
|
1629
1629
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1630
1630
|
required_arguments = ['knowledgeBaseId']
|
@@ -1729,7 +1729,7 @@ class GenerativeAiAgentClient(object):
|
|
1729
1729
|
:rtype: :class:`~oci.response.Response`
|
1730
1730
|
|
1731
1731
|
:example:
|
1732
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1732
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_agent.py.html>`__ to see an example of how to use get_agent API.
|
1733
1733
|
"""
|
1734
1734
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1735
1735
|
required_arguments = ['agentId']
|
@@ -1834,7 +1834,7 @@ class GenerativeAiAgentClient(object):
|
|
1834
1834
|
:rtype: :class:`~oci.response.Response`
|
1835
1835
|
|
1836
1836
|
:example:
|
1837
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1837
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_agent_endpoint.py.html>`__ to see an example of how to use get_agent_endpoint API.
|
1838
1838
|
"""
|
1839
1839
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1840
1840
|
required_arguments = ['agentEndpointId']
|
@@ -1939,7 +1939,7 @@ class GenerativeAiAgentClient(object):
|
|
1939
1939
|
:rtype: :class:`~oci.response.Response`
|
1940
1940
|
|
1941
1941
|
:example:
|
1942
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1942
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_data_ingestion_job.py.html>`__ to see an example of how to use get_data_ingestion_job API.
|
1943
1943
|
"""
|
1944
1944
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1945
1945
|
required_arguments = ['dataIngestionJobId']
|
@@ -2044,7 +2044,7 @@ class GenerativeAiAgentClient(object):
|
|
2044
2044
|
:rtype: :class:`~oci.response.Response`
|
2045
2045
|
|
2046
2046
|
:example:
|
2047
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2047
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_data_ingestion_job_log_content.py.html>`__ to see an example of how to use get_data_ingestion_job_log_content API.
|
2048
2048
|
"""
|
2049
2049
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2050
2050
|
required_arguments = ['dataIngestionJobId']
|
@@ -2149,7 +2149,7 @@ class GenerativeAiAgentClient(object):
|
|
2149
2149
|
:rtype: :class:`~oci.response.Response`
|
2150
2150
|
|
2151
2151
|
:example:
|
2152
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2152
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_data_source.py.html>`__ to see an example of how to use get_data_source API.
|
2153
2153
|
"""
|
2154
2154
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2155
2155
|
required_arguments = ['dataSourceId']
|
@@ -2254,7 +2254,7 @@ class GenerativeAiAgentClient(object):
|
|
2254
2254
|
:rtype: :class:`~oci.response.Response`
|
2255
2255
|
|
2256
2256
|
:example:
|
2257
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2257
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_knowledge_base.py.html>`__ to see an example of how to use get_knowledge_base API.
|
2258
2258
|
"""
|
2259
2259
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2260
2260
|
required_arguments = ['knowledgeBaseId']
|
@@ -2359,7 +2359,7 @@ class GenerativeAiAgentClient(object):
|
|
2359
2359
|
:rtype: :class:`~oci.response.Response`
|
2360
2360
|
|
2361
2361
|
:example:
|
2362
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2362
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
2363
2363
|
"""
|
2364
2364
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2365
2365
|
required_arguments = ['workRequestId']
|
@@ -2503,7 +2503,7 @@ class GenerativeAiAgentClient(object):
|
|
2503
2503
|
:rtype: :class:`~oci.response.Response`
|
2504
2504
|
|
2505
2505
|
:example:
|
2506
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2506
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_agent_endpoints.py.html>`__ to see an example of how to use list_agent_endpoints API.
|
2507
2507
|
"""
|
2508
2508
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2509
2509
|
required_arguments = []
|
@@ -2673,7 +2673,7 @@ class GenerativeAiAgentClient(object):
|
|
2673
2673
|
:rtype: :class:`~oci.response.Response`
|
2674
2674
|
|
2675
2675
|
:example:
|
2676
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2676
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_agents.py.html>`__ to see an example of how to use list_agents API.
|
2677
2677
|
"""
|
2678
2678
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2679
2679
|
required_arguments = []
|
@@ -2846,7 +2846,7 @@ class GenerativeAiAgentClient(object):
|
|
2846
2846
|
:rtype: :class:`~oci.response.Response`
|
2847
2847
|
|
2848
2848
|
:example:
|
2849
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2849
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_data_ingestion_jobs.py.html>`__ to see an example of how to use list_data_ingestion_jobs API.
|
2850
2850
|
"""
|
2851
2851
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2852
2852
|
required_arguments = []
|
@@ -3021,7 +3021,7 @@ class GenerativeAiAgentClient(object):
|
|
3021
3021
|
:rtype: :class:`~oci.response.Response`
|
3022
3022
|
|
3023
3023
|
:example:
|
3024
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3024
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_data_sources.py.html>`__ to see an example of how to use list_data_sources API.
|
3025
3025
|
"""
|
3026
3026
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3027
3027
|
required_arguments = []
|
@@ -3191,7 +3191,7 @@ class GenerativeAiAgentClient(object):
|
|
3191
3191
|
:rtype: :class:`~oci.response.Response`
|
3192
3192
|
|
3193
3193
|
:example:
|
3194
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3194
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_knowledge_bases.py.html>`__ to see an example of how to use list_knowledge_bases API.
|
3195
3195
|
"""
|
3196
3196
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3197
3197
|
required_arguments = []
|
@@ -3349,7 +3349,7 @@ class GenerativeAiAgentClient(object):
|
|
3349
3349
|
:rtype: :class:`~oci.response.Response`
|
3350
3350
|
|
3351
3351
|
:example:
|
3352
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3352
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
3353
3353
|
"""
|
3354
3354
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3355
3355
|
required_arguments = ['workRequestId']
|
@@ -3506,7 +3506,7 @@ class GenerativeAiAgentClient(object):
|
|
3506
3506
|
:rtype: :class:`~oci.response.Response`
|
3507
3507
|
|
3508
3508
|
:example:
|
3509
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3509
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
3510
3510
|
"""
|
3511
3511
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3512
3512
|
required_arguments = ['workRequestId']
|
@@ -3678,7 +3678,7 @@ class GenerativeAiAgentClient(object):
|
|
3678
3678
|
:rtype: :class:`~oci.response.Response`
|
3679
3679
|
|
3680
3680
|
:example:
|
3681
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3681
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
3682
3682
|
"""
|
3683
3683
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3684
3684
|
required_arguments = []
|
@@ -3823,7 +3823,7 @@ class GenerativeAiAgentClient(object):
|
|
3823
3823
|
:rtype: :class:`~oci.response.Response`
|
3824
3824
|
|
3825
3825
|
:example:
|
3826
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3826
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/update_agent.py.html>`__ to see an example of how to use update_agent API.
|
3827
3827
|
"""
|
3828
3828
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3829
3829
|
required_arguments = ['agentId']
|
@@ -3939,7 +3939,7 @@ class GenerativeAiAgentClient(object):
|
|
3939
3939
|
:rtype: :class:`~oci.response.Response`
|
3940
3940
|
|
3941
3941
|
:example:
|
3942
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3942
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/update_agent_endpoint.py.html>`__ to see an example of how to use update_agent_endpoint API.
|
3943
3943
|
"""
|
3944
3944
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3945
3945
|
required_arguments = ['agentEndpointId']
|
@@ -4055,7 +4055,7 @@ class GenerativeAiAgentClient(object):
|
|
4055
4055
|
:rtype: :class:`~oci.response.Response`
|
4056
4056
|
|
4057
4057
|
:example:
|
4058
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4058
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/update_data_source.py.html>`__ to see an example of how to use update_data_source API.
|
4059
4059
|
"""
|
4060
4060
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4061
4061
|
required_arguments = ['dataSourceId']
|
@@ -4171,7 +4171,7 @@ class GenerativeAiAgentClient(object):
|
|
4171
4171
|
:rtype: :class:`~oci.response.Response`
|
4172
4172
|
|
4173
4173
|
:example:
|
4174
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4174
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagent/update_knowledge_base.py.html>`__ to see an example of how to use update_knowledge_base API.
|
4175
4175
|
"""
|
4176
4176
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4177
4177
|
required_arguments = ['knowledgeBaseId']
|
@@ -168,7 +168,7 @@ class GenerativeAiAgentRuntimeClient(object):
|
|
168
168
|
:rtype: :class:`~oci.response.Response`
|
169
169
|
|
170
170
|
:example:
|
171
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
171
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagentruntime/chat.py.html>`__ to see an example of how to use chat API.
|
172
172
|
"""
|
173
173
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
174
174
|
required_arguments = ['agentEndpointId']
|
@@ -285,7 +285,7 @@ class GenerativeAiAgentRuntimeClient(object):
|
|
285
285
|
:rtype: :class:`~oci.response.Response`
|
286
286
|
|
287
287
|
:example:
|
288
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
288
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagentruntime/create_session.py.html>`__ to see an example of how to use create_session API.
|
289
289
|
"""
|
290
290
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
291
291
|
required_arguments = ['agentEndpointId']
|
@@ -398,7 +398,7 @@ class GenerativeAiAgentRuntimeClient(object):
|
|
398
398
|
:rtype: :class:`~oci.response.Response`
|
399
399
|
|
400
400
|
:example:
|
401
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
401
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagentruntime/delete_session.py.html>`__ to see an example of how to use delete_session API.
|
402
402
|
"""
|
403
403
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
404
404
|
required_arguments = ['agentEndpointId', 'sessionId']
|
@@ -500,7 +500,7 @@ class GenerativeAiAgentRuntimeClient(object):
|
|
500
500
|
:rtype: :class:`~oci.response.Response`
|
501
501
|
|
502
502
|
:example:
|
503
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
503
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagentruntime/get_session.py.html>`__ to see an example of how to use get_session API.
|
504
504
|
"""
|
505
505
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
506
506
|
required_arguments = ['agentEndpointId', 'sessionId']
|
@@ -612,7 +612,7 @@ class GenerativeAiAgentRuntimeClient(object):
|
|
612
612
|
:rtype: :class:`~oci.response.Response`
|
613
613
|
|
614
614
|
:example:
|
615
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
615
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiagentruntime/update_session.py.html>`__ to see an example of how to use update_session API.
|
616
616
|
"""
|
617
617
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
618
618
|
required_arguments = ['agentEndpointId', 'sessionId']
|
@@ -24,9 +24,9 @@ class GenerativeAiInferenceClient(object):
|
|
24
24
|
"""
|
25
25
|
OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
|
26
26
|
|
27
|
-
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/
|
27
|
+
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/EN/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/EN/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/EN/generative-ai-inference/latest/EmbedTextResult/EmbedText).
|
28
28
|
|
29
|
-
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](
|
29
|
+
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](#/EN/generative-ai/latest/) to [create a custom model](#/EN/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](#/EN/generative-ai/latest/).
|
30
30
|
|
31
31
|
To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm).
|
32
32
|
"""
|
@@ -155,7 +155,7 @@ class GenerativeAiInferenceClient(object):
|
|
155
155
|
:rtype: :class:`~oci.response.Response`
|
156
156
|
|
157
157
|
:example:
|
158
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
158
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiinference/chat.py.html>`__ to see an example of how to use chat API.
|
159
159
|
"""
|
160
160
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
161
161
|
required_arguments = []
|
@@ -254,7 +254,7 @@ class GenerativeAiInferenceClient(object):
|
|
254
254
|
:rtype: :class:`~oci.response.Response`
|
255
255
|
|
256
256
|
:example:
|
257
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
257
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiinference/embed_text.py.html>`__ to see an example of how to use embed_text API.
|
258
258
|
"""
|
259
259
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
260
260
|
required_arguments = []
|
@@ -351,7 +351,7 @@ class GenerativeAiInferenceClient(object):
|
|
351
351
|
:rtype: :class:`~oci.response.Response`
|
352
352
|
|
353
353
|
:example:
|
354
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
354
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiinference/generate_text.py.html>`__ to see an example of how to use generate_text API.
|
355
355
|
"""
|
356
356
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
357
357
|
required_arguments = []
|
@@ -448,7 +448,7 @@ class GenerativeAiInferenceClient(object):
|
|
448
448
|
:rtype: :class:`~oci.response.Response`
|
449
449
|
|
450
450
|
:example:
|
451
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
451
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.138.1/generativeaiinference/summarize_text.py.html>`__ to see an example of how to use summarize_text API.
|
452
452
|
"""
|
453
453
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
454
454
|
required_arguments = []
|
@@ -22,6 +22,9 @@ from .cohere_llm_inference_request import CohereLlmInferenceRequest
|
|
22
22
|
from .cohere_llm_inference_response import CohereLlmInferenceResponse
|
23
23
|
from .cohere_message import CohereMessage
|
24
24
|
from .cohere_parameter_definition import CohereParameterDefinition
|
25
|
+
from .cohere_response_format import CohereResponseFormat
|
26
|
+
from .cohere_response_json_format import CohereResponseJsonFormat
|
27
|
+
from .cohere_response_text_format import CohereResponseTextFormat
|
25
28
|
from .cohere_system_message import CohereSystemMessage
|
26
29
|
from .cohere_tool import CohereTool
|
27
30
|
from .cohere_tool_call import CohereToolCall
|
@@ -36,6 +39,8 @@ from .generate_text_result import GenerateTextResult
|
|
36
39
|
from .generated_text import GeneratedText
|
37
40
|
from .generic_chat_request import GenericChatRequest
|
38
41
|
from .generic_chat_response import GenericChatResponse
|
42
|
+
from .image_content import ImageContent
|
43
|
+
from .image_url import ImageUrl
|
39
44
|
from .llama_llm_inference_request import LlamaLlmInferenceRequest
|
40
45
|
from .llama_llm_inference_response import LlamaLlmInferenceResponse
|
41
46
|
from .llm_inference_request import LlmInferenceRequest
|
@@ -70,6 +75,9 @@ generative_ai_inference_type_mapping = {
|
|
70
75
|
"CohereLlmInferenceResponse": CohereLlmInferenceResponse,
|
71
76
|
"CohereMessage": CohereMessage,
|
72
77
|
"CohereParameterDefinition": CohereParameterDefinition,
|
78
|
+
"CohereResponseFormat": CohereResponseFormat,
|
79
|
+
"CohereResponseJsonFormat": CohereResponseJsonFormat,
|
80
|
+
"CohereResponseTextFormat": CohereResponseTextFormat,
|
73
81
|
"CohereSystemMessage": CohereSystemMessage,
|
74
82
|
"CohereTool": CohereTool,
|
75
83
|
"CohereToolCall": CohereToolCall,
|
@@ -84,6 +92,8 @@ generative_ai_inference_type_mapping = {
|
|
84
92
|
"GeneratedText": GeneratedText,
|
85
93
|
"GenericChatRequest": GenericChatRequest,
|
86
94
|
"GenericChatResponse": GenericChatResponse,
|
95
|
+
"ImageContent": ImageContent,
|
96
|
+
"ImageUrl": ImageUrl,
|
87
97
|
"LlamaLlmInferenceRequest": LlamaLlmInferenceRequest,
|
88
98
|
"LlamaLlmInferenceResponse": LlamaLlmInferenceResponse,
|
89
99
|
"LlmInferenceRequest": LlmInferenceRequest,
|
@@ -69,7 +69,9 @@ class BaseChatRequest(object):
|
|
69
69
|
def api_format(self):
|
70
70
|
"""
|
71
71
|
**[Required]** Gets the api_format of this BaseChatRequest.
|
72
|
-
The API format for the model's
|
72
|
+
The API format for the model's family group.
|
73
|
+
COHERE is for the Cohere family models such as the cohere.command-r-16k and cohere.command-r-plus models.
|
74
|
+
GENERIC is for other model families such as the meta.llama-3-70b-instruct model.
|
73
75
|
|
74
76
|
Allowed values for this property are: "COHERE", "GENERIC"
|
75
77
|
|
@@ -83,7 +85,9 @@ class BaseChatRequest(object):
|
|
83
85
|
def api_format(self, api_format):
|
84
86
|
"""
|
85
87
|
Sets the api_format of this BaseChatRequest.
|
86
|
-
The API format for the model's
|
88
|
+
The API format for the model's family group.
|
89
|
+
COHERE is for the Cohere family models such as the cohere.command-r-16k and cohere.command-r-plus models.
|
90
|
+
GENERIC is for other model families such as the meta.llama-3-70b-instruct model.
|
87
91
|
|
88
92
|
|
89
93
|
:param api_format: The api_format of this BaseChatRequest.
|
@@ -19,18 +19,23 @@ class ChatContent(object):
|
|
19
19
|
#: This constant has a value of "TEXT"
|
20
20
|
TYPE_TEXT = "TEXT"
|
21
21
|
|
22
|
+
#: A constant which can be used with the type property of a ChatContent.
|
23
|
+
#: This constant has a value of "IMAGE"
|
24
|
+
TYPE_IMAGE = "IMAGE"
|
25
|
+
|
22
26
|
def __init__(self, **kwargs):
|
23
27
|
"""
|
24
28
|
Initializes a new ChatContent object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
25
29
|
to a service operations then you should favor using a subclass over the base class:
|
26
30
|
|
31
|
+
* :class:`~oci.generative_ai_inference.models.ImageContent`
|
27
32
|
* :class:`~oci.generative_ai_inference.models.TextContent`
|
28
33
|
|
29
34
|
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
30
35
|
|
31
36
|
:param type:
|
32
37
|
The value to assign to the type property of this ChatContent.
|
33
|
-
Allowed values for this property are: "TEXT", 'UNKNOWN_ENUM_VALUE'.
|
38
|
+
Allowed values for this property are: "TEXT", "IMAGE", 'UNKNOWN_ENUM_VALUE'.
|
34
39
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
35
40
|
:type type: str
|
36
41
|
|
@@ -53,6 +58,9 @@ class ChatContent(object):
|
|
53
58
|
"""
|
54
59
|
type = object_dictionary['type']
|
55
60
|
|
61
|
+
if type == 'IMAGE':
|
62
|
+
return 'ImageContent'
|
63
|
+
|
56
64
|
if type == 'TEXT':
|
57
65
|
return 'TextContent'
|
58
66
|
else:
|
@@ -64,7 +72,7 @@ class ChatContent(object):
|
|
64
72
|
**[Required]** Gets the type of this ChatContent.
|
65
73
|
The type of the content.
|
66
74
|
|
67
|
-
Allowed values for this property are: "TEXT", 'UNKNOWN_ENUM_VALUE'.
|
75
|
+
Allowed values for this property are: "TEXT", "IMAGE", 'UNKNOWN_ENUM_VALUE'.
|
68
76
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
69
77
|
|
70
78
|
|
@@ -83,7 +91,7 @@ class ChatContent(object):
|
|
83
91
|
:param type: The type of this ChatContent.
|
84
92
|
:type: str
|
85
93
|
"""
|
86
|
-
allowed_values = ["TEXT"]
|
94
|
+
allowed_values = ["TEXT", "IMAGE"]
|
87
95
|
if not value_allowed_none_or_none_sentinel(type, allowed_values):
|
88
96
|
type = 'UNKNOWN_ENUM_VALUE'
|
89
97
|
self._type = type
|