o
    ëÉ¶d¥  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sº   e Zd ZdZdZdZdd„ Zedd„ ƒZej	dd„ ƒZed	d
„ ƒZ
e
j	dd
„ ƒZ
edd„ ƒZej	dd„ ƒZedd„ ƒZej	dd„ ƒZedd„ ƒZej	dd„ ƒZdd„ Zdd„ Zdd„ ZdS )Ú	Violationz
    Violation
    ÚWARNÚERRORc                 K   sF   ddddddœ| _ ddddddœ| _d	| _d	| _d	| _d	| _d	| _d	S )
a`  
        Initializes a new Violation object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param indexes:
            The value to assign to the indexes property of this Violation.
        :type indexes: list[oci.log_analytics.models.Indexes]

        :param rule_description:
            The value to assign to the rule_description property of this Violation.
        :type rule_description: str

        :param rule_name:
            The value to assign to the rule_name property of this Violation.
        :type rule_name: str

        :param rule_remediation:
            The value to assign to the rule_remediation property of this Violation.
        :type rule_remediation: str

        :param rule_type:
            The value to assign to the rule_type property of this Violation.
            Allowed values for this property are: "WARN", "ERROR", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type rule_type: str

        zlist[Indexes]Ústr)ÚindexesÚrule_descriptionÚ	rule_nameÚrule_remediationÚ	rule_typer
   ZruleDescriptionZruleNameZruleRemediationZruleTypeN)Zswagger_typesZattribute_mapÚ_indexesÚ_rule_descriptionÚ
_rule_nameÚ_rule_remediationÚ
_rule_type)ÚselfÚkwargs© r   úFusr/lib/python3.10/site-packages/oci/log_analytics/models/violation.pyÚ__init__   s"   û	û
zViolation.__init__c                 C   ó   | j S )zá
        Gets the indexes of this Violation.
        The indices associated with regular expression violations.


        :return: The indexes of this Violation.
        :rtype: list[oci.log_analytics.models.Indexes]
        ©r   ©r   r   r   r   r
   L   ó   
zViolation.indexesc                 C   ó
   || _ dS )zç
        Sets the indexes of this Violation.
        The indices associated with regular expression violations.


        :param indexes: The indexes of this Violation.
        :type: list[oci.log_analytics.models.Indexes]
        Nr   )r   r
   r   r   r   r
   X   ó   

c                 C   r   )z«
        Gets the rule_description of this Violation.
        The rule description.


        :return: The rule_description of this Violation.
        :rtype: str
        ©r   r   r   r   r   r   d   r   zViolation.rule_descriptionc                 C   r   )zº
        Sets the rule_description of this Violation.
        The rule description.


        :param rule_description: The rule_description of this Violation.
        :type: str
        Nr   )r   r   r   r   r   r   p   r   c                 C   r   )z–
        Gets the rule_name of this Violation.
        The rule name.


        :return: The rule_name of this Violation.
        :rtype: str
        ©r   r   r   r   r   r   |   r   zViolation.rule_namec                 C   r   )zž
        Sets the rule_name of this Violation.
        The rule name.


        :param rule_name: The rule_name of this Violation.
        :type: str
        Nr    )r   r   r   r   r   r   ˆ   r   c                 C   r   )z«
        Gets the rule_remediation of this Violation.
        The rule remediation.


        :return: The rule_remediation of this Violation.
        :rtype: str
        ©r   r   r   r   r   r   ”   r   zViolation.rule_remediationc                 C   r   )zº
        Sets the rule_remediation of this Violation.
        The rule remediation.


        :param rule_remediation: The rule_remediation of this Violation.
        :type: str
        Nr!   )r   r   r   r   r   r       r   c                 C   r   )aa  
        Gets the rule_type of this Violation.
        The rule type.  Either WARN or ERROR.

        Allowed values for this property are: "WARN", "ERROR", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The rule_type of this Violation.
        :rtype: str
        )r   r   r   r   r   r   ¬   s   zViolation.rule_typec                 C   s    ddg}t ||ƒsd}|| _dS )zµ
        Sets the rule_type of this Violation.
        The rule type.  Either WARN or ERROR.


        :param rule_type: The rule_type of this Violation.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   »   s   


c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__Ê   s   zViolation.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__Í   s   zViolation.__eq__c                 C   s
   | |k S r"   r   r%   r   r   r   Ú__ne__Ó   s   
zViolation.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZRULE_TYPE_WARNZRULE_TYPE_ERRORr   Úpropertyr
   Úsetterr   r   r   r   r#   r'   r(   r   r   r   r   r      s8    2









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   