o
    ëÉ¶d²(  ã                   @   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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 )'ÚNodeDetailsz1
    Node details associated with a network.
    ÚCREATINGÚREQUIRES_VALIDATIONÚ
VALIDATINGÚ	VALIDATEDÚVALIDATION_FAILEDÚUPDATINGÚ	ALLOCATEDÚTERMINATINGÚ
TERMINATEDÚFAILEDc                 K   sP   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 NodeDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param hostname:
            The value to assign to the hostname property of this NodeDetails.
        :type hostname: str

        :param ip:
            The value to assign to the ip property of this NodeDetails.
        :type ip: str

        :param vip_hostname:
            The value to assign to the vip_hostname property of this NodeDetails.
        :type vip_hostname: str

        :param vip:
            The value to assign to the vip property of this NodeDetails.
        :type vip: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this NodeDetails.
            Allowed values for this property are: "CREATING", "REQUIRES_VALIDATION", "VALIDATING", "VALIDATED", "VALIDATION_FAILED", "UPDATING", "ALLOCATED", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param db_server_id:
            The value to assign to the db_server_id property of this NodeDetails.
        :type db_server_id: str

        Ústr)ÚhostnameÚipÚvip_hostnameÚvipÚlifecycle_stateÚdb_server_idr   r   ZvipHostnamer   ZlifecycleStateZ
dbServerIdN)Zswagger_typesZattribute_mapÚ	_hostnameÚ_ipÚ_vip_hostnameÚ_vipÚ_lifecycle_stateÚ_db_server_id)ÚselfÚkwargs© r    úDusr/lib/python3.10/site-packages/oci/database/models/node_details.pyÚ__init__:   s(   !ú
ú	
zNodeDetails.__init__c                 C   ó   | j S )z¬
        **[Required]** Gets the hostname of this NodeDetails.
        The node host name.


        :return: The hostname of this NodeDetails.
        :rtype: str
        ©r   ©r   r    r    r!   r   s   ó   
zNodeDetails.hostnamec                 C   ó
   || _ dS )z¤
        Sets the hostname of this NodeDetails.
        The node host name.


        :param hostname: The hostname of this NodeDetails.
        :type: str
        Nr$   )r   r   r    r    r!   r      ó   

c                 C   r#   )z¡
        **[Required]** Gets the ip of this NodeDetails.
        The node IP address.


        :return: The ip of this NodeDetails.
        :rtype: str
        ©r   r%   r    r    r!   r   ‹   r&   zNodeDetails.ipc                 C   r'   )z“
        Sets the ip of this NodeDetails.
        The node IP address.


        :param ip: The ip of this NodeDetails.
        :type: str
        Nr)   )r   r   r    r    r!   r   —   r(   c                 C   r#   )z¶
        Gets the vip_hostname of this NodeDetails.
        The node virtual IP (VIP) host name.


        :return: The vip_hostname of this NodeDetails.
        :rtype: str
        ©r   r%   r    r    r!   r   £   r&   zNodeDetails.vip_hostnamec                 C   r'   )zÁ
        Sets the vip_hostname of this NodeDetails.
        The node virtual IP (VIP) host name.


        :param vip_hostname: The vip_hostname of this NodeDetails.
        :type: str
        Nr*   )r   r   r    r    r!   r   ¯   r(   c                 C   r#   )z¢
        Gets the vip of this NodeDetails.
        The node virtual IP (VIP) address.


        :return: The vip of this NodeDetails.
        :rtype: str
        ©r   r%   r    r    r!   r   »   r&   zNodeDetails.vipc                 C   r'   )z¤
        Sets the vip of this NodeDetails.
        The node virtual IP (VIP) address.


        :param vip: The vip of this NodeDetails.
        :type: str
        Nr+   )r   r   r    r    r!   r   Ç   r(   c                 C   r#   )a#  
        Gets the lifecycle_state of this NodeDetails.
        The current state of the VM cluster network nodes.
        CREATING - The resource is being created
        REQUIRES_VALIDATION - The resource is created and may not be usable until it is validated.
        VALIDATING - The resource is being validated and not available to use.
        VALIDATED - The resource is validated and is available for consumption by VM cluster.
        VALIDATION_FAILED - The resource validation has failed and might require user input to be corrected.
        UPDATING - The resource is being updated and not available to use.
        ALLOCATED - The resource is currently being used by VM cluster.
        TERMINATING - The resource is being deleted and not available to use.
        TERMINATED - The resource is deleted and unavailable.
        FAILED - The resource is in a failed state due to validation or other errors.

        Allowed values for this property are: "CREATING", "REQUIRES_VALIDATION", "VALIDATING", "VALIDATED", "VALIDATION_FAILED", "UPDATING", "ALLOCATED", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this NodeDetails.
        :rtype: str
        )r   r%   r    r    r!   r   Ó   s   zNodeDetails.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )aû  
        Sets the lifecycle_state of this NodeDetails.
        The current state of the VM cluster network nodes.
        CREATING - The resource is being created
        REQUIRES_VALIDATION - The resource is created and may not be usable until it is validated.
        VALIDATING - The resource is being validated and not available to use.
        VALIDATED - The resource is validated and is available for consumption by VM cluster.
        VALIDATION_FAILED - The resource validation has failed and might require user input to be corrected.
        UPDATING - The resource is being updated and not available to use.
        ALLOCATED - The resource is currently being used by VM cluster.
        TERMINATING - The resource is being deleted and not available to use.
        TERMINATED - The resource is deleted and unavailable.
        FAILED - The resource is in a failed state due to validation or other errors.


        :param lifecycle_state: The lifecycle_state of this NodeDetails.
        :type: str
        )
r   r   r	   r
   r   r   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr    r    r!   r   ì   s   

c                 C   r#   )z¹
        Gets the db_server_id of this NodeDetails.
        The Db server associated with the node.


        :return: The db_server_id of this NodeDetails.
        :rtype: str
        ©r   r%   r    r    r!   r     r&   zNodeDetails.db_server_idc                 C   r'   )zÄ
        Sets the db_server_id of this NodeDetails.
        The Db server associated with the node.


        :param db_server_id: The db_server_id of this NodeDetails.
        :type: str
        Nr,   )r   r   r    r    r!   r     r(   c                 C   s   t | ƒS ©N)r   r%   r    r    r!   Ú__repr__  s   zNodeDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr    r    r!   Ú__eq__   s   zNodeDetails.__eq__c                 C   s
   | |k S r-   r    r0   r    r    r!   Ú__ne__&  s   
zNodeDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZ#LIFECYCLE_STATE_REQUIRES_VALIDATIONZLIFECYCLE_STATE_VALIDATINGZLIFECYCLE_STATE_VALIDATEDZ!LIFECYCLE_STATE_VALIDATION_FAILEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ALLOCATEDZLIFECYCLE_STATE_TERMINATINGZLIFECYCLE_STATE_TERMINATEDZLIFECYCLE_STATE_FAILEDr"   Úpropertyr   Úsetterr   r   r   r   r   r.   r2   r3   r    r    r    r!   r      sP    9











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r    r    r    r!   Ú<module>   s   