3 fY%@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 ddZddZddZd d Zd d ZdS)AuthenticationV1beta1Apiz 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)selfrconfigr b/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/authentication_v1beta1_api.py__init__"s z!AuthenticationV1beta1Api.__init__cKs6d|d<|jdr |j|f|S|j|f|}|SdS)a create a TokenReview 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.create_token_review(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1TokenReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1TokenReview If the method is called asynchronously, returns the request thread. T_return_http_data_onlycallbackN)get"create_token_review_with_http_info)r bodykwargsdatar r r create_token_review+s  z,AuthenticationV1beta1Api.create_token_reviewcKsLddg}|jd|jd|jd|jdt}x4t|dD]$\}}||kr`td||||<qDW|d=d|ks|dd krtd i}d jd d }i} i} d|kr|d| d<i} g} i} d }d|kr|d}|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)a create a TokenReview 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.create_token_review_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1TokenReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1TokenReview If the method is called asynchronously, returns the request thread. rprettyrr_preload_content_request_timeoutrzEGot an unexpected keyword argument '%s' to method create_token_reviewNzHMissing the required parameter `body` when calling `create_token_review`z0/apis/authentication.k8s.io/v1beta1/tokenreviewsz{format}jsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAcceptz*/*z Content-Type BearerTokenPOSTV1beta1TokenReviewT) r post_paramsfiles response_type auth_settingsrrrrcollection_formats) appendlocalsr TypeError ValueErrorreplacerselect_header_acceptselect_header_content_typecall_apir)r rr all_paramsparamskeyvalr" resource_path path_params query_params header_params form_paramslocal_var_files body_paramsr!r r r rEs\          z;AuthenticationV1beta1Api.create_token_review_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a get available resources 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_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: V1APIResourceList If the method is called asynchronously, returns the request thread. TrrN)r get_api_resources_with_http_info)r rrr r r get_api_resourcess    z*AuthenticationV1beta1Api.get_api_resourcescKs g}|jd|jd|jd|jdt}x4t|dD]$\}}||kr\td||||<q@W|d=i}djdd }i}i} i} g} i} d } |jjd d d g| d<|jjd d d g| d<dg}|jj|d|| | | | | d||j d|j d|j dd|j d|dS)a get available resources 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_api_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: V1APIResourceList If the method is called asynchronously, returns the request thread. rrrrrzCGot an unexpected keyword argument '%s' to method get_api_resourcesz$/apis/authentication.k8s.io/v1beta1/z{format}rNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz Content-TyperGETV1APIResourceListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r6sP        z9AuthenticationV1beta1Api.get_api_resources_with_http_info)N) __name__ __module__ __qualname____doc__r rrr7r6r r r r rs  Sr)r= __future__rsysosresixr configurationrrrobjectrr r r r  s