
    :g                         d Z ddlZ G d de      Z G d dee      Z G d dee      Z G d	 d
ee      Z	 G d de      Z
d 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
    Nc                       e Zd ZdZy)OpenApiExceptionz2The base exception class for all OpenAPIExceptionsN)__name__
__module____qualname____doc__     Q/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/exceptions.pyr   r      s    <r
   r   c                   $     e Zd Z	 	 d fd	Z xZS )ApiTypeErrorc                     || _         || _        || _        |}|rdj                  |t	        |            }t
        t        |   |       y)a   Raises an exception for TypeErrors

        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list): a list of keys an indices to get to the
                                 current_item
                                 None if unset
            valid_classes (tuple): the primitive classes that current item
                                   should be an instance of
                                   None if unset
            key_type (bool): False if our value is a value in a dict
                             True if it is a key in a dict
                             False if our item is an item in a list
                             None if unset
        
{0} at {1}N)path_to_itemvalid_classeskey_typeformatrender_pathsuperr   __init__)selfmsgr   r   r   full_msg	__class__s         r   r   zApiTypeError.__init__   sJ    & )* #**3L0IJHlD*84r
   NNNr   r   r   r   __classcell__r   s   @r   r   r      s    =A5 5r
   r   c                         e Zd Zd fd	Z xZS )ApiValueErrorc                 x    || _         |}|rdj                  |t        |            }t        t        |   |       y)z
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list) the path to the exception in the
                received_data dict. None if unset
        r   N)r   r   r   r   r    r   r   r   r   r   r   s       r   r   zApiValueError.__init__2   s;     )#**3L0IJHmT+H5r
   Nr   r   s   @r   r    r    1   s    6 6r
   r    c                         e Zd Zd fd	Z xZS )ApiKeyErrorc                 x    || _         |}|rdj                  |t        |            }t        t        |   |       y)z
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (None/list) the path to the exception in the
                received_data dict
        r   N)r   r   r   r   r%   r   r"   s       r   r   zApiKeyError.__init__D   s;     )#**3L0IJHk4)(3r
   r#   r   r   s   @r   r%   r%   C   s    4 4r
   r%   c                       e Zd ZddZd Zy)ApiExceptionNc                     |rI|j                   | _         |j                  | _        |j                  | _        |j	                         | _        y || _         || _        d | _        d | _        y r#   )statusreasondatabody
getheadersheaders)r   r*   r+   	http_resps       r   r   zApiException.__init__V   sV    #**DK#**DK!DI$//1DL DK DKDIDLr
   c                     dj                  | j                  | j                        }| j                  r|dj                  | j                        z  }| j                  r|dj                  | j                        z  }|S )z#Custom error messages for exceptionz({0})
Reason: {1}
zHTTP response headers: {0}
zHTTP response body: {0}
)r   r*   r+   r/   r-   )r   error_messages     r   __str__zApiException.__str__b   so    ((.t{{DKK(H 	<<;BB M 998??		JJMr
   r   )r   r   r   r   r3   r	   r
   r   r(   r(   T   s    
 r
   r(   c                     d}| D ]E  }t        |t        j                        r|dj                  |      z  }2|dj                  |      z  }G |S )z)Returns a string representation of a path z[{0}]z['{0}'])
isinstancesixinteger_typesr   )r   resultpths      r   r   r   p   sP    Fc3,,-gnnS))Fi&&s++F	 
 Mr
   )r   r7   	Exceptionr   	TypeErrorr   
ValueErrorr    KeyErrorr%   r(   r   r	   r
   r   <module>r?      sZ    =y =5#Y 5:6$j 6$4"H 4"# 8r
   