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 @ sr e Zd ZdZdZdZdZdZdZdZ dZ d d � Zedd� �Z ed d� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�DataEntityDetailsz) The data entity details object. �VIEW_ENTITY�TABLE_ENTITY�FILE_ENTITY�DATA_STORE_ENTITY� SQL_ENTITY�DERIVED_ENTITY�MESSAGE_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_connectivity.models.DataEntityFromFileEntityDetails` * :class:`~oci.data_connectivity.models.DataEntityFromViewEntityDetails` * :class:`~oci.data_connectivity.models.DataEntityFromSqlEntityDetails` * :class:`~oci.data_connectivity.models.DataEntityFromDataStoreEntityDetails` * :class:`~oci.data_connectivity.models.DataEntityFromMessageEntityDetails` * :class:`~oci.data_connectivity.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", "DATA_STORE_ENTITY", "SQL_ENTITY", "DERIVED_ENTITY", "MESSAGE_ENTITY" :type model_type: str � model_type�str� modelTypeN)� swagger_types� attribute_map�_model_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_connectivity/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 �DataEntityFromFileEntityDetailsr �DataEntityFromViewEntityDetailsr �DataEntityFromSqlEntityDetailsr �$DataEntityFromDataStoreEntityDetailsr �"DataEntityFromMessageEntityDetailsr � DataEntityFromTableEntityDetailsr Nr )�object_dictionary�typer r r �get_subtypeJ s zDataEntityDetails.get_subtypec C s | j S )aa **[Required]** Gets the model_type of this DataEntityDetails. The data entity type. Allowed values for this property are: "VIEW_ENTITY", "TABLE_ENTITY", "FILE_ENTITY", "DATA_STORE_ENTITY", "SQL_ENTITY", "DERIVED_ENTITY", "MESSAGE_ENTITY" :return: The model_type of this DataEntityDetails. :rtype: str )r �r r r r r f 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 r z:Invalid value for `model_type`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r t s ��c C s t | �S �N)r r"