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„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„ZdS)*ÚApiregistrationV1beta1Apiz¯ 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 úc/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/apiregistration_v1beta1_api.pyÚ__init__"s z"ApiregistrationV1beta1Api.__init__cKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)a create an APIService 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_api_service(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚcallbackN)ÚgetÚ!create_api_service_with_http_info)r ÚbodyÚkwargsÚdatar r r Úcreate_api_service+s  z,ApiregistrationV1beta1Api.create_api_servicecKsLddg}|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ƒ|d�S)a create an APIService 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_api_service_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. rÚprettyrrÚ_preload_contentÚ_request_timeoutrzDGot an unexpected keyword argument '%s' to method create_api_serviceNzGMissing the required parameter `body` when calling `create_api_service`z0/apis/apiregistration.k8s.io/v1beta1/apiservicesz{format}Újsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufÚAcceptz*/*z Content-TypeÚ BearerTokenÚPOSTÚV1beta1APIServiceT) 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 rrÚ all_paramsÚparamsÚkeyÚvalr"Ú resource_pathÚ path_paramsÚ query_paramsÚ header_paramsÚ form_paramsÚlocal_var_filesÚ body_paramsr!r r r rEs\          z;ApiregistrationV1beta1Api.create_api_service_with_http_infocKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)aù delete an APIService 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.delete_api_service(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. :return: V1Status If the method is called asynchronously, returns the request thread. TrrN)rÚ!delete_api_service_with_http_info)r Únamerrrr r r Údelete_api_service˜s  z,ApiregistrationV1beta1Api.delete_api_servicecKsÈddddddg}|jdƒ|jdƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krhtd |ƒ‚|||<qLW|d =d|ksŽ|dd kr–tdƒ‚d|ksª|dd kr²tdƒ‚i}djddƒ} i} d|krÚ|d| d<i} d|krò|d| d<d|k�r|d| d<d|k�r|d| d<d|k�r4|d| d<i} g} i}d }d|k�rV|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | || |d||j dƒ|j dƒ|j d dƒ|j d ƒ|d �S)!a delete an APIService 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.delete_api_service_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. :return: V1Status If the method is called asynchronously, returns the request thread. r7rrÚgrace_period_secondsÚorphan_dependentsÚpropagation_policyrrrrrzDGot an unexpected keyword argument '%s' to method delete_api_serviceNzGMissing the required parameter `name` when calling `delete_api_service`zGMissing the required parameter `body` when calling `delete_api_service`z7/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}z{format}rÚgracePeriodSecondsÚorphanDependentsÚpropagationPolicyzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperÚDELETEÚV1StatusT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r7rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r6¶sp                  z;ApiregistrationV1beta1Api.delete_api_service_with_http_infocKs2d|d<|jdƒr|jf|ŽS|jf|Ž}|SdS)aÿ delete collection of APIService 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.delete_collection_api_service(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. TrrN)rÚ,delete_collection_api_service_with_http_info)r rrr r r Údelete_collection_api_services    z7ApiregistrationV1beta1Api.delete_collection_api_servicecKs¦dddddddg}|jdƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krjtd |ƒ‚|||<qNW|d =i}djddƒ}i}i} d|kr¨|d| d<d|kr¼|d| d<d|krÐ|d| d<d|krä|d| d<d|krø|d| d<d|k�r|d| d<d|k�r$|d| d<i} g} i} d} |jjdddgƒ| d<|jjdgƒ| d<dg}|jj|d|| | | | | d||j dƒ|j d ƒ|j d d ƒ|j d ƒ|d!�S)"a delete collection of APIService 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.delete_collection_api_service_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. rÚfield_selectorÚinclude_uninitializedÚlabel_selectorÚresource_versionÚtimeout_secondsÚwatchrrrrrzOGot an unexpected keyword argument '%s' to method delete_collection_api_servicez0/apis/apiregistration.k8s.io/v1beta1/apiservicesz{format}rÚ fieldSelectorÚincludeUninitializedÚ labelSelectorÚresourceVersionÚtimeoutSecondsNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerr?r@T) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rA7sl                  zFApiregistrationV1beta1Api.delete_collection_api_service_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_resources–s    z+ApiregistrationV1beta1Api.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ƒ|d�S)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/apiregistration.k8s.io/v1beta1/z{format}rNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz Content-TyperÚGETÚV1APIResourceListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rN®sP        z:ApiregistrationV1beta1Api.get_api_resources_with_http_infocKs2d|d<|jdƒr|jf|ŽS|jf|Ž}|SdS)a list or watch objects of kind APIService 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.list_api_service(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1APIServiceList If the method is called asynchronously, returns the request thread. TrrN)rÚlist_api_service_with_http_info)r rrr r r Úlist_api_service÷s    z*ApiregistrationV1beta1Api.list_api_servicecKsªdddddddg}|jdƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krjtd |ƒ‚|||<qNW|d =i}djddƒ}i}i} d|kr¨|d| d<d|kr¼|d| d<d|krÐ|d| d<d|krä|d| d<d|krø|d| d<d|k�r|d| d<d|k�r$|d| d<i} g} i} d} |jjdddddgƒ| d<|jjdgƒ| d<dg}|jj|d || | | | | d!||j dƒ|j d ƒ|j d d"ƒ|j d ƒ|d#�S)$a list or watch objects of kind APIService 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.list_api_service_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1APIServiceList If the method is called asynchronously, returns the request thread. rrCrDrErFrGrHrrrrrzBGot an unexpected keyword argument '%s' to method list_api_servicez0/apis/apiregistration.k8s.io/v1beta1/apiservicesz{format}rrIrJrKrLrMNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrPÚV1beta1APIServiceListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rRsl                  z9ApiregistrationV1beta1Api.list_api_service_with_http_infocKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)aL partially update the specified APIService 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.patch_api_service(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. TrrN)rÚ patch_api_service_with_http_info)r r7rrrr r r Úpatch_api_serviceus  z+ApiregistrationV1beta1Api.patch_api_servicecKs„dddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||krbtd |ƒ‚|||<qFW|d=d|ksˆ|dd kr�td ƒ‚d|ks¤|dd kr¬td ƒ‚i}d jddƒ} i} d|krÔ|d| d<i} d|krì|d| d<i} g} i}d }d|k�r|d}|jjdddgƒ| d<|jjdddgƒ| d<dg}|jj | d| | | || |d||j dƒ|j dƒ|j ddƒ|j dƒ|d�S)a[ partially update the specified APIService 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.patch_api_service_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. r7rrrrrrrzCGot an unexpected keyword argument '%s' to method patch_api_serviceNzFMissing the required parameter `name` when calling `patch_api_service`zFMissing the required parameter `body` when calling `patch_api_service`z7/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-TyperÚPATCHrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r7rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rU�sd            z:ApiregistrationV1beta1Api.patch_api_service_with_http_infocKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)aù read the specified APIService 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.read_api_service(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. TrrN)rÚread_api_service_with_http_info)r r7rrr r r Úread_api_serviceés  z*ApiregistrationV1beta1Api.read_api_servicecKs|ddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}}||krdtd |ƒ‚|||<qHW|d =d|ksŠ|dd kr’td ƒ‚i}d jddƒ}i} d|krº|d| d<i} d|krÒ|d| d<d|kræ|d| d<d|krú|d| d<i} g} i} d }|jjdddgƒ| d<|jjdgƒ| d<dg}|jj |d| | | || | d||j dƒ|j dƒ|j ddƒ|j dƒ|d�S)a read the specified APIService 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.read_api_service_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. r7rÚexactÚexportrrrrrzBGot an unexpected keyword argument '%s' to method read_api_serviceNzEMissing the required parameter `name` when calling `read_api_service`z7/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrPrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r7rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rXsd              z9ApiregistrationV1beta1Api.read_api_service_with_http_infocKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)aP replace the specified APIService 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.replace_api_service(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. TrrN)rÚ"replace_api_service_with_http_info)r r7rrrr r r Úreplace_api_service^s  z-ApiregistrationV1beta1Api.replace_api_servicecKs€dddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||krbtd |ƒ‚|||<qFW|d=d|ksˆ|dd kr�td ƒ‚d|ks¤|dd kr¬td ƒ‚i}d jddƒ} i} d|krÔ|d| d<i} d|krì|d| d<i} g} i}d }d|k�r|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | || |d||j dƒ|j dƒ|j ddƒ|j dƒ|d�S)a_ replace the specified APIService 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.replace_api_service_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. r7rrrrrrrzEGot an unexpected keyword argument '%s' to method replace_api_serviceNzHMissing the required parameter `name` when calling `replace_api_service`zHMissing the required parameter `body` when calling `replace_api_service`z7/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperÚPUTrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r7rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r\ysd             z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.replace_api_service_status(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. TrrN)rÚ)replace_api_service_status_with_http_info)r r7rrrr r r Úreplace_api_service_statusÒs  z4ApiregistrationV1beta1Api.replace_api_service_statuscKs€dddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||krbtd |ƒ‚|||<qFW|d=d|ksˆ|dd kr�td ƒ‚d|ks¤|dd kr¬td ƒ‚i}d jddƒ} i} d|krÔ|d| d<i} d|krì|d| d<i} g} i}d }d|k�r|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | || |d||j dƒ|j dƒ|j ddƒ|j dƒ|d�S)ap replace status of the specified APIService 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.replace_api_service_status_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. r7rrrrrrrzLGot an unexpected keyword argument '%s' to method replace_api_service_statusNzOMissing the required parameter `name` when calling `replace_api_service_status`zOMissing the required parameter `body` when calling `replace_api_service_status`z>/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/statusz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerr^rT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r7rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r_ísd             zCApiregistrationV1beta1Api.replace_api_service_status_with_http_info)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr8r6rBrArOrNrSrRrVrUrYrXr]r\r`r_r r r r rs( Sb_I_YYYr)rdÚ __future__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s