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                   @   st   e Zd Zd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dd Zdd Zdd ZdS )	FieldInfoz,
    Contains field schema information.
    STRINGNUMBERBOOLEANARRAYc                 K   s(   ddd| _ ddd| _d| _d| _dS )a  
        Initializes a new FieldInfo object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param field_name:
            The value to assign to the field_name property of this FieldInfo.
        :type field_name: str

        :param field_type:
            The value to assign to the field_type property of this FieldInfo.
            Allowed values for this property are: "STRING", "NUMBER", "BOOLEAN", "ARRAY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type field_type: str

        str)
field_name
field_typeZ	fieldNameZ	fieldTypeN)Zswagger_typesZattribute_map_field_name_field_type)selfkwargs r   Gusr/lib/python3.10/site-packages/oci/loggingsearch/models/field_info.py__init__"   s   
zFieldInfo.__init__c                 C      | j S )z
        **[Required]** Gets the field_name of this FieldInfo.
        Field name


        :return: The field_name of this FieldInfo.
        :rtype: str
        r   r   r   r   r   r   ?   s   
zFieldInfo.field_namec                 C   s
   || _ dS )z
        Sets the field_name of this FieldInfo.
        Field name


        :param field_name: The field_name of this FieldInfo.
        :type: str
        Nr   )r   r   r   r   r   r   K   s   

c                 C   r   )aI  
        **[Required]** Gets the field_type of this FieldInfo.
        Field type -
        * `STRING`: A sequence of characters.
        * `NUMBER`: Numeric type which can be an integer or floating point.
        * `BOOLEAN`: Either true or false.
        * `ARRAY`: An ordered collection of values.

        Allowed values for this property are: "STRING", "NUMBER", "BOOLEAN", "ARRAY", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The field_type of this FieldInfo.
        :rtype: str
        )r   r   r   r   r   r   W   s   zFieldInfo.field_typec                 C   s    g d}t ||sd}|| _dS )ax  
        Sets the field_type of this FieldInfo.
        Field type -
        * `STRING`: A sequence of characters.
        * `NUMBER`: Numeric type which can be an integer or floating point.
        * `BOOLEAN`: Either true or false.
        * `ARRAY`: An ordered collection of values.


        :param field_type: The field_type of this FieldInfo.
        :type: str
        )r   r   r	   r
   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   j   s   

c                 C   s   t | S N)r   r   r   r   r   __repr__}   s   zFieldInfo.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zFieldInfo.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zFieldInfo.__ne__N)__name__
__module____qualname____doc__ZFIELD_TYPE_STRINGZFIELD_TYPE_NUMBERZFIELD_TYPE_BOOLEANZFIELD_TYPE_ARRAYr   propertyr   setterr   r   r   r   r   r   r   r   r      s$    



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   