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)*ÚSettingsV1alpha1Apiz¯ 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 ú]/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/settings_v1alpha1_api.pyÚ__init__"s zSettingsV1alpha1Api.__init__cKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)ay create a PodPreset 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_pod_preset(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 V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚcallbackN)ÚgetÚ+create_namespaced_pod_preset_with_http_info)r Ú namespaceÚbodyÚkwargsÚdatar r r Úcreate_namespaced_pod_preset+s  z0SettingsV1alpha1Api.create_namespaced_pod_presetcKs€dddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||krbtd |ƒ‚|||<qFW|d=d|ksˆ|dd krtd ƒ‚d|ks¤|dd kr¬td ƒ‚i}d jddƒ} i} d|krÔ|d| d<i} d|krì|d| d<i} g} i}d }d|kr|d}|jjdddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | || |d||j dƒ|j dƒ|j ddƒ|j dƒ|dS)aˆ create a PodPreset 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_pod_preset_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 V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. rrÚprettyrrÚ_preload_contentÚ_request_timeoutrzNGot an unexpected keyword argument '%s' to method create_namespaced_pod_presetNzVMissing the required parameter `namespace` when calling `create_namespaced_pod_preset`zQMissing the required parameter `body` when calling `create_namespaced_pod_preset`z@/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresetsz{format}Újsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufÚAcceptz*/*z Content-TypeÚ BearerTokenÚPOSTÚV1alpha1PodPresetT) 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             z?SettingsV1alpha1Api.create_namespaced_pod_preset_with_http_infocKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)aw delete collection of PodPreset 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_pod_preset(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Ú6delete_collection_namespaced_pod_preset_with_http_info)r rrrr r r Ú'delete_collection_namespaced_pod_presetŸs  z;SettingsV1alpha1Api.delete_collection_namespaced_pod_presetcKsÞ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|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 PodPreset 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_pod_preset_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ÚwatchrrrrrzYGot an unexpected keyword argument '%s' to method delete_collection_namespaced_pod_presetNzaMissing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`z@/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresetsz{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                      zJSettingsV1alpha1Api.delete_collection_namespaced_pod_preset_with_http_infocKs>d|d<|jdƒr$|j|||f|ŽS|j|||f|Ž}|SdS)ao delete a PodPreset 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_pod_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodPreset (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_pod_preset_with_http_info)r Únamerrrrr r r Údelete_namespaced_pod_preset$s  z0SettingsV1alpha1Api.delete_namespaced_pod_presetcKsþdddddddg}|jdƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krjtd |ƒ‚|||<qNW|d =d|ks|ddkr˜tdƒ‚d|ks¬|ddkr´tdƒ‚d|ksÈ|ddkrÐtdƒ‚i} djddƒ} i} d|krø|d| d<d|kr|d| d<i} d|kr(|d| d<d|kr>|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 PodPreset 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_pod_preset_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 PodPreset (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_policyrrrrrzNGot an unexpected keyword argument '%s' to method delete_namespaced_pod_presetNzQMissing the required parameter `name` when calling `delete_namespaced_pod_preset`zVMissing the required parameter `namespace` when calling `delete_namespaced_pod_preset`zQMissing the required parameter `body` when calling `delete_namespaced_pod_preset`zG/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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                     z?SettingsV1alpha1Api.delete_namespaced_pod_preset_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%SettingsV1alpha1Api.get_api_resourcescKs g}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|dƒD]$\}}||kr\td|ƒ‚|||<q@W|d=i}djdd ƒ}i}i} i} g} i} d } |jjd d d gƒ| d<|jjd d d gƒ| d<dg}|jj|d|| | | | | d||j dƒ|j dƒ|j ddƒ|j dƒ|dS)a’ get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_api_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: V1APIResourceList If the method is called asynchronously, returns the request thread. rrrrrzCGot an unexpected keyword argument '%s' to method get_api_resourcesz/apis/settings.k8s.io/v1alpha1/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        z4SettingsV1alpha1Api.get_api_resources_with_http_infocKs6d|d<|jdƒr |j|f|ŽS|j|f|Ž}|SdS)a€ list or watch objects of kind PodPreset 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_pod_preset(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: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. TrrN)rÚ)list_namespaced_pod_preset_with_http_info)r rrrr r r Úlist_namespaced_pod_preset s  z.SettingsV1alpha1Api.list_namespaced_pod_presetcKsâ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|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 PodPreset 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_pod_preset_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: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. rrr9r:r;r<r=r>rrrrrzLGot an unexpected keyword argument '%s' to method list_namespaced_pod_presetNzTMissing the required parameter `namespace` when calling `list_namespaced_pod_preset`z@/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresetsz{format}rr?r@rArBrCzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrQÚV1alpha1PodPresetListT) rrr r!r"rrrrr#) r$r%rr&r'r(rr)r*r+r)r rrr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rS,st                      z=SettingsV1alpha1Api.list_namespaced_pod_preset_with_http_infocKs2d|d<|jdƒr|jf|ŽS|jf|Ž}|SdS)a list or watch objects of kind PodPreset 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_pod_preset_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: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. TrrN)rÚ1list_pod_preset_for_all_namespaces_with_http_info)r rrr r r Ú"list_pod_preset_for_all_namespaces‘s    z6SettingsV1alpha1Api.list_pod_preset_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|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)$a( list or watch objects of kind PodPreset 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_pod_preset_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: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. r9r:r;rr<r=r>rrrrrzTGot an unexpected keyword argument '%s' to method list_pod_preset_for_all_namespacesz)/apis/settings.k8s.io/v1alpha1/podpresetsz{format}rr?r@rArBrCNzapplication/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(rr)r*r+r)r rr,r-r.r/r#r0r1r2r3r4r5r6r"r r r rV°sl                  zESettingsV1alpha1Api.list_pod_preset_for_all_namespaces_with_http_infocKs>d|d<|jdƒr$|j|||f|ŽS|j|||f|Ž}|SdS)aà partially update the specified PodPreset 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_pod_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodPreset (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: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. TrrN)rÚ*patch_namespaced_pod_preset_with_http_info)r rGrrrrr r r Úpatch_namespaced_pod_presets  z/SettingsV1alpha1Api.patch_namespaced_pod_presetcKsº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|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 PodPreset 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_pod_preset_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 PodPreset (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: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. rGrrrrrrrrzMGot an unexpected keyword argument '%s' to method patch_namespaced_pod_presetNzPMissing the required parameter `name` when calling `patch_namespaced_pod_preset`zUMissing the required parameter `namespace` when calling `patch_namespaced_pod_preset`zPMissing the required parameter `body` when calling `patch_namespaced_pod_preset`zG/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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               z>SettingsV1alpha1Api.patch_namespaced_pod_preset_with_http_infocKs:d|d<|jdƒr"|j||f|ŽS|j||f|Ž}|SdS)ap read the specified PodPreset 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_pod_preset(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodPreset (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: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. TrrN)rÚ)read_namespaced_pod_preset_with_http_info)r rGrrrr r r Úread_namespaced_pod_presetŠs  z.SettingsV1alpha1Api.read_namespaced_pod_presetcKs´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|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 PodPreset 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_pod_preset_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodPreset (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: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. rGrrÚexactÚexportrrrrrzLGot an unexpected keyword argument '%s' to method read_namespaced_pod_presetNzOMissing the required parameter `name` when calling `read_namespaced_pod_preset`zTMissing the required parameter `namespace` when calling `read_namespaced_pod_preset`zG/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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                 z=SettingsV1alpha1Api.read_namespaced_pod_preset_with_http_infocKs>d|d<|jdƒr$|j|||f|ŽS|j|||f|Ž}|SdS)aÇ replace the specified PodPreset 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_pod_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. TrrN)rÚ,replace_namespaced_pod_preset_with_http_info)r rGrrrrr r r Úreplace_namespaced_pod_presets  z1SettingsV1alpha1Api.replace_namespaced_pod_presetcKs¶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|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 PodPreset 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_pod_preset_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 PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. rGrrrrrrrrzOGot an unexpected keyword argument '%s' to method replace_namespaced_pod_presetNzRMissing the required parameter `name` when calling `replace_namespaced_pod_preset`zWMissing the required parameter `namespace` when calling `replace_namespaced_pod_preset`zRMissing the required parameter `body` when calling `replace_namespaced_pod_preset`zG/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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 r_"sl                z@SettingsV1alpha1Api.replace_namespaced_pod_preset_with_http_info)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr8r7rHrFrPrOrTrSrWrVrYrXr\r[r`r_r r r r rs( Y ehI e___r)reÚ __future__rÚsysÚosÚreÚsixrÚ configurationrrrÚobjectrr r r r Ú s