ruạṛ
a ���f � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�UnifiedAgentParser� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s~ e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )�UnifiedAgentGrokParserz Grok parser. c K s� dddddddddddd�| _ ddd d ddd ddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _dS )a� Initializes a new UnifiedAgentGrokParser object with values from keyword arguments. The default value of the :py:attr:`~oci.logging.models.UnifiedAgentGrokParser.parser_type` attribute of this class is ``GROK`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param parser_type: The value to assign to the parser_type property of this UnifiedAgentGrokParser. Allowed values for this property are: "AUDITD", "CRI", "JSON", "TSV", "CSV", "NONE", "SYSLOG", "APACHE2", "APACHE_ERROR", "MSGPACK", "REGEXP", "MULTILINE", "GROK", "MULTILINE_GROK", "OPENMETRICS" :type parser_type: str :param field_time_key: The value to assign to the field_time_key property of this UnifiedAgentGrokParser. :type field_time_key: str :param types: The value to assign to the types property of this UnifiedAgentGrokParser. :type types: dict(str, str) :param null_value_pattern: The value to assign to the null_value_pattern property of this UnifiedAgentGrokParser. :type null_value_pattern: str :param is_null_empty_string: The value to assign to the is_null_empty_string property of this UnifiedAgentGrokParser. :type is_null_empty_string: bool :param is_estimate_current_event: The value to assign to the is_estimate_current_event property of this UnifiedAgentGrokParser. :type is_estimate_current_event: bool :param is_keep_time_key: The value to assign to the is_keep_time_key property of this UnifiedAgentGrokParser. :type is_keep_time_key: bool :param timeout_in_milliseconds: The value to assign to the timeout_in_milliseconds property of this UnifiedAgentGrokParser. :type timeout_in_milliseconds: int :param grok_name_key: The value to assign to the grok_name_key property of this UnifiedAgentGrokParser. :type grok_name_key: str :param grok_failure_key: The value to assign to the grok_failure_key property of this UnifiedAgentGrokParser. :type grok_failure_key: str :param patterns: The value to assign to the patterns property of this UnifiedAgentGrokParser. :type patterns: list[oci.logging.models.GrokPattern] �strzdict(str, str)�bool�intzlist[GrokPattern])Zparser_typeZfield_time_key�typesZnull_value_patternZis_null_empty_stringZis_estimate_current_eventZis_keep_time_keyZtimeout_in_milliseconds� grok_name_key�grok_failure_key�patternsZ parserTypeZfieldTimeKeyr ZnullValuePatternZisNullEmptyStringZisEstimateCurrentEventZ isKeepTimeKeyZtimeoutInMillisecondsZgrokNameKeyZgrokFailureKeyr NZGROK) Z swagger_typesZ attribute_mapZ_parser_typeZ_field_time_keyZ_typesZ_null_value_patternZ_is_null_empty_stringZ_is_estimate_current_eventZ_is_keep_time_keyZ_timeout_in_milliseconds�_grok_name_key�_grok_failure_key� _patterns)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/logging/models/unified_agent_grok_parser.py�__init__ sH 5��zUnifiedAgentGrokParser.__init__c C s | j S )z� Gets the grok_name_key of this UnifiedAgentGrokParser. Grok name key. :return: The grok_name_key of this UnifiedAgentGrokParser. :rtype: str �r �r r r r r o s z$UnifiedAgentGrokParser.grok_name_keyc C s || _ dS )z� Sets the grok_name_key of this UnifiedAgentGrokParser. Grok name key. :param grok_name_key: The grok_name_key of this UnifiedAgentGrokParser. :type: str Nr )r r r r r r { s c C s | j S )z� Gets the grok_failure_key of this UnifiedAgentGrokParser. Grok failure key. :return: The grok_failure_key of this UnifiedAgentGrokParser. :rtype: str �r r r r r r � s z'UnifiedAgentGrokParser.grok_failure_keyc C s || _ dS )z� Sets the grok_failure_key of this UnifiedAgentGrokParser. Grok failure key. :param grok_failure_key: The grok_failure_key of this UnifiedAgentGrokParser. :type: str Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the patterns of this UnifiedAgentGrokParser. Grok pattern object. :return: The patterns of this UnifiedAgentGrokParser. :rtype: list[oci.logging.models.GrokPattern] �r r r r r r � s zUnifiedAgentGrokParser.patternsc C s || _ dS )z� Sets the patterns of this UnifiedAgentGrokParser. Grok pattern object. :param patterns: The patterns of this UnifiedAgentGrokParser. :type: list[oci.logging.models.GrokPattern] Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zUnifiedAgentGrokParser.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zUnifiedAgentGrokParser.__eq__c C s | |k S r r r r r r �__ne__� s zUnifiedAgentGrokParser.__ne__N) �__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r! r"