ruạṛ
a O��f): � @ 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 dZd ZdZdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zd+d,� Zd-d.� Zd/d0� Z d1S )2�UnifiedAgentParserz source parser object. �AUDITD�JSON�TSV�CSV�NONE�SYSLOG�APACHE2�APACHE_ERROR�MSGPACK�REGEXP� MULTILINE�GROK�MULTILINE_GROKc 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.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.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", "JSON", "TSV", "CSV", "NONE", "SYSLOG", "APACHE2", "APACHE_ERROR", "MSGPACK", "REGEXP", "MULTILINE", "GROK", "MULTILINE_GROK", '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� parserType�fieldTimeKeyr �nullValuePattern�isNullEmptyString�isEstimateCurrentEvent� isKeepTimeKey�timeoutInMillisecondsN) � swagger_types� 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� r2 ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/logging/models/unified_agent_parser.py�__init__D s4 9��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 dS dS )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 �UnifiedAgentMultilineGrokParserr �UnifiedJSONParserr �UnifiedAgentGrokParserr �UnifiedAgentNoneParserr �UnifiedAgentSyslogParserr �UnifiedAgentAuditdParserr �UnifiedAgentApache2Parserr �UnifiedAgentRegexParserr �UnifiedAgentMultilineParserr �UnifiedAgentTsvParserr �UnifiedAgentApacheErrorParserr �UnifiedAgentMsgpackParserr �UnifiedAgentCsvParserr Nr2 )�object_dictionary�typer2 r2 r3 �get_subtype� s8 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", "JSON", "TSV", "CSV", "NONE", "SYSLOG", "APACHE2", "APACHE_ERROR", "MSGPACK", "REGEXP", "MULTILINE", "GROK", "MULTILINE_GROK", '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( �r0 r2 r2 r3 r � s zUnifiedAgentParser.parser_typec C s g d�}t ||�sd}|| _dS )z� Sets the parser_type of this UnifiedAgentParser. Type of fluent parser. :param parser_type: The parser_type of this UnifiedAgentParser. :type: str ) r r r r r r r r r r r r r �UNKNOWN_ENUM_VALUEN)r r( )r0 r �allowed_valuesr2 r2 r3 r � s c C s | j S )a Gets the field_time_key of this UnifiedAgentParser. Specify 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 UnifiedAgentParser. :rtype: str �r) rE r2 r2 r3 r � s z!UnifiedAgentParser.field_time_keyc C s || _ dS )a Sets the field_time_key of this UnifiedAgentParser. Specify 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 UnifiedAgentParser. :type: str NrH )r0 r r2 r2 r3 r � s c C s | j S )z� Gets the types of this UnifiedAgentParser. Specify types for converting a field into another type. :return: The types of this UnifiedAgentParser. :rtype: dict(str, str) �r* rE r2 r2 r3 r s zUnifiedAgentParser.typesc C s || _ dS )z� Sets the types of this UnifiedAgentParser. Specify types for converting a field into another type. :param types: The types of this UnifiedAgentParser. :type: dict(str, str) NrI )r0 r r2 r2 r3 r s c C s | j S )z� Gets the null_value_pattern of this UnifiedAgentParser. Specify the null value pattern. :return: The null_value_pattern of this UnifiedAgentParser. :rtype: str �r+ rE r2 r2 r3 r s z%UnifiedAgentParser.null_value_patternc C s || _ dS )z� Sets the null_value_pattern of this UnifiedAgentParser. Specify the null value pattern. :param null_value_pattern: The null_value_pattern of this UnifiedAgentParser. :type: str NrJ )r0 r r2 r2 r3 r & s c C s | j S )z� Gets the is_null_empty_string of this UnifiedAgentParser. If true, an empty string field is replaced with nil. :return: The is_null_empty_string of this UnifiedAgentParser. :rtype: bool �r, rE r2 r2 r3 r 2 s z'UnifiedAgentParser.is_null_empty_stringc C s || _ dS )z� Sets the is_null_empty_string of this UnifiedAgentParser. If true, an empty string field is replaced with nil. :param is_null_empty_string: The is_null_empty_string of this UnifiedAgentParser. :type: bool NrK )r0 r r2 r2 r3 r > s c C s | j S )a Gets the is_estimate_current_event of this UnifiedAgentParser. If true, use Fluent::EventTime.now(current time) as a timestamp when time_key is specified. :return: The is_estimate_current_event of this UnifiedAgentParser. :rtype: bool �r- rE r2 r2 r3 r J s z,UnifiedAgentParser.is_estimate_current_eventc C s || _ dS )a. Sets the is_estimate_current_event of this UnifiedAgentParser. If true, use Fluent::EventTime.now(current time) as a timestamp when time_key is specified. :param is_estimate_current_event: The is_estimate_current_event of this UnifiedAgentParser. :type: bool NrL )r0 r r2 r2 r3 r V s c C s | j S )z� Gets the is_keep_time_key of this UnifiedAgentParser. If true, keep time field in the record. :return: The is_keep_time_key of this UnifiedAgentParser. :rtype: bool �r. rE r2 r2 r3 r b s z#UnifiedAgentParser.is_keep_time_keyc C s || _ dS )z� Sets the is_keep_time_key of this UnifiedAgentParser. If true, keep time field in the record. :param is_keep_time_key: The is_keep_time_key of this UnifiedAgentParser. :type: bool NrM )r0 r r2 r2 r3 r n s c C s | j S )a Gets the timeout_in_milliseconds of this UnifiedAgentParser. Specify the timeout for parse processing. This is mainly for detecting an incorrect regexp pattern. :return: The timeout_in_milliseconds of this UnifiedAgentParser. :rtype: int �r/ rE r2 r2 r3 r z s z*UnifiedAgentParser.timeout_in_millisecondsc C s || _ dS )a/ Sets the timeout_in_milliseconds of this UnifiedAgentParser. Specify the timeout for parse processing. This is mainly for detecting an incorrect regexp pattern. :param timeout_in_milliseconds: The timeout_in_milliseconds of this UnifiedAgentParser. :type: int NrN )r0 r r2 r2 r3 r � s c C s t | �S �N)r rE r2 r2 r3 �__repr__� s zUnifiedAgentParser.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r0 �otherr2 r2 r3 �__eq__� s zUnifiedAgentParser.__eq__c C s | |k S rO r2 rR r2 r2 r3 �__ne__� s zUnifiedAgentParser.__ne__N)!�__name__� __module__�__qualname__�__doc__�PARSER_TYPE_AUDITD�PARSER_TYPE_JSON�PARSER_TYPE_TSV�PARSER_TYPE_CSV�PARSER_TYPE_NONE�PARSER_TYPE_SYSLOG�PARSER_TYPE_APACHE2�PARSER_TYPE_APACHE_ERROR�PARSER_TYPE_MSGPACK�PARSER_TYPE_REGEXP�PARSER_TYPE_MULTILINE�PARSER_TYPE_GROK�PARSER_TYPE_MULTILINE_GROKr4 �staticmethodrD �propertyr �setterr r r r r r r rP rT rU r2 r2 r2 r3 r sh W 0 r N)�oci.utilr r r �oci.decoratorsr �objectr r2 r2 r2 r3 �<module> s
cải xoăn