3 fYl@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 eZdZdZdAddZddZddZd 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/d0Zd1d2Zd3d4Zd5d6Zd7d8Zd9d:Zd;d<Z d=d>Z!d?d@Z"dS)B AdmissionregistrationV1alpha1Apiz 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 j/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/admissionregistration_v1alpha1_api.py__init__"s z)AdmissionregistrationV1alpha1Api.__init__cKs6d|d<|jdr |j|f|S|j|f|}|SdS)af create an ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ExternalAdmissionHookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. T_return_http_data_onlycallbackN)get;create_external_admission_hook_configuration_with_http_info)r bodykwargsdatar r r ,create_external_admission_hook_configuration+s  zMAdmissionregistrationV1alpha1Api.create_external_admission_hook_configurationcKsLddg}|jd|jd|jd|jdt}x4t|dD]$\}}||kr`td||||<qDW|d=d|ks|dd krtd i}d jd d }i} i} d|kr|d| d<i} g} i} d }d|kr|d}|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)au create an ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ExternalAdmissionHookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. rprettyrr_preload_content_request_timeoutrz^Got an unexpected keyword argument '%s' to method create_external_admission_hook_configurationNzaMissing the required parameter `body` when calling `create_external_admission_hook_configuration`zO/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurationsz{format}jsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAcceptz*/*z Content-Type BearerTokenPOST*V1alpha1ExternalAdmissionHookConfigurationT) r post_paramsfiles response_type auth_settingsrrrrcollection_formats) appendlocalsr TypeError ValueErrorreplacerselect_header_acceptselect_header_content_typecall_apir)r rr all_paramsparamskeyvalr" resource_path path_params query_params header_params form_paramslocal_var_files body_paramsr!r r r rEs\          z\AdmissionregistrationV1alpha1Api.create_external_admission_hook_configuration_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a< create an InitializerConfiguration 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_initializer_configuration(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1InitializerConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. TrrN)r/create_initializer_configuration_with_http_info)r rrrr r r create_initializer_configurations  zAAdmissionregistrationV1alpha1Api.create_initializer_configurationcKsLddg}|jd|jd|jd|jdt}x4t|dD]$\}}||kr`td||||<qDW|d=d|ks|dd krtd i}d jd d }i} i} d|kr|d| d<i} g} i} d }d|kr|d}|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)aK create an InitializerConfiguration 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_initializer_configuration_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1InitializerConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. rrrrrrrzRGot an unexpected keyword argument '%s' to method create_initializer_configurationNzUMissing the required parameter `body` when calling `create_initializer_configuration`zE/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurationsz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerr V1alpha1InitializerConfigurationT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r6s\          zPAdmissionregistrationV1alpha1Api.create_initializer_configuration_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a1 delete collection of ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. TrrN)rFdelete_collection_external_admission_hook_configuration_with_http_info)r rrr r r 7delete_collection_external_admission_hook_configurations    zXAdmissionregistrationV1alpha1Api.delete_collection_external_admission_hook_configurationcKsdddddddg}|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} |jjdddg| d<|jjdg| d<dg}|jj|d|| | | | | d||j d|j d |j d d |j d |d!S)"a@ delete collection of ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. rfield_selectorinclude_uninitializedlabel_selectorresource_versiontimeout_secondswatchrrrrrziGot an unexpected keyword argument '%s' to method delete_collection_external_admission_hook_configurationzO/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurationsz{format}r fieldSelectorincludeUninitialized labelSelectorresourceVersiontimeoutSecondsNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperDELETEV1StatusT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r9$sl                  zgAdmissionregistrationV1alpha1Api.delete_collection_external_admission_hook_configuration_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a delete collection of InitializerConfiguration 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_initializer_configuration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. TrrN)r:delete_collection_initializer_configuration_with_http_info)r rrr r r +delete_collection_initializer_configurations    zLAdmissionregistrationV1alpha1Api.delete_collection_initializer_configurationcKsdddddddg}|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} |jjdddg| d<|jjdg| d<dg}|jj|d|| | | | | d||j d|j d |j d d |j d |d!S)"a* delete collection of InitializerConfiguration 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_initializer_configuration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. rr;r<r=r>r?r@rrrrrz]Got an unexpected keyword argument '%s' to method delete_collection_initializer_configurationzE/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurationsz{format}rrArBrCrDrENzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrFrGT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rHsl                  z[AdmissionregistrationV1alpha1Api.delete_collection_initializer_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)aC delete an ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (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_external_admission_hook_configuration_with_http_info)r namerrrr r r ,delete_external_admission_hook_configurations  zMAdmissionregistrationV1alpha1Api.delete_external_admission_hook_configurationcKsddddddg}|jd|jd|jd |jd t}x4t|d D]$\}}||krhtd ||||<qLW|d =d|ks|dd krtdd|ks|dd krtdi}djdd} i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr4|d| d<i} g} i}d }d|krV|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j d d|j d |d S)!aR delete an ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (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. rKrrgrace_period_secondsorphan_dependentspropagation_policyrrrrrz^Got an unexpected keyword argument '%s' to method delete_external_admission_hook_configurationNzaMissing the required parameter `name` when calling `delete_external_admission_hook_configuration`zaMissing the required parameter `body` when calling `delete_external_admission_hook_configuration`zV/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}z{format}rgracePeriodSecondsorphanDependentspropagationPolicyzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrFrGT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rJsp                  z\AdmissionregistrationV1alpha1Api.delete_external_admission_hook_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a# delete an InitializerConfiguration 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_initializer_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (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_initializer_configuration_with_http_info)r rKrrrr r r delete_initializer_configurations  zAAdmissionregistrationV1alpha1Api.delete_initializer_configurationcKsddddddg}|jd|jd|jd |jd t}x4t|d D]$\}}||krhtd ||||<qLW|d =d|ks|dd krtdd|ks|dd krtdi}djdd} i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr4|d| d<i} g} i}d }d|krV|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j d d|j d |d S)!a2 delete an InitializerConfiguration 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_initializer_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (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. rKrrrMrNrOrrrrrzRGot an unexpected keyword argument '%s' to method delete_initializer_configurationNzUMissing the required parameter `name` when calling `delete_initializer_configuration`zUMissing the required parameter `body` when calling `delete_initializer_configuration`zL/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}z{format}rrPrQrRzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrFrGT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rSsp                  zPAdmissionregistrationV1alpha1Api.delete_initializer_configuration_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    z2AdmissionregistrationV1alpha1Api.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/admissionregistration.k8s.io/v1alpha1/z{format}rNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz Content-TyperGETV1APIResourceListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rUsP        zAAdmissionregistrationV1alpha1Api.get_api_resources_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)aS list or watch objects of kind ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1alpha1ExternalAdmissionHookConfigurationList If the method is called asynchronously, returns the request thread. TrrN)r9list_external_admission_hook_configuration_with_http_info)r rrr r r *list_external_admission_hook_configurationbs    zKAdmissionregistrationV1alpha1Api.list_external_admission_hook_configurationcKsdddddddg}|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)$ab list or watch objects of kind ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1alpha1ExternalAdmissionHookConfigurationList If the method is called asynchronously, returns the request thread. rr;r<r=r>r?r@rrrrrz\Got an unexpected keyword argument '%s' to method list_external_admission_hook_configurationzO/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurationsz{format}rrArBrCrDrENzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrW.V1alpha1ExternalAdmissionHookConfigurationListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rYsl                  zZAdmissionregistrationV1alpha1Api.list_external_admission_hook_configuration_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a3 list or watch objects of kind InitializerConfiguration 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_initializer_configuration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1alpha1InitializerConfigurationList If the method is called asynchronously, returns the request thread. TrrN)r-list_initializer_configuration_with_http_info)r rrr r r list_initializer_configurations    z?AdmissionregistrationV1alpha1Api.list_initializer_configurationcKsdddddddg}|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)$aB list or watch objects of kind InitializerConfiguration 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_initializer_configuration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str pretty: If 'true', then the output is pretty printed. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1alpha1InitializerConfigurationList If the method is called asynchronously, returns the request thread. rr;r<r=r>r?r@rrrrrzPGot an unexpected keyword argument '%s' to method list_initializer_configurationzE/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurationsz{format}rrArBrCrDrENzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrW$V1alpha1InitializerConfigurationListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r\sl                  zNAdmissionregistrationV1alpha1Api.list_initializer_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a partially update the specified ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. TrrN)r:patch_external_admission_hook_configuration_with_http_info)r rKrrrr r r +patch_external_admission_hook_configuration^s  zLAdmissionregistrationV1alpha1Api.patch_external_admission_hook_configurationcKsdddg}|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<i} d|kr|d| d<i} g} i}d }d|kr|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d|dS)a partially update the specified ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. rKrrrrrrrz]Got an unexpected keyword argument '%s' to method patch_external_admission_hook_configurationNz`Missing the required parameter `name` when calling `patch_external_admission_hook_configuration`z`Missing the required parameter `body` when calling `patch_external_admission_hook_configuration`zV/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-TyperPATCHrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r_ysd            z[AdmissionregistrationV1alpha1Api.patch_external_admission_hook_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a partially update the specified InitializerConfiguration 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_initializer_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. TrrN)r.patch_initializer_configuration_with_http_info)r rKrrrr r r patch_initializer_configurations  z@AdmissionregistrationV1alpha1Api.patch_initializer_configurationcKsdddg}|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<i} d|kr|d| d<i} g} i}d }d|kr|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d|dS)a partially update the specified InitializerConfiguration 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_initializer_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. rKrrrrrrrzQGot an unexpected keyword argument '%s' to method patch_initializer_configurationNzTMissing the required parameter `name` when calling `patch_initializer_configuration`zTMissing the required parameter `body` when calling `patch_initializer_configuration`zL/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-Typerrar8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rbsd            zOAdmissionregistrationV1alpha1Api.patch_initializer_configuration_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a\ read the specified ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (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: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. TrrN)r9read_external_admission_hook_configuration_with_http_info)r rKrrr r r *read_external_admission_hook_configurationFs  zKAdmissionregistrationV1alpha1Api.read_external_admission_hook_configurationcKs|ddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd i}d jdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<i} g} i} d }|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)ak read the specified ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (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: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. rKrexactexportrrrrrz\Got an unexpected keyword argument '%s' to method read_external_admission_hook_configurationNz_Missing the required parameter `name` when calling `read_external_admission_hook_configuration`zV/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrWrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rdbsd              zZAdmissionregistrationV1alpha1Api.read_external_admission_hook_configuration_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a2 read the specified InitializerConfiguration 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_initializer_configuration(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (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: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. TrrN)r-read_initializer_configuration_with_http_info)r rKrrr r r read_initializer_configurations  z?AdmissionregistrationV1alpha1Api.read_initializer_configurationcKs|ddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd i}d jdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<i} g} i} d }|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)aA read the specified InitializerConfiguration 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_initializer_configuration_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (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: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. rKrrfrgrrrrrzPGot an unexpected keyword argument '%s' to method read_initializer_configurationNzSMissing the required parameter `name` when calling `read_initializer_configuration`zL/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrWr8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rhsd              zNAdmissionregistrationV1alpha1Api.read_initializer_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a replace the specified ExternalAdmissionHookConfiguration 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_external_admission_hook_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (required) :param V1alpha1ExternalAdmissionHookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. TrrN)r>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.replace_external_admission_hook_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ExternalAdmissionHookConfiguration (required) :param V1alpha1ExternalAdmissionHookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ExternalAdmissionHookConfiguration If the method is called asynchronously, returns the request thread. rKrrrrrrrz_Got an unexpected keyword argument '%s' to method replace_external_admission_hook_configurationNzbMissing the required parameter `name` when calling `replace_external_admission_hook_configuration`zbMissing the required parameter `body` when calling `replace_external_admission_hook_configuration`zV/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperPUTrT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rjKsd             z]AdmissionregistrationV1alpha1Api.replace_external_admission_hook_configuration_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a replace the specified InitializerConfiguration 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_initializer_configuration(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (required) :param V1alpha1InitializerConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. TrrN)r0replace_initializer_configuration_with_http_info)r rKrrrr r r !replace_initializer_configurations  zBAdmissionregistrationV1alpha1Api.replace_initializer_configurationcKsdddg}|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<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 replace the specified InitializerConfiguration 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_initializer_configuration_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the InitializerConfiguration (required) :param V1alpha1InitializerConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1InitializerConfiguration If the method is called asynchronously, returns the request thread. rKrrrrrrrzSGot an unexpected keyword argument '%s' to method replace_initializer_configurationNzVMissing the required parameter `name` when calling `replace_initializer_configuration`zVMissing the required parameter `body` when calling `replace_initializer_configuration`zL/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrlr8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rKrrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rmsd             zQAdmissionregistrationV1alpha1Api.replace_initializer_configuration_with_http_info)N)#__name__ __module__ __qualname____doc__r rrr7r6r:r9rIrHrLrJrTrSrVrUrZrYr]r\r`r_rcrbrerdrirhrkrjrnrmr r r r rs@ SS__bbI__YYYYYr)rr __future__rsysosresixr configurationrrrobjectrr r r r  s