ruạṛ
a ���f�A � @ 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 @ sH e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zd-d.� Z d/d0� Z!d1d2� Z"d3S )4�UnifiedAgentParserz Source parser object. �AUDITD�CRI�JSON�TSV�CSV�NONE�SYSLOG�APACHE2�APACHE_ERROR�MSGPACK�REGEXP� MULTILINE�GROK�MULTILINE_GROK�OPENMETRICSc K sd ddddddddd�| _ dddd d ddd d�| _d| _d| _d| _d| _d| _d| _d| _d| _ dS )a� Initializes a new UnifiedAgentParser object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.logging.models.UnifiedAgentMultilineGrokParser` * :class:`~oci.logging.models.UnifiedJSONParser` * :class:`~oci.logging.models.UnifiedAgentGrokParser` * :class:`~oci.logging.models.UnifiedAgentNoneParser` * :class:`~oci.logging.models.UnifiedAgentSyslogParser` * :class:`~oci.logging.models.UnifiedAgentOpenmetricsParser` * :class:`~oci.logging.models.UnifiedAgentAuditdParser` * :class:`~oci.logging.models.UnifiedAgentApache2Parser` * :class:`~oci.logging.models.UnifiedAgentRegexParser` * :class:`~oci.logging.models.UnifiedAgentMultilineParser` * :class:`~oci.logging.models.UnifiedAgentTsvParser` * :class:`~oci.logging.models.UnifiedAgentCriParser` * :class:`~oci.logging.models.UnifiedAgentApacheErrorParser` * :class:`~oci.logging.models.UnifiedAgentMsgpackParser` * :class:`~oci.logging.models.UnifiedAgentCsvParser` 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 UnifiedAgentParser. Allowed values for this property are: "AUDITD", "CRI", "JSON", "TSV", "CSV", "NONE", "SYSLOG", "APACHE2", "APACHE_ERROR", "MSGPACK", "REGEXP", "MULTILINE", "GROK", "MULTILINE_GROK", "OPENMETRICS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type parser_type: str :param field_time_key: The value to assign to the field_time_key property of this UnifiedAgentParser. :type field_time_key: str :param types: The value to assign to the types property of this UnifiedAgentParser. :type types: dict(str, str) :param null_value_pattern: The value to assign to the null_value_pattern property of this UnifiedAgentParser. :type null_value_pattern: str :param is_null_empty_string: The value to assign to the is_null_empty_string property of this UnifiedAgentParser. :type is_null_empty_string: bool :param is_estimate_current_event: The value to assign to the is_estimate_current_event property of this UnifiedAgentParser. :type is_estimate_current_event: bool :param is_keep_time_key: The value to assign to the is_keep_time_key property of this UnifiedAgentParser. :type is_keep_time_key: bool :param timeout_in_milliseconds: The value to assign to the timeout_in_milliseconds property of this UnifiedAgentParser. :type timeout_in_milliseconds: int �strzdict(str, str)�bool�int)�parser_type�field_time_key�types�null_value_pattern�is_null_empty_string�is_estimate_current_event�is_keep_time_key�timeout_in_milliseconds� parserTypeZfieldTimeKeyr ZnullValuePatternZisNullEmptyStringZisEstimateCurrentEventZ isKeepTimeKeyZtimeoutInMillisecondsN) Z swagger_typesZ attribute_map�_parser_type�_field_time_key�_types�_null_value_pattern�_is_null_empty_string�_is_estimate_current_event�_is_keep_time_key�_timeout_in_milliseconds)�self�kwargs� r, �K/usr/lib/python3.9/site-packages/oci/logging/models/unified_agent_parser.py�__init__N s4 ;��zUnifiedAgentParser.__init__c C s� | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S |dkr\dS |dkrhdS |dkrtdS |dkr�dS |dkr�dS |dkr�dS |dkr�dS |dkr�dS |dkr�dS d S d!S )"z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r! r ZUnifiedAgentMultilineGrokParserr ZUnifiedJSONParserr ZUnifiedAgentGrokParserr ZUnifiedAgentNoneParserr ZUnifiedAgentSyslogParserr ZUnifiedAgentOpenmetricsParserr ZUnifiedAgentAuditdParserr ZUnifiedAgentApache2Parserr ZUnifiedAgentRegexParserr ZUnifiedAgentMultilineParserr ZUnifiedAgentTsvParserr ZUnifiedAgentCriParserr ZUnifiedAgentApacheErrorParserr ZUnifiedAgentMsgpackParserr ZUnifiedAgentCsvParserr Nr, )Zobject_dictionary�typer, r, r- �get_subtype� s@ zUnifiedAgentParser.get_subtypec C s | j S )a **[Required]** Gets the parser_type of this UnifiedAgentParser. Type of fluent parser. Allowed values for this property are: "AUDITD", "CRI", "JSON", "TSV", "CSV", "NONE", "SYSLOG", "APACHE2", "APACHE_ERROR", "MSGPACK", "REGEXP", "MULTILINE", "GROK", "MULTILINE_GROK", "OPENMETRICS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The parser_type of this UnifiedAgentParser. :rtype: str )r"