3 f÷ÔYOã@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@sZeZdZdZddd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dS)ÚAuthorizationV1beta1Apiz¯ 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 úa/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/authorization_v1beta1_api.pyÚ__init__"s z AuthorizationV1beta1Api.__init__cKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)aµ create a LocalSubjectAccessReview 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_namespaced_local_subject_access_review(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1LocalSubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1LocalSubjectAccessReview If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚcallbackN)ÚgetÚ>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1LocalSubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1LocalSubjectAccessReview If the method is called asynchronously, returns the request thread. rrÚprettyrrÚ_preload_contentÚ_request_timeoutrz_Got an unexpected keyword argument '%s' to method create_namespaced_local_subject_access_reviewNzgMissing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`zbMissing the required parameter `body` when calling `create_namespaced_local_subject_access_review`zS/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviewsz{format}Újsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufÚAcceptz*/*z Content-TypeÚ BearerTokenÚPOSTÚV1beta1LocalSubjectAccessReviewT) rÚ post_paramsÚfilesÚ response_typeÚ auth_settingsrrrrÚcollection_formats) ÚappendÚlocalsrÚ TypeErrorÚ ValueErrorÚreplacerÚselect_header_acceptÚselect_header_content_typeÚcall_apir)r rrrÚ all_paramsÚparamsÚkeyÚvalr#Ú resource_pathÚ path_paramsÚ query_paramsÚ header_paramsÚ form_paramsÚlocal_var_filesÚ body_paramsr"r r r rFsd             zTAuthorizationV1beta1Api.create_namespaced_local_subject_access_review_with_http_infocKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)a7 create a SelfSubjectAccessReview 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_self_subject_access_review(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1SelfSubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1SelfSubjectAccessReview If the method is called asynchronously, returns the request thread. TrrN)rÚ0create_self_subject_access_review_with_http_info)r rrrr r r Ú!create_self_subject_access_reviewŸs  z9AuthorizationV1beta1Api.create_self_subject_access_reviewcKsLddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr`td|ƒ‚|||<qDW|d=d|ks†|dd krŽtd ƒ‚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)aF create a SelfSubjectAccessReview 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_self_subject_access_review_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1SelfSubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1SelfSubjectAccessReview If the method is called asynchronously, returns the request thread. rrrrrrrzSGot an unexpected keyword argument '%s' to method create_self_subject_access_reviewNzVMissing the required parameter `body` when calling `create_self_subject_access_review`z;/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviewsz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrÚV1beta1SelfSubjectAccessReviewT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r7¹s\          zHAuthorizationV1beta1Api.create_self_subject_access_review_with_http_infocKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)a& create a SubjectAccessReview 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_subject_access_review(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1SubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1SubjectAccessReview If the method is called asynchronously, returns the request thread. TrrN)rÚ+create_subject_access_review_with_http_info)r rrrr r r Úcreate_subject_access_review s  z4AuthorizationV1beta1Api.create_subject_access_reviewcKsLddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr`td|ƒ‚|||<qDW|d=d|ks†|dd krŽtd ƒ‚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)a5 create a SubjectAccessReview 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_subject_access_review_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1SubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1SubjectAccessReview If the method is called asynchronously, returns the request thread. rrrrrrrzNGot an unexpected keyword argument '%s' to method create_subject_access_reviewNzQMissing the required parameter `body` when calling `create_subject_access_review`z7/apis/authorization.k8s.io/v1beta1/subjectaccessreviewsz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrÚV1beta1SubjectAccessReviewT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r:&s\          zCAuthorizationV1beta1Api.create_subject_access_review_with_http_infocKs2d|d<|jdƒr|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_resourcesys    z)AuthorizationV1beta1Api.get_api_resourcescKs g}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||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/authorization.k8s.io/v1beta1/z{format}rNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz Content-TyperÚGETÚV1APIResourceListT) rrr r!r"rrrrr#) r$r%rr&r(rr)r*r+r)r rr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r=‘sP        z8AuthorizationV1beta1Api.get_api_resources_with_http_info)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr8r7r;r:r>r=r r r r rs YSSr)rDÚ __future__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s