oci 2.150.0__py3-none-any.whl → 2.150.2__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 +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 +282 -45
- oci/container_engine/container_engine_client_composite_operations.py +90 -0
- oci/container_engine/models/__init__.py +10 -0
- oci/container_engine/models/cluster_node.py +101 -0
- oci/container_engine/models/image.py +132 -0
- oci/container_engine/models/node_eviction_node_pool_settings.py +33 -2
- oci/container_engine/models/node_eviction_settings.py +103 -0
- oci/container_engine/models/node_pool_cycling_details.py +35 -4
- oci/container_engine/models/reboot_cluster_node_details.py +66 -0
- oci/container_engine/models/replace_boot_volume_cluster_node_details.py +66 -0
- oci/container_engine/models/work_request.py +11 -3
- oci/container_engine/models/work_request_summary.py +11 -3
- 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/models/create_volume_details.py +33 -2
- oci/core/models/instance_configuration_create_volume_details.py +33 -2
- oci/core/models/update_volume_details.py +33 -2
- oci/core/models/volume.py +33 -2
- 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/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/create_autonomous_container_database_details.py +31 -0
- oci/database/models/update_autonomous_container_database_details.py +31 -0
- 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 +345 -12
- oci/dblm/models/__init__.py +22 -0
- oci/dblm/models/additional_patches.py +179 -0
- oci/dblm/models/databases_summary.py +670 -0
- oci/dblm/models/dblm_patch_management.py +410 -0
- oci/dblm/models/fpp_server.py +604 -0
- oci/dblm/models/image_details.py +338 -0
- oci/dblm/models/images_patch_recommendation_summary.py +132 -0
- oci/dblm/models/patch_activity_details.py +394 -0
- oci/dblm/models/patch_compliance_details.py +121 -0
- oci/dblm/models/patch_databases_collection.py +70 -0
- oci/dblm/models/patch_operations_summary.py +194 -0
- oci/dblm/models/resource_info.py +33 -2
- oci/dblm/models/resources_patch_compliance_summary.py +194 -0
- oci/dblm/models/vulnerabilities_summary.py +10 -10
- 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/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/fips.py +58 -36
- 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_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 +102 -5
- oci/generative_ai_inference/models/__init__.py +26 -0
- oci/generative_ai_inference/models/apply_guardrails_details.py +124 -0
- oci/generative_ai_inference/models/apply_guardrails_result.py +66 -0
- oci/generative_ai_inference/models/assistant_message.py +3 -0
- oci/generative_ai_inference/models/category_score.py +101 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +53 -2
- oci/generative_ai_inference/models/content_moderation_configuration.py +70 -0
- oci/generative_ai_inference/models/content_moderation_result.py +70 -0
- oci/generative_ai_inference/models/guardrail_configs.py +120 -0
- oci/generative_ai_inference/models/guardrails_input.py +99 -0
- oci/generative_ai_inference/models/guardrails_results.py +124 -0
- oci/generative_ai_inference/models/guardrails_text_input.py +111 -0
- oci/generative_ai_inference/models/personally_identifiable_information_configuration.py +70 -0
- oci/generative_ai_inference/models/personally_identifiable_information_result.py +194 -0
- oci/generative_ai_inference/models/prompt_injection_configuration.py +39 -0
- oci/generative_ai_inference/models/prompt_injection_protection_result.py +70 -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 +22 -22
- 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 +9 -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 +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/models/__init__.py +6 -0
- oci/visual_builder/models/network_endpoint_details.py +11 -3
- oci/visual_builder/models/private_endpoint_details.py +1 -1
- oci/visual_builder/models/public_endpoint_details.py +113 -0
- oci/visual_builder/models/update_network_endpoint_details.py +11 -3
- oci/visual_builder/models/update_private_endpoint_details.py +1 -1
- oci/visual_builder/models/update_public_endpoint_details.py +113 -0
- oci/visual_builder/models/virtual_cloud_network.py +103 -0
- 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.0.dist-info → oci-2.150.2.dist-info}/METADATA +1 -1
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/RECORD +322 -290
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/LICENSE.txt +0 -0
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/WHEEL +0 -0
- {oci-2.150.0.dist-info → oci-2.150.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 ContentModerationConfiguration(object):
|
14
|
+
"""
|
15
|
+
Configuration for content moderation.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ContentModerationConfiguration object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param categories:
|
24
|
+
The value to assign to the categories property of this ContentModerationConfiguration.
|
25
|
+
:type categories: list[str]
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'categories': 'list[str]'
|
30
|
+
}
|
31
|
+
self.attribute_map = {
|
32
|
+
'categories': 'categories'
|
33
|
+
}
|
34
|
+
self._categories = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def categories(self):
|
38
|
+
"""
|
39
|
+
**[Required]** Gets the categories of this ContentModerationConfiguration.
|
40
|
+
The categories to detect in the input text.
|
41
|
+
|
42
|
+
|
43
|
+
:return: The categories of this ContentModerationConfiguration.
|
44
|
+
:rtype: list[str]
|
45
|
+
"""
|
46
|
+
return self._categories
|
47
|
+
|
48
|
+
@categories.setter
|
49
|
+
def categories(self, categories):
|
50
|
+
"""
|
51
|
+
Sets the categories of this ContentModerationConfiguration.
|
52
|
+
The categories to detect in the input text.
|
53
|
+
|
54
|
+
|
55
|
+
:param categories: The categories of this ContentModerationConfiguration.
|
56
|
+
:type: list[str]
|
57
|
+
"""
|
58
|
+
self._categories = categories
|
59
|
+
|
60
|
+
def __repr__(self):
|
61
|
+
return formatted_flat_dict(self)
|
62
|
+
|
63
|
+
def __eq__(self, other):
|
64
|
+
if other is None:
|
65
|
+
return False
|
66
|
+
|
67
|
+
return self.__dict__ == other.__dict__
|
68
|
+
|
69
|
+
def __ne__(self, other):
|
70
|
+
return not self == other
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 ContentModerationResult(object):
|
14
|
+
"""
|
15
|
+
The result of content moderation.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ContentModerationResult object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param categories:
|
24
|
+
The value to assign to the categories property of this ContentModerationResult.
|
25
|
+
:type categories: list[oci.generative_ai_inference.models.CategoryScore]
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'categories': 'list[CategoryScore]'
|
30
|
+
}
|
31
|
+
self.attribute_map = {
|
32
|
+
'categories': 'categories'
|
33
|
+
}
|
34
|
+
self._categories = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def categories(self):
|
38
|
+
"""
|
39
|
+
**[Required]** Gets the categories of this ContentModerationResult.
|
40
|
+
A list of categories with their respective scores.
|
41
|
+
|
42
|
+
|
43
|
+
:return: The categories of this ContentModerationResult.
|
44
|
+
:rtype: list[oci.generative_ai_inference.models.CategoryScore]
|
45
|
+
"""
|
46
|
+
return self._categories
|
47
|
+
|
48
|
+
@categories.setter
|
49
|
+
def categories(self, categories):
|
50
|
+
"""
|
51
|
+
Sets the categories of this ContentModerationResult.
|
52
|
+
A list of categories with their respective scores.
|
53
|
+
|
54
|
+
|
55
|
+
:param categories: The categories of this ContentModerationResult.
|
56
|
+
:type: list[oci.generative_ai_inference.models.CategoryScore]
|
57
|
+
"""
|
58
|
+
self._categories = categories
|
59
|
+
|
60
|
+
def __repr__(self):
|
61
|
+
return formatted_flat_dict(self)
|
62
|
+
|
63
|
+
def __eq__(self, other):
|
64
|
+
if other is None:
|
65
|
+
return False
|
66
|
+
|
67
|
+
return self.__dict__ == other.__dict__
|
68
|
+
|
69
|
+
def __ne__(self, other):
|
70
|
+
return not self == other
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 GuardrailConfigs(object):
|
14
|
+
"""
|
15
|
+
Additional configuration for each guardrail.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new GuardrailConfigs object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param content_moderation_config:
|
24
|
+
The value to assign to the content_moderation_config property of this GuardrailConfigs.
|
25
|
+
:type content_moderation_config: oci.generative_ai_inference.models.ContentModerationConfiguration
|
26
|
+
|
27
|
+
:param personally_identifiable_information_config:
|
28
|
+
The value to assign to the personally_identifiable_information_config property of this GuardrailConfigs.
|
29
|
+
:type personally_identifiable_information_config: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
|
30
|
+
|
31
|
+
:param prompt_injection_config:
|
32
|
+
The value to assign to the prompt_injection_config property of this GuardrailConfigs.
|
33
|
+
:type prompt_injection_config: oci.generative_ai_inference.models.PromptInjectionConfiguration
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'content_moderation_config': 'ContentModerationConfiguration',
|
38
|
+
'personally_identifiable_information_config': 'PersonallyIdentifiableInformationConfiguration',
|
39
|
+
'prompt_injection_config': 'PromptInjectionConfiguration'
|
40
|
+
}
|
41
|
+
self.attribute_map = {
|
42
|
+
'content_moderation_config': 'contentModerationConfig',
|
43
|
+
'personally_identifiable_information_config': 'personallyIdentifiableInformationConfig',
|
44
|
+
'prompt_injection_config': 'promptInjectionConfig'
|
45
|
+
}
|
46
|
+
self._content_moderation_config = None
|
47
|
+
self._personally_identifiable_information_config = None
|
48
|
+
self._prompt_injection_config = None
|
49
|
+
|
50
|
+
@property
|
51
|
+
def content_moderation_config(self):
|
52
|
+
"""
|
53
|
+
Gets the content_moderation_config of this GuardrailConfigs.
|
54
|
+
|
55
|
+
:return: The content_moderation_config of this GuardrailConfigs.
|
56
|
+
:rtype: oci.generative_ai_inference.models.ContentModerationConfiguration
|
57
|
+
"""
|
58
|
+
return self._content_moderation_config
|
59
|
+
|
60
|
+
@content_moderation_config.setter
|
61
|
+
def content_moderation_config(self, content_moderation_config):
|
62
|
+
"""
|
63
|
+
Sets the content_moderation_config of this GuardrailConfigs.
|
64
|
+
|
65
|
+
:param content_moderation_config: The content_moderation_config of this GuardrailConfigs.
|
66
|
+
:type: oci.generative_ai_inference.models.ContentModerationConfiguration
|
67
|
+
"""
|
68
|
+
self._content_moderation_config = content_moderation_config
|
69
|
+
|
70
|
+
@property
|
71
|
+
def personally_identifiable_information_config(self):
|
72
|
+
"""
|
73
|
+
Gets the personally_identifiable_information_config of this GuardrailConfigs.
|
74
|
+
|
75
|
+
:return: The personally_identifiable_information_config of this GuardrailConfigs.
|
76
|
+
:rtype: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
|
77
|
+
"""
|
78
|
+
return self._personally_identifiable_information_config
|
79
|
+
|
80
|
+
@personally_identifiable_information_config.setter
|
81
|
+
def personally_identifiable_information_config(self, personally_identifiable_information_config):
|
82
|
+
"""
|
83
|
+
Sets the personally_identifiable_information_config of this GuardrailConfigs.
|
84
|
+
|
85
|
+
:param personally_identifiable_information_config: The personally_identifiable_information_config of this GuardrailConfigs.
|
86
|
+
:type: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
|
87
|
+
"""
|
88
|
+
self._personally_identifiable_information_config = personally_identifiable_information_config
|
89
|
+
|
90
|
+
@property
|
91
|
+
def prompt_injection_config(self):
|
92
|
+
"""
|
93
|
+
Gets the prompt_injection_config of this GuardrailConfigs.
|
94
|
+
|
95
|
+
:return: The prompt_injection_config of this GuardrailConfigs.
|
96
|
+
:rtype: oci.generative_ai_inference.models.PromptInjectionConfiguration
|
97
|
+
"""
|
98
|
+
return self._prompt_injection_config
|
99
|
+
|
100
|
+
@prompt_injection_config.setter
|
101
|
+
def prompt_injection_config(self, prompt_injection_config):
|
102
|
+
"""
|
103
|
+
Sets the prompt_injection_config of this GuardrailConfigs.
|
104
|
+
|
105
|
+
:param prompt_injection_config: The prompt_injection_config of this GuardrailConfigs.
|
106
|
+
:type: oci.generative_ai_inference.models.PromptInjectionConfiguration
|
107
|
+
"""
|
108
|
+
self._prompt_injection_config = prompt_injection_config
|
109
|
+
|
110
|
+
def __repr__(self):
|
111
|
+
return formatted_flat_dict(self)
|
112
|
+
|
113
|
+
def __eq__(self, other):
|
114
|
+
if other is None:
|
115
|
+
return False
|
116
|
+
|
117
|
+
return self.__dict__ == other.__dict__
|
118
|
+
|
119
|
+
def __ne__(self, other):
|
120
|
+
return not self == other
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 GuardrailsInput(object):
|
14
|
+
"""
|
15
|
+
The input data for applying guardrails. This can be text, image, video, or audio content.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the type property of a GuardrailsInput.
|
19
|
+
#: This constant has a value of "TEXT"
|
20
|
+
TYPE_TEXT = "TEXT"
|
21
|
+
|
22
|
+
def __init__(self, **kwargs):
|
23
|
+
"""
|
24
|
+
Initializes a new GuardrailsInput object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
25
|
+
to a service operations then you should favor using a subclass over the base class:
|
26
|
+
|
27
|
+
* :class:`~oci.generative_ai_inference.models.GuardrailsTextInput`
|
28
|
+
|
29
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
30
|
+
|
31
|
+
:param type:
|
32
|
+
The value to assign to the type property of this GuardrailsInput.
|
33
|
+
Allowed values for this property are: "TEXT"
|
34
|
+
:type type: str
|
35
|
+
|
36
|
+
"""
|
37
|
+
self.swagger_types = {
|
38
|
+
'type': 'str'
|
39
|
+
}
|
40
|
+
self.attribute_map = {
|
41
|
+
'type': 'type'
|
42
|
+
}
|
43
|
+
self._type = None
|
44
|
+
|
45
|
+
@staticmethod
|
46
|
+
def get_subtype(object_dictionary):
|
47
|
+
"""
|
48
|
+
Given the hash representation of a subtype of this class,
|
49
|
+
use the info in the hash to return the class of the subtype.
|
50
|
+
"""
|
51
|
+
type = object_dictionary['type']
|
52
|
+
|
53
|
+
if type == 'TEXT':
|
54
|
+
return 'GuardrailsTextInput'
|
55
|
+
else:
|
56
|
+
return 'GuardrailsInput'
|
57
|
+
|
58
|
+
@property
|
59
|
+
def type(self):
|
60
|
+
"""
|
61
|
+
**[Required]** Gets the type of this GuardrailsInput.
|
62
|
+
The type of the input data.
|
63
|
+
|
64
|
+
Allowed values for this property are: "TEXT"
|
65
|
+
|
66
|
+
|
67
|
+
:return: The type of this GuardrailsInput.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._type
|
71
|
+
|
72
|
+
@type.setter
|
73
|
+
def type(self, type):
|
74
|
+
"""
|
75
|
+
Sets the type of this GuardrailsInput.
|
76
|
+
The type of the input data.
|
77
|
+
|
78
|
+
|
79
|
+
:param type: The type of this GuardrailsInput.
|
80
|
+
:type: str
|
81
|
+
"""
|
82
|
+
allowed_values = ["TEXT"]
|
83
|
+
if not value_allowed_none_or_none_sentinel(type, allowed_values):
|
84
|
+
raise ValueError(
|
85
|
+
f"Invalid value for `type`, must be None or one of {allowed_values}"
|
86
|
+
)
|
87
|
+
self._type = type
|
88
|
+
|
89
|
+
def __repr__(self):
|
90
|
+
return formatted_flat_dict(self)
|
91
|
+
|
92
|
+
def __eq__(self, other):
|
93
|
+
if other is None:
|
94
|
+
return False
|
95
|
+
|
96
|
+
return self.__dict__ == other.__dict__
|
97
|
+
|
98
|
+
def __ne__(self, other):
|
99
|
+
return not self == other
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 GuardrailsResults(object):
|
14
|
+
"""
|
15
|
+
The results of applying each guardrail.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new GuardrailsResults object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param content_moderation:
|
24
|
+
The value to assign to the content_moderation property of this GuardrailsResults.
|
25
|
+
:type content_moderation: oci.generative_ai_inference.models.ContentModerationResult
|
26
|
+
|
27
|
+
:param personally_identifiable_information:
|
28
|
+
The value to assign to the personally_identifiable_information property of this GuardrailsResults.
|
29
|
+
:type personally_identifiable_information: list[oci.generative_ai_inference.models.PersonallyIdentifiableInformationResult]
|
30
|
+
|
31
|
+
:param prompt_injection:
|
32
|
+
The value to assign to the prompt_injection property of this GuardrailsResults.
|
33
|
+
:type prompt_injection: oci.generative_ai_inference.models.PromptInjectionProtectionResult
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'content_moderation': 'ContentModerationResult',
|
38
|
+
'personally_identifiable_information': 'list[PersonallyIdentifiableInformationResult]',
|
39
|
+
'prompt_injection': 'PromptInjectionProtectionResult'
|
40
|
+
}
|
41
|
+
self.attribute_map = {
|
42
|
+
'content_moderation': 'contentModeration',
|
43
|
+
'personally_identifiable_information': 'personallyIdentifiableInformation',
|
44
|
+
'prompt_injection': 'promptInjection'
|
45
|
+
}
|
46
|
+
self._content_moderation = None
|
47
|
+
self._personally_identifiable_information = None
|
48
|
+
self._prompt_injection = None
|
49
|
+
|
50
|
+
@property
|
51
|
+
def content_moderation(self):
|
52
|
+
"""
|
53
|
+
Gets the content_moderation of this GuardrailsResults.
|
54
|
+
|
55
|
+
:return: The content_moderation of this GuardrailsResults.
|
56
|
+
:rtype: oci.generative_ai_inference.models.ContentModerationResult
|
57
|
+
"""
|
58
|
+
return self._content_moderation
|
59
|
+
|
60
|
+
@content_moderation.setter
|
61
|
+
def content_moderation(self, content_moderation):
|
62
|
+
"""
|
63
|
+
Sets the content_moderation of this GuardrailsResults.
|
64
|
+
|
65
|
+
:param content_moderation: The content_moderation of this GuardrailsResults.
|
66
|
+
:type: oci.generative_ai_inference.models.ContentModerationResult
|
67
|
+
"""
|
68
|
+
self._content_moderation = content_moderation
|
69
|
+
|
70
|
+
@property
|
71
|
+
def personally_identifiable_information(self):
|
72
|
+
"""
|
73
|
+
Gets the personally_identifiable_information of this GuardrailsResults.
|
74
|
+
The result of PII detection
|
75
|
+
|
76
|
+
|
77
|
+
:return: The personally_identifiable_information of this GuardrailsResults.
|
78
|
+
:rtype: list[oci.generative_ai_inference.models.PersonallyIdentifiableInformationResult]
|
79
|
+
"""
|
80
|
+
return self._personally_identifiable_information
|
81
|
+
|
82
|
+
@personally_identifiable_information.setter
|
83
|
+
def personally_identifiable_information(self, personally_identifiable_information):
|
84
|
+
"""
|
85
|
+
Sets the personally_identifiable_information of this GuardrailsResults.
|
86
|
+
The result of PII detection
|
87
|
+
|
88
|
+
|
89
|
+
:param personally_identifiable_information: The personally_identifiable_information of this GuardrailsResults.
|
90
|
+
:type: list[oci.generative_ai_inference.models.PersonallyIdentifiableInformationResult]
|
91
|
+
"""
|
92
|
+
self._personally_identifiable_information = personally_identifiable_information
|
93
|
+
|
94
|
+
@property
|
95
|
+
def prompt_injection(self):
|
96
|
+
"""
|
97
|
+
Gets the prompt_injection of this GuardrailsResults.
|
98
|
+
|
99
|
+
:return: The prompt_injection of this GuardrailsResults.
|
100
|
+
:rtype: oci.generative_ai_inference.models.PromptInjectionProtectionResult
|
101
|
+
"""
|
102
|
+
return self._prompt_injection
|
103
|
+
|
104
|
+
@prompt_injection.setter
|
105
|
+
def prompt_injection(self, prompt_injection):
|
106
|
+
"""
|
107
|
+
Sets the prompt_injection of this GuardrailsResults.
|
108
|
+
|
109
|
+
:param prompt_injection: The prompt_injection of this GuardrailsResults.
|
110
|
+
:type: oci.generative_ai_inference.models.PromptInjectionProtectionResult
|
111
|
+
"""
|
112
|
+
self._prompt_injection = prompt_injection
|
113
|
+
|
114
|
+
def __repr__(self):
|
115
|
+
return formatted_flat_dict(self)
|
116
|
+
|
117
|
+
def __eq__(self, other):
|
118
|
+
if other is None:
|
119
|
+
return False
|
120
|
+
|
121
|
+
return self.__dict__ == other.__dict__
|
122
|
+
|
123
|
+
def __ne__(self, other):
|
124
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 .guardrails_input import GuardrailsInput
|
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 GuardrailsTextInput(GuardrailsInput):
|
14
|
+
"""
|
15
|
+
Represents a single instance of text in the guardrails input.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new GuardrailsTextInput object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.GuardrailsTextInput.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 GuardrailsTextInput.
|
26
|
+
Allowed values for this property are: "TEXT"
|
27
|
+
:type type: str
|
28
|
+
|
29
|
+
:param content:
|
30
|
+
The value to assign to the content property of this GuardrailsTextInput.
|
31
|
+
:type content: str
|
32
|
+
|
33
|
+
:param language_code:
|
34
|
+
The value to assign to the language_code property of this GuardrailsTextInput.
|
35
|
+
:type language_code: str
|
36
|
+
|
37
|
+
"""
|
38
|
+
self.swagger_types = {
|
39
|
+
'type': 'str',
|
40
|
+
'content': 'str',
|
41
|
+
'language_code': 'str'
|
42
|
+
}
|
43
|
+
self.attribute_map = {
|
44
|
+
'type': 'type',
|
45
|
+
'content': 'content',
|
46
|
+
'language_code': 'languageCode'
|
47
|
+
}
|
48
|
+
self._type = None
|
49
|
+
self._content = None
|
50
|
+
self._language_code = None
|
51
|
+
self._type = 'TEXT'
|
52
|
+
|
53
|
+
@property
|
54
|
+
def content(self):
|
55
|
+
"""
|
56
|
+
Gets the content of this GuardrailsTextInput.
|
57
|
+
The actual input data.
|
58
|
+
|
59
|
+
|
60
|
+
:return: The content of this GuardrailsTextInput.
|
61
|
+
:rtype: str
|
62
|
+
"""
|
63
|
+
return self._content
|
64
|
+
|
65
|
+
@content.setter
|
66
|
+
def content(self, content):
|
67
|
+
"""
|
68
|
+
Sets the content of this GuardrailsTextInput.
|
69
|
+
The actual input data.
|
70
|
+
|
71
|
+
|
72
|
+
:param content: The content of this GuardrailsTextInput.
|
73
|
+
:type: str
|
74
|
+
"""
|
75
|
+
self._content = content
|
76
|
+
|
77
|
+
@property
|
78
|
+
def language_code(self):
|
79
|
+
"""
|
80
|
+
Gets the language_code of this GuardrailsTextInput.
|
81
|
+
The language code of the input text. example - en | es | en-US | zh-CN
|
82
|
+
|
83
|
+
|
84
|
+
:return: The language_code of this GuardrailsTextInput.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._language_code
|
88
|
+
|
89
|
+
@language_code.setter
|
90
|
+
def language_code(self, language_code):
|
91
|
+
"""
|
92
|
+
Sets the language_code of this GuardrailsTextInput.
|
93
|
+
The language code of the input text. example - en | es | en-US | zh-CN
|
94
|
+
|
95
|
+
|
96
|
+
:param language_code: The language_code of this GuardrailsTextInput.
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
self._language_code = language_code
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
return formatted_flat_dict(self)
|
103
|
+
|
104
|
+
def __eq__(self, other):
|
105
|
+
if other is None:
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
return not self == other
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, 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 PersonallyIdentifiableInformationConfiguration(object):
|
14
|
+
"""
|
15
|
+
Configuration for personally identifiable information detection.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new PersonallyIdentifiableInformationConfiguration object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param types:
|
24
|
+
The value to assign to the types property of this PersonallyIdentifiableInformationConfiguration.
|
25
|
+
:type types: list[str]
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'types': 'list[str]'
|
30
|
+
}
|
31
|
+
self.attribute_map = {
|
32
|
+
'types': 'types'
|
33
|
+
}
|
34
|
+
self._types = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def types(self):
|
38
|
+
"""
|
39
|
+
**[Required]** Gets the types of this PersonallyIdentifiableInformationConfiguration.
|
40
|
+
The types of personally identifiable information to detect.
|
41
|
+
|
42
|
+
|
43
|
+
:return: The types of this PersonallyIdentifiableInformationConfiguration.
|
44
|
+
:rtype: list[str]
|
45
|
+
"""
|
46
|
+
return self._types
|
47
|
+
|
48
|
+
@types.setter
|
49
|
+
def types(self, types):
|
50
|
+
"""
|
51
|
+
Sets the types of this PersonallyIdentifiableInformationConfiguration.
|
52
|
+
The types of personally identifiable information to detect.
|
53
|
+
|
54
|
+
|
55
|
+
:param types: The types of this PersonallyIdentifiableInformationConfiguration.
|
56
|
+
:type: list[str]
|
57
|
+
"""
|
58
|
+
self._types = types
|
59
|
+
|
60
|
+
def __repr__(self):
|
61
|
+
return formatted_flat_dict(self)
|
62
|
+
|
63
|
+
def __eq__(self, other):
|
64
|
+
if other is None:
|
65
|
+
return False
|
66
|
+
|
67
|
+
return self.__dict__ == other.__dict__
|
68
|
+
|
69
|
+
def __ne__(self, other):
|
70
|
+
return not self == other
|