
                         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                   $    e Zd ZdZddZd Zd Zy)
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
    Nc                 *    |
t               }|| _        y N)r   
api_client)selfr   s     5lib/third_party/kubernetes/client/apis/version_api.py__init__zVersionApi.__init__    s    ;j DO    c                 z    d|d<   |j                  d      r | j                  di |S  | j                  di |}|S )a  
        get the code version
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_code(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: VersionInfo
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req )getget_code_with_http_info)r   kwargsdatas      r   get_codezVersionApi.get_code%   sK     (,F#$zz+)T))3F33+t++5f5tkr   c                 n   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}| j                  j                  dg      |	d	<   | j                  j                  dg      |	d
<   dg}| j                  j                  dd|||	||
|d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  
        get the code version
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_code_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: VersionInfo
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   _preload_content_request_timeoutr   z:Got an unexpected keyword argument '%s' to method get_codeNzapplication/jsonAcceptzContent-TypeBearerTokenz	/version/GETVersionInfoT)
bodypost_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formats)	appendlocalsr   	TypeErrorr   select_header_acceptselect_header_content_typecall_apir   )r   r   
all_paramsparamskeyvalr%   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr$   s                 r   r   z"VersionApi.get_code_with_http_info9   sy    Jk"./()()XFfX./S	J	 .034 5 	5fSk	 0
 	xKLMKOK"oo012 ( %)OO""$6#78 .! #OM??####**[)%zz*BC$6=$67- $ / /r   r
   )__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s    !
(B/r   r   )r9   
__future__r   sysosresixr   r   r   objectr   r   r   r   <module>r@      s.   	 ' 
 	 	  "b/ b/r   