ruạṛ
a ���f�B � @ 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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze d d!� �Zejd"d!� �Ze d#d$� �Zejd%d$� �Ze d&d'� �Zejd(d'� �Ze d)d*� �Zejd+d*� �Ze d,d-� �Zejd.d-� �Ze d/d0� �Zejd1d0� �Zd2d3� Zd4d5� Zd6d7� Zd8S )9�CreateConnectionDetailsz1 The information about a new Connection. �MYSQL�ORACLEc K s� ddddddddddddddd�| _ dddd d ddd ddddddd�| _d| _d| _d| _d| _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.database_migration.models.CreateMysqlConnectionDetails` * :class:`~oci.database_migration.models.CreateOracleConnectionDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param connection_type: The value to assign to the connection_type property of this CreateConnectionDetails. Allowed values for this property are: "MYSQL", "ORACLE" :type connection_type: str :param display_name: The value to assign to the display_name property of this CreateConnectionDetails. :type display_name: str :param description: The value to assign to the description property of this CreateConnectionDetails. :type description: str :param compartment_id: The value to assign to the compartment_id property of this CreateConnectionDetails. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateConnectionDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateConnectionDetails. :type defined_tags: dict(str, dict(str, object)) :param vault_id: The value to assign to the vault_id property of this CreateConnectionDetails. :type vault_id: str :param key_id: The value to assign to the key_id property of this CreateConnectionDetails. :type key_id: str :param subnet_id: The value to assign to the subnet_id property of this CreateConnectionDetails. :type subnet_id: str :param nsg_ids: The value to assign to the nsg_ids property of this CreateConnectionDetails. :type nsg_ids: list[str] :param username: The value to assign to the username property of this CreateConnectionDetails. :type username: str :param password: The value to assign to the password property of this CreateConnectionDetails. :type password: str :param replication_username: The value to assign to the replication_username property of this CreateConnectionDetails. :type replication_username: str :param replication_password: The value to assign to the replication_password property of this CreateConnectionDetails. :type replication_password: str �strzdict(str, str)zdict(str, dict(str, object))z list[str])�connection_type�display_name�description�compartment_id� freeform_tags�defined_tags�vault_id�key_id� subnet_id�nsg_ids�username�password�replication_username�replication_password�connectionTypeZdisplayNamer Z compartmentIdZfreeformTagsZdefinedTagsZvaultIdZkeyIdZsubnetIdZnsgIdsr r ZreplicationUsernameZreplicationPasswordN)Z swagger_typesZ attribute_map�_connection_type� _display_name�_description�_compartment_id�_freeform_tags� _defined_tags� _vault_id�_key_id� _subnet_id�_nsg_ids� _username� _password�_replication_username�_replication_password)�self�kwargs� r) �[/usr/lib/python3.9/site-packages/oci/database_migration/models/create_connection_details.py�__init__ sX E��z CreateConnectionDetails.__init__c C s( | d }|dkrdS |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 ZCreateMysqlConnectionDetailsr ZCreateOracleConnectionDetailsr Nr) )Zobject_dictionary�typer) r) r* �get_subtype� s z#CreateConnectionDetails.get_subtypec C s | j S )a4 **[Required]** Gets the connection_type of this CreateConnectionDetails. Defines the type of connection. For example, ORACLE. Allowed values for this property are: "MYSQL", "ORACLE" :return: The connection_type of this CreateConnectionDetails. :rtype: str )r �r'