oci 2.138.0__py3-none-any.whl → 2.139.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/_vendor/idna/__init__.py +45 -2
- oci/_vendor/idna/codec.py +47 -43
- oci/_vendor/idna/compat.py +10 -7
- oci/_vendor/idna/core.py +210 -173
- oci/_vendor/idna/idnadata.py +3869 -1676
- oci/_vendor/idna/intranges.py +13 -9
- oci/_vendor/idna/package_data.py +2 -3
- oci/_vendor/idna/uts46data.py +8355 -8031
- oci/_vendor/urllib3/__init__.py +1 -1
- oci/_vendor/urllib3/_collections.py +19 -1
- oci/_vendor/urllib3/_version.py +2 -2
- oci/_vendor/urllib3/connection.py +8 -3
- oci/_vendor/urllib3/connectionpool.py +45 -13
- oci/_vendor/urllib3/contrib/__init__.py +1 -1
- oci/_vendor/urllib3/contrib/_appengine_environ.py +1 -1
- oci/_vendor/urllib3/contrib/_securetransport/__init__.py +1 -1
- oci/_vendor/urllib3/contrib/_securetransport/bindings.py +2 -2
- oci/_vendor/urllib3/contrib/_securetransport/low_level.py +1 -1
- oci/_vendor/urllib3/contrib/appengine.py +2 -2
- oci/_vendor/urllib3/contrib/ntlmpool.py +3 -3
- oci/_vendor/urllib3/contrib/pyopenssl.py +14 -7
- oci/_vendor/urllib3/contrib/securetransport.py +2 -4
- oci/_vendor/urllib3/contrib/socks.py +1 -1
- oci/_vendor/urllib3/exceptions.py +1 -1
- oci/_vendor/urllib3/fields.py +1 -1
- oci/_vendor/urllib3/filepost.py +1 -1
- oci/_vendor/urllib3/packages/__init__.py +2 -2
- oci/_vendor/urllib3/packages/backports/__init__.py +1 -1
- oci/_vendor/urllib3/packages/backports/makefile.py +1 -1
- oci/_vendor/urllib3/packages/backports/weakref_finalize.py +160 -0
- oci/_vendor/urllib3/packages/six.py +1 -2
- oci/_vendor/urllib3/poolmanager.py +7 -4
- oci/_vendor/urllib3/request.py +22 -1
- oci/_vendor/urllib3/response.py +65 -4
- oci/_vendor/urllib3/util/__init__.py +1 -1
- oci/_vendor/urllib3/util/connection.py +1 -1
- oci/_vendor/urllib3/util/proxy.py +1 -1
- oci/_vendor/urllib3/util/queue.py +1 -1
- oci/_vendor/urllib3/util/request.py +1 -1
- oci/_vendor/urllib3/util/response.py +1 -1
- oci/_vendor/urllib3/util/retry.py +5 -3
- oci/_vendor/urllib3/util/ssl_.py +14 -5
- oci/_vendor/urllib3/util/ssl_match_hostname.py +1 -1
- oci/_vendor/urllib3/util/ssltransport.py +1 -1
- oci/_vendor/urllib3/util/timeout.py +7 -4
- oci/_vendor/urllib3/util/url.py +8 -5
- oci/_vendor/urllib3/util/wait.py +1 -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/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/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/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 +13 -14
- oci/cims/models/__init__.py +4 -2
- oci/cims/models/cmos_user_group_info.py +103 -0
- oci/cims/models/create_incident.py +33 -2
- oci/cims/models/create_limit_item_details.py +2 -57
- oci/cims/models/create_user_details.py +4 -4
- oci/cims/models/incident.py +188 -0
- oci/cims/models/incident_resource_type.py +4 -4
- oci/cims/models/incident_summary.py +188 -0
- oci/cims/models/limit_item.py +2 -2
- oci/cims/models/{service_categories.py → services.py} +27 -27
- oci/cims/models/sub_categories.py +15 -15
- oci/cims/models/ticket.py +7 -3
- oci/cims/models/validation_response.py +33 -2
- 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 +44 -44
- 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 +523 -398
- oci/database/database_client_composite_operations.py +88 -0
- oci/database/models/__init__.py +4 -0
- oci/database/models/autonomous_database.py +2 -2
- oci/database/models/autonomous_database_summary.py +2 -2
- oci/database/models/configure_exascale_exadata_infrastructure_details.py +72 -0
- oci/database/models/create_autonomous_database_base.py +2 -2
- oci/database/models/create_db_home_details.py +33 -2
- oci/database/models/create_db_home_from_backup_details.py +31 -0
- oci/database/models/create_db_home_from_database_details.py +31 -0
- oci/database/models/create_exascale_db_storage_vault_details.py +37 -2
- oci/database/models/create_pluggable_database_creation_type_details.py +2 -2
- oci/database/models/create_vm_cluster_details.py +37 -2
- oci/database/models/exadata_infrastructure.py +29 -2
- oci/database/models/exadata_infrastructure_summary.py +29 -2
- oci/database/models/exascale_config_details.py +103 -0
- oci/database/models/exascale_db_storage_vault.py +35 -0
- oci/database/models/exascale_db_storage_vault_summary.py +37 -2
- oci/database/models/update_autonomous_database_details.py +2 -2
- oci/database/models/vm_cluster.py +84 -2
- oci/database/models/vm_cluster_summary.py +84 -2
- 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 +311 -311
- 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 +153 -57
- 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/models/connection_details.py +29 -2
- oci/psql/models/endpoint.py +1 -1
- oci/psql/models/network_details.py +33 -2
- oci/psql/models/update_network_details.py +33 -2
- 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 +3 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/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.138.0.dist-info → oci-2.139.0.dist-info}/METADATA +1 -1
- {oci-2.138.0.dist-info → oci-2.139.0.dist-info}/RECORD +467 -456
- {oci-2.138.0.dist-info → oci-2.139.0.dist-info}/THIRD_PARTY_LICENSES.txt +1 -1
- {oci-2.138.0.dist-info → oci-2.139.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.138.0.dist-info → oci-2.139.0.dist-info}/WHEEL +0 -0
- {oci-2.138.0.dist-info → oci-2.139.0.dist-info}/top_level.txt +0 -0
@@ -54,6 +54,10 @@ class CohereChatRequest(BaseChatRequest):
|
|
54
54
|
The value to assign to the documents property of this CohereChatRequest.
|
55
55
|
:type documents: list[object]
|
56
56
|
|
57
|
+
:param response_format:
|
58
|
+
The value to assign to the response_format property of this CohereChatRequest.
|
59
|
+
:type response_format: oci.generative_ai_inference.models.CohereResponseFormat
|
60
|
+
|
57
61
|
:param is_search_queries_only:
|
58
62
|
The value to assign to the is_search_queries_only property of this CohereChatRequest.
|
59
63
|
:type is_search_queries_only: bool
|
@@ -70,6 +74,10 @@ class CohereChatRequest(BaseChatRequest):
|
|
70
74
|
The value to assign to the max_tokens property of this CohereChatRequest.
|
71
75
|
:type max_tokens: int
|
72
76
|
|
77
|
+
:param max_input_tokens:
|
78
|
+
The value to assign to the max_input_tokens property of this CohereChatRequest.
|
79
|
+
:type max_input_tokens: int
|
80
|
+
|
73
81
|
:param temperature:
|
74
82
|
The value to assign to the temperature property of this CohereChatRequest.
|
75
83
|
:type temperature: float
|
@@ -134,10 +142,12 @@ class CohereChatRequest(BaseChatRequest):
|
|
134
142
|
'message': 'str',
|
135
143
|
'chat_history': 'list[CohereMessage]',
|
136
144
|
'documents': 'list[object]',
|
145
|
+
'response_format': 'CohereResponseFormat',
|
137
146
|
'is_search_queries_only': 'bool',
|
138
147
|
'preamble_override': 'str',
|
139
148
|
'is_stream': 'bool',
|
140
149
|
'max_tokens': 'int',
|
150
|
+
'max_input_tokens': 'int',
|
141
151
|
'temperature': 'float',
|
142
152
|
'top_k': 'int',
|
143
153
|
'top_p': 'float',
|
@@ -159,10 +169,12 @@ class CohereChatRequest(BaseChatRequest):
|
|
159
169
|
'message': 'message',
|
160
170
|
'chat_history': 'chatHistory',
|
161
171
|
'documents': 'documents',
|
172
|
+
'response_format': 'responseFormat',
|
162
173
|
'is_search_queries_only': 'isSearchQueriesOnly',
|
163
174
|
'preamble_override': 'preambleOverride',
|
164
175
|
'is_stream': 'isStream',
|
165
176
|
'max_tokens': 'maxTokens',
|
177
|
+
'max_input_tokens': 'maxInputTokens',
|
166
178
|
'temperature': 'temperature',
|
167
179
|
'top_k': 'topK',
|
168
180
|
'top_p': 'topP',
|
@@ -183,10 +195,12 @@ class CohereChatRequest(BaseChatRequest):
|
|
183
195
|
self._message = None
|
184
196
|
self._chat_history = None
|
185
197
|
self._documents = None
|
198
|
+
self._response_format = None
|
186
199
|
self._is_search_queries_only = None
|
187
200
|
self._preamble_override = None
|
188
201
|
self._is_stream = None
|
189
202
|
self._max_tokens = None
|
203
|
+
self._max_input_tokens = None
|
190
204
|
self._temperature = None
|
191
205
|
self._top_k = None
|
192
206
|
self._top_p = None
|
@@ -289,6 +303,26 @@ class CohereChatRequest(BaseChatRequest):
|
|
289
303
|
"""
|
290
304
|
self._documents = documents
|
291
305
|
|
306
|
+
@property
|
307
|
+
def response_format(self):
|
308
|
+
"""
|
309
|
+
Gets the response_format of this CohereChatRequest.
|
310
|
+
|
311
|
+
:return: The response_format of this CohereChatRequest.
|
312
|
+
:rtype: oci.generative_ai_inference.models.CohereResponseFormat
|
313
|
+
"""
|
314
|
+
return self._response_format
|
315
|
+
|
316
|
+
@response_format.setter
|
317
|
+
def response_format(self, response_format):
|
318
|
+
"""
|
319
|
+
Sets the response_format of this CohereChatRequest.
|
320
|
+
|
321
|
+
:param response_format: The response_format of this CohereChatRequest.
|
322
|
+
:type: oci.generative_ai_inference.models.CohereResponseFormat
|
323
|
+
"""
|
324
|
+
self._response_format = response_format
|
325
|
+
|
292
326
|
@property
|
293
327
|
def is_search_queries_only(self):
|
294
328
|
"""
|
@@ -389,6 +423,30 @@ class CohereChatRequest(BaseChatRequest):
|
|
389
423
|
"""
|
390
424
|
self._max_tokens = max_tokens
|
391
425
|
|
426
|
+
@property
|
427
|
+
def max_input_tokens(self):
|
428
|
+
"""
|
429
|
+
Gets the max_input_tokens of this CohereChatRequest.
|
430
|
+
The maximum number of input tokens to send to the model. If not specified, max_input_tokens is the model's context length limit minus a small buffer.
|
431
|
+
|
432
|
+
|
433
|
+
:return: The max_input_tokens of this CohereChatRequest.
|
434
|
+
:rtype: int
|
435
|
+
"""
|
436
|
+
return self._max_input_tokens
|
437
|
+
|
438
|
+
@max_input_tokens.setter
|
439
|
+
def max_input_tokens(self, max_input_tokens):
|
440
|
+
"""
|
441
|
+
Sets the max_input_tokens of this CohereChatRequest.
|
442
|
+
The maximum number of input tokens to send to the model. If not specified, max_input_tokens is the model's context length limit minus a small buffer.
|
443
|
+
|
444
|
+
|
445
|
+
:param max_input_tokens: The max_input_tokens of this CohereChatRequest.
|
446
|
+
:type: int
|
447
|
+
"""
|
448
|
+
self._max_input_tokens = max_input_tokens
|
449
|
+
|
392
450
|
@property
|
393
451
|
def temperature(self):
|
394
452
|
"""
|
@@ -475,7 +533,7 @@ class CohereChatRequest(BaseChatRequest):
|
|
475
533
|
def prompt_truncation(self):
|
476
534
|
"""
|
477
535
|
Gets the prompt_truncation of this CohereChatRequest.
|
478
|
-
Defaults to OFF. Dictates how the prompt will be constructed. With `
|
536
|
+
Defaults to OFF. Dictates how the prompt will be constructed. With `promptTruncation` set to AUTO_PRESERVE_ORDER, some elements from `chatHistory` and `documents` will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With `prompt_truncation` set to OFF, no elements will be dropped.
|
479
537
|
|
480
538
|
Allowed values for this property are: "OFF", "AUTO_PRESERVE_ORDER"
|
481
539
|
|
@@ -489,7 +547,7 @@ class CohereChatRequest(BaseChatRequest):
|
|
489
547
|
def prompt_truncation(self, prompt_truncation):
|
490
548
|
"""
|
491
549
|
Sets the prompt_truncation of this CohereChatRequest.
|
492
|
-
Defaults to OFF. Dictates how the prompt will be constructed. With `
|
550
|
+
Defaults to OFF. Dictates how the prompt will be constructed. With `promptTruncation` set to AUTO_PRESERVE_ORDER, some elements from `chatHistory` and `documents` will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With `prompt_truncation` set to OFF, no elements will be dropped.
|
493
551
|
|
494
552
|
|
495
553
|
:param prompt_truncation: The prompt_truncation of this CohereChatRequest.
|
@@ -0,0 +1,109 @@
|
|
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: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereResponseFormat(object):
|
14
|
+
"""
|
15
|
+
Specify the format the model output is guaranteed to be of
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the type property of a CohereResponseFormat.
|
19
|
+
#: This constant has a value of "JSON_OBJECT"
|
20
|
+
TYPE_JSON_OBJECT = "JSON_OBJECT"
|
21
|
+
|
22
|
+
#: A constant which can be used with the type property of a CohereResponseFormat.
|
23
|
+
#: This constant has a value of "TEXT"
|
24
|
+
TYPE_TEXT = "TEXT"
|
25
|
+
|
26
|
+
def __init__(self, **kwargs):
|
27
|
+
"""
|
28
|
+
Initializes a new CohereResponseFormat object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
29
|
+
to a service operations then you should favor using a subclass over the base class:
|
30
|
+
|
31
|
+
* :class:`~oci.generative_ai_inference.models.CohereResponseTextFormat`
|
32
|
+
* :class:`~oci.generative_ai_inference.models.CohereResponseJsonFormat`
|
33
|
+
|
34
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
35
|
+
|
36
|
+
:param type:
|
37
|
+
The value to assign to the type property of this CohereResponseFormat.
|
38
|
+
Allowed values for this property are: "JSON_OBJECT", "TEXT"
|
39
|
+
:type type: str
|
40
|
+
|
41
|
+
"""
|
42
|
+
self.swagger_types = {
|
43
|
+
'type': 'str'
|
44
|
+
}
|
45
|
+
|
46
|
+
self.attribute_map = {
|
47
|
+
'type': 'type'
|
48
|
+
}
|
49
|
+
|
50
|
+
self._type = None
|
51
|
+
|
52
|
+
@staticmethod
|
53
|
+
def get_subtype(object_dictionary):
|
54
|
+
"""
|
55
|
+
Given the hash representation of a subtype of this class,
|
56
|
+
use the info in the hash to return the class of the subtype.
|
57
|
+
"""
|
58
|
+
type = object_dictionary['type']
|
59
|
+
|
60
|
+
if type == 'TEXT':
|
61
|
+
return 'CohereResponseTextFormat'
|
62
|
+
|
63
|
+
if type == 'JSON_OBJECT':
|
64
|
+
return 'CohereResponseJsonFormat'
|
65
|
+
else:
|
66
|
+
return 'CohereResponseFormat'
|
67
|
+
|
68
|
+
@property
|
69
|
+
def type(self):
|
70
|
+
"""
|
71
|
+
Gets the type of this CohereResponseFormat.
|
72
|
+
The format type
|
73
|
+
|
74
|
+
Allowed values for this property are: "JSON_OBJECT", "TEXT"
|
75
|
+
|
76
|
+
|
77
|
+
:return: The type of this CohereResponseFormat.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._type
|
81
|
+
|
82
|
+
@type.setter
|
83
|
+
def type(self, type):
|
84
|
+
"""
|
85
|
+
Sets the type of this CohereResponseFormat.
|
86
|
+
The format type
|
87
|
+
|
88
|
+
|
89
|
+
:param type: The type of this CohereResponseFormat.
|
90
|
+
:type: str
|
91
|
+
"""
|
92
|
+
allowed_values = ["JSON_OBJECT", "TEXT"]
|
93
|
+
if not value_allowed_none_or_none_sentinel(type, allowed_values):
|
94
|
+
raise ValueError(
|
95
|
+
f"Invalid value for `type`, must be None or one of {allowed_values}"
|
96
|
+
)
|
97
|
+
self._type = type
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
return formatted_flat_dict(self)
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
if other is None:
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
return not self == other
|
@@ -0,0 +1,82 @@
|
|
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: 20231130
|
6
|
+
|
7
|
+
from .cohere_response_format import CohereResponseFormat
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereResponseJsonFormat(CohereResponseFormat):
|
14
|
+
"""
|
15
|
+
The json object format for the model structured output
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereResponseJsonFormat object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereResponseJsonFormat.type` attribute
|
21
|
+
of this class is ``JSON_OBJECT`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param type:
|
25
|
+
The value to assign to the type property of this CohereResponseJsonFormat.
|
26
|
+
Allowed values for this property are: "JSON_OBJECT", "TEXT"
|
27
|
+
:type type: str
|
28
|
+
|
29
|
+
:param schema:
|
30
|
+
The value to assign to the schema property of this CohereResponseJsonFormat.
|
31
|
+
:type schema: object
|
32
|
+
|
33
|
+
"""
|
34
|
+
self.swagger_types = {
|
35
|
+
'type': 'str',
|
36
|
+
'schema': 'object'
|
37
|
+
}
|
38
|
+
|
39
|
+
self.attribute_map = {
|
40
|
+
'type': 'type',
|
41
|
+
'schema': 'schema'
|
42
|
+
}
|
43
|
+
|
44
|
+
self._type = None
|
45
|
+
self._schema = None
|
46
|
+
self._type = 'JSON_OBJECT'
|
47
|
+
|
48
|
+
@property
|
49
|
+
def schema(self):
|
50
|
+
"""
|
51
|
+
Gets the schema of this CohereResponseJsonFormat.
|
52
|
+
The schema used by the structured output, described as a JSON Schema object.
|
53
|
+
|
54
|
+
|
55
|
+
:return: The schema of this CohereResponseJsonFormat.
|
56
|
+
:rtype: object
|
57
|
+
"""
|
58
|
+
return self._schema
|
59
|
+
|
60
|
+
@schema.setter
|
61
|
+
def schema(self, schema):
|
62
|
+
"""
|
63
|
+
Sets the schema of this CohereResponseJsonFormat.
|
64
|
+
The schema used by the structured output, described as a JSON Schema object.
|
65
|
+
|
66
|
+
|
67
|
+
:param schema: The schema of this CohereResponseJsonFormat.
|
68
|
+
:type: object
|
69
|
+
"""
|
70
|
+
self._schema = schema
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
return formatted_flat_dict(self)
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
if other is None:
|
77
|
+
return False
|
78
|
+
|
79
|
+
return self.__dict__ == other.__dict__
|
80
|
+
|
81
|
+
def __ne__(self, other):
|
82
|
+
return not self == other
|
@@ -0,0 +1,51 @@
|
|
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: 20231130
|
6
|
+
|
7
|
+
from .cohere_response_format import CohereResponseFormat
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereResponseTextFormat(CohereResponseFormat):
|
14
|
+
"""
|
15
|
+
The text format for cohere model response
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereResponseTextFormat object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereResponseTextFormat.type` attribute
|
21
|
+
of this class is ``TEXT`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param type:
|
25
|
+
The value to assign to the type property of this CohereResponseTextFormat.
|
26
|
+
Allowed values for this property are: "JSON_OBJECT", "TEXT"
|
27
|
+
:type type: str
|
28
|
+
|
29
|
+
"""
|
30
|
+
self.swagger_types = {
|
31
|
+
'type': 'str'
|
32
|
+
}
|
33
|
+
|
34
|
+
self.attribute_map = {
|
35
|
+
'type': 'type'
|
36
|
+
}
|
37
|
+
|
38
|
+
self._type = None
|
39
|
+
self._type = 'TEXT'
|
40
|
+
|
41
|
+
def __repr__(self):
|
42
|
+
return formatted_flat_dict(self)
|
43
|
+
|
44
|
+
def __eq__(self, other):
|
45
|
+
if other is None:
|
46
|
+
return False
|
47
|
+
|
48
|
+
return self.__dict__ == other.__dict__
|
49
|
+
|
50
|
+
def __ne__(self, other):
|
51
|
+
return not self == other
|
@@ -0,0 +1,78 @@
|
|
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: 20231130
|
6
|
+
|
7
|
+
from .chat_content import ChatContent
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class ImageContent(ChatContent):
|
14
|
+
"""
|
15
|
+
Represents a single instance of chat image content.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ImageContent object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.ImageContent.type` attribute
|
21
|
+
of this class is ``IMAGE`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param type:
|
25
|
+
The value to assign to the type property of this ImageContent.
|
26
|
+
Allowed values for this property are: "TEXT", "IMAGE"
|
27
|
+
:type type: str
|
28
|
+
|
29
|
+
:param image_url:
|
30
|
+
The value to assign to the image_url property of this ImageContent.
|
31
|
+
:type image_url: oci.generative_ai_inference.models.ImageUrl
|
32
|
+
|
33
|
+
"""
|
34
|
+
self.swagger_types = {
|
35
|
+
'type': 'str',
|
36
|
+
'image_url': 'ImageUrl'
|
37
|
+
}
|
38
|
+
|
39
|
+
self.attribute_map = {
|
40
|
+
'type': 'type',
|
41
|
+
'image_url': 'imageUrl'
|
42
|
+
}
|
43
|
+
|
44
|
+
self._type = None
|
45
|
+
self._image_url = None
|
46
|
+
self._type = 'IMAGE'
|
47
|
+
|
48
|
+
@property
|
49
|
+
def image_url(self):
|
50
|
+
"""
|
51
|
+
Gets the image_url of this ImageContent.
|
52
|
+
|
53
|
+
:return: The image_url of this ImageContent.
|
54
|
+
:rtype: oci.generative_ai_inference.models.ImageUrl
|
55
|
+
"""
|
56
|
+
return self._image_url
|
57
|
+
|
58
|
+
@image_url.setter
|
59
|
+
def image_url(self, image_url):
|
60
|
+
"""
|
61
|
+
Sets the image_url of this ImageContent.
|
62
|
+
|
63
|
+
:param image_url: The image_url of this ImageContent.
|
64
|
+
:type: oci.generative_ai_inference.models.ImageUrl
|
65
|
+
"""
|
66
|
+
self._image_url = image_url
|
67
|
+
|
68
|
+
def __repr__(self):
|
69
|
+
return formatted_flat_dict(self)
|
70
|
+
|
71
|
+
def __eq__(self, other):
|
72
|
+
if other is None:
|
73
|
+
return False
|
74
|
+
|
75
|
+
return self.__dict__ == other.__dict__
|
76
|
+
|
77
|
+
def __ne__(self, other):
|
78
|
+
return not self == other
|
@@ -0,0 +1,123 @@
|
|
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: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class ImageUrl(object):
|
14
|
+
"""
|
15
|
+
Represents a single instance of chat image url.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the detail property of a ImageUrl.
|
19
|
+
#: This constant has a value of "AUTO"
|
20
|
+
DETAIL_AUTO = "AUTO"
|
21
|
+
|
22
|
+
#: A constant which can be used with the detail property of a ImageUrl.
|
23
|
+
#: This constant has a value of "HIGH"
|
24
|
+
DETAIL_HIGH = "HIGH"
|
25
|
+
|
26
|
+
#: A constant which can be used with the detail property of a ImageUrl.
|
27
|
+
#: This constant has a value of "LOW"
|
28
|
+
DETAIL_LOW = "LOW"
|
29
|
+
|
30
|
+
def __init__(self, **kwargs):
|
31
|
+
"""
|
32
|
+
Initializes a new ImageUrl object with values from keyword arguments.
|
33
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
34
|
+
|
35
|
+
:param url:
|
36
|
+
The value to assign to the url property of this ImageUrl.
|
37
|
+
:type url: str
|
38
|
+
|
39
|
+
:param detail:
|
40
|
+
The value to assign to the detail property of this ImageUrl.
|
41
|
+
Allowed values for this property are: "AUTO", "HIGH", "LOW", 'UNKNOWN_ENUM_VALUE'.
|
42
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
43
|
+
:type detail: str
|
44
|
+
|
45
|
+
"""
|
46
|
+
self.swagger_types = {
|
47
|
+
'url': 'str',
|
48
|
+
'detail': 'str'
|
49
|
+
}
|
50
|
+
|
51
|
+
self.attribute_map = {
|
52
|
+
'url': 'url',
|
53
|
+
'detail': 'detail'
|
54
|
+
}
|
55
|
+
|
56
|
+
self._url = None
|
57
|
+
self._detail = None
|
58
|
+
|
59
|
+
@property
|
60
|
+
def url(self):
|
61
|
+
"""
|
62
|
+
**[Required]** Gets the url of this ImageUrl.
|
63
|
+
The URL of the image.
|
64
|
+
|
65
|
+
|
66
|
+
:return: The url of this ImageUrl.
|
67
|
+
:rtype: str
|
68
|
+
"""
|
69
|
+
return self._url
|
70
|
+
|
71
|
+
@url.setter
|
72
|
+
def url(self, url):
|
73
|
+
"""
|
74
|
+
Sets the url of this ImageUrl.
|
75
|
+
The URL of the image.
|
76
|
+
|
77
|
+
|
78
|
+
:param url: The url of this ImageUrl.
|
79
|
+
:type: str
|
80
|
+
"""
|
81
|
+
self._url = url
|
82
|
+
|
83
|
+
@property
|
84
|
+
def detail(self):
|
85
|
+
"""
|
86
|
+
Gets the detail of this ImageUrl.
|
87
|
+
The level of the detail.
|
88
|
+
|
89
|
+
Allowed values for this property are: "AUTO", "HIGH", "LOW", 'UNKNOWN_ENUM_VALUE'.
|
90
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
91
|
+
|
92
|
+
|
93
|
+
:return: The detail of this ImageUrl.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._detail
|
97
|
+
|
98
|
+
@detail.setter
|
99
|
+
def detail(self, detail):
|
100
|
+
"""
|
101
|
+
Sets the detail of this ImageUrl.
|
102
|
+
The level of the detail.
|
103
|
+
|
104
|
+
|
105
|
+
:param detail: The detail of this ImageUrl.
|
106
|
+
:type: str
|
107
|
+
"""
|
108
|
+
allowed_values = ["AUTO", "HIGH", "LOW"]
|
109
|
+
if not value_allowed_none_or_none_sentinel(detail, allowed_values):
|
110
|
+
detail = 'UNKNOWN_ENUM_VALUE'
|
111
|
+
self._detail = detail
|
112
|
+
|
113
|
+
def __repr__(self):
|
114
|
+
return formatted_flat_dict(self)
|
115
|
+
|
116
|
+
def __eq__(self, other):
|
117
|
+
if other is None:
|
118
|
+
return False
|
119
|
+
|
120
|
+
return self.__dict__ == other.__dict__
|
121
|
+
|
122
|
+
def __ne__(self, other):
|
123
|
+
return not self == other
|
@@ -154,7 +154,7 @@ class GenericArtifactsContentClient(object):
|
|
154
154
|
:rtype: :class:`~oci.response.Response`
|
155
155
|
|
156
156
|
:example:
|
157
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
157
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/genericartifactscontent/get_generic_artifact_content.py.html>`__ to see an example of how to use get_generic_artifact_content API.
|
158
158
|
"""
|
159
159
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
160
160
|
required_arguments = ['artifactId']
|
@@ -269,7 +269,7 @@ class GenericArtifactsContentClient(object):
|
|
269
269
|
:rtype: :class:`~oci.response.Response`
|
270
270
|
|
271
271
|
:example:
|
272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
272
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/genericartifactscontent/get_generic_artifact_content_by_path.py.html>`__ to see an example of how to use get_generic_artifact_content_by_path API.
|
273
273
|
"""
|
274
274
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
275
275
|
required_arguments = ['repositoryId', 'artifactPath', 'version']
|
@@ -399,7 +399,7 @@ class GenericArtifactsContentClient(object):
|
|
399
399
|
:rtype: :class:`~oci.response.Response`
|
400
400
|
|
401
401
|
:example:
|
402
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
402
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/genericartifactscontent/put_generic_artifact_content_by_path.py.html>`__ to see an example of how to use put_generic_artifact_content_by_path API.
|
403
403
|
"""
|
404
404
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
405
405
|
required_arguments = ['repositoryId', 'artifactPath', 'version']
|