3 fY,5@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@seZdZdZd5ddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4ZdS)6AutoscalingV1Apiz 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 Z/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/autoscaling_v1_api.py__init__"s zAutoscalingV1Api.__init__cKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a create a HorizontalPodAutoscaler 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_horizontal_pod_autoscaler(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 V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. T_return_http_data_onlycallbackN)get:create_namespaced_horizontal_pod_autoscaler_with_http_info)r namespacebodykwargsdatar r r +create_namespaced_horizontal_pod_autoscaler+s  z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.create_namespaced_horizontal_pod_autoscaler_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 V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rrprettyrr_preload_content_request_timeoutrz]Got an unexpected keyword argument '%s' to method create_namespaced_horizontal_pod_autoscalerNzeMissing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`z`Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`zD/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalersz{format}jsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAcceptz*/*z Content-Type BearerTokenPOSTV1HorizontalPodAutoscalerT) r post_paramsfiles response_type auth_settingsrrrrcollection_formats) appendlocalsr TypeError ValueErrorreplacerselect_header_acceptselect_header_content_typecall_apir)r rrr all_paramsparamskeyvalr# resource_path path_params query_params header_params form_paramslocal_var_files body_paramsr"r r r rFsd             zKAutoscalingV1Api.create_namespaced_horizontal_pod_autoscaler_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a delete collection of HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(namespace, 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 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)rEdelete_collection_namespaced_horizontal_pod_autoscaler_with_http_info)r rrrr r r 6delete_collection_namespaced_horizontal_pod_autoscalers  zGAutoscalingV1Api.delete_collection_namespaced_horizontal_pod_autoscalercKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|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 HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, 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 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. rrfield_selectorinclude_uninitializedlabel_selectorresource_versiontimeout_secondswatchrrrrrzhGot an unexpected keyword argument '%s' to method delete_collection_namespaced_horizontal_pod_autoscalerNzpMissing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`zD/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalersz{format}r fieldSelectorincludeUninitialized labelSelectorresourceVersiontimeoutSecondszapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperDELETEV1StatusT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r7st                      zVAutoscalingV1Api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a delete a HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (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_namespaced_horizontal_pod_autoscaler_with_http_info)r namerrrrr r r +delete_namespaced_horizontal_pod_autoscaler$s  z|d| d<d|krT|d| d<d|krj|d| d<i} g}i}d}d|kr|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | |||d ||j d|j d |j d d!|j d | d"S)#a delete a HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (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. rGrrrgrace_period_secondsorphan_dependentspropagation_policyrrrrrz]Got an unexpected keyword argument '%s' to method delete_namespaced_horizontal_pod_autoscalerNz`Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`zeMissing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`z`Missing the required parameter `body` when calling `delete_namespaced_horizontal_pod_autoscaler`zK/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}z{format}rgracePeriodSecondsorphanDependentspropagationPolicyzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrDrET) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rFCsx                     zKAutoscalingV1Api.delete_namespaced_horizontal_pod_autoscaler_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"AutoscalingV1Api.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/autoscaling/v1/z{format}rNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz Content-TyperGETV1APIResourceListT) rrr r!r"rrrrr#) r$r%rr&r(rr)r*r+r)r rr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rOsP        z1AutoscalingV1Api.get_api_resources_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a> list or watch objects of kind HorizontalPodAutoscaler 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_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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 pretty: If 'true', then the output is pretty printed. :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: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. TrrN)r@list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info)r rrr r r 1list_horizontal_pod_autoscaler_for_all_namespaces s    zBAutoscalingV1Api.list_horizontal_pod_autoscaler_for_all_namespacescKsdddddddg}|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|kr|d| d<d|kr$|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)$aM list or watch objects of kind HorizontalPodAutoscaler 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_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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 pretty: If 'true', then the output is pretty printed. :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: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. r9r:r;rr<r=r>rrrrrzcGot an unexpected keyword argument '%s' to method list_horizontal_pod_autoscaler_for_all_namespacesz-/apis/autoscaling/v1/horizontalpodautoscalersz{format}rr?r@rArBrCNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrQV1HorizontalPodAutoscalerListT) rrr r!r"rrrrr#) r$r%rr&r(rr)r*r+r)r rr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rS+sl                  zQAutoscalingV1Api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a list or watch objects of kind HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(namespace, 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 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: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. TrrN)r8list_namespaced_horizontal_pod_autoscaler_with_http_info)r rrrr r r )list_namespaced_horizontal_pod_autoscalers  z:AutoscalingV1Api.list_namespaced_horizontal_pod_autoscalercKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|d| d<i} g} i} d}|jjdddddg| d<|jjdg| d <d!g}|jj |d"| | | || | d#||j d |j d |j d d$|j d |d%S)&a list or watch objects of kind HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, 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 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: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. rrr9r:r;r<r=r>rrrrrz[Got an unexpected keyword argument '%s' to method list_namespaced_horizontal_pod_autoscalerNzcMissing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`zD/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalersz{format}rr?r@rArBrCzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrQrUT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rVst                      zIAutoscalingV1Api.list_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a partially update the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)r9patch_namespaced_horizontal_pod_autoscaler_with_http_info)r rGrrrrr r r *patch_namespaced_horizontal_pod_autoscalers  z;AutoscalingV1Api.patch_namespaced_horizontal_pod_autoscalercKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a partially update the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrrrrrrrz\Got an unexpected keyword argument '%s' to method patch_namespaced_horizontal_pod_autoscalerNz_Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`zdMissing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`z_Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`zK/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-TyperPATCHrT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rX+sl               zJAutoscalingV1Api.patch_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a partially update status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)r@patch_namespaced_horizontal_pod_autoscaler_status_with_http_info)r rGrrrrr r r 1patch_namespaced_horizontal_pod_autoscaler_statuss  zBAutoscalingV1Api.patch_namespaced_horizontal_pod_autoscaler_statuscKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a partially update status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrrrrrrrzcGot an unexpected keyword argument '%s' to method patch_namespaced_horizontal_pod_autoscaler_statusNzfMissing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`zkMissing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`zfMissing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`zR/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/statusz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-TyperrZrT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r[sl               zQAutoscalingV1Api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a read the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (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: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)r8read_namespaced_horizontal_pod_autoscaler_with_http_info)r rGrrrr r r )read_namespaced_horizontal_pod_autoscalers  z:AutoscalingV1Api.read_namespaced_horizontal_pod_autoscalercKsdddddg}|jd|jd|jd|jd t}x4t|d D]$\}}||krftd ||||<qJW|d =d|ks|dd krtd d|ks|dd krtdi}djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr2|d| d<i} g} i}d }|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d |dS)a read the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (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: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrexactexportrrrrrz[Got an unexpected keyword argument '%s' to method read_namespaced_horizontal_pod_autoscalerNz^Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`zcMissing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`zK/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrQrT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r]"sl                 zIAutoscalingV1Api.read_namespaced_horizontal_pod_autoscaler_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a read status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)r?read_namespaced_horizontal_pod_autoscaler_status_with_http_info)r rGrrrr r r 0read_namespaced_horizontal_pod_autoscaler_statuss  zAAutoscalingV1Api.read_namespaced_horizontal_pod_autoscaler_statuscKsdddg}|jd|jd|jd|jdt}x4t|dD]$\}}||krbtd ||||<qFW|d=d|ks|dd krtd d|ks|dd krtd i}d jdd} i} d|kr|d| d<d|kr|d| d<i} d|kr|d| d<i} g} i}d }|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d|dS)a read status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrrrrrrzbGot an unexpected keyword argument '%s' to method read_namespaced_horizontal_pod_autoscaler_statusNzeMissing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`zjMissing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`zR/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/statusz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrQrT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rasd              zPAutoscalingV1Api.read_namespaced_horizontal_pod_autoscaler_status_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a replace the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)r;replace_namespaced_horizontal_pod_autoscaler_with_http_info)r rGrrrrr r r ,replace_namespaced_horizontal_pod_autoscalers  z=AutoscalingV1Api.replace_namespaced_horizontal_pod_autoscalercKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a replace the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrrrrrrrz^Got an unexpected keyword argument '%s' to method replace_namespaced_horizontal_pod_autoscalerNzaMissing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`zfMissing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`zaMissing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`zK/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperPUTrT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rcsl                zLAutoscalingV1Api.replace_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a replace status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. TrrN)rBreplace_namespaced_horizontal_pod_autoscaler_status_with_http_info)r rGrrrrr r r 3replace_namespaced_horizontal_pod_autoscaler_statusps  zDAutoscalingV1Api.replace_namespaced_horizontal_pod_autoscaler_statuscKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a" replace status of the specified HorizontalPodAutoscaler 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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. rGrrrrrrrrzeGot an unexpected keyword argument '%s' to method replace_namespaced_horizontal_pod_autoscaler_statusNzhMissing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`zmMissing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`zhMissing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`zR/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/statusz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrerT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rGrrrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rfsl                zSAutoscalingV1Api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info)N)__name__ __module__ __qualname____doc__r rrr8r7rHrFrPrOrTrSrWrVrYrXr\r[r^r]rbrardrcrgrfr r r r rs4 Y ehI_ e___Y_r)rk __future__rsysosresixr configurationrrrobjectrr r r r  s