
                         Z    d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	  G d de
      Zy)	z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )absolute_importN)	iteritems   )	ApiClientc                   0    e Zd ZdZddZd Zd Zd Zd Zy)	LogsApiz
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    Nc                 *    |
t               }|| _        y N)r   
api_client)selfr   s     2lib/third_party/kubernetes/client/apis/logs_api.py__init__zLogsApi.__init__    s    ;j DO    c                 ~    d|d<   |j                  d      r | j                  |fi |S  | j                  |fi |}|S )a  
        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
        :param str logpath: path to the log (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req)getlog_file_handler_with_http_info)r   logpathkwargsdatas       r   log_file_handlerzLogsApi.log_file_handler%   sO     (,F#$zz+1T11'DVDD3t33GFvFtkr   c                 4   dg}|j                  d       |j                  d       |j                  d       |j                  d       t               }t        |d         D ]  \  }}||vrt        d|z        |||<    |d= d|vs|d   t	        d	      i }i }d|v r|d   |d<   g }	i }
g }i }d}d
g}| j
                  j                  dd||	|
|||d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  
        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
        :param str logpath: path to the log (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   _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}GETT
bodypost_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formats)appendlocalsr   	TypeError
ValueErrorr   call_apir   )r   r   r   
all_paramsparamskeyvalr$   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr#   s                  r   r   z'LogsApi.log_file_handler_with_http_info9   sr    Jk"./()()XFfX./S	J	 68;< = 	=fSk	 0
 	xVI%6%>
T  KF%i0k)LMKOK"OM??###**[)%zz*BC$6=$67- $ / /r   c                 z    d|d<   |j                  d      r | j                  di |S  | j                  di |}|S )a  
        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
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r    )r   $log_file_list_handler_with_http_info)r   r   r   s      r   log_file_list_handlerzLogsApi.log_file_list_handler}   sK     (,F#$zz+6T66@@@8t88B6Btkr   c                    g }|j                  d       |j                  d       |j                  d       |j                  d       t               }t        |d         D ]  \  }}||vrt        d|z        |||<    |d= i }i }g }i }	g }
i }d}dg}| j                  j                  d	d
|||	||
|d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  
        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
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   zGGot an unexpected keyword argument '%s' to method log_file_list_handlerNr   z/logs/r   Tr   )r%   r&   r   r'   r   r)   r   )r   r   r*   r+   r,   r-   r$   r.   r/   r0   r1   r2   r3   r#   s                 r   r6   z,LogsApi.log_file_list_handler_with_http_info   s8    Jk"./()()XFfX./S	J	 ;=@A B 	BfSk	 0
 	xKLMKOK"OM??###**[)%zz*BC$6=$67- $ / /r   r
   )	__name__
__module____qualname____doc__r   r   r   r7   r6   r5   r   r   r   r      s"    !
(B/H&9/r   r   )r<   
__future__r   sysosresixr   r   r   objectr   r5   r   r   <module>rC      s.   	 ' 
 	 	  "p/f p/r   