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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 )ÚGrokPatternz
    grok pattern object.
    c                 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 GrokPattern object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param pattern:
            The value to assign to the pattern property of this GrokPattern.
        :type pattern: str

        :param name:
            The value to assign to the name property of this GrokPattern.
        :type name: str

        :param field_time_key:
            The value to assign to the field_time_key property of this GrokPattern.
        :type field_time_key: str

        :param field_time_format:
            The value to assign to the field_time_format property of this GrokPattern.
        :type field_time_format: str

        :param field_time_zone:
            The value to assign to the field_time_zone property of this GrokPattern.
        :type field_time_zone: str

        Ústr)ÚpatternÚnameÚfield_time_keyÚfield_time_formatÚfield_time_zoner   r	   ZfieldTimeKeyZfieldTimeFormatZfieldTimeZoneN)Zswagger_typesZattribute_mapÚ_patternÚ_nameÚ_field_time_keyÚ_field_time_formatÚ_field_time_zone)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/logging/models/grok_pattern.pyÚ__init__   s"   û	û
zGrokPattern.__init__c                 C   ó   | j S )z¨
        **[Required]** Gets the pattern of this GrokPattern.
        The grok pattern.


        :return: The pattern of this GrokPattern.
        :rtype: str
        ©r   ©r   r   r   r   r   B   ó   
zGrokPattern.patternc                 C   ó
   || _ dS )zŸ
        Sets the pattern of this GrokPattern.
        The grok pattern.


        :param pattern: The pattern of this GrokPattern.
        :type: str
        Nr   )r   r   r   r   r   r   N   ó   

c                 C   r   )z¨
        Gets the name of this GrokPattern.
        The name key to tag this grok pattern.


        :return: The name of this GrokPattern.
        :rtype: str
        ©r   r   r   r   r   r	   Z   r   zGrokPattern.namec                 C   r   )z«
        Sets the name of this GrokPattern.
        The name key to tag this grok pattern.


        :param name: The name of this GrokPattern.
        :type: str
        Nr   )r   r	   r   r   r   r	   f   r   c                 C   r   )a   
        Gets the field_time_key of this GrokPattern.
        Specify the time field for the event time. If the event doesn't have this field, the current time is used.


        :return: The field_time_key of this GrokPattern.
        :rtype: str
        ©r   r   r   r   r   r
   r   r   zGrokPattern.field_time_keyc                 C   r   )a  
        Sets the field_time_key of this GrokPattern.
        Specify the time field for the event time. If the event doesn't have this field, the current time is used.


        :param field_time_key: The field_time_key of this GrokPattern.
        :type: str
        Nr   )r   r
   r   r   r   r
   ~   r   c                 C   r   )zø
        Gets the field_time_format of this GrokPattern.
        Process value using the specified format. This is available only when time_type is a string.


        :return: The field_time_format of this GrokPattern.
        :rtype: str
        ©r   r   r   r   r   r   Š   r   zGrokPattern.field_time_formatc                 C   r   )a  
        Sets the field_time_format of this GrokPattern.
        Process value using the specified format. This is available only when time_type is a string.


        :param field_time_format: The field_time_format of this GrokPattern.
        :type: str
        Nr   )r   r   r   r   r   r   –   r   c                 C   r   )zú
        Gets the field_time_zone of this GrokPattern.
        Use the specified time zone. The time value can be parsed or formatted in the specified time zone.


        :return: The field_time_zone of this GrokPattern.
        :rtype: str
        ©r   r   r   r   r   r   ¢   r   zGrokPattern.field_time_zonec                 C   r   )a  
        Sets the field_time_zone of this GrokPattern.
        Use the specified time zone. The time value can be parsed or formatted in the specified time zone.


        :param field_time_zone: The field_time_zone of this GrokPattern.
        :type: str
        Nr    )r   r   r   r   r   r   ®   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__º   s   zGrokPattern.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__½   s   zGrokPattern.__eq__c                 C   s
   | |k S r!   r   r$   r   r   r   Ú__ne__Ã   s   
zGrokPattern.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr	   r
   r   r   r"   r&   r'   r   r   r   r   r      s4    0









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   