ruạṛ
a ���f@Z � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Z e jd)d(� �Z ed*d+� �Z!e!jd,d+� �Z!ed-d.� �Z"e"jd/d.� �Z"ed0d1� �Z#e#jd2d1� �Z#ed3d4� �Z$e$jd5d4� �Z$ed6d7� �Z%e%jd8d7� �Z%ed9d:� �Z&e&jd;d:� �Z&ed<d=� �Z'e'jd>d=� �Z'ed?d@� �Z(e(jdAd@� �Z(dBdC� Z)dDdE� Z*dFdG� Z+dHS )I� Connectionz* The connection for a data asset. �ORACLE_ADWC_CONNECTION�ORACLE_ATP_CONNECTION� ORACLE_OBJECT_STORAGE_CONNECTION�ORACLEDB_CONNECTION�MYSQL_CONNECTION�GENERIC_JDBC_CONNECTION�BICC_CONNECTION�AMAZON_S3_CONNECTION�BIP_CONNECTION�LAKE_CONNECTION�ORACLE_PEOPLESOFT_CONNECTION�ORACLE_EBS_CONNECTION�ORACLE_SIEBEL_CONNECTION�HDFS_CONNECTION�MYSQL_HEATWAVE_CONNECTION�REST_NO_AUTH_CONNECTION�REST_BASIC_AUTH_CONNECTION�OAUTH2_CONNECTIONc K s� ddddddddddddddd �| _ d ddd ddddddddddd �| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _dS )a Initializes a new Connection 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.ConnectionFromAmazonS3` * :class:`~oci.data_integration.models.ConnectionFromBIP` * :class:`~oci.data_integration.models.ConnectionFromMySQL` * :class:`~oci.data_integration.models.ConnectionFromOAuth2` * :class:`~oci.data_integration.models.ConnectionFromJdbc` * :class:`~oci.data_integration.models.ConnectionFromBICC` * :class:`~oci.data_integration.models.ConnectionFromMySqlHeatWave` * :class:`~oci.data_integration.models.ConnectionFromRestBasicAuth` * :class:`~oci.data_integration.models.ConnectionFromObjectStorage` * :class:`~oci.data_integration.models.ConnectionFromAdwc` * :class:`~oci.data_integration.models.ConnectionFromAtp` * :class:`~oci.data_integration.models.ConnectionFromOracle` * :class:`~oci.data_integration.models.ConnectionFromOraclePeopleSoft` * :class:`~oci.data_integration.models.ConnectionFromHdfs` * :class:`~oci.data_integration.models.ConnectionFromOracleEbs` * :class:`~oci.data_integration.models.ConnectionFromOracleSiebel` * :class:`~oci.data_integration.models.ConnectionFromRestNoAuth` * :class:`~oci.data_integration.models.ConnectionFromLake` 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 Connection. Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: The value to assign to the key property of this Connection. :type key: str :param model_version: The value to assign to the model_version property of this Connection. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this Connection. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this Connection. :type name: str :param description: The value to assign to the description property of this Connection. :type description: str :param object_version: The value to assign to the object_version property of this Connection. :type object_version: int :param object_status: The value to assign to the object_status property of this Connection. :type object_status: int :param identifier: The value to assign to the identifier property of this Connection. :type identifier: str :param primary_schema: The value to assign to the primary_schema property of this Connection. :type primary_schema: oci.data_integration.models.Schema :param connection_properties: The value to assign to the connection_properties property of this Connection. :type connection_properties: list[oci.data_integration.models.ConnectionProperty] :param is_default: The value to assign to the is_default property of this Connection. :type is_default: bool :param metadata: The value to assign to the metadata property of this Connection. :type metadata: oci.data_integration.models.ObjectMetadata :param key_map: The value to assign to the key_map property of this Connection. :type key_map: dict(str, str) �strZParentReference�intZSchemazlist[ConnectionProperty]�boolZObjectMetadatazdict(str, str))� model_type�key� model_version� parent_ref�name�description�object_version� object_status� identifier�primary_schema�connection_properties� is_default�metadata�key_map� modelTyper ZmodelVersionZ parentRefr r! Z objectVersionZobjectStatusr$ Z primarySchemaZconnectionPropertiesZ isDefaultr( ZkeyMapN)Z swagger_typesZ attribute_map�_model_type�_key�_model_version�_parent_ref�_name�_description�_object_version�_object_status�_identifier�_primary_schema�_connection_properties�_is_default� _metadata�_key_map)�self�kwargs� r; �J/usr/lib/python3.9/site-packages/oci/data_integration/models/connection.py�__init__Z sX V��zConnection.__init__c C s� | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S |dkr\dS |dkrhdS |dkrtdS |dkr�dS |dkr�dS |dkr�dS |dkr�dS |dkr�dS |dkr�dS |d kr�d!S |d"kr�d#S |d$kr�d%S d&S 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 ZConnectionFromAmazonS3r ZConnectionFromBIPr ZConnectionFromMySQLr ZConnectionFromOAuth2r ZConnectionFromJdbcr ZConnectionFromBICCr ZConnectionFromMySqlHeatWaver ZConnectionFromRestBasicAuthr ZConnectionFromObjectStorager ZConnectionFromAdwcr ZConnectionFromAtpr ZConnectionFromOracler ZConnectionFromOraclePeopleSoftr ZConnectionFromHdfsr ZConnectionFromOracleEbsr ZConnectionFromOracleSiebelr ZConnectionFromRestNoAuthr ZConnectionFromLaker Nr; )Zobject_dictionary�typer; r; r<