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

    Do not edit the class manually.
    V1IngressBackendstrzlist[V1IngressRule]zlist[V1IngressTLS])default_backendingress_class_namerulestlsdefaultBackendingressClassNamer
   r   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        ||| _
        yy)z*V1IngressSpec - a model defined in OpenAPIN)r   local_vars_configuration_default_backend_ingress_class_name_rules_tlsdiscriminatorr   r	   r
   r   )selfr   r	   r
   r   r   s         ]/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_ingress_spec.py__init__zV1IngressSpec.__init__1   sx    #+'4$(@% $#' 	!&#2D )&8D#DJ?DH     c                     | j                   S )zGets the default_backend of this V1IngressSpec.  # noqa: E501


        :return: The default_backend of this V1IngressSpec.  # noqa: E501
        :rtype: V1IngressBackend
        r   r   s    r   r   zV1IngressSpec.default_backendF   s     $$$r   c                     || _         y)zSets the default_backend of this V1IngressSpec.


        :param default_backend: The default_backend of this V1IngressSpec.  # noqa: E501
        :type: V1IngressBackend
        Nr   )r   r   s     r   r   zV1IngressSpec.default_backendP   s     !0r   c                     | j                   S )a  Gets the ingress_class_name of this V1IngressSpec.  # noqa: E501

        ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.  # noqa: E501

        :return: The ingress_class_name of this V1IngressSpec.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   z V1IngressSpec.ingress_class_name[   s     '''r   c                     || _         y)a  Sets the ingress_class_name of this V1IngressSpec.

        ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.  # noqa: E501

        :param ingress_class_name: The ingress_class_name of this V1IngressSpec.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   z V1IngressSpec.ingress_class_namef   s     $6 r   c                     | j                   S )aE  Gets the rules of this V1IngressSpec.  # noqa: E501

        rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.  # noqa: E501

        :return: The rules of this V1IngressSpec.  # noqa: E501
        :rtype: list[V1IngressRule]
        r   r   s    r   r
   zV1IngressSpec.rulesr   s     {{r   c                     || _         y)a;  Sets the rules of this V1IngressSpec.

        rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.  # noqa: E501

        :param rules: The rules of this V1IngressSpec.  # noqa: E501
        :type: list[V1IngressRule]
        Nr!   )r   r
   s     r   r
   zV1IngressSpec.rules}   s     r   c                     | j                   S )a  Gets the tls of this V1IngressSpec.  # noqa: E501

        tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.  # noqa: E501

        :return: The tls of this V1IngressSpec.  # noqa: E501
        :rtype: list[V1IngressTLS]
        r   r   s    r   r   zV1IngressSpec.tls   s     yyr   c                     || _         y)a  Sets the tls of this V1IngressSpec.

        tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.  # noqa: E501

        :param tls: The tls of this V1IngressSpec.  # noqa: E501
        :type: list[V1IngressTLS]
        Nr$   )r   r   s     r   r   zV1IngressSpec.tls   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'V1IngressSpec.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'V1IngressSpec.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V1IngressSpec.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V1IngressSpec.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r@   r   s    r   __repr__zV1IngressSpec.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr4   r   r(   r   others     r   __eq__zV1IngressSpec.__eq__   s&    %/||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrD   rE   s     r   __ne__zV1IngressSpec.__ne__   s&    %/||~00r   )NNNNN)__name__
__module____qualname____doc__r2   attribute_mapr   propertyr   setterr	   r
   r   r(   r@   rB   rG   rI    r   r   r   r      s    .#&#	M ,0	M* % % 0 0 ( ( 	6 	6   \\	 	   	ZZ	 	0.11r   r   )rM   r>   rer0   kubernetes.client.configurationr   objectr   rQ   r   r   <module>rU      s&     	 
 9w1F w1r   