o
    ɶd74                     @   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                   @   sH  e 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d'd( Zd)d* Zd+d, Zd-S ).ConsoleConnectionz"
    ConsoleConnection model.
    ACTIVECREATINGDELETEDDELETINGFAILEDc                 K   sx   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 ConsoleConnection 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 ConsoleConnection.
        :type id: str

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

        :param db_node_id:
            The value to assign to the db_node_id property of this ConsoleConnection.
        :type db_node_id: str

        :param connection_string:
            The value to assign to the connection_string property of this ConsoleConnection.
        :type connection_string: str

        :param fingerprint:
            The value to assign to the fingerprint property of this ConsoleConnection.
        :type fingerprint: str

        :param service_host_key_fingerprint:
            The value to assign to the service_host_key_fingerprint property of this ConsoleConnection.
        :type service_host_key_fingerprint: str

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

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

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this ConsoleConnection.
        :type lifecycle_details: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ConsoleConnection.
            Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        strzdict(str, str)zdict(str, dict(str, object)))
idcompartment_id
db_node_idconnection_stringfingerprintservice_host_key_fingerprintfreeform_tagsdefined_tagslifecycle_detailslifecycle_stater   ZcompartmentIdZdbNodeIdZconnectionStringr   ZserviceHostKeyFingerprintZfreeformTagsZdefinedTagsZlifecycleDetailsZlifecycleStateN)Zswagger_typesZattribute_map_id_compartment_id_db_node_id_connection_string_fingerprint_service_host_key_fingerprint_freeform_tags_defined_tags_lifecycle_details_lifecycle_state)selfkwargs r#   Jusr/lib/python3.10/site-packages/oci/database/models/console_connection.py__init__&   s@   1
zConsoleConnection.__init__c                 C      | j S )z
        **[Required]** Gets the id of this ConsoleConnection.
        The OCID of the console connection.


        :return: The id of this ConsoleConnection.
        :rtype: str
        r   r!   r#   r#   r$   r   {      
zConsoleConnection.idc                 C   
   || _ dS )z
        Sets the id of this ConsoleConnection.
        The OCID of the console connection.


        :param id: The id of this ConsoleConnection.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r         

c                 C   r&   )z
        **[Required]** Gets the compartment_id of this ConsoleConnection.
        The OCID of the compartment to contain the console connection.


        :return: The compartment_id of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   z ConsoleConnection.compartment_idc                 C   r*   )z
        Sets the compartment_id of this ConsoleConnection.
        The OCID of the compartment to contain the console connection.


        :param compartment_id: The compartment_id of this ConsoleConnection.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the db_node_id of this ConsoleConnection.
        The OCID of the database node.


        :return: The db_node_id of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zConsoleConnection.db_node_idc                 C   r*   )z
        Sets the db_node_id of this ConsoleConnection.
        The OCID of the database node.


        :param db_node_id: The db_node_id of this ConsoleConnection.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the connection_string of this ConsoleConnection.
        The SSH connection string for the console connection.


        :return: The connection_string of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   z#ConsoleConnection.connection_stringc                 C   r*   )z
        Sets the connection_string of this ConsoleConnection.
        The SSH connection string for the console connection.


        :param connection_string: The connection_string of this ConsoleConnection.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the fingerprint of this ConsoleConnection.
        The SSH public key fingerprint for the console connection.


        :return: The fingerprint of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zConsoleConnection.fingerprintc                 C   r*   )z
        Sets the fingerprint of this ConsoleConnection.
        The SSH public key fingerprint for the console connection.


        :param fingerprint: The fingerprint of this ConsoleConnection.
        :type: str
        Nr/   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a  
        Gets the service_host_key_fingerprint of this ConsoleConnection.
        The SSH public key's fingerprint for the console connection service host.


        :return: The service_host_key_fingerprint of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   z.ConsoleConnection.service_host_key_fingerprintc                 C   r*   )a"  
        Sets the service_host_key_fingerprint of this ConsoleConnection.
        The SSH public key's fingerprint for the console connection service host.


        :param service_host_key_fingerprint: The service_host_key_fingerprint of this ConsoleConnection.
        :type: str
        Nr0   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a  
        Gets the freeform_tags of this ConsoleConnection.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this ConsoleConnection.
        :rtype: dict(str, str)
        r   r(   r#   r#   r$   r     s   zConsoleConnection.freeform_tagsc                 C   r*   )a  
        Sets the freeform_tags of this ConsoleConnection.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this ConsoleConnection.
        :type: dict(str, str)
        Nr1   )r!   r   r#   r#   r$   r     s   
c                 C   r&   )a  
        Gets the defined_tags of this ConsoleConnection.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this ConsoleConnection.
        :rtype: dict(str, dict(str, object))
        r   r(   r#   r#   r$   r   -     zConsoleConnection.defined_tagsc                 C   r*   )a  
        Sets the defined_tags of this ConsoleConnection.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this ConsoleConnection.
        :type: dict(str, dict(str, object))
        Nr2   )r!   r   r#   r#   r$   r   <  s   
c                 C   r&   )z
        Gets the lifecycle_details of this ConsoleConnection.
        Information about the current lifecycle state.


        :return: The lifecycle_details of this ConsoleConnection.
        :rtype: str
        r   r(   r#   r#   r$   r   K  r)   z#ConsoleConnection.lifecycle_detailsc                 C   r*   )z
        Sets the lifecycle_details of this ConsoleConnection.
        Information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this ConsoleConnection.
        :type: str
        Nr4   )r!   r   r#   r#   r$   r   W  r+   c                 C   r&   )a  
        **[Required]** Gets the lifecycle_state of this ConsoleConnection.
        The current state of the console connection.

        Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this ConsoleConnection.
        :rtype: str
        )r    r(   r#   r#   r$   r   c  r3   z!ConsoleConnection.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this ConsoleConnection.
        The current state of the console connection.


        :param lifecycle_state: The lifecycle_state of this ConsoleConnection.
        :type: str
        )r   r   r	   r
   r   ZUNKNOWN_ENUM_VALUEN)r   r    )r!   r   Zallowed_valuesr#   r#   r$   r   r  s   


c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__  s   zConsoleConnection.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__  s   zConsoleConnection.__eq__c                 C   s
   | |k S r5   r#   r8   r#   r#   r$   __ne__  s   
zConsoleConnection.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDr%   propertyr   setterr   r   r   r   r   r   r   r   r   r6   r:   r;   r#   r#   r#   r$   r      sf    U



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   