ruạṛ
a N��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 ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z dd� Zdd� Zdd� ZdS )�AbstractFormatAttributez( The abstract format attribute. �JSON_FORMAT� CSV_FORMAT�AVRO_FORMATc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new AbstractFormatAttribute 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.data_integration.models.AvroFormatAttribute` * :class:`~oci.data_integration.models.JsonFormatAttribute` * :class:`~oci.data_integration.models.CsvFormatAttribute` * :class:`~oci.data_integration.models.ParquetFormatAttribute` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param model_type: The value to assign to the model_type property of this AbstractFormatAttribute. Allowed values for this property are: "JSON_FORMAT", "CSV_FORMAT", "AVRO_FORMAT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param is_file_pattern: The value to assign to the is_file_pattern property of this AbstractFormatAttribute. :type is_file_pattern: bool �str�bool)� model_type�is_file_pattern� modelType� isFilePatternN)� swagger_types� attribute_map�_model_type�_is_file_pattern)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_integration/models/abstract_format_attribute.py�__init__ s ��z AbstractFormatAttribute.__init__c C s@ | d }|dkrdS |dkr dS |dkr,dS |dkr8d S d S 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 �AvroFormatAttributer �JsonFormatAttributer �CsvFormatAttribute�PARQUET_FORMAT�ParquetFormatAttributer Nr )�object_dictionary�typer r r �get_subtype@ s z#AbstractFormatAttribute.get_subtypec C s | j S )a� **[Required]** Gets the model_type of this AbstractFormatAttribute. The type of the format attribute. Allowed values for this property are: "JSON_FORMAT", "CSV_FORMAT", "AVRO_FORMAT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this AbstractFormatAttribute. :rtype: str )r �r r r r r V s z"AbstractFormatAttribute.model_typec C s g d�}t ||�sd}|| _dS )z� Sets the model_type of this AbstractFormatAttribute. The type of the format attribute. :param model_type: The model_type of this AbstractFormatAttribute. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r e s c C s | j S )z� Gets the is_file_pattern of this AbstractFormatAttribute. Defines whether a file pattern is supported. :return: The is_file_pattern of this AbstractFormatAttribute. :rtype: bool �r r! r r r r t s z'AbstractFormatAttribute.is_file_patternc C s || _ dS )z� Sets the is_file_pattern of this AbstractFormatAttribute. Defines whether a file pattern is supported. :param is_file_pattern: The is_file_pattern of this AbstractFormatAttribute. :type: bool Nr$ )r r r r r r � s c C s t | �S �N)r r! r r r �__repr__� s z AbstractFormatAttribute.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zAbstractFormatAttribute.__eq__c C s | |k S r% r r( r r r �__ne__� s zAbstractFormatAttribute.__ne__N)�__name__� __module__�__qualname__�__doc__�MODEL_TYPE_JSON_FORMAT�MODEL_TYPE_CSV_FORMAT�MODEL_TYPE_AVRO_FORMATr �staticmethodr �propertyr �setterr r&