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 @ sj e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z dd� Zdd� Zdd� ZdS )�AbstractWriteAttributez' The abstract write attribute. �ORACLE_WRITE_ATTRIBUTE�ORACLE_ATP_WRITE_ATTRIBUTE�ORACLE_ADWC_WRITE_ATTRIBUTE�OBJECT_STORAGE_WRITE_ATTRIBUTE�HDFS_WRITE_ATTRIBUTEc K s ddi| _ ddi| _d| _dS )aG Initializes a new AbstractWriteAttribute 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.OracleAtpWriteAttributes` * :class:`~oci.data_connectivity.models.HdfsWriteAttributes` * :class:`~oci.data_connectivity.models.OracleWriteAttributes` * :class:`~oci.data_connectivity.models.OracleAdwcWriteAttributes` * :class:`~oci.data_connectivity.models.ObjectStorageWriteAttributes` 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 AbstractWriteAttribute. Allowed values for this property are: "ORACLE_WRITE_ATTRIBUTE", "ORACLE_ATP_WRITE_ATTRIBUTE", "ORACLE_ADWC_WRITE_ATTRIBUTE", "OBJECT_STORAGE_WRITE_ATTRIBUTE", "HDFS_WRITE_ATTRIBUTE" :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/abstract_write_attribute.py�__init__$ s ��zAbstractWriteAttribute.__init__c C sL | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS dS d S )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 �OracleAtpWriteAttributesr �HdfsWriteAttributesr �OracleWriteAttributesr �OracleAdwcWriteAttributesr �ObjectStorageWriteAttributesr Nr )�object_dictionary�typer r r �get_subtypeA s z"AbstractWriteAttribute.get_subtypec C s | j S )a� **[Required]** Gets the model_type of this AbstractWriteAttribute. The type of the abstract write attribute. Allowed values for this property are: "ORACLE_WRITE_ATTRIBUTE", "ORACLE_ATP_WRITE_ATTRIBUTE", "ORACLE_ADWC_WRITE_ATTRIBUTE", "OBJECT_STORAGE_WRITE_ATTRIBUTE", "HDFS_WRITE_ATTRIBUTE" :return: The model_type of this AbstractWriteAttribute. :rtype: str )r �r r r r r Z s z!AbstractWriteAttribute.model_typec C s* g d�}t ||�s td�|���|| _dS )z� Sets the model_type of this AbstractWriteAttribute. The type of the abstract write attribute. :param model_type: The model_type of this AbstractWriteAttribute. :type: str )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 h s ��c C s t | �S �N)r r r r r �__repr__z s zAbstractWriteAttribute.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__} s zAbstractWriteAttribute.__eq__c C s | |k S r# r r&