
    <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Z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d Zd Zd Zd Zd Zy)V1HTTPIngressPathzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1IngressBackendstr)backendpath	path_typer   r	   pathTypeNc                     |
t               }|| _        d| _        d| _        d| _        d| _        || _        ||| _        || _        y)z.V1HTTPIngressPath - a model defined in OpenAPIN)	r   local_vars_configuration_backend_path
_path_typediscriminatorr   r	   r
   )selfr   r	   r
   r   s        b/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_http_ingress_path.py__init__zV1HTTPIngressPath.__init__/   sP    #+'4$(@%
!DI"    c                     | j                   S )zGets the backend of this V1HTTPIngressPath.  # noqa: E501


        :return: The backend of this V1HTTPIngressPath.  # noqa: E501
        :rtype: V1IngressBackend
        )r   r   s    r   r   zV1HTTPIngressPath.backend?   s     }}r   c                 X    | j                   j                  r|t        d      || _        y)zSets the backend of this V1HTTPIngressPath.


        :param backend: The backend of this V1HTTPIngressPath.  # noqa: E501
        :type: V1IngressBackend
        Nz/Invalid value for `backend`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1HTTPIngressPath.backendI   s*     ((??GONOOr   c                     | j                   S )a  Gets the path of this V1HTTPIngressPath.  # noqa: E501

        path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix".  # noqa: E501

        :return: The path of this V1HTTPIngressPath.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   zV1HTTPIngressPath.pathV   s     zzr   c                     || _         y)a  Sets the path of this V1HTTPIngressPath.

        path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix".  # noqa: E501

        :param path: The path of this V1HTTPIngressPath.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   zV1HTTPIngressPath.patha   s     
r   c                     | j                   S )a0  Gets the path_type of this V1HTTPIngressPath.  # noqa: E501

        pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is   done on a path element by element basis. A path element refers is the   list of labels in the path split by the '/' separator. A request is a   match for path p if every p is an element-wise prefix of p of the   request path. Note that if the last element of the path is a substring   of the last element in request path, it is not a match (e.g. /foo/bar   matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to   the IngressClass. Implementations can treat this as a separate PathType   or treat it identically to Prefix or Exact path types. Implementations are required to support all path types.  # noqa: E501

        :return: The path_type of this V1HTTPIngressPath.  # noqa: E501
        :rtype: str
        )r   r   s    r   r
   zV1HTTPIngressPath.path_typem   s     r   c                 X    | j                   j                  r|t        d      || _        y)a*  Sets the path_type of this V1HTTPIngressPath.

        pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is   done on a path element by element basis. A path element refers is the   list of labels in the path split by the '/' separator. A request is a   match for path p if every p is an element-wise prefix of p of the   request path. Note that if the last element of the path is a substring   of the last element in request path, it is not a match (e.g. /foo/bar   matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to   the IngressClass. Implementations can treat this as a separate PathType   or treat it identically to Prefix or Exact path types. Implementations are required to support all path types.  # noqa: E501

        :param path_type: The path_type of this V1HTTPIngressPath.  # noqa: E501
        :type: str
        Nz1Invalid value for `path_type`, must not be `None`)r   r   r   r   )r   r
   s     r   r
   zV1HTTPIngressPath.path_typex   s+     ((??IDUPQQ#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+V1HTTPIngressPath.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+V1HTTPIngressPath.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V1HTTPIngressPath.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V1HTTPIngressPath.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r:   r   s    r   __repr__zV1HTTPIngressPath.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr.   r   r"   r   others     r   __eq__zV1HTTPIngressPath.__eq__   s'    %!23||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr>   r?   s     r   __ne__zV1HTTPIngressPath.__ne__   s'    %!23||~00r   )NNNN)__name__
__module____qualname____doc__r,   attribute_mapr   propertyr   setterr	   r
   r"   r:   r<   rA   rC    r   r   r   r      s     &M M#    ^^
  
    
[[	 	   $ $0.11r   r   )rG   r8   rer*   kubernetes.client.configurationr   objectr   rK   r   r   <module>rO      s&     	 
 9]1 ]1r   