ruạṛ
a ���f�N � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� Connection� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s8 e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zd*d+� Zd,d-� Zd.d/� Zd0S )1�MysqlConnectionz8 Represents the metadata of a MySQL Connection. �AMAZON_AURORA_MYSQL�AMAZON_RDS_MYSQL�AZURE_MYSQL�GOOGLE_CLOUD_SQL_MYSQL�MYSQL_SERVER� OCI_MYSQL�PLAIN�TLS�MTLS�DISABLED� PREFERRED�REQUIRED� VERIFY_CA�VERIFY_IDENTITYc K sP dddddddddddddddddddddddddddddddd �| _ d ddd ddddddddddddddddddd d!d"d#d$d%d&d'd(d �| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _ d)| _ d)| _d)| _d)| _ d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _ d*| _d)S )+a~ Initializes a new MysqlConnection object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.MysqlConnection.connection_type` attribute of this class is ``MYSQL`` and it should not be changed. 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 MysqlConnection. Allowed values for this property are: "MYSQL", "ORACLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type connection_type: str :param id: The value to assign to the id property of this MysqlConnection. :type id: str :param display_name: The value to assign to the display_name property of this MysqlConnection. :type display_name: str :param description: The value to assign to the description property of this MysqlConnection. :type description: str :param compartment_id: The value to assign to the compartment_id property of this MysqlConnection. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this MysqlConnection. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this MysqlConnection. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this MysqlConnection. :type system_tags: dict(str, dict(str, object)) :param lifecycle_state: The value to assign to the lifecycle_state property of this MysqlConnection. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this MysqlConnection. :type lifecycle_details: str :param time_created: The value to assign to the time_created property of this MysqlConnection. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this MysqlConnection. :type time_updated: datetime :param vault_id: The value to assign to the vault_id property of this MysqlConnection. :type vault_id: str :param key_id: The value to assign to the key_id property of this MysqlConnection. :type key_id: str :param subnet_id: The value to assign to the subnet_id property of this MysqlConnection. :type subnet_id: str :param ingress_ips: The value to assign to the ingress_ips property of this MysqlConnection. :type ingress_ips: list[oci.database_migration.models.IngressIpDetails] :param nsg_ids: The value to assign to the nsg_ids property of this MysqlConnection. :type nsg_ids: list[str] :param username: The value to assign to the username property of this MysqlConnection. :type username: str :param password: The value to assign to the password property of this MysqlConnection. :type password: str :param replication_username: The value to assign to the replication_username property of this MysqlConnection. :type replication_username: str :param replication_password: The value to assign to the replication_password property of this MysqlConnection. :type replication_password: str :param secret_id: The value to assign to the secret_id property of this MysqlConnection. :type secret_id: str :param private_endpoint_id: The value to assign to the private_endpoint_id property of this MysqlConnection. :type private_endpoint_id: str :param technology_type: The value to assign to the technology_type property of this MysqlConnection. Allowed values for this property are: "AMAZON_AURORA_MYSQL", "AMAZON_RDS_MYSQL", "AZURE_MYSQL", "GOOGLE_CLOUD_SQL_MYSQL", "MYSQL_SERVER", "OCI_MYSQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type technology_type: str :param host: The value to assign to the host property of this MysqlConnection. :type host: str :param port: The value to assign to the port property of this MysqlConnection. :type port: int :param database_name: The value to assign to the database_name property of this MysqlConnection. :type database_name: str :param security_protocol: The value to assign to the security_protocol property of this MysqlConnection. Allowed values for this property are: "PLAIN", "TLS", "MTLS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type security_protocol: str :param ssl_mode: The value to assign to the ssl_mode property of this MysqlConnection. Allowed values for this property are: "DISABLED", "PREFERRED", "REQUIRED", "VERIFY_CA", "VERIFY_IDENTITY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type ssl_mode: str :param additional_attributes: The value to assign to the additional_attributes property of this MysqlConnection. :type additional_attributes: list[oci.database_migration.models.NameValuePair] :param db_system_id: The value to assign to the db_system_id property of this MysqlConnection. :type db_system_id: str �strzdict(str, str)zdict(str, dict(str, object))Zdatetimezlist[IngressIpDetails]z list[str]�intzlist[NameValuePair])Zconnection_type�idZdisplay_name�descriptionZcompartment_idZ freeform_tagsZdefined_tagsZsystem_tagsZlifecycle_stateZlifecycle_detailsZtime_createdZtime_updatedZvault_idZkey_idZ subnet_idZingress_ipsZnsg_ids�username�passwordZreplication_usernameZreplication_passwordZ secret_idZprivate_endpoint_id�technology_type�host�port� database_name�security_protocol�ssl_mode�additional_attributes�db_system_idZconnectionTyper ZdisplayNamer Z compartmentIdZfreeformTagsZdefinedTagsZ systemTagsZlifecycleStateZlifecycleDetailsZtimeCreatedZtimeUpdatedZvaultIdZkeyIdZsubnetIdZ ingressIpsZnsgIdsr r ZreplicationUsernameZreplicationPasswordZsecretIdZprivateEndpointIdZtechnologyTyper r ZdatabaseNameZsecurityProtocolZsslModeZadditionalAttributesZ dbSystemIdNZMYSQL)!Z swagger_typesZ attribute_mapZ_connection_typeZ_idZ _display_nameZ_descriptionZ_compartment_idZ_freeform_tagsZ _defined_tagsZ_system_tagsZ_lifecycle_stateZ_lifecycle_detailsZ _time_createdZ _time_updatedZ _vault_idZ_key_idZ _subnet_idZ_ingress_ipsZ_nsg_idsZ _usernameZ _passwordZ_replication_usernameZ_replication_passwordZ _secret_idZ_private_endpoint_id�_technology_type�_host�_port�_database_name�_security_protocol� _ssl_mode�_additional_attributes� _db_system_id)�self�kwargs� r/ �R/usr/lib/python3.9/site-packages/oci/database_migration/models/mysql_connection.py�__init__J s� �#�"zMysqlConnection.__init__c C s | j S )a; **[Required]** Gets the technology_type of this MysqlConnection. The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL HeatWave Database Service Allowed values for this property are: "AMAZON_AURORA_MYSQL", "AMAZON_RDS_MYSQL", "AZURE_MYSQL", "GOOGLE_CLOUD_SQL_MYSQL", "MYSQL_SERVER", "OCI_MYSQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The technology_type of this MysqlConnection. :rtype: str )r% �r- r/ r/ r0 r < s zMysqlConnection.technology_typec C s g d�}t ||�sd}|| _dS )a& Sets the technology_type of this MysqlConnection. The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL HeatWave Database Service :param technology_type: The technology_type of this MysqlConnection. :type: str )r r r r r r �UNKNOWN_ENUM_VALUEN)r r% )r- r �allowed_valuesr/ r/ r0 r L s c C s | j S )z� Gets the host of this MysqlConnection. The IP Address of the host. :return: The host of this MysqlConnection. :rtype: str �r&