3 f÷ÔYé ã@s`dZddlmZddlZddlZddlZddlmZddlm Z ddl m Z Gdd „d e ƒZ dS) zç Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git é)Úabsolute_importN)Ú iteritemsé)Ú Configuration)Ú ApiClientc@s:eZdZdZd dd„Zdd„Zdd„Zd d „Zd d „ZdS)Ú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 NcCs,tƒ}|r||_n|js tƒ|_|j|_dS)N)rÚ api_clientr)ÚselfrÚconfig©r úP/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/logs_api.pyÚ__init__"s zLogsApi.__init__cKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)a• This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.log_file_handler(logpath, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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ÚcallbackN)ÚgetÚlog_file_handler_with_http_info)r ÚlogpathÚkwargsÚdatar r r Úlog_file_handler+s  zLogsApi.log_file_handlercKsdg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr^td|ƒ‚|||<qBW|d=d|ks„|ddkrŒtd ƒ‚i}d jd d ƒ}i} d|kr´|d| d<i} i} g} i} d}d g}|jj|d| | | || | d||jdƒ|jdƒ|jddƒ|jdƒ|d�S)a¤ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.log_file_handler_with_http_info(logpath, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str logpath: path to the log (required) :return: None If the method is called asynchronously, returns the request thread. rrrÚ_preload_contentÚ_request_timeoutrzBGot an unexpected keyword argument '%s' to method log_file_handlerNzHMissing the required parameter `logpath` when calling `log_file_handler`z/logs/{logpath}z{format}ÚjsonÚ BearerTokenÚGETT) ÚbodyÚ post_paramsÚfilesÚ response_typeÚ auth_settingsrrrrÚcollection_formats) ÚappendÚlocalsrÚ TypeErrorÚ ValueErrorÚreplacerÚcall_apir)r rrÚ all_paramsÚparamsÚkeyÚvalr Ú resource_pathÚ path_paramsÚ query_paramsÚ header_paramsÚ form_paramsÚlocal_var_filesÚ body_paramsrr r r rCsP         z'LogsApi.log_file_handler_with_http_infocKs2d|d<|jdƒr|jf|ŽS|jf|Ž}|SdS)aZ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.log_file_list_handler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: None If the method is called asynchronously, returns the request thread. TrrN)rÚ$log_file_list_handler_with_http_info)r rrr r r Úlog_file_list_handlerŠs    zLogsApi.log_file_list_handlercKsàg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr\td|ƒ‚|||<q@W|d=i}djdd ƒ}i}i} i} g} i} d } d g}|jj|d || | | | | d ||jdƒ|jdƒ|jdd ƒ|jdƒ|d�S)ai This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.log_file_list_handler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: None If the method is called asynchronously, returns the request thread. rrrrrzGGot an unexpected keyword argument '%s' to method log_file_list_handlerz/logs/z{format}rNrrT) rrrrrrrrrr )r!r"rr#r%rr&r)r rr'r(r)r*r r+r,r-r.r/r0r1rr r r r2¡sH        z,LogsApi.log_file_list_handler_with_http_info)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr3r2r r r r rs  Gr)r7Ú __future__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s