o
    3Ih#%                     @   sP   d Z ddlmZ ddlZddlZddlmZ ddlmZm	Z	 G dd de
ZdS )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
    )absolute_importN)	ApiClient)ApiTypeErrorApiValueErrorc                   @   s:   e Zd ZdZdddZdd Zdd Zd	d
 Zdd ZdS )LogsApizNOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Nc                 C   s   |d u rt  }|| _d S N)r   
api_client)selfr    r
   ^/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/kubernetes/client/api/logs_api.py__init__"   s   
zLogsApi.__init__c                 K   s   d|d< | j |fi |S )a  log_file_handler  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.log_file_handler(logpath, async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param str logpath: path to the log (required)
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only)log_file_handler_with_http_info)r	   logpathkwargsr
   r
   r   log_file_handler'   s   zLogsApi.log_file_handlerc                 K   s   t  }dg}|g d t|d D ]\}}||vr"td| |||< q|d= | jjr<d|vs8|d du r<tdi }i }d|v rJ|d |d< g }	i }
g }i }d}dg}| jjdd	||	|
|||d||	d
|	d|	dd|	d|dS )a  log_file_handler  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.log_file_handler_with_http_info(logpath, async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param str logpath: path to the log (required)
        :param _return_http_data_only: response data without head status code
                                       and headers
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   	async_reqr   _preload_content_request_timeoutr   zBGot an unexpected keyword argument '%s' to method log_file_handlerNzHMissing the required parameter `logpath` when calling `log_file_handler`BearerTokenz/logs/{logpath}GETr   r   r   Tr   
bodypost_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formats)
localsextendsix	iteritemsr   r   client_side_validationr   call_apiget)r	   r   r   local_var_params
all_paramskeyvalr   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr   r
   r
   r   r   ?   sX   	

z'LogsApi.log_file_handler_with_http_infoc                 K   s   d|d< | j di |S )a  log_file_list_handler  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.log_file_list_handler(async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   Nr
   )$log_file_list_handler_with_http_info)r	   r   r
   r
   r   log_file_list_handler   s   zLogsApi.log_file_list_handlerc                 K   s   t  }g }|g d t|d D ]\}}||vr!td| |||< q|d= i }i }g }i }	g }
i }d}dg}| jjdd|||	||
|d||d|d	|d
d|d|dS )aX  log_file_list_handler  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.log_file_list_handler_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param _return_http_data_only: response data without head status code
                                       and headers
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   zGGot an unexpected keyword argument '%s' to method log_file_list_handlerNr   z/logs/r   r   r   r   Tr   r   )r   r    r!   r"   r   r   r$   r%   )r	   r   r&   r'   r(   r)   r   r*   r+   r,   r-   r.   r/   r   r
   r
   r   r0      sL   	

z,LogsApi.log_file_list_handler_with_http_infor   )	__name__
__module____qualname____doc__r   r   r   r1   r0   r
   r
   r
   r   r      s    
Tr   )r5   
__future__r   rer!   kubernetes.client.api_clientr   kubernetes.client.exceptionsr   r   objectr   r
   r
   r
   r   <module>   s   
