ruạṛ
a ���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 @ sn e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Ze dd � �Zejdd � �Zdd� Zdd� Zdd� ZdS )�DataEntityDetailsz) The data entity details object. �VIEW_ENTITY�TABLE_ENTITY�FILE_ENTITY� SQL_ENTITY� OBJECT_ENTITY�DATA_STORE_ENTITYc K s ddi| _ ddi| _d| _dS )a� Initializes a new DataEntityDetails 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.DataEntityFromFileEntityDetails` * :class:`~oci.data_integration.models.DataEntityFromViewEntityDetails` * :class:`~oci.data_integration.models.DataEntityFromSqlEntityDetails` * :class:`~oci.data_integration.models.DataEntityFromDataStoreEntityDetails` * :class:`~oci.data_integration.models.DataEntityFromObjectEntityDetails` * :class:`~oci.data_integration.models.DataEntityFromTableEntityDetails` 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 DataEntityDetails. Allowed values for this property are: "VIEW_ENTITY", "TABLE_ENTITY", "FILE_ENTITY", "SQL_ENTITY", "OBJECT_ENTITY", "DATA_STORE_ENTITY" :type model_type: str � model_type�str� modelTypeN)Z swagger_typesZ attribute_map�_model_type)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/data_integration/models/data_entity_details.py�__init__* s ��zDataEntityDetails.__init__c C sX | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S 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 ZDataEntityFromFileEntityDetailsr ZDataEntityFromViewEntityDetailsr ZDataEntityFromSqlEntityDetailsr Z$DataEntityFromDataStoreEntityDetailsr Z!DataEntityFromObjectEntityDetailsr Z DataEntityFromTableEntityDetailsr Nr )Zobject_dictionary�typer r r �get_subtypeH s zDataEntityDetails.get_subtypec C s | j S )aN **[Required]** Gets the model_type of this DataEntityDetails. The data entity type. Allowed values for this property are: "VIEW_ENTITY", "TABLE_ENTITY", "FILE_ENTITY", "SQL_ENTITY", "OBJECT_ENTITY", "DATA_STORE_ENTITY" :return: The model_type of this DataEntityDetails. :rtype: str )r �r r r r r d s zDataEntityDetails.model_typec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the model_type of this DataEntityDetails. The data entity type. :param model_type: The model_type of this DataEntityDetails. :type: str )r r r r r r z7Invalid value for `model_type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r r s �c C s t | �S �N)r r r r r �__repr__� s zDataEntityDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDataEntityDetails.__eq__c C s | |k S r r r r r r �__ne__� s zDataEntityDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZMODEL_TYPE_VIEW_ENTITYZMODEL_TYPE_TABLE_ENTITYZMODEL_TYPE_FILE_ENTITYZMODEL_TYPE_SQL_ENTITYZMODEL_TYPE_OBJECT_ENTITYZMODEL_TYPE_DATA_STORE_ENTITYr �staticmethodr �propertyr �setterr r r r r r r r s"