ruạṛ
a N��fpE � @ 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 @ sp e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zed-d.� �Zejd/d.� �Zd0d1� Zd2d3� Z d4d5� Z!d6S )7�CreateConnectionDetailsz: Properties used in connection create operations. �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_HOUSE_CONNECTION�REST_NO_AUTH_CONNECTION�REST_BASIC_AUTH_CONNECTIONc K sx ddddddddddd� | _ ddd d ddd dddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _dS )a� Initializes a new CreateConnectionDetails 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.CreateConnectionFromMySQL` * :class:`~oci.data_integration.models.CreateConnectionFromAmazonS3` * :class:`~oci.data_integration.models.CreateConnectionFromLakehouse` * :class:`~oci.data_integration.models.CreateConnectionFromJdbc` * :class:`~oci.data_integration.models.CreateConnectionFromBICC` * :class:`~oci.data_integration.models.CreateConnectionFromAtp` * :class:`~oci.data_integration.models.CreateConnectionFromBIP` * :class:`~oci.data_integration.models.CreateConnectionFromRestBasicAuth` * :class:`~oci.data_integration.models.CreateConnectionFromAdwc` * :class:`~oci.data_integration.models.CreateConnectionFromRestNoAuth` * :class:`~oci.data_integration.models.CreateConnectionFromOracle` * :class:`~oci.data_integration.models.CreateConnectionFromObjectStorage` 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 CreateConnectionDetails. 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_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" :type model_type: str :param key: The value to assign to the key property of this CreateConnectionDetails. :type key: str :param model_version: The value to assign to the model_version property of this CreateConnectionDetails. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this CreateConnectionDetails. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this CreateConnectionDetails. :type name: str :param description: The value to assign to the description property of this CreateConnectionDetails. :type description: str :param object_status: The value to assign to the object_status property of this CreateConnectionDetails. :type object_status: int :param identifier: The value to assign to the identifier property of this CreateConnectionDetails. :type identifier: str :param connection_properties: The value to assign to the connection_properties property of this CreateConnectionDetails. :type connection_properties: list[oci.data_integration.models.ConnectionProperty] :param registry_metadata: The value to assign to the registry_metadata property of this CreateConnectionDetails. :type registry_metadata: oci.data_integration.models.RegistryMetadata �str�ParentReference�intzlist[ConnectionProperty]�RegistryMetadata) � model_type�key� model_version� parent_ref�name�description� object_status� identifier�connection_properties�registry_metadata� modelTyper �modelVersion� parentRefr r �objectStatusr �connectionProperties�registryMetadataN)� swagger_types� attribute_map�_model_type�_key�_model_version�_parent_ref�_name�_description�_object_status�_identifier�_connection_properties�_registry_metadata)�self�kwargs� r5 ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_integration/models/create_connection_details.py�__init__@ s@ ?�� z CreateConnectionDetails.__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 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 �CreateConnectionFromMySQLr �CreateConnectionFromAmazonS3r �CreateConnectionFromLakehouser �CreateConnectionFromJdbcr �CreateConnectionFromBICCr �CreateConnectionFromAtpr �CreateConnectionFromBIPr �!CreateConnectionFromRestBasicAuthr �CreateConnectionFromAdwcr �CreateConnectionFromRestNoAuthr �CreateConnectionFromOracler �!CreateConnectionFromObjectStorager Nr5 )�object_dictionary�typer5 r5 r6 �get_subtype� s4 z#CreateConnectionDetails.get_subtypec C s | j S )a Gets the model_type of this CreateConnectionDetails. 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_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" :return: The model_type of this CreateConnectionDetails. :rtype: str )r) �r3 r5 r5 r6 r � s z"CreateConnectionDetails.model_typec C s* g d�}t ||�s td�|���|| _dS )z� Sets the model_type of this CreateConnectionDetails. The type of the connection. :param model_type: The model_type of this CreateConnectionDetails. :type: str )r r r r r r r r r r r r z:Invalid value for `model_type`, must be None or one of {0}N)r � ValueError�formatr) )r3 r �allowed_valuesr5 r5 r6 r � s ��c C s | j S )a6 Gets the key of this CreateConnectionDetails. 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 CreateConnectionDetails. :rtype: str �r* rG r5 r5 r6 r � s zCreateConnectionDetails.keyc C s || _ dS )a8 Sets the key of this CreateConnectionDetails. 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. :param key: The key of this CreateConnectionDetails. :type: str NrK )r3 r r5 r5 r6 r � s c C s | j S )z� Gets the model_version of this CreateConnectionDetails. The model version of an object. :return: The model_version of this CreateConnectionDetails. :rtype: str �r+ rG r5 r5 r6 r s z%CreateConnectionDetails.model_versionc C s || _ dS )z� Sets the model_version of this CreateConnectionDetails. The model version of an object. :param model_version: The model_version of this CreateConnectionDetails. :type: str NrL )r3 r r5 r5 r6 r s c C s | j S )z� Gets the parent_ref of this CreateConnectionDetails. :return: The parent_ref of this CreateConnectionDetails. :rtype: oci.data_integration.models.ParentReference �r, rG r5 r5 r6 r ! s z"CreateConnectionDetails.parent_refc C s || _ dS )z� Sets the parent_ref of this CreateConnectionDetails. :param parent_ref: The parent_ref of this CreateConnectionDetails. :type: oci.data_integration.models.ParentReference NrM )r3 r r5 r5 r6 r + s c C s | j S )a\ **[Required]** Gets the name of this CreateConnectionDetails. Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters. :return: The name of this CreateConnectionDetails. :rtype: str �r- rG r5 r5 r6 r 5 s zCreateConnectionDetails.namec C s || _ dS )aP Sets the name of this CreateConnectionDetails. Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters. :param name: The name of this CreateConnectionDetails. :type: str NrN )r3 r r5 r5 r6 r A s c C s | j S )z� Gets the description of this CreateConnectionDetails. User-defined description for the connection. :return: The description of this CreateConnectionDetails. :rtype: str �r. rG r5 r5 r6 r M s z#CreateConnectionDetails.descriptionc C s || _ dS )z� Sets the description of this CreateConnectionDetails. User-defined description for the connection. :param description: The description of this CreateConnectionDetails. :type: str NrO )r3 r r5 r5 r6 r Y s c C s | j S )a Gets the object_status of this CreateConnectionDetails. The status of an object that can be set to value 1 for shallow references across objects, other values reserved. :return: The object_status of this CreateConnectionDetails. :rtype: int �r/ rG r5 r5 r6 r e s z%CreateConnectionDetails.object_statusc C s || _ dS )a( Sets the object_status of this CreateConnectionDetails. The status of an object that can be set to value 1 for shallow references across objects, other values reserved. :param object_status: The object_status of this CreateConnectionDetails. :type: int NrP )r3 r r5 r5 r6 r q s c C s | j S )aI **[Required]** Gets the identifier of this CreateConnectionDetails. Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified. :return: The identifier of this CreateConnectionDetails. :rtype: str �r0 rG r5 r5 r6 r } s z"CreateConnectionDetails.identifierc C s || _ dS )aC Sets the identifier of this CreateConnectionDetails. Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified. :param identifier: The identifier of this CreateConnectionDetails. :type: str NrQ )r3 r r5 r5 r6 r � s c C s | j S )a Gets the connection_properties of this CreateConnectionDetails. The properties for the connection. :return: The connection_properties of this CreateConnectionDetails. :rtype: list[oci.data_integration.models.ConnectionProperty] �r1 rG r5 r5 r6 r � s z-CreateConnectionDetails.connection_propertiesc C s || _ dS )a# Sets the connection_properties of this CreateConnectionDetails. The properties for the connection. :param connection_properties: The connection_properties of this CreateConnectionDetails. :type: list[oci.data_integration.models.ConnectionProperty] NrR )r3 r r5 r5 r6 r � s c C s | j S )z� Gets the registry_metadata of this CreateConnectionDetails. :return: The registry_metadata of this CreateConnectionDetails. :rtype: oci.data_integration.models.RegistryMetadata �r2 rG r5 r5 r6 r � s z)CreateConnectionDetails.registry_metadatac C s || _ dS )z� Sets the registry_metadata of this CreateConnectionDetails. :param registry_metadata: The registry_metadata of this CreateConnectionDetails. :type: oci.data_integration.models.RegistryMetadata NrS )r3 r r5 r5 r6 r � s c C s t | �S �N)r rG r5 r5 r6 �__repr__� s z CreateConnectionDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r3 �otherr5 r5 r6 �__eq__� s zCreateConnectionDetails.__eq__c C s | |k S rT r5 rW r5 r5 r6 �__ne__� s zCreateConnectionDetails.__ne__N)"�__name__� __module__�__qualname__�__doc__�!MODEL_TYPE_ORACLE_ADWC_CONNECTION� MODEL_TYPE_ORACLE_ATP_CONNECTION�+MODEL_TYPE_ORACLE_OBJECT_STORAGE_CONNECTION�MODEL_TYPE_ORACLEDB_CONNECTION�MODEL_TYPE_MYSQL_CONNECTION�"MODEL_TYPE_GENERIC_JDBC_CONNECTION�MODEL_TYPE_BICC_CONNECTION�MODEL_TYPE_AMAZON_S3_CONNECTION�MODEL_TYPE_BIP_CONNECTION� MODEL_TYPE_LAKE_HOUSE_CONNECTION�"MODEL_TYPE_REST_NO_AUTH_CONNECTION�%MODEL_TYPE_REST_BASIC_AUTH_CONNECTIONr7 �staticmethodrF �propertyr �setterr r r r r r r r r rU rY rZ r5 r5 r5 r6 r sv c - r N)�oci.utilr r r �oci.decoratorsr �objectr r5 r5 r5 r6 �<module> s
cải xoăn