
    Bvhq                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.33
    Generated by: https://openapi-generator.tech
    N)Configurationc                   $   e Zd ZdZ	 dddddZdddddZdd
Zed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd Zy	)V1EndpointAddresszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strV1ObjectReference)hostnameip	node_name
target_refr   r	   nodeName	targetRefNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        || _        ||| _	        ||| _
        yy)z.V1EndpointAddress - a model defined in OpenAPIN)r   local_vars_configuration	_hostname_ip
_node_name_target_refdiscriminatorr   r	   r
   r   )selfr   r	   r
   r   r   s         V/RAG/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_endpoint_address.py__init__zV1EndpointAddress.__init__1   sp    #+'4$(@%!$DM &DN!(DO "    c                     | j                   S )zGets the hostname of this V1EndpointAddress.  # noqa: E501

        The Hostname of this endpoint  # noqa: E501

        :return: The hostname of this V1EndpointAddress.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1EndpointAddress.hostnameE   s     ~~r   c                     || _         y)zSets the hostname of this V1EndpointAddress.

        The Hostname of this endpoint  # noqa: E501

        :param hostname: The hostname of this V1EndpointAddress.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1EndpointAddress.hostnameP   s     "r   c                     | j                   S )aL  Gets the ip of this V1EndpointAddress.  # noqa: E501

        The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).  # noqa: E501

        :return: The ip of this V1EndpointAddress.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   zV1EndpointAddress.ip\   s     xxr   c                 X    | j                   j                  r|t        d      || _        y)a?  Sets the ip of this V1EndpointAddress.

        The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).  # noqa: E501

        :param ip: The ip of this V1EndpointAddress.  # noqa: E501
        :type: str
        Nz*Invalid value for `ip`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r	   s     r   r	   zV1EndpointAddress.ipg   s*     ((??BJIJJr   c                     | j                   S )a  Gets the node_name of this V1EndpointAddress.  # noqa: E501

        Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.  # noqa: E501

        :return: The node_name of this V1EndpointAddress.  # noqa: E501
        :rtype: str
        r   r   s    r   r
   zV1EndpointAddress.node_nameu   s     r   c                     || _         y)a  Sets the node_name of this V1EndpointAddress.

        Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.  # noqa: E501

        :param node_name: The node_name of this V1EndpointAddress.  # noqa: E501
        :type: str
        Nr"   )r   r
   s     r   r
   zV1EndpointAddress.node_name   s     $r   c                     | j                   S )zGets the target_ref of this V1EndpointAddress.  # noqa: E501


        :return: The target_ref of this V1EndpointAddress.  # noqa: E501
        :rtype: V1ObjectReference
        r   r   s    r   r   zV1EndpointAddress.target_ref   s     r   c                     || _         y)zSets the target_ref of this V1EndpointAddress.


        :param target_ref: The target_ref of this V1EndpointAddress.  # noqa: E501
        :type: V1ObjectReference
        Nr%   )r   r   s     r   r   zV1EndpointAddress.target_ref   s     &r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr)   )xs    r   <lambda>z+V1EndpointAddress.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r)   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r)   r   r*   )items    r   r-   z+V1EndpointAddress.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr+   r)   dictitems)r   resultattr_values        r   r)   zV1EndpointAddress.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr)   r   s    r   to_strzV1EndpointAddress.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rA   r   s    r   __repr__zV1EndpointAddress.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr5   r   r)   r   others     r   __eq__zV1EndpointAddress.__eq__   s'    %!23||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrE   rF   s     r   __ne__zV1EndpointAddress.__ne__   s'    %!23||~00r   )NNNNN)__name__
__module____qualname____doc__r3   attribute_mapr   propertyr   setterr	   r
   r   r)   rA   rC   rH   rJ    r   r   r   r      s    )	M !	M)(   __	" 	"   YY    	$ 	$     & &0.11r   r   )rN   r?   rer1   kubernetes.client.configurationr   objectr   rR   r   r   <module>rV      s&     	 
 9x1 x1r   