o
    ëÉ¶dîh  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sœ  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd „ ƒZejd!d „ ƒZed"d#„ ƒZejd$d#„ ƒZed%d&„ ƒZejd'd&„ ƒZed(d)„ ƒZejd*d)„ ƒZed+d,„ ƒZejd-d,„ ƒZed.d/„ ƒZejd0d/„ ƒZed1d2„ ƒZejd3d2„ ƒZed4d5„ ƒZejd6d5„ ƒZed7d8„ ƒZ e jd9d8„ ƒZ ed:d;„ ƒZ!e!jd<d;„ ƒZ!ed=d>„ ƒZ"e"jd?d>„ ƒZ"ed@dA„ ƒZ#e#jdBdA„ ƒZ#edCdD„ ƒZ$e$jdEdD„ ƒZ$edFdG„ ƒZ%e%jdHdG„ ƒZ%edIdJ„ ƒZ&e&jdKdJ„ ƒZ&edLdM„ ƒZ'e'jdNdM„ ƒZ'edOdP„ ƒZ(e(jdQdP„ ƒZ(dRdS„ Z)dTdU„ Z*dVdW„ Z+dXS )YÚ
Connectionz;
    Database Connection resource used for migrations.
    ÚMANUALÚ
AUTONOMOUSÚUSER_MANAGED_OCIÚORACLEÚ
RDS_ORACLEÚCREATINGÚUPDATINGÚACTIVEÚINACTIVEÚDELETINGÚDELETEDÚFAILEDc                 K   s€  i 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œ¥| _ i 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/d0d1d2dœ¥| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _	d3| _
d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3| _d3S )4a)  
        Initializes a new Connection object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Connection.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Connection.
        :type compartment_id: str

        :param database_type:
            The value to assign to the database_type property of this Connection.
            Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type database_type: str

        :param manual_database_sub_type:
            The value to assign to the manual_database_sub_type property of this Connection.
            Allowed values for this property are: "ORACLE", "RDS_ORACLE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type manual_database_sub_type: str

        :param is_dedicated:
            The value to assign to the is_dedicated property of this Connection.
        :type is_dedicated: bool

        :param display_name:
            The value to assign to the display_name property of this Connection.
        :type display_name: str

        :param database_id:
            The value to assign to the database_id property of this Connection.
        :type database_id: str

        :param connect_descriptor:
            The value to assign to the connect_descriptor property of this Connection.
        :type connect_descriptor: oci.database_migration.models.ConnectDescriptor

        :param credentials_secret_id:
            The value to assign to the credentials_secret_id property of this Connection.
        :type credentials_secret_id: str

        :param certificate_tdn:
            The value to assign to the certificate_tdn property of this Connection.
        :type certificate_tdn: str

        :param ssh_details:
            The value to assign to the ssh_details property of this Connection.
        :type ssh_details: oci.database_migration.models.SshDetails

        :param admin_credentials:
            The value to assign to the admin_credentials property of this Connection.
        :type admin_credentials: oci.database_migration.models.AdminCredentials

        :param private_endpoint:
            The value to assign to the private_endpoint property of this Connection.
        :type private_endpoint: oci.database_migration.models.PrivateEndpointDetails

        :param vault_details:
            The value to assign to the vault_details property of this Connection.
        :type vault_details: oci.database_migration.models.VaultDetails

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Connection.
            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 Connection.
        :type lifecycle_details: str

        :param time_created:
            The value to assign to the time_created property of this Connection.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Connection.
        :type time_updated: datetime

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Connection.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Connection.
        :type defined_tags: dict(str, dict(str, object))

        :param system_tags:
            The value to assign to the system_tags property of this Connection.
        :type system_tags: dict(str, dict(str, object))

        :param nsg_ids:
            The value to assign to the nsg_ids property of this Connection.
        :type nsg_ids: list[str]

        ÚidÚstrÚcompartment_idÚdatabase_typeÚmanual_database_sub_typeÚis_dedicatedÚboolÚdisplay_nameÚdatabase_idÚconnect_descriptorZConnectDescriptorÚcredentials_secret_idÚcertificate_tdnÚssh_detailsZ
SshDetailsÚadmin_credentialsZAdminCredentialsÚprivate_endpointZPrivateEndpointDetailsÚvault_detailsZVaultDetailsÚlifecycle_stateÚlifecycle_detailsÚtime_createdÚdatetimezdict(str, str)zdict(str, dict(str, object))z	list[str])Útime_updatedÚfreeform_tagsÚdefined_tagsÚsystem_tagsÚnsg_idsZcompartmentIdZdatabaseTypeZmanualDatabaseSubTypeZisDedicatedZdisplayNameZ
databaseIdZconnectDescriptorZcredentialsSecretIdZcertificateTdnZ
sshDetailsZadminCredentialsZprivateEndpointZvaultDetailsZlifecycleStateZlifecycleDetailsZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsZ
systemTagsZnsgIdsN)Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_database_typeÚ_manual_database_sub_typeÚ_is_dedicatedÚ_display_nameÚ_database_idÚ_connect_descriptorÚ_credentials_secret_idÚ_certificate_tdnÚ_ssh_detailsÚ_admin_credentialsÚ_private_endpointÚ_vault_detailsÚ_lifecycle_stateÚ_lifecycle_detailsÚ_time_createdÚ_time_updatedÚ_freeform_tagsÚ_defined_tagsÚ_system_tagsÚ_nsg_ids)ÚselfÚkwargs© rD   úLusr/lib/python3.10/site-packages/oci/database_migration/models/connection.pyÚ__init__B   sÐ   dÿþýüûúùø	÷
öõôóòñðï
êÿþýüûúùø	÷
öõôóòñðï
ê
zConnection.__init__c                 C   ó   | j S )z£
        **[Required]** Gets the id of this Connection.
        The OCID of the resource


        :return: The id of this Connection.
        :rtype: str
        ©r,   ©rB   rD   rD   rE   r   ï   ó   
zConnection.idc                 C   ó
   || _ dS )z•
        Sets the id of this Connection.
        The OCID of the resource


        :param id: The id of this Connection.
        :type: str
        NrH   )rB   r   rD   rD   rE   r   û   ó   

c                 C   rG   )zº
        **[Required]** Gets the compartment_id of this Connection.
        OCID of the compartment


        :return: The compartment_id of this Connection.
        :rtype: str
        ©r-   rI   rD   rD   rE   r     rJ   zConnection.compartment_idc                 C   rK   )z¸
        Sets the compartment_id of this Connection.
        OCID of the compartment


        :param compartment_id: The compartment_id of this Connection.
        :type: str
        NrM   )rB   r   rD   rD   rE   r     rL   c                 C   rG   )a‰  
        **[Required]** Gets the database_type of this Connection.
        Database connection type.

        Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The database_type of this Connection.
        :rtype: str
        )r.   rI   rD   rD   rE   r     ó   zConnection.database_typec                 C   ó    g d¢}t ||ƒsd}|| _dS )z·
        Sets the database_type of this Connection.
        Database connection type.


        :param database_type: The database_type of this Connection.
        :type: str
        )r   r   r	   ÚUNKNOWN_ENUM_VALUEN)r   r.   )rB   r   Úallowed_valuesrD   rD   rE   r   .  ó   


c                 C   rG   )a¿  
        Gets the manual_database_sub_type of this Connection.
        Database manual connection subtype. This value can only be specified for manual connections.

        Allowed values for this property are: "ORACLE", "RDS_ORACLE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The manual_database_sub_type of this Connection.
        :rtype: str
        )r/   rI   rD   rD   rE   r   =  rN   z#Connection.manual_database_sub_typec                 C   s    ddg}t ||ƒsd}|| _dS )a  
        Sets the manual_database_sub_type of this Connection.
        Database manual connection subtype. This value can only be specified for manual connections.


        :param manual_database_sub_type: The manual_database_sub_type of this Connection.
        :type: str
        r
   r   rP   N)r   r/   )rB   r   rQ   rD   rD   rE   r   L  rR   c                 C   rG   )zí
        Gets the is_dedicated of this Connection.
        True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.


        :return: The is_dedicated of this Connection.
        :rtype: bool
        ©r0   rI   rD   rD   rE   r   [  rJ   zConnection.is_dedicatedc                 C   rK   )zø
        Sets the is_dedicated of this Connection.
        True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.


        :param is_dedicated: The is_dedicated of this Connection.
        :type: bool
        NrS   )rB   r   rD   rD   rE   r   g  rL   c                 C   rG   )zË
        **[Required]** Gets the display_name of this Connection.
        Database Connection display name identifier.


        :return: The display_name of this Connection.
        :rtype: str
        ©r1   rI   rD   rD   rE   r   s  rJ   zConnection.display_namec                 C   rK   )zÇ
        Sets the display_name of this Connection.
        Database Connection display name identifier.


        :param display_name: The display_name of this Connection.
        :type: str
        NrT   )rB   r   rD   rD   rE   r     rL   c                 C   rG   )z­
        Gets the database_id of this Connection.
        The OCID of the cloud database.


        :return: The database_id of this Connection.
        :rtype: str
        ©r2   rI   rD   rD   rE   r   ‹  rJ   zConnection.database_idc                 C   rK   )z·
        Sets the database_id of this Connection.
        The OCID of the cloud database.


        :param database_id: The database_id of this Connection.
        :type: str
        NrU   )rB   r   rD   rD   rE   r   —  rL   c                 C   rG   )z¾
        Gets the connect_descriptor of this Connection.

        :return: The connect_descriptor of this Connection.
        :rtype: oci.database_migration.models.ConnectDescriptor
        ©r3   rI   rD   rD   rE   r   £  ó   zConnection.connect_descriptorc                 C   rK   )zÏ
        Sets the connect_descriptor of this Connection.

        :param connect_descriptor: The connect_descriptor of this Connection.
        :type: oci.database_migration.models.ConnectDescriptor
        NrV   )rB   r   rD   rD   rE   r   ­  ó   
c                 C   rG   )zõ
        Gets the credentials_secret_id of this Connection.
        OCID of the Secret in the OCI vault containing the Database Connection credentials.


        :return: The credentials_secret_id of this Connection.
        :rtype: str
        ©r4   rI   rD   rD   rE   r   ·  rJ   z Connection.credentials_secret_idc                 C   rK   )a	  
        Sets the credentials_secret_id of this Connection.
        OCID of the Secret in the OCI vault containing the Database Connection credentials.


        :param credentials_secret_id: The credentials_secret_id of this Connection.
        :type: str
        NrY   )rB   r   rD   rD   rE   r   Ã  rL   c                 C   rG   )zñ
        Gets the certificate_tdn of this Connection.
        This name is the distinguished name used while creating the certificate on target database.


        :return: The certificate_tdn of this Connection.
        :rtype: str
        ©r5   rI   rD   rD   rE   r   Ï  rJ   zConnection.certificate_tdnc                 C   rK   )zÿ
        Sets the certificate_tdn of this Connection.
        This name is the distinguished name used while creating the certificate on target database.


        :param certificate_tdn: The certificate_tdn of this Connection.
        :type: str
        NrZ   )rB   r   rD   rD   rE   r   Û  rL   c                 C   rG   )z©
        Gets the ssh_details of this Connection.

        :return: The ssh_details of this Connection.
        :rtype: oci.database_migration.models.SshDetails
        ©r6   rI   rD   rD   rE   r   ç  rW   zConnection.ssh_detailsc                 C   rK   )z³
        Sets the ssh_details of this Connection.

        :param ssh_details: The ssh_details of this Connection.
        :type: oci.database_migration.models.SshDetails
        Nr[   )rB   r   rD   rD   rE   r   ñ  rX   c                 C   rG   )z»
        Gets the admin_credentials of this Connection.

        :return: The admin_credentials of this Connection.
        :rtype: oci.database_migration.models.AdminCredentials
        ©r7   rI   rD   rD   rE   r    û  rW   zConnection.admin_credentialsc                 C   rK   )zË
        Sets the admin_credentials of this Connection.

        :param admin_credentials: The admin_credentials of this Connection.
        :type: oci.database_migration.models.AdminCredentials
        Nr\   )rB   r    rD   rD   rE   r      rX   c                 C   rG   )z¿
        Gets the private_endpoint of this Connection.

        :return: The private_endpoint of this Connection.
        :rtype: oci.database_migration.models.PrivateEndpointDetails
        ©r8   rI   rD   rD   rE   r!     rW   zConnection.private_endpointc                 C   rK   )zÎ
        Sets the private_endpoint of this Connection.

        :param private_endpoint: The private_endpoint of this Connection.
        :type: oci.database_migration.models.PrivateEndpointDetails
        Nr]   )rB   r!   rD   rD   rE   r!     rX   c                 C   rG   )z¯
        Gets the vault_details of this Connection.

        :return: The vault_details of this Connection.
        :rtype: oci.database_migration.models.VaultDetails
        ©r9   rI   rD   rD   rE   r"   #  rW   zConnection.vault_detailsc                 C   rK   )z»
        Sets the vault_details of this Connection.

        :param vault_details: The vault_details of this Connection.
        :type: oci.database_migration.models.VaultDetails
        Nr^   )rB   r"   rD   rD   rE   r"   -  rX   c                 C   rG   )aÄ  
        **[Required]** Gets the lifecycle_state of this Connection.
        The current state of the Connection resource.

        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'.


        :return: The lifecycle_state of this Connection.
        :rtype: str
        )r:   rI   rD   rD   rE   r#   7  rN   zConnection.lifecycle_statec                 C   rO   )zÑ
        Sets the lifecycle_state of this Connection.
        The current state of the Connection resource.


        :param lifecycle_state: The lifecycle_state of this Connection.
        :type: str
        )r   r   r   r   r   r   r   rP   N)r   r:   )rB   r#   rQ   rD   rD   rE   r#   F  rR   c                 C   rG   )a3  
        Gets the lifecycle_details of this Connection.
        A message describing the current state in more detail. For example, can be used to provide actionable information
        for a resource in Failed state.


        :return: The lifecycle_details of this Connection.
        :rtype: str
        ©r;   rI   rD   rD   rE   r$   U  ó   zConnection.lifecycle_detailsc                 C   rK   )aC  
        Sets the lifecycle_details of this Connection.
        A message describing the current state in more detail. For example, can be used to provide actionable information
        for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this Connection.
        :type: str
        Nr_   )rB   r$   rD   rD   rE   r$   b  ó   
c                 C   rG   )z÷
        **[Required]** Gets the time_created of this Connection.
        The time the Connection resource was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Connection.
        :rtype: datetime
        ©r<   rI   rD   rD   rE   r%   o  rJ   zConnection.time_createdc                 C   rK   )zó
        Sets the time_created of this Connection.
        The time the Connection resource was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Connection.
        :type: datetime
        Nrb   )rB   r%   rD   rD   rE   r%   {  rL   c                 C   rG   )zó
        Gets the time_updated of this Connection.
        The time of the last Connection resource details update. An RFC3339 formatted datetime string.


        :return: The time_updated of this Connection.
        :rtype: datetime
        ©r=   rI   rD   rD   rE   r'   ‡  rJ   zConnection.time_updatedc                 C   rK   )zþ
        Sets the time_updated of this Connection.
        The time of the last Connection resource details update. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Connection.
        :type: datetime
        Nrc   )rB   r'   rD   rD   rE   r'   “  rL   c                 C   rG   )a;  
        Gets the freeform_tags of this Connection.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Connection.
        :rtype: dict(str, str)
        ©r>   rI   rD   rD   rE   r(   Ÿ  r`   zConnection.freeform_tagsc                 C   rK   )aG  
        Sets the freeform_tags of this Connection.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Connection.
        :type: dict(str, str)
        Nrd   )rB   r(   rD   rD   rE   r(   ¬  ra   c                 C   rG   )a5  
        Gets the defined_tags of this Connection.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Connection.
        :rtype: dict(str, dict(str, object))
        ©r?   rI   rD   rD   rE   r)   ¹  r`   zConnection.defined_tagsc                 C   rK   )a@  
        Sets the defined_tags of this Connection.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Connection.
        :type: dict(str, dict(str, object))
        Nre   )rB   r)   rD   rD   rE   r)   Æ  ra   c                 C   rG   )a2  
        Gets the system_tags of this Connection.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this Connection.
        :rtype: dict(str, dict(str, object))
        ©r@   rI   rD   rD   rE   r*   Ó  r`   zConnection.system_tagsc                 C   rK   )a<  
        Sets the system_tags of this Connection.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this Connection.
        :type: dict(str, dict(str, object))
        Nrf   )rB   r*   rD   rD   rE   r*   à  ra   c                 C   rG   )zã
        Gets the nsg_ids of this Connection.
        An array of Network Security Group OCIDs used to define network access for Connections.


        :return: The nsg_ids of this Connection.
        :rtype: list[str]
        ©rA   rI   rD   rD   rE   r+   í  rJ   zConnection.nsg_idsc                 C   rK   )zé
        Sets the nsg_ids of this Connection.
        An array of Network Security Group OCIDs used to define network access for Connections.


        :param nsg_ids: The nsg_ids of this Connection.
        :type: list[str]
        Nrg   )rB   r+   rD   rD   rE   r+   ù  rL   c                 C   s   t | ƒS ©N)r   rI   rD   rD   rE   Ú__repr__  s   zConnection.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©rB   ÚotherrD   rD   rE   Ú__eq__  s   zConnection.__eq__c                 C   s
   | |k S rh   rD   rk   rD   rD   rE   Ú__ne__  s   
zConnection.__ne__N),Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZDATABASE_TYPE_MANUALZDATABASE_TYPE_AUTONOMOUSZDATABASE_TYPE_USER_MANAGED_OCIZMANUAL_DATABASE_SUB_TYPE_ORACLEZ#MANUAL_DATABASE_SUB_TYPE_RDS_ORACLEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDrF   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r'   r(   r)   r*   r+   ri   rm   rn   rD   rD   rD   rE   r      sÖ     .














	
	




	
	
	
	
	
	
	
	















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   rD   rD   rD   rE   Ú<module>   s   