3 f÷ÔY,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@sÚeZdZdZd5dd„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(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„ZdS)6ÚAutoscalingV1Apiz¯ 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 úZ/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/autoscaling_v1_api.pyÚ__init__"s zAutoscalingV1Api.__init__cKs:d|d<|jdƒr"|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_onlyÚcallbackN)ÚgetÚ:create_namespaced_horizontal_pod_autoscaler_with_http_info)r Ú namespaceÚbodyÚkwargsÚdatar 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. rrÚprettyrrÚ_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.protobufÚAcceptz*/*z Content-TypeÚ BearerTokenÚPOSTÚV1HorizontalPodAutoscalerT) 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             zKAutoscalingV1Api.create_namespaced_horizontal_pod_autoscaler_with_http_infocKs6d|d<|jdƒr |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)rÚEdelete_collection_namespaced_horizontal_pod_autoscaler_with_http_info)r rrrr r r Ú6delete_collection_namespaced_horizontal_pod_autoscalerŸs  zGAutoscalingV1Api.delete_collection_namespaced_horizontal_pod_autoscalercKsÞddddddddg}|jd ƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krltd|ƒ‚|||<qPW|d =d|ks’|ddkrštdƒ‚i}djddƒ}i} d|krÂ|d| d<i} d|krÚ|d| d<d|krî|d| d<d|k�r|d| d<d|k�r|d| d<d|k�r0|d| d<d|k�rF|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 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. rrÚfield_selectorÚinclude_uninitializedÚlabel_selectorÚresource_versionÚtimeout_secondsÚwatchrrrrrzhGot 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Ú fieldSelectorÚincludeUninitializedÚ labelSelectorÚresourceVersionÚtimeoutSecondszapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperÚDELETEÚV1StatusT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r r7¿st                      zVAutoscalingV1Api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdƒr$|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|k�rT|d| d<d|k�rj|d| d<i} g}i}d}d|k�rŒ|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. rGrrrÚgrace_period_secondsÚorphan_dependentsÚpropagation_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}rÚgracePeriodSecondsÚorphanDependentsÚpropagationPolicyzapplication/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<|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"AutoscalingV1Api.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/autoscaling/v1/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 rOÃsP        z1AutoscalingV1Api.get_api_resources_with_http_infocKs2d|d<|jdƒr|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_namespacescKsª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)$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-TyperrQÚV1HorizontalPodAutoscalerListT) 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<|jdƒr |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)rÚ8list_namespaced_horizontal_pod_autoscaler_with_http_info)r rrrr r r Ú)list_namespaced_horizontal_pod_autoscalerŠs  z:AutoscalingV1Api.list_namespaced_horizontal_pod_autoscalercKsâddddddddg}|jd ƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krltd|ƒ‚|||<qPW|d =d|ks’|ddkrštdƒ‚i}djddƒ}i} d|krÂ|d| d<i} d|krÚ|d| d<d|krî|d| d<d|k�r|d| d<d|k�r|d| d<d|k�r0|d| d<d|k�rF|d| d<d|k�r\|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 rVªst                      zIAutoscalingV1Api.list_namespaced_horizontal_pod_autoscaler_with_http_infocKs>d|d<|jdƒr$|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)rÚ9patch_namespaced_horizontal_pod_autoscaler_with_http_info)r rGrrrrr r r Ú*patch_namespaced_horizontal_pod_autoscalers  z;AutoscalingV1Api.patch_namespaced_horizontal_pod_autoscalercKsºddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}}||krdtd |ƒ‚|||<qHW|d =d|ksŠ|dd kr’td ƒ‚d|ks¦|dd kr®td ƒ‚d|ksÂ|dd krÊtdƒ‚i} djddƒ} i} d|krò|d| d<d|k�r|d| d<i} d|k�r"|d| d<i} g}i}d }d|k�rD|d}|jjdddgƒ| d<|jjdddgƒ| d<dg}|jj | d| | | |||d||j dƒ|j dƒ|j ddƒ|j dƒ| d�S)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-TyperÚPATCHrT) 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<|jdƒr$|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_statusŠs  zBAutoscalingV1Api.patch_namespaced_horizontal_pod_autoscaler_statuscKsºddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}}||krdtd |ƒ‚|||<qHW|d =d|ksŠ|dd kr’td ƒ‚d|ks¦|dd kr®td ƒ‚d|ksÂ|dd krÊtdƒ‚i} djddƒ} i} d|krò|d| d<d|k�r|d| d<i} d|k�r"|d| d<i} g}i}d }d|k�rD|d}|jjdddgƒ| d<|jjdddgƒ| d<dg}|jj | d| | | |||d||j dƒ|j dƒ|j ddƒ|j dƒ| d�S)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<|jdƒr"|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)rÚ8read_namespaced_horizontal_pod_autoscaler_with_http_info)r rGrrrr r r Ú)read_namespaced_horizontal_pod_autoscalers  z:AutoscalingV1Api.read_namespaced_horizontal_pod_autoscalercKs´dddddg}|jdƒ|jdƒ|jdƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krftd |ƒ‚|||<qJW|d =d|ksŒ|dd kr”td ƒ‚d|ks¨|dd kr°tdƒ‚i}djddƒ} i} d|krØ|d| d<d|krì|d| d<i} d|k�r|d| d<d|k�r|d| d<d|k�r2|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 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. rGrrÚexactÚexportrrrrrz[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<|jdƒr"|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_status�s  zAAutoscalingV1Api.read_namespaced_horizontal_pod_autoscaler_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<d|krè|d| d<i} d|k�r|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 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 raœsd              zPAutoscalingV1Api.read_namespaced_horizontal_pod_autoscaler_status_with_http_infocKs>d|d<|jdƒr$|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_autoscalerõs  z=AutoscalingV1Api.replace_namespaced_horizontal_pod_autoscalercKs¶ddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}}||krdtd |ƒ‚|||<qHW|d =d|ksŠ|dd kr’td ƒ‚d|ks¦|dd kr®td ƒ‚d|ksÂ|dd krÊtdƒ‚i} djddƒ} i} d|krò|d| d<d|k�r|d| d<i} d|k�r"|d| d<i} g}i}d }d|k�rD|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | |||d||j dƒ|j dƒ|j ddƒ|j dƒ| d�S)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-TyperÚPUTrT) 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<|jdƒr$|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)rÚBreplace_namespaced_horizontal_pod_autoscaler_status_with_http_info)r rGrrrrr r r Ú3replace_namespaced_horizontal_pod_autoscaler_statusps  zDAutoscalingV1Api.replace_namespaced_horizontal_pod_autoscaler_statuscKs¶ddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}}||krdtd |ƒ‚|||<qHW|d =d|ksŠ|dd kr’td ƒ‚d|ks¦|dd kr®td ƒ‚d|ksÂ|dd krÊtdƒ‚i} djddƒ} i} d|krò|d| d<d|k�r|d| d<i} d|k�r"|d| d<i} g}i}d }d|k�rD|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | |||d||j dƒ|j dƒ|j ddƒ|j dƒ| d�S)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 rfŒsl                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__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s