oci 2.150.2__py3-none-any.whl → 2.150.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +4 -1
- 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 +28 -28
- 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 +12 -12
- 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 +84 -84
- 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 +6 -6
- 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 +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +46 -46
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +117 -117
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +258 -258
- 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 +45 -45
- 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 +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +414 -414
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- 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/dblm/db_life_cycle_management_client.py +14 -14
- 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 +31 -31
- oci/disaster_recovery/models/__init__.py +42 -0
- oci/disaster_recovery/models/block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/block_volume_mount_details.py +1 -0
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping.py +35 -0
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping_details.py +35 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_operation.py +1 -0
- oci/disaster_recovery/models/create_block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/create_block_volume_mount_details.py +3 -2
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_operation_details.py +1 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +29 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +31 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +64 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +115 -2
- oci/disaster_recovery/models/create_oke_cluster_backup_config_details.py +14 -14
- oci/disaster_recovery/models/create_source_volume_to_destination_encryption_key_mapping_details.py +101 -0
- oci/disaster_recovery/models/create_vault_and_encryption_key_details.py +111 -0
- oci/disaster_recovery/models/dr_plan_step.py +58 -3
- oci/disaster_recovery/models/dr_plan_step_execution.py +58 -3
- oci/disaster_recovery/models/dr_plan_user_defined_step.py +57 -13
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +29 -2
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +31 -2
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +64 -2
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +113 -2
- oci/disaster_recovery/models/invoke_function_precheck_step.py +1 -1
- oci/disaster_recovery/models/invoke_function_step.py +1 -1
- oci/disaster_recovery/models/invoke_function_user_defined_custom_precheck_step.py +154 -0
- oci/disaster_recovery/models/local_script_precheck_step.py +1 -1
- oci/disaster_recovery/models/object_store_script_precheck_step.py +1 -1
- oci/disaster_recovery/models/run_local_script_user_defined_custom_precheck_step.py +199 -0
- oci/disaster_recovery/models/run_local_script_user_defined_step.py +1 -1
- oci/disaster_recovery/models/run_object_store_script_user_defined_custom_precheck_step.py +156 -0
- oci/disaster_recovery/models/run_object_store_script_user_defined_step.py +1 -1
- oci/disaster_recovery/models/source_volume_to_destination_encryption_key_mapping.py +101 -0
- oci/disaster_recovery/models/update_block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/update_block_volume_mount_details.py +1 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_operation_details.py +1 -0
- oci/disaster_recovery/models/update_dr_plan_user_defined_step_details.py +57 -13
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +29 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +31 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +64 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +113 -2
- oci/disaster_recovery/models/update_invoke_function_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_invoke_function_user_defined_custom_precheck_step_details.py +119 -0
- oci/disaster_recovery/models/update_invoke_function_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_local_script_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_object_store_script_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_run_local_script_user_defined_custom_precheck_step_details.py +164 -0
- oci/disaster_recovery/models/update_run_local_script_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_run_object_store_script_user_defined_custom_precheck_step_details.py +121 -0
- oci/disaster_recovery/models/update_run_object_store_script_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_source_volume_to_destination_encryption_key_mapping_details.py +101 -0
- oci/disaster_recovery/models/update_vault_and_encryption_key_details.py +111 -0
- oci/disaster_recovery/models/vault_and_encryption_key.py +115 -0
- 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 +74 -74
- 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 +24 -24
- oci/generative_ai/models/content_moderation_config.py +79 -1
- oci/generative_ai/models/model.py +69 -3
- oci/generative_ai/models/model_summary.py +69 -3
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- oci/generative_ai_inference/models/__init__.py +8 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +41 -2
- oci/generative_ai_inference/models/cohere_chat_response.py +29 -2
- oci/generative_ai_inference/models/completion_tokens_details.py +132 -0
- oci/generative_ai_inference/models/embed_text_result.py +29 -2
- oci/generative_ai_inference/models/prompt_tokens_details.py +70 -0
- oci/generative_ai_inference/models/stream_options.py +70 -0
- oci/generative_ai_inference/models/usage.py +186 -0
- 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 +89 -89
- 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 +79 -79
- 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/lustre_file_storage/lustre_file_storage_client.py +11 -11
- 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/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- 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 +35 -35
- 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 +16 -16
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- 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 +181 -181
- 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 +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- 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 +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- 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 +34 -34
- 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 +0 -9
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/models/__init__.py +12 -0
- oci/resource_scheduler/models/body_parameter.py +80 -0
- oci/resource_scheduler/models/change_schedule_compartment_details.py +74 -0
- oci/resource_scheduler/models/header_parameter.py +80 -0
- oci/resource_scheduler/models/parameter.py +123 -0
- oci/resource_scheduler/models/path_parameter.py +80 -0
- oci/resource_scheduler/models/query_parameter.py +80 -0
- oci/resource_scheduler/models/resource.py +113 -2
- oci/resource_scheduler/models/schedule.py +71 -0
- oci/resource_scheduler/schedule_client.py +156 -18
- oci/resource_scheduler/schedule_client_composite_operations.py +44 -0
- 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 +87 -87
- 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 +14 -14
- 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.150.2.dist-info → oci-2.150.3.dist-info}/METADATA +1 -1
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/RECORD +350 -319
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/WHEEL +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/top_level.txt +0 -0
@@ -12,27 +12,105 @@ from oci.decorators import init_model_state_from_kwargs
|
|
12
12
|
@init_model_state_from_kwargs
|
13
13
|
class ContentModerationConfig(object):
|
14
14
|
"""
|
15
|
-
The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
|
15
|
+
The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
|
16
16
|
"""
|
17
17
|
|
18
|
+
#: A constant which can be used with the mode property of a ContentModerationConfig.
|
19
|
+
#: This constant has a value of "INFORM"
|
20
|
+
MODE_INFORM = "INFORM"
|
21
|
+
|
22
|
+
#: A constant which can be used with the mode property of a ContentModerationConfig.
|
23
|
+
#: This constant has a value of "BLOCK"
|
24
|
+
MODE_BLOCK = "BLOCK"
|
25
|
+
|
18
26
|
def __init__(self, **kwargs):
|
19
27
|
"""
|
20
28
|
Initializes a new ContentModerationConfig object with values from keyword arguments.
|
21
29
|
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
30
|
|
31
|
+
:param mode:
|
32
|
+
The value to assign to the mode property of this ContentModerationConfig.
|
33
|
+
Allowed values for this property are: "INFORM", "BLOCK", 'UNKNOWN_ENUM_VALUE'.
|
34
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
35
|
+
:type mode: str
|
36
|
+
|
37
|
+
:param model_id:
|
38
|
+
The value to assign to the model_id property of this ContentModerationConfig.
|
39
|
+
:type model_id: str
|
40
|
+
|
23
41
|
:param is_enabled:
|
24
42
|
The value to assign to the is_enabled property of this ContentModerationConfig.
|
25
43
|
:type is_enabled: bool
|
26
44
|
|
27
45
|
"""
|
28
46
|
self.swagger_types = {
|
47
|
+
'mode': 'str',
|
48
|
+
'model_id': 'str',
|
29
49
|
'is_enabled': 'bool'
|
30
50
|
}
|
31
51
|
self.attribute_map = {
|
52
|
+
'mode': 'mode',
|
53
|
+
'model_id': 'modelId',
|
32
54
|
'is_enabled': 'isEnabled'
|
33
55
|
}
|
56
|
+
self._mode = None
|
57
|
+
self._model_id = None
|
34
58
|
self._is_enabled = None
|
35
59
|
|
60
|
+
@property
|
61
|
+
def mode(self):
|
62
|
+
"""
|
63
|
+
Gets the mode of this ContentModerationConfig.
|
64
|
+
Enum for the modes of operation for inference protection.
|
65
|
+
|
66
|
+
Allowed values for this property are: "INFORM", "BLOCK", 'UNKNOWN_ENUM_VALUE'.
|
67
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
68
|
+
|
69
|
+
|
70
|
+
:return: The mode of this ContentModerationConfig.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._mode
|
74
|
+
|
75
|
+
@mode.setter
|
76
|
+
def mode(self, mode):
|
77
|
+
"""
|
78
|
+
Sets the mode of this ContentModerationConfig.
|
79
|
+
Enum for the modes of operation for inference protection.
|
80
|
+
|
81
|
+
|
82
|
+
:param mode: The mode of this ContentModerationConfig.
|
83
|
+
:type: str
|
84
|
+
"""
|
85
|
+
allowed_values = ["INFORM", "BLOCK"]
|
86
|
+
if not value_allowed_none_or_none_sentinel(mode, allowed_values):
|
87
|
+
mode = 'UNKNOWN_ENUM_VALUE'
|
88
|
+
self._mode = mode
|
89
|
+
|
90
|
+
@property
|
91
|
+
def model_id(self):
|
92
|
+
"""
|
93
|
+
Gets the model_id of this ContentModerationConfig.
|
94
|
+
The OCID of the model used for the feature.
|
95
|
+
|
96
|
+
|
97
|
+
:return: The model_id of this ContentModerationConfig.
|
98
|
+
:rtype: str
|
99
|
+
"""
|
100
|
+
return self._model_id
|
101
|
+
|
102
|
+
@model_id.setter
|
103
|
+
def model_id(self, model_id):
|
104
|
+
"""
|
105
|
+
Sets the model_id of this ContentModerationConfig.
|
106
|
+
The OCID of the model used for the feature.
|
107
|
+
|
108
|
+
|
109
|
+
:param model_id: The model_id of this ContentModerationConfig.
|
110
|
+
:type: str
|
111
|
+
"""
|
112
|
+
self._model_id = model_id
|
113
|
+
|
36
114
|
@property
|
37
115
|
def is_enabled(self):
|
38
116
|
"""
|
@@ -42,6 +42,10 @@ class Model(object):
|
|
42
42
|
#: This constant has a value of "CHAT"
|
43
43
|
CAPABILITIES_CHAT = "CHAT"
|
44
44
|
|
45
|
+
#: A constant which can be used with the capabilities property of a Model.
|
46
|
+
#: This constant has a value of "TEXT_RERANK"
|
47
|
+
CAPABILITIES_TEXT_RERANK = "TEXT_RERANK"
|
48
|
+
|
45
49
|
#: A constant which can be used with the lifecycle_state property of a Model.
|
46
50
|
#: This constant has a value of "ACTIVE"
|
47
51
|
LIFECYCLE_STATE_ACTIVE = "ACTIVE"
|
@@ -89,7 +93,7 @@ class Model(object):
|
|
89
93
|
|
90
94
|
:param capabilities:
|
91
95
|
The value to assign to the capabilities property of this Model.
|
92
|
-
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'.
|
96
|
+
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK", 'UNKNOWN_ENUM_VALUE'.
|
93
97
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
94
98
|
:type capabilities: list[str]
|
95
99
|
|
@@ -149,6 +153,14 @@ class Model(object):
|
|
149
153
|
The value to assign to the time_deprecated property of this Model.
|
150
154
|
:type time_deprecated: datetime
|
151
155
|
|
156
|
+
:param time_on_demand_retired:
|
157
|
+
The value to assign to the time_on_demand_retired property of this Model.
|
158
|
+
:type time_on_demand_retired: datetime
|
159
|
+
|
160
|
+
:param time_dedicated_retired:
|
161
|
+
The value to assign to the time_dedicated_retired property of this Model.
|
162
|
+
:type time_dedicated_retired: datetime
|
163
|
+
|
152
164
|
:param previous_state:
|
153
165
|
The value to assign to the previous_state property of this Model.
|
154
166
|
:type previous_state: oci.generative_ai.models.Model
|
@@ -184,6 +196,8 @@ class Model(object):
|
|
184
196
|
'model_metrics': 'ModelMetrics',
|
185
197
|
'is_long_term_supported': 'bool',
|
186
198
|
'time_deprecated': 'datetime',
|
199
|
+
'time_on_demand_retired': 'datetime',
|
200
|
+
'time_dedicated_retired': 'datetime',
|
187
201
|
'previous_state': 'Model',
|
188
202
|
'freeform_tags': 'dict(str, str)',
|
189
203
|
'defined_tags': 'dict(str, dict(str, object))',
|
@@ -207,6 +221,8 @@ class Model(object):
|
|
207
221
|
'model_metrics': 'modelMetrics',
|
208
222
|
'is_long_term_supported': 'isLongTermSupported',
|
209
223
|
'time_deprecated': 'timeDeprecated',
|
224
|
+
'time_on_demand_retired': 'timeOnDemandRetired',
|
225
|
+
'time_dedicated_retired': 'timeDedicatedRetired',
|
210
226
|
'previous_state': 'previousState',
|
211
227
|
'freeform_tags': 'freeformTags',
|
212
228
|
'defined_tags': 'definedTags',
|
@@ -229,6 +245,8 @@ class Model(object):
|
|
229
245
|
self._model_metrics = None
|
230
246
|
self._is_long_term_supported = None
|
231
247
|
self._time_deprecated = None
|
248
|
+
self._time_on_demand_retired = None
|
249
|
+
self._time_dedicated_retired = None
|
232
250
|
self._previous_state = None
|
233
251
|
self._freeform_tags = None
|
234
252
|
self._defined_tags = None
|
@@ -312,7 +330,7 @@ class Model(object):
|
|
312
330
|
**[Required]** Gets the capabilities of this Model.
|
313
331
|
Describes what this model can be used for.
|
314
332
|
|
315
|
-
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'.
|
333
|
+
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK", 'UNKNOWN_ENUM_VALUE'.
|
316
334
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
317
335
|
|
318
336
|
|
@@ -331,7 +349,7 @@ class Model(object):
|
|
331
349
|
:param capabilities: The capabilities of this Model.
|
332
350
|
:type: list[str]
|
333
351
|
"""
|
334
|
-
allowed_values = ["TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT"]
|
352
|
+
allowed_values = ["TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK"]
|
335
353
|
if capabilities:
|
336
354
|
capabilities[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in capabilities]
|
337
355
|
self._capabilities = capabilities
|
@@ -652,6 +670,54 @@ class Model(object):
|
|
652
670
|
"""
|
653
671
|
self._time_deprecated = time_deprecated
|
654
672
|
|
673
|
+
@property
|
674
|
+
def time_on_demand_retired(self):
|
675
|
+
"""
|
676
|
+
Gets the time_on_demand_retired of this Model.
|
677
|
+
The timestamp indicating when the base model will no longer be available for on-demand usage.
|
678
|
+
|
679
|
+
|
680
|
+
:return: The time_on_demand_retired of this Model.
|
681
|
+
:rtype: datetime
|
682
|
+
"""
|
683
|
+
return self._time_on_demand_retired
|
684
|
+
|
685
|
+
@time_on_demand_retired.setter
|
686
|
+
def time_on_demand_retired(self, time_on_demand_retired):
|
687
|
+
"""
|
688
|
+
Sets the time_on_demand_retired of this Model.
|
689
|
+
The timestamp indicating when the base model will no longer be available for on-demand usage.
|
690
|
+
|
691
|
+
|
692
|
+
:param time_on_demand_retired: The time_on_demand_retired of this Model.
|
693
|
+
:type: datetime
|
694
|
+
"""
|
695
|
+
self._time_on_demand_retired = time_on_demand_retired
|
696
|
+
|
697
|
+
@property
|
698
|
+
def time_dedicated_retired(self):
|
699
|
+
"""
|
700
|
+
Gets the time_dedicated_retired of this Model.
|
701
|
+
The timestamp indicating when the custom model and its associated foundation model will be fully retired.
|
702
|
+
|
703
|
+
|
704
|
+
:return: The time_dedicated_retired of this Model.
|
705
|
+
:rtype: datetime
|
706
|
+
"""
|
707
|
+
return self._time_dedicated_retired
|
708
|
+
|
709
|
+
@time_dedicated_retired.setter
|
710
|
+
def time_dedicated_retired(self, time_dedicated_retired):
|
711
|
+
"""
|
712
|
+
Sets the time_dedicated_retired of this Model.
|
713
|
+
The timestamp indicating when the custom model and its associated foundation model will be fully retired.
|
714
|
+
|
715
|
+
|
716
|
+
:param time_dedicated_retired: The time_dedicated_retired of this Model.
|
717
|
+
:type: datetime
|
718
|
+
"""
|
719
|
+
self._time_dedicated_retired = time_dedicated_retired
|
720
|
+
|
655
721
|
@property
|
656
722
|
def previous_state(self):
|
657
723
|
"""
|
@@ -35,6 +35,10 @@ class ModelSummary(object):
|
|
35
35
|
#: This constant has a value of "CHAT"
|
36
36
|
CAPABILITIES_CHAT = "CHAT"
|
37
37
|
|
38
|
+
#: A constant which can be used with the capabilities property of a ModelSummary.
|
39
|
+
#: This constant has a value of "TEXT_RERANK"
|
40
|
+
CAPABILITIES_TEXT_RERANK = "TEXT_RERANK"
|
41
|
+
|
38
42
|
def __init__(self, **kwargs):
|
39
43
|
"""
|
40
44
|
Initializes a new ModelSummary object with values from keyword arguments.
|
@@ -50,7 +54,7 @@ class ModelSummary(object):
|
|
50
54
|
|
51
55
|
:param capabilities:
|
52
56
|
The value to assign to the capabilities property of this ModelSummary.
|
53
|
-
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'.
|
57
|
+
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK", 'UNKNOWN_ENUM_VALUE'.
|
54
58
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
55
59
|
:type capabilities: list[str]
|
56
60
|
|
@@ -102,6 +106,14 @@ class ModelSummary(object):
|
|
102
106
|
The value to assign to the time_deprecated property of this ModelSummary.
|
103
107
|
:type time_deprecated: datetime
|
104
108
|
|
109
|
+
:param time_on_demand_retired:
|
110
|
+
The value to assign to the time_on_demand_retired property of this ModelSummary.
|
111
|
+
:type time_on_demand_retired: datetime
|
112
|
+
|
113
|
+
:param time_dedicated_retired:
|
114
|
+
The value to assign to the time_dedicated_retired property of this ModelSummary.
|
115
|
+
:type time_dedicated_retired: datetime
|
116
|
+
|
105
117
|
:param freeform_tags:
|
106
118
|
The value to assign to the freeform_tags property of this ModelSummary.
|
107
119
|
:type freeform_tags: dict(str, str)
|
@@ -131,6 +143,8 @@ class ModelSummary(object):
|
|
131
143
|
'model_metrics': 'ModelMetrics',
|
132
144
|
'is_long_term_supported': 'bool',
|
133
145
|
'time_deprecated': 'datetime',
|
146
|
+
'time_on_demand_retired': 'datetime',
|
147
|
+
'time_dedicated_retired': 'datetime',
|
134
148
|
'freeform_tags': 'dict(str, str)',
|
135
149
|
'defined_tags': 'dict(str, dict(str, object))',
|
136
150
|
'system_tags': 'dict(str, dict(str, object))'
|
@@ -151,6 +165,8 @@ class ModelSummary(object):
|
|
151
165
|
'model_metrics': 'modelMetrics',
|
152
166
|
'is_long_term_supported': 'isLongTermSupported',
|
153
167
|
'time_deprecated': 'timeDeprecated',
|
168
|
+
'time_on_demand_retired': 'timeOnDemandRetired',
|
169
|
+
'time_dedicated_retired': 'timeDedicatedRetired',
|
154
170
|
'freeform_tags': 'freeformTags',
|
155
171
|
'defined_tags': 'definedTags',
|
156
172
|
'system_tags': 'systemTags'
|
@@ -170,6 +186,8 @@ class ModelSummary(object):
|
|
170
186
|
self._model_metrics = None
|
171
187
|
self._is_long_term_supported = None
|
172
188
|
self._time_deprecated = None
|
189
|
+
self._time_on_demand_retired = None
|
190
|
+
self._time_dedicated_retired = None
|
173
191
|
self._freeform_tags = None
|
174
192
|
self._defined_tags = None
|
175
193
|
self._system_tags = None
|
@@ -228,7 +246,7 @@ class ModelSummary(object):
|
|
228
246
|
**[Required]** Gets the capabilities of this ModelSummary.
|
229
247
|
Describes what this model can be used for.
|
230
248
|
|
231
|
-
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'.
|
249
|
+
Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK", 'UNKNOWN_ENUM_VALUE'.
|
232
250
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
233
251
|
|
234
252
|
|
@@ -247,7 +265,7 @@ class ModelSummary(object):
|
|
247
265
|
:param capabilities: The capabilities of this ModelSummary.
|
248
266
|
:type: list[str]
|
249
267
|
"""
|
250
|
-
allowed_values = ["TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT"]
|
268
|
+
allowed_values = ["TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", "TEXT_RERANK"]
|
251
269
|
if capabilities:
|
252
270
|
capabilities[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in capabilities]
|
253
271
|
self._capabilities = capabilities
|
@@ -554,6 +572,54 @@ class ModelSummary(object):
|
|
554
572
|
"""
|
555
573
|
self._time_deprecated = time_deprecated
|
556
574
|
|
575
|
+
@property
|
576
|
+
def time_on_demand_retired(self):
|
577
|
+
"""
|
578
|
+
Gets the time_on_demand_retired of this ModelSummary.
|
579
|
+
The timestamp indicating when the base model will no longer be available for on-demand usage.
|
580
|
+
|
581
|
+
|
582
|
+
:return: The time_on_demand_retired of this ModelSummary.
|
583
|
+
:rtype: datetime
|
584
|
+
"""
|
585
|
+
return self._time_on_demand_retired
|
586
|
+
|
587
|
+
@time_on_demand_retired.setter
|
588
|
+
def time_on_demand_retired(self, time_on_demand_retired):
|
589
|
+
"""
|
590
|
+
Sets the time_on_demand_retired of this ModelSummary.
|
591
|
+
The timestamp indicating when the base model will no longer be available for on-demand usage.
|
592
|
+
|
593
|
+
|
594
|
+
:param time_on_demand_retired: The time_on_demand_retired of this ModelSummary.
|
595
|
+
:type: datetime
|
596
|
+
"""
|
597
|
+
self._time_on_demand_retired = time_on_demand_retired
|
598
|
+
|
599
|
+
@property
|
600
|
+
def time_dedicated_retired(self):
|
601
|
+
"""
|
602
|
+
Gets the time_dedicated_retired of this ModelSummary.
|
603
|
+
The timestamp indicating when the custom model and its associated foundation model will be fully retired.
|
604
|
+
|
605
|
+
|
606
|
+
:return: The time_dedicated_retired of this ModelSummary.
|
607
|
+
:rtype: datetime
|
608
|
+
"""
|
609
|
+
return self._time_dedicated_retired
|
610
|
+
|
611
|
+
@time_dedicated_retired.setter
|
612
|
+
def time_dedicated_retired(self, time_dedicated_retired):
|
613
|
+
"""
|
614
|
+
Sets the time_dedicated_retired of this ModelSummary.
|
615
|
+
The timestamp indicating when the custom model and its associated foundation model will be fully retired.
|
616
|
+
|
617
|
+
|
618
|
+
:param time_dedicated_retired: The time_dedicated_retired of this ModelSummary.
|
619
|
+
:type: datetime
|
620
|
+
"""
|
621
|
+
self._time_dedicated_retired = time_dedicated_retired
|
622
|
+
|
557
623
|
@property
|
558
624
|
def freeform_tags(self):
|
559
625
|
"""
|