
    !                     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)	AuthenticationV1Apiz
    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     ?lib/third_party/kubernetes/client/apis/authentication_v1_api.py__init__zAuthenticationV1Api.__init__    s    ;j DO    c                 ~    d|d<   |j                  d      r | j                  |fi |S  | j                  |fi |}|S )a  
        create a TokenReview
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_token_review(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param V1TokenReview body: (required)
        :param str dry_run: When present, indicates that modifications should
        not be persisted. An invalid or unrecognized dryRun directive will
        result in an error response and no further processing of the request.
        Valid values are: - All: all dry run stages will be processed
        :param str field_manager: fieldManager is a name associated with the
        actor or entity that is making these changes. The value must be less
        than or 128 characters long, and only contain printable characters, as
        defined by https://golang.org/pkg/unicode/#IsPrint.
        :param str pretty: If 'true', then the output is pretty printed.
        :return: V1TokenReview
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req)get"create_token_review_with_http_info)r   bodykwargsdatas       r   create_token_reviewz'AuthenticationV1Api.create_token_review%   sO    . (,F#$zz+4T44TDVDD6t66tFvFtkr   c                 J   g d}|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 }g }	d|v r|	j                  d|d   f       d|v r|	j                  d|d   f       d|v r|	j                  d|d   f       i }
g }i }d	}d|v r|d   }| j
                  j                  g d      |
d<   | j
                  j                  dg      |
d<   dg}| j
                  j                  dd||	|
|||d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  
        create a TokenReview
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_token_review_with_http_info(body,
        async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param V1TokenReview body: (required)
        :param str dry_run: When present, indicates that modifications should
        not be persisted. An invalid or unrecognized dryRun directive will
        result in an error response and no further processing of the request.
        Valid values are: - All: all dry run stages will be processed
        :param str field_manager: fieldManager is a name associated with the
        actor or entity that is making these changes. The value must be less
        than or 128 characters long, and only contain printable characters, as
        defined by https://golang.org/pkg/unicode/#IsPrint.
        :param str pretty: If 'true', then the output is pretty printed.
        :return: V1TokenReview
                 If the method is called asynchronously,
                 returns the request thread.
        )r   dry_runfield_managerprettyr   r   _preload_content_request_timeoutr   zEGot an unexpected keyword argument '%s' to method create_token_reviewr   NzHMissing the required parameter `body` when calling `create_token_review`r   dryRunr   fieldManagerr   zapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAcceptz*/*Content-TypeBearerTokenz+/apis/authentication.k8s.io/v1/tokenreviewsPOSTV1TokenReviewT
r   post_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formats)
appendlocalsr   	TypeError
ValueErrorr   select_header_acceptselect_header_content_type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   z6AuthenticationV1Api.create_token_review_with_http_infoC   s   2 @Jk"./()()XFfX./S	J	 9;>? @ 	@fSk	 0
 	xf&."8
T  KLF8VI%678& >6/+BCD68VH%567MKOK6Nk"oolm ( %)OO""E7+ .! #OM??##5%#**[)%zz*BC$6=$67- $ / /r   c                 z    d|d<   |j                  d      r | j                  di |S  | j                  di |}|S )a  
        get available resources
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_api_resources(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: V1APIResourceList
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r    )r    get_api_resources_with_http_info)r   r   r   s      r   get_api_resourcesz%AuthenticationV1Api.get_api_resources   sK     (,F#$zz+2T22<V<<4t44>v>tkr   c                 r   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                  g d      |	d	<   | j                  j                  g d      |	d
<   dg}| j                  j                  dd|||	||
|d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  
        get available resources
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_api_resources_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: V1APIResourceList
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   zCGot an unexpected keyword argument '%s' to method get_api_resourcesNr!   r"   r#   r$   z/apis/authentication.k8s.io/v1/GETV1APIResourceListTr'   )	r-   r.   r   r/   r   r1   r2   r3   r   )r   r   r4   r5   r6   r7   r,   r8   r9   r:   r;   r<   r=   r+   s                 r   r@   z4AuthenticationV1Api.get_api_resources_with_http_info   ss    Jk"./()()XFfX./S	J	 79<= > 	>fSk	 0
 	xKLMKOK"oolm ( %)OO""#rs .! #OM??##))#**[)%zz*BC$6=$67- $ / /r   r
   )	__name__
__module____qualname____doc__r   r   r   rA   r@   r?   r   r   r   r      s#    !
<Z/x(B/r   r   )rH   
__future__r   sysosresixr   r   r   objectr   r?   r   r   <module>rO      s.   	 ' 
 	 	  "\/& \/r   