
    <g                     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.32
    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	)V1LoadBalancerIngresszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strzlist[V1PortStatus])hostnameipip_modeportsr   r   ipModer
   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        ||| _
        yy)z2V1LoadBalancerIngress - a model defined in OpenAPIN)r   local_vars_configuration	_hostname_ip_ip_mode_portsdiscriminatorr   r   r	   r
   )selfr   r   r	   r
   r   s         f/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py__init__zV1LoadBalancerIngress.__init__1   st    #+'4$(@%!$DM>DG"DLDJ     c                     | j                   S )a!  Gets the hostname of this V1LoadBalancerIngress.  # noqa: E501

        Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)  # noqa: E501

        :return: The hostname of this V1LoadBalancerIngress.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1LoadBalancerIngress.hostnameF   s     ~~r   c                     || _         y)a  Sets the hostname of this V1LoadBalancerIngress.

        Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)  # noqa: E501

        :param hostname: The hostname of this V1LoadBalancerIngress.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1LoadBalancerIngress.hostnameQ   s     "r   c                     | j                   S )a  Gets the ip of this V1LoadBalancerIngress.  # noqa: E501

        IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)  # noqa: E501

        :return: The ip of this V1LoadBalancerIngress.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1LoadBalancerIngress.ip]   s     xxr   c                     || _         y)a  Sets the ip of this V1LoadBalancerIngress.

        IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)  # noqa: E501

        :param ip: The ip of this V1LoadBalancerIngress.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1LoadBalancerIngress.iph   s     r   c                     | j                   S )a  Gets the ip_mode of this V1LoadBalancerIngress.  # noqa: E501

        IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.  # noqa: E501

        :return: The ip_mode of this V1LoadBalancerIngress.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1LoadBalancerIngress.ip_modet   s     }}r   c                     || _         y)a  Sets the ip_mode of this V1LoadBalancerIngress.

        IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.  # noqa: E501

        :param ip_mode: The ip_mode of this V1LoadBalancerIngress.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   zV1LoadBalancerIngress.ip_mode   s      r   c                     | j                   S )a9  Gets the ports of this V1LoadBalancerIngress.  # noqa: E501

        Ports is a list of records of service ports If used, every port defined in the service should have an entry in it  # noqa: E501

        :return: The ports of this V1LoadBalancerIngress.  # noqa: E501
        :rtype: list[V1PortStatus]
        r   r   s    r   r
   zV1LoadBalancerIngress.ports   s     {{r   c                     || _         y)a/  Sets the ports of this V1LoadBalancerIngress.

        Ports is a list of records of service ports If used, every port defined in the service should have an entry in it  # noqa: E501

        :param ports: The ports of this V1LoadBalancerIngress.  # noqa: E501
        :type: list[V1PortStatus]
        Nr"   )r   r
   s     r   r
   zV1LoadBalancerIngress.ports   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/V1LoadBalancerIngress.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/V1LoadBalancerIngress.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V1LoadBalancerIngress.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V1LoadBalancerIngress.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r>   r   s    r   __repr__zV1LoadBalancerIngress.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr2   r   r&   r   others     r   __eq__zV1LoadBalancerIngress.__eq__   s'    %!67||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrB   rC   s     r   __ne__zV1LoadBalancerIngress.__ne__   s'    %!67||~00r   )NNNNN)__name__
__module____qualname____doc__r0   attribute_mapr   propertyr   setterr   r	   r
   r&   r>   r@   rE   rG    r   r   r   r      s    %	M 	M*   __	" 	"   YY	 	   ^^	  	    \\	 	0.11r   r   )rK   r<   rer.   kubernetes.client.configurationr   objectr   rO   r   r   <module>rS      s&     	 
 9y1F y1r   