ruạṛ
a ���f\x � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZdZdZd ZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Z e jd)d(� �Z ed*d+� �Z!e!jd,d+� �Z!ed-d.� �Z"e"jd/d.� �Z"ed0d1� �Z#e#jd2d1� �Z#ed3d4� �Z$e$jd5d4� �Z$ed6d7� �Z%e%jd8d7� �Z%ed9d:� �Z&e&jd;d:� �Z&ed<d=� �Z'e'jd>d=� �Z'ed?d@� �Z(e(jdAd@� �Z(edBdC� �Z)e)jdDdC� �Z)edEdF� �Z*e*jdGdF� �Z*edHdI� �Z+e+jdJdI� �Z+edKdL� �Z,e,jdMdL� �Z,edNdO� �Z-e-jdPdO� �Z-edQdR� �Z.e.jdSdR� �Z.dTdU� Z/dVdW� Z0dXdY� Z1dZS )[�SqlFirewallPolicyzc The SQL Firewall policy resource contains the firewall policy metadata for a single user. �USER_ISSUED_SQL�ALL_SQL�ENABLED�DISABLED�ENFORCE_CONTEXT�ENFORCE_SQL�ENFORCE_ALL�BLOCK�OBSERVE�CREATING�UPDATING�ACTIVE�INACTIVE�FAILED�DELETING�DELETED�NEEDS_ATTENTIONc K s� dddddddddddddddddddddd�| _ ddd d ddd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new SqlFirewallPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this SqlFirewallPolicy. :type id: str :param compartment_id: The value to assign to the compartment_id property of this SqlFirewallPolicy. :type compartment_id: str :param display_name: The value to assign to the display_name property of this SqlFirewallPolicy. :type display_name: str :param description: The value to assign to the description property of this SqlFirewallPolicy. :type description: str :param security_policy_id: The value to assign to the security_policy_id property of this SqlFirewallPolicy. :type security_policy_id: str :param db_user_name: The value to assign to the db_user_name property of this SqlFirewallPolicy. :type db_user_name: str :param sql_level: The value to assign to the sql_level property of this SqlFirewallPolicy. Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sql_level: str :param status: The value to assign to the status property of this SqlFirewallPolicy. Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param enforcement_scope: The value to assign to the enforcement_scope property of this SqlFirewallPolicy. Allowed values for this property are: "ENFORCE_CONTEXT", "ENFORCE_SQL", "ENFORCE_ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type enforcement_scope: str :param violation_action: The value to assign to the violation_action property of this SqlFirewallPolicy. Allowed values for this property are: "BLOCK", "OBSERVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type violation_action: str :param violation_audit: The value to assign to the violation_audit property of this SqlFirewallPolicy. Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type violation_audit: str :param allowed_client_ips: The value to assign to the allowed_client_ips property of this SqlFirewallPolicy. :type allowed_client_ips: list[str] :param allowed_client_os_usernames: The value to assign to the allowed_client_os_usernames property of this SqlFirewallPolicy. :type allowed_client_os_usernames: list[str] :param allowed_client_programs: The value to assign to the allowed_client_programs property of this SqlFirewallPolicy. :type allowed_client_programs: list[str] :param time_created: The value to assign to the time_created property of this SqlFirewallPolicy. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this SqlFirewallPolicy. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this SqlFirewallPolicy. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "FAILED", "DELETING", "DELETED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this SqlFirewallPolicy. :type lifecycle_details: str :param freeform_tags: The value to assign to the freeform_tags property of this SqlFirewallPolicy. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this SqlFirewallPolicy. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this SqlFirewallPolicy. :type system_tags: dict(str, dict(str, object)) �strz list[str]Zdatetimezdict(str, str)zdict(str, dict(str, object)))�id�compartment_id�display_name�description�security_policy_id�db_user_name� sql_level�status�enforcement_scope�violation_action�violation_audit�allowed_client_ips�allowed_client_os_usernames�allowed_client_programs�time_created�time_updated�lifecycle_state�lifecycle_details� freeform_tags�defined_tags�system_tagsr Z compartmentIdZdisplayNamer ZsecurityPolicyIdZ dbUserNameZsqlLevelr ZenforcementScopeZviolationActionZviolationAuditZallowedClientIpsZallowedClientOsUsernamesZallowedClientProgramsZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_compartment_id� _display_name�_description�_security_policy_id� _db_user_name� _sql_level�_status�_enforcement_scope�_violation_action�_violation_audit�_allowed_client_ips�_allowed_client_os_usernames�_allowed_client_programs� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rE �L/usr/lib/python3.9/site-packages/oci/data_safe/models/sql_firewall_policy.py�__init__^ s� g��zSqlFirewallPolicy.__init__c C s | j S )z� **[Required]** Gets the id of this SqlFirewallPolicy. The OCID of the SQL Firewall policy. :return: The id of this SqlFirewallPolicy. :rtype: str �r. �rC rE rE rF r s zSqlFirewallPolicy.idc C s || _ dS )z� Sets the id of this SqlFirewallPolicy. The OCID of the SQL Firewall policy. :param id: The id of this SqlFirewallPolicy. :type: str NrH )rC r rE rE rF r s c C s | j S )z� **[Required]** Gets the compartment_id of this SqlFirewallPolicy. The OCID of the compartment containing the SQL Firewall policy. :return: The compartment_id of this SqlFirewallPolicy. :rtype: str �r/ rI rE rE rF r " s z SqlFirewallPolicy.compartment_idc C s || _ dS )z� Sets the compartment_id of this SqlFirewallPolicy. The OCID of the compartment containing the SQL Firewall policy. :param compartment_id: The compartment_id of this SqlFirewallPolicy. :type: str NrJ )rC r rE rE rF r . s c C s | j S )z� **[Required]** Gets the display_name of this SqlFirewallPolicy. The display name of the SQL Firewall policy. :return: The display_name of this SqlFirewallPolicy. :rtype: str �r0 rI rE rE rF r : s zSqlFirewallPolicy.display_namec C s || _ dS )z� Sets the display_name of this SqlFirewallPolicy. The display name of the SQL Firewall policy. :param display_name: The display_name of this SqlFirewallPolicy. :type: str NrK )rC r rE rE rF r F s c C s | j S )z� Gets the description of this SqlFirewallPolicy. The description of the SQL Firewall policy. :return: The description of this SqlFirewallPolicy. :rtype: str �r1 rI rE rE rF r R s zSqlFirewallPolicy.descriptionc C s || _ dS )z� Sets the description of this SqlFirewallPolicy. The description of the SQL Firewall policy. :param description: The description of this SqlFirewallPolicy. :type: str NrL )rC r rE rE rF r ^ s c C s | j S )a **[Required]** Gets the security_policy_id of this SqlFirewallPolicy. The OCID of the security policy corresponding to the SQL Firewall policy. :return: The security_policy_id of this SqlFirewallPolicy. :rtype: str �r2 rI rE rE rF r j s z$SqlFirewallPolicy.security_policy_idc C s || _ dS )a Sets the security_policy_id of this SqlFirewallPolicy. The OCID of the security policy corresponding to the SQL Firewall policy. :param security_policy_id: The security_policy_id of this SqlFirewallPolicy. :type: str NrM )rC r rE rE rF r v s c C s | j S )z� **[Required]** Gets the db_user_name of this SqlFirewallPolicy. The database user name. :return: The db_user_name of this SqlFirewallPolicy. :rtype: str �r3 rI rE rE rF r � s zSqlFirewallPolicy.db_user_namec C s || _ dS )z� Sets the db_user_name of this SqlFirewallPolicy. The database user name. :param db_user_name: The db_user_name of this SqlFirewallPolicy. :type: str NrN )rC r rE rE rF r � s c C s | j S )a7 Gets the sql_level of this SqlFirewallPolicy. Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The sql_level of this SqlFirewallPolicy. :rtype: str )r4 rI rE rE rF r � s zSqlFirewallPolicy.sql_levelc C s ddg}t ||�sd}|| _dS )a~ Sets the sql_level of this SqlFirewallPolicy. Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. :param sql_level: The sql_level of this SqlFirewallPolicy. :type: str r r �UNKNOWN_ENUM_VALUEN)r r4 )rC r �allowed_valuesrE rE rF r � s c C s | j S )a� **[Required]** Gets the status of this SqlFirewallPolicy. Specifies whether the SQL Firewall policy is enabled or disabled. Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this SqlFirewallPolicy. :rtype: str )r5 rI rE rE rF r � s zSqlFirewallPolicy.statusc C s ddg}t ||�sd}|| _dS )z� Sets the status of this SqlFirewallPolicy. Specifies whether the SQL Firewall policy is enabled or disabled. :param status: The status of this SqlFirewallPolicy. :type: str r r rO N)r r5 )rC r rP rE rE rF r � s c C s | j S )a� Gets the enforcement_scope of this SqlFirewallPolicy. Specifies the SQL Firewall policy enforcement option. Allowed values for this property are: "ENFORCE_CONTEXT", "ENFORCE_SQL", "ENFORCE_ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The enforcement_scope of this SqlFirewallPolicy. :rtype: str )r6 rI rE rE rF r! � s z#SqlFirewallPolicy.enforcement_scopec C s g d�}t ||�sd}|| _dS )z� Sets the enforcement_scope of this SqlFirewallPolicy. Specifies the SQL Firewall policy enforcement option. :param enforcement_scope: The enforcement_scope of this SqlFirewallPolicy. :type: str )r r r rO N)r r6 )rC r! rP rE rE rF r! � s c C s | j S )a� Gets the violation_action of this SqlFirewallPolicy. Specifies the mode in which the SQL Firewall policy is enabled. Allowed values for this property are: "BLOCK", "OBSERVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The violation_action of this SqlFirewallPolicy. :rtype: str )r7 rI rE rE rF r"