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„ZdS) Ú VersionApiz¯ 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 úS/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/version_api.pyÚ__init__"s zVersionApi.__init__cKs2d|d<|jdƒr|jf|ŽS|jf|Ž}|SdS)aq get the code version 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.get_code(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: VersionInfo If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚcallbackN)ÚgetÚget_code_with_http_info)r ÚkwargsÚdatar r r Úget_code+s    zVersionApi.get_codecKsg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr\td|ƒ‚|||<q@W|d=i}djdd ƒ}i}i} i} g} i} d } |jjd gƒ| d <|jjd gƒ| d <dg}|jj|d|| | | | | d||j dƒ|j dƒ|j ddƒ|j dƒ|d�S)a€ get the code version 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.get_code_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: VersionInfo If the method is called asynchronously, returns the request thread. rrÚ_preload_contentÚ_request_timeoutrz:Got an unexpected keyword argument '%s' to method get_codez /version/z{format}ÚjsonNzapplication/jsonÚAcceptz Content-TypeÚ BearerTokenÚGETÚ VersionInfoT) ÚbodyÚ post_paramsÚfilesÚ response_typeÚ auth_settingsrrrrÚcollection_formats) ÚappendÚlocalsrÚ TypeErrorÚreplacerÚselect_header_acceptÚselect_header_content_typeÚcall_apir)r rÚ all_paramsÚparamsÚkeyÚvalr!Ú resource_pathÚ path_paramsÚ query_paramsÚ header_paramsÚ form_paramsÚlocal_var_filesÚ body_paramsr r r r rCsP          z"VersionApi.get_code_with_http_info)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr r r r rs r)r7Ú __future__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s