ruạṛ
a ���f)Y � @ 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'd?d@� Z(dAdB� Z)dCdD� Z*dES )F�ConnectionDetailsz2 The connection details 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� dddddddddddddd� | _ d d ddd ddddddddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _dS )a� Initializes a new ConnectionDetails 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.ConnectionFromJdbcDetails` * :class:`~oci.data_integration.models.ConnectionFromRestNoAuthDetails` * :class:`~oci.data_integration.models.ConnectionFromAmazonS3Details` * :class:`~oci.data_integration.models.ConnectionFromObjectStorageDetails` * :class:`~oci.data_integration.models.ConnectionFromOracleSiebelDetails` * :class:`~oci.data_integration.models.ConnectionFromHdfsDetails` * :class:`~oci.data_integration.models.ConnectionFromMySQLDetails` * :class:`~oci.data_integration.models.ConnectionFromMySqlHeatWaveDetails` * :class:`~oci.data_integration.models.ConnectionFromAtpDetails` * :class:`~oci.data_integration.models.ConnectionFromOraclePeopleSoftDetails` * :class:`~oci.data_integration.models.ConnectionFromRestBasicAuthDetails` * :class:`~oci.data_integration.models.ConnectionFromOAuth2Details` * :class:`~oci.data_integration.models.ConnectionFromBICCDetails` * :class:`~oci.data_integration.models.ConnectionFromAdwcDetails` * :class:`~oci.data_integration.models.ConnectionFromOracleDetails` * :class:`~oci.data_integration.models.ConnectionFromOracleEbsDetails` * :class:`~oci.data_integration.models.ConnectionFromLakeDetails` * :class:`~oci.data_integration.models.ConnectionFromBipDetails` 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 ConnectionDetails. 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" :type model_type: str :param key: The value to assign to the key property of this ConnectionDetails. :type key: str :param model_version: The value to assign to the model_version property of this ConnectionDetails. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this ConnectionDetails. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this ConnectionDetails. :type name: str :param description: The value to assign to the description property of this ConnectionDetails. :type description: str :param object_version: The value to assign to the object_version property of this ConnectionDetails. :type object_version: int :param object_status: The value to assign to the object_status property of this ConnectionDetails. :type object_status: int :param identifier: The value to assign to the identifier property of this ConnectionDetails. :type identifier: str :param primary_schema: The value to assign to the primary_schema property of this ConnectionDetails. :type primary_schema: oci.data_integration.models.Schema :param connection_properties: The value to assign to the connection_properties property of this ConnectionDetails. :type connection_properties: list[oci.data_integration.models.ConnectionProperty] :param is_default: The value to assign to the is_default property of this ConnectionDetails. :type is_default: bool :param metadata: The value to assign to the metadata property of this ConnectionDetails. :type metadata: oci.data_integration.models.ObjectMetadata �strZParentReference�intZSchemazlist[ConnectionProperty]�boolZObjectMetadata) � model_type�key� model_version� parent_ref�name�description�object_version� object_status� identifier�primary_schema�connection_properties� is_default�metadata� modelTyper ZmodelVersionZ parentRefr r! Z objectVersionZobjectStatusr$ Z primarySchemaZconnectionPropertiesZ isDefaultr( N)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)�self�kwargs� r9 �R/usr/lib/python3.9/site-packages/oci/data_integration/models/connection_details.py�__init__Z sR Q��zConnectionDetails.__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 ZConnectionFromJdbcDetailsr ZConnectionFromRestNoAuthDetailsr ZConnectionFromAmazonS3Detailsr Z"ConnectionFromObjectStorageDetailsr Z!ConnectionFromOracleSiebelDetailsr ZConnectionFromHdfsDetailsr ZConnectionFromMySQLDetailsr Z"ConnectionFromMySqlHeatWaveDetailsr ZConnectionFromAtpDetailsr Z%ConnectionFromOraclePeopleSoftDetailsr Z"ConnectionFromRestBasicAuthDetailsr ZConnectionFromOAuth2Detailsr ZConnectionFromBICCDetailsr ZConnectionFromAdwcDetailsr ZConnectionFromOracleDetailsr ZConnectionFromOracleEbsDetailsr ZConnectionFromLakeDetailsr ZConnectionFromBipDetailsr Nr9 )Zobject_dictionary�typer9 r9 r: �get_subtype� sL zConnectionDetails.get_subtypec C s | j S )a� **[Required]** Gets the model_type of this ConnectionDetails. The type of the 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" :return: The model_type of this ConnectionDetails. :rtype: str )r* �r7 r9 r9 r: r s zConnectionDetails.model_typec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the model_type of this ConnectionDetails. The type of the connection. :param model_type: The model_type of this ConnectionDetails. :type: str )r r r r r r r r r r r r r r r r r r z7Invalid value for `model_type`, must be None or one of N)r � ValueErrorr* )r7 r Zallowed_valuesr9 r9 r: r & s �c C s | j S )a* Gets the key of this ConnectionDetails. Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. :return: The key of this ConnectionDetails. :rtype: str �r+ r>