o
    ëÉ¶dYB  ã                   @   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	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d+d*„ ƒZed,d-„ ƒZejd.d-„ ƒZed/d0„ ƒZejd1d0„ ƒZed2d3„ ƒZejd4d3„ ƒZed5d6„ ƒZejd7d6„ ƒZd8d9„ Zd:d;„ Zd<d=„ Zd>S )?ÚNodez,
    The properties that define a node.
    ÚCREATINGÚACTIVEÚUPDATINGÚDELETINGÚDELETEDÚFAILINGÚINACTIVEc                 K   sª   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| _d| _d| _d| _d| _d| _dS )a
  
        Initializes a new Node 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 Node.
        :type id: str

        :param name:
            The value to assign to the name property of this Node.
        :type name: str

        :param kubernetes_version:
            The value to assign to the kubernetes_version property of this Node.
        :type kubernetes_version: str

        :param availability_domain:
            The value to assign to the availability_domain property of this Node.
        :type availability_domain: str

        :param subnet_id:
            The value to assign to the subnet_id property of this Node.
        :type subnet_id: str

        :param node_pool_id:
            The value to assign to the node_pool_id property of this Node.
        :type node_pool_id: str

        :param fault_domain:
            The value to assign to the fault_domain property of this Node.
        :type fault_domain: str

        :param private_ip:
            The value to assign to the private_ip property of this Node.
        :type private_ip: str

        :param public_ip:
            The value to assign to the public_ip property of this Node.
        :type public_ip: str

        :param node_error:
            The value to assign to the node_error property of this Node.
        :type node_error: oci.container_engine.models.NodeError

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Node.
            Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILING", "INACTIVE", '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 Node.
        :type lifecycle_details: str

        ÚstrZ	NodeErrorzdict(str, str)zdict(str, dict(str, object)))ÚidÚnameÚkubernetes_versionÚavailability_domainÚ	subnet_idÚnode_pool_idÚfault_domainÚ
private_ipÚ	public_ipÚ
node_errorÚfreeform_tagsÚdefined_tagsÚsystem_tagsÚlifecycle_stateÚlifecycle_detailsr   r   ZkubernetesVersionZavailabilityDomainZsubnetIdZ
nodePoolIdZfaultDomainZ	privateIpZpublicIpZ	nodeErrorZfreeformTagsZdefinedTagsZ
systemTagsZlifecycleStateZlifecycleDetailsN)Zswagger_typesZattribute_mapÚ_idÚ_nameÚ_kubernetes_versionÚ_availability_domainÚ
_subnet_idÚ_node_pool_idÚ_fault_domainÚ_private_ipÚ
_public_ipÚ_node_errorÚ_freeform_tagsÚ_defined_tagsÚ_system_tagsÚ_lifecycle_stateÚ_lifecycle_details)ÚselfÚkwargs© r/   úDusr/lib/python3.10/site-packages/oci/container_engine/models/node.pyÚ__init__.   s^   Eññ
zNode.__init__c                 C   ó   | j S )z£
        Gets the id of this Node.
        The OCID of the compute instance backing this node.


        :return: The id of this Node.
        :rtype: str
        ©r   ©r-   r/   r/   r0   r   ¦   ó   
zNode.idc                 C   ó
   || _ dS )z¤
        Sets the id of this Node.
        The OCID of the compute instance backing this node.


        :param id: The id of this Node.
        :type: str
        Nr3   )r-   r   r/   r/   r0   r   ²   ó   

c                 C   r2   )z‰
        Gets the name of this Node.
        The name of the node.


        :return: The name of this Node.
        :rtype: str
        ©r   r4   r/   r/   r0   r   ¾   r5   z	Node.namec                 C   r6   )zŒ
        Sets the name of this Node.
        The name of the node.


        :param name: The name of this Node.
        :type: str
        Nr8   )r-   r   r/   r/   r0   r   Ê   r7   c                 C   r2   )z¿
        Gets the kubernetes_version of this Node.
        The version of Kubernetes this node is running.


        :return: The kubernetes_version of this Node.
        :rtype: str
        ©r    r4   r/   r/   r0   r   Ö   r5   zNode.kubernetes_versionc                 C   r6   )zÐ
        Sets the kubernetes_version of this Node.
        The version of Kubernetes this node is running.


        :param kubernetes_version: The kubernetes_version of this Node.
        :type: str
        Nr9   )r-   r   r/   r/   r0   r   â   r7   c                 C   r2   )zÓ
        Gets the availability_domain of this Node.
        The name of the availability domain in which this node is placed.


        :return: The availability_domain of this Node.
        :rtype: str
        ©r!   r4   r/   r/   r0   r   î   r5   zNode.availability_domainc                 C   r6   )zå
        Sets the availability_domain of this Node.
        The name of the availability domain in which this node is placed.


        :param availability_domain: The availability_domain of this Node.
        :type: str
        Nr:   )r-   r   r/   r/   r0   r   ú   r7   c                 C   r2   )z²
        Gets the subnet_id of this Node.
        The OCID of the subnet in which this node is placed.


        :return: The subnet_id of this Node.
        :rtype: str
        ©r"   r4   r/   r/   r0   r     r5   zNode.subnet_idc                 C   r6   )zº
        Sets the subnet_id of this Node.
        The OCID of the subnet in which this node is placed.


        :param subnet_id: The subnet_id of this Node.
        :type: str
        Nr;   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )z¹
        Gets the node_pool_id of this Node.
        The OCID of the node pool to which this node belongs.


        :return: The node_pool_id of this Node.
        :rtype: str
        ©r#   r4   r/   r/   r0   r     r5   zNode.node_pool_idc                 C   r6   )zÄ
        Sets the node_pool_id of this Node.
        The OCID of the node pool to which this node belongs.


        :param node_pool_id: The node_pool_id of this Node.
        :type: str
        Nr<   )r-   r   r/   r/   r0   r   *  r7   c                 C   r2   )z¢
        Gets the fault_domain of this Node.
        The fault domain of this node.


        :return: The fault_domain of this Node.
        :rtype: str
        ©r$   r4   r/   r/   r0   r   6  r5   zNode.fault_domainc                 C   r6   )z­
        Sets the fault_domain of this Node.
        The fault domain of this node.


        :param fault_domain: The fault_domain of this Node.
        :type: str
        Nr=   )r-   r   r/   r/   r0   r   B  r7   c                 C   r2   )z¤
        Gets the private_ip of this Node.
        The private IP address of this node.


        :return: The private_ip of this Node.
        :rtype: str
        ©r%   r4   r/   r/   r0   r   N  r5   zNode.private_ipc                 C   r6   )z­
        Sets the private_ip of this Node.
        The private IP address of this node.


        :param private_ip: The private_ip of this Node.
        :type: str
        Nr>   )r-   r   r/   r/   r0   r   Z  r7   c                 C   r2   )z¡
        Gets the public_ip of this Node.
        The public IP address of this node.


        :return: The public_ip of this Node.
        :rtype: str
        ©r&   r4   r/   r/   r0   r   f  r5   zNode.public_ipc                 C   r6   )z©
        Sets the public_ip of this Node.
        The public IP address of this node.


        :param public_ip: The public_ip of this Node.
        :type: str
        Nr?   )r-   r   r/   r/   r0   r   r  r7   c                 C   r2   )zÐ
        Gets the node_error of this Node.
        An error that may be associated with the node.


        :return: The node_error of this Node.
        :rtype: oci.container_engine.models.NodeError
        ©r'   r4   r/   r/   r0   r   ~  r5   zNode.node_errorc                 C   r6   )zÙ
        Sets the node_error of this Node.
        An error that may be associated with the node.


        :param node_error: The node_error of this Node.
        :type: oci.container_engine.models.NodeError
        Nr@   )r-   r   r/   r/   r0   r   Š  r7   c                 C   r2   )a¹  
        Gets the freeform_tags of this Node.
        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 Node.
        :rtype: dict(str, str)
        ©r(   r4   r/   r/   r0   r   –  ó   zNode.freeform_tagsc                 C   r6   )aÅ  
        Sets the freeform_tags of this Node.
        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 Node.
        :type: dict(str, str)
        NrA   )r-   r   r/   r/   r0   r   ¦  ó   
c                 C   r2   )a¯  
        Gets the defined_tags of this Node.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :return: The defined_tags of this Node.
        :rtype: dict(str, dict(str, object))
        ©r)   r4   r/   r/   r0   r   ¶  rB   zNode.defined_tagsc                 C   r6   )aº  
        Sets the defined_tags of this Node.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :param defined_tags: The defined_tags of this Node.
        :type: dict(str, dict(str, object))
        NrD   )r-   r   r/   r/   r0   r   Æ  rC   c                 C   r2   )a&  
        Gets the system_tags of this Node.
        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 Node.
        :rtype: dict(str, dict(str, object))
        ©r*   r4   r/   r/   r0   r   Ö  s   zNode.system_tagsc                 C   r6   )a0  
        Sets the system_tags of this Node.
        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 Node.
        :type: dict(str, dict(str, object))
        NrE   )r-   r   r/   r/   r0   r   ã  s   
c                 C   r2   )a“  
        Gets the lifecycle_state of this Node.
        The state of the node.

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


        :return: The lifecycle_state of this Node.
        :rtype: str
        )r+   r4   r/   r/   r0   r   ð  s   zNode.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z®
        Sets the lifecycle_state of this Node.
        The state of the node.


        :param lifecycle_state: The lifecycle_state of this Node.
        :type: str
        )r   r   r	   r
   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r+   )r-   r   Zallowed_valuesr/   r/   r0   r   ÿ  s   


c                 C   r2   )z²
        Gets the lifecycle_details of this Node.
        Details about the state of the node.


        :return: The lifecycle_details of this Node.
        :rtype: str
        ©r,   r4   r/   r/   r0   r     r5   zNode.lifecycle_detailsc                 C   r6   )zÂ
        Sets the lifecycle_details of this Node.
        Details about the state of the node.


        :param lifecycle_details: The lifecycle_details of this Node.
        :type: str
        NrF   )r-   r   r/   r/   r0   r     r7   c                 C   s   t | ƒS ©N)r   r4   r/   r/   r0   Ú__repr__&  s   zNode.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r-   Úotherr/   r/   r0   Ú__eq__)  s   zNode.__eq__c                 C   s
   | |k S rG   r/   rJ   r/   r/   r0   Ú__ne__/  s   
zNode.__ne__N) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILINGZLIFECYCLE_STATE_INACTIVEr1   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   rH   rL   rM   r/   r/   r/   r0   r      s’    x





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r/   r/   r/   r0   Ú<module>   s   