3 fYA@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 eZdZdZdddZddZddZd 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"dAdBZ#dCdDZ$dEdFZ%dGdHZ&dIdJZ'dKdLZ(dMdNZ)dOdPZ*dQdRZ+dSdTZ,dUdVZ-dWdXZ.dYdZZ/d[d\Z0d]d^Z1d_d`Z2dadbZ3dcddZ4dedfZ5dgdhZ6didjZ7dkdlZ8dmdnZ9dodpZ:dqdrZ;dsdtZdydzZ?d{d|Z@d}d~ZAddZBdS)RbacAuthorizationV1alpha1Apiz 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 g/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py__init__"s z%RbacAuthorizationV1alpha1Api.__init__cKs6d|d<|jdr |j|f|S|j|f|}|SdS)a create a ClusterRole 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_cluster_role(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. T_return_http_data_onlycallbackN)get"create_cluster_role_with_http_info)r bodykwargsdatar r r create_cluster_role+s  z0RbacAuthorizationV1alpha1Api.create_cluster_rolecKsLddg}|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)a create a ClusterRole 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_cluster_role_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. rprettyrr_preload_content_request_timeoutrzEGot an unexpected keyword argument '%s' to method create_cluster_roleNzHMissing the required parameter `body` when calling `create_cluster_role`z5/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolesz{format}jsonzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAcceptz*/*z Content-Type BearerTokenPOSTV1alpha1ClusterRoleT) 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?RbacAuthorizationV1alpha1Api.create_cluster_role_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a$ create a ClusterRoleBinding 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_cluster_role_binding(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. TrrN)r*create_cluster_role_binding_with_http_info)r rrrr r r create_cluster_role_bindings  z8RbacAuthorizationV1alpha1Api.create_cluster_role_bindingcKsLddg}|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)a3 create a ClusterRoleBinding 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_cluster_role_binding_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. rrrrrrrzMGot an unexpected keyword argument '%s' to method create_cluster_role_bindingNzPMissing the required parameter `body` when calling `create_cluster_role_binding`z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.create_namespaced_role(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 V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. TrrN)r%create_namespaced_role_with_http_info)r namespacerrrr r r create_namespaced_roles  z3RbacAuthorizationV1alpha1Api.create_namespaced_rolecKsdddg}|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)as create a Role 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_role_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 V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. r:rrrrrrrzHGot an unexpected keyword argument '%s' to method create_namespaced_roleNzPMissing the required parameter `namespace` when calling `create_namespaced_role`zKMissing the required parameter `body` when calling `create_namespaced_role`zE/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolesz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerr V1alpha1RoleT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r9 sd             zBRbacAuthorizationV1alpha1Api.create_namespaced_role_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a create a RoleBinding 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_role_binding(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 V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. TrrN)r-create_namespaced_role_binding_with_http_info)r r:rrrr r r create_namespaced_role_bindingys  z;RbacAuthorizationV1alpha1Api.create_namespaced_role_bindingcKsdddg}|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 create a RoleBinding 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_role_binding_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 V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. r:rrrrrrrzPGot an unexpected keyword argument '%s' to method create_namespaced_role_bindingNzXMissing the required parameter `namespace` when calling `create_namespaced_role_binding`zSMissing the required parameter `body` when calling `create_namespaced_role_binding`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindingsz{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrV1alpha1RoleBindingT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r=sd             zJRbacAuthorizationV1alpha1Api.create_namespaced_role_binding_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a delete a ClusterRole 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_cluster_role(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (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_cluster_role_with_http_info)r namerrrr r r delete_cluster_roles  z0RbacAuthorizationV1alpha1Api.delete_cluster_rolecKsddddddg}|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)!a  delete a ClusterRole 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_cluster_role_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (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. rArrgrace_period_secondsorphan_dependentspropagation_policyrrrrrzEGot an unexpected keyword argument '%s' to method delete_cluster_roleNzHMissing the required parameter `name` when calling `delete_cluster_role`zHMissing the required parameter `body` when calling `delete_cluster_role`z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.delete_cluster_role_binding(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (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_cluster_role_binding_with_http_info)r rArrrr r r delete_cluster_role_bindingms  z8RbacAuthorizationV1alpha1Api.delete_cluster_role_bindingcKsddddddg}|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)!a  delete a ClusterRoleBinding 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_cluster_role_binding_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (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. rArrrCrDrErrrrrzMGot an unexpected keyword argument '%s' to method delete_cluster_role_bindingNzPMissing the required parameter `name` when calling `delete_cluster_role_binding`zPMissing the required parameter `body` when calling `delete_cluster_role_binding`zC/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}z{format}rrFrGrHzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rArrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rKsp                  zGRbacAuthorizationV1alpha1Api.delete_cluster_role_binding_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a delete collection of ClusterRole 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_cluster_role(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_cluster_role_with_http_info)r rrr r r delete_collection_cluster_roles    z;RbacAuthorizationV1alpha1Api.delete_collection_cluster_rolecKsdddddddg}|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 ClusterRole 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_cluster_role_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_secondswatchrrrrrzPGot an unexpected keyword argument '%s' to method delete_collection_cluster_rolez5/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolesz{format}r fieldSelectorincludeUninitialized labelSelectorresourceVersiontimeoutSecondsNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rM sl                  zJRbacAuthorizationV1alpha1Api.delete_collection_cluster_role_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a delete collection of ClusterRoleBinding 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_cluster_role_binding(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)r5delete_collection_cluster_role_binding_with_http_info)r rrr r r &delete_collection_cluster_role_bindingks    zCRbacAuthorizationV1alpha1Api.delete_collection_cluster_role_bindingcKsdddddddg}|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 ClusterRoleBinding 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_cluster_role_binding_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. rrOrPrQrRrSrTrrrrrzXGot an unexpected keyword argument '%s' to method delete_collection_cluster_role_bindingz>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.delete_collection_namespaced_role(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)r0delete_collection_namespaced_role_with_http_info)r r:rrr r r !delete_collection_namespaced_roles  z>RbacAuthorizationV1alpha1Api.delete_collection_namespaced_rolecKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|d| d<i} g} i} d}|jjdddg| d<|jjdg| d<dg}|jj |d | | | || | d!||j d |j d |j d d"|j d |d#S)$a{ delete collection of Role 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_role_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. r:rrOrPrQrRrSrTrrrrrzSGot an unexpected keyword argument '%s' to method delete_collection_namespaced_roleNz[Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`zE/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolesz{format}rrUrVrWrXrYzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r\ st                      zMRbacAuthorizationV1alpha1Api.delete_collection_namespaced_role_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a{ delete collection of RoleBinding 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_role_binding(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)r8delete_collection_namespaced_role_binding_with_http_info)r r:rrr r r )delete_collection_namespaced_role_bindingns  zFRbacAuthorizationV1alpha1Api.delete_collection_namespaced_role_bindingcKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|d| d<i} g} i} d}|jjdddg| d<|jjdg| d<dg}|jj |d | | | || | d!||j d |j d |j d d"|j d |d#S)$a delete collection of RoleBinding 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_role_binding_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. r:rrOrPrQrRrSrTrrrrrz[Got an unexpected keyword argument '%s' to method delete_collection_namespaced_role_bindingNzcMissing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindingsz{format}rrUrVrWrXrYzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r^st                      zURbacAuthorizationV1alpha1Api.delete_collection_namespaced_role_binding_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a_ delete a Role 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_role(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Role (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_role_with_http_info)r rAr:rrrr r r delete_namespaced_roles  z3RbacAuthorizationV1alpha1Api.delete_namespaced_rolecKsdddddddg}|jd|jd |jd |jd t}x4t|d D]$\}}||krjtd ||||<qNW|d =d|ks|ddkrtdd|ks|ddkrtdd|ks|ddkrtdi} 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)#an delete a Role 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_role_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 Role (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. rAr:rrrCrDrErrrrrzHGot an unexpected keyword argument '%s' to method delete_namespaced_roleNzKMissing the required parameter `name` when calling `delete_namespaced_role`zPMissing the required parameter `namespace` when calling `delete_namespaced_role`zKMissing the required parameter `body` when calling `delete_namespaced_role`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}z{format}rrFrGrHzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r`sx                     zBRbacAuthorizationV1alpha1Api.delete_namespaced_role_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)au delete a RoleBinding 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_role_binding(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the RoleBinding (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_role_binding_with_http_info)r rAr:rrrr r r delete_namespaced_role_bindingzs  z;RbacAuthorizationV1alpha1Api.delete_namespaced_role_bindingcKsdddddddg}|jd|jd |jd |jd t}x4t|d D]$\}}||krjtd ||||<qNW|d =d|ks|ddkrtdd|ks|ddkrtdd|ks|ddkrtdi} 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 RoleBinding 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_role_binding_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 RoleBinding (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. rAr:rrrCrDrErrrrrzPGot an unexpected keyword argument '%s' to method delete_namespaced_role_bindingNzSMissing the required parameter `name` when calling `delete_namespaced_role_binding`zXMissing the required parameter `namespace` when calling `delete_namespaced_role_binding`zSMissing the required parameter `body` when calling `delete_namespaced_role_binding`zS/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}z{format}rrFrGrHzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-TyperrIrJT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rbsx                     zJRbacAuthorizationV1alpha1Api.delete_namespaced_role_binding_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: V1APIResourceList If the method is called asynchronously, returns the request thread. TrrN)r get_api_resources_with_http_info)r rrr r r get_api_resourcess    z.RbacAuthorizationV1alpha1Api.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/rbac.authorization.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 rdsP        z=RbacAuthorizationV1alpha1Api.get_api_resources_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a  list or watch objects of kind ClusterRole 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_cluster_role(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: V1alpha1ClusterRoleList If the method is called asynchronously, returns the request thread. TrrN)r list_cluster_role_with_http_info)r rrr r r list_cluster_rolebs    z.RbacAuthorizationV1alpha1Api.list_cluster_rolecKsdddddddg}|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 ClusterRole 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_cluster_role_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: V1alpha1ClusterRoleList If the method is called asynchronously, returns the request thread. rrOrPrQrRrSrTrrrrrzCGot an unexpected keyword argument '%s' to method list_cluster_rolez5/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolesz{format}rrUrVrWrXrYNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrfV1alpha1ClusterRoleListT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rhsl                  z=RbacAuthorizationV1alpha1Api.list_cluster_role_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a" list or watch objects of kind ClusterRoleBinding 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_cluster_role_binding(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: V1alpha1ClusterRoleBindingList If the method is called asynchronously, returns the request thread. TrrN)r(list_cluster_role_binding_with_http_info)r rrr r r list_cluster_role_bindings    z6RbacAuthorizationV1alpha1Api.list_cluster_role_bindingcKsdddddddg}|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)$a1 list or watch objects of kind ClusterRoleBinding 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_cluster_role_binding_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: V1alpha1ClusterRoleBindingList If the method is called asynchronously, returns the request thread. rrOrPrQrRrSrTrrrrrzKGot an unexpected keyword argument '%s' to method list_cluster_role_bindingz>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.list_namespaced_role(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: V1alpha1RoleList If the method is called asynchronously, returns the request thread. TrrN)r#list_namespaced_role_with_http_info)r r:rrr r r list_namespaced_role^s  z1RbacAuthorizationV1alpha1Api.list_namespaced_rolecKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|d| d<i} g} i} d}|jjdddddg| d<|jjdg| d <d!g}|jj |d"| | | || | d#||j d |j d |j d d$|j d |d%S)&a list or watch objects of kind Role 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_role_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: V1alpha1RoleList If the method is called asynchronously, returns the request thread. r:rrOrPrQrRrSrTrrrrrzFGot an unexpected keyword argument '%s' to method list_namespaced_roleNzNMissing the required parameter `namespace` when calling `list_namespaced_role`zE/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolesz{format}rrUrVrWrXrYzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrfV1alpha1RoleListT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rn~st                      z@RbacAuthorizationV1alpha1Api.list_namespaced_role_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a list or watch objects of kind RoleBinding 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_role_binding(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: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. TrrN)r+list_namespaced_role_binding_with_http_info)r r:rrr r r list_namespaced_role_bindings  z9RbacAuthorizationV1alpha1Api.list_namespaced_role_bindingcKsddddddddg}|jd |jd |jd |jd t}x4t|d D]$\}}||krltd||||<qPW|d =d|ks|ddkrtdi}djdd}i} d|kr|d| d<i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr0|d| d<d|krF|d| d<d|kr\|d| d<i} g} i} d}|jjdddddg| d<|jjdg| d <d!g}|jj |d"| | | || | d#||j d |j d |j d d$|j d |d%S)&a list or watch objects of kind RoleBinding 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_role_binding_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: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. r:rrOrPrQrRrSrTrrrrrzNGot an unexpected keyword argument '%s' to method list_namespaced_role_bindingNzVMissing the required parameter `namespace` when calling `list_namespaced_role_binding`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindingsz{format}rrUrVrWrXrYzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrfV1alpha1RoleBindingListT) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r r:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rqst                      zHRbacAuthorizationV1alpha1Api.list_namespaced_role_binding_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a list or watch objects of kind RoleBinding 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_role_binding_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: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. TrrN)r3list_role_binding_for_all_namespaces_with_http_info)r rrr r r $list_role_binding_for_all_namespaceshs    zARbacAuthorizationV1alpha1Api.list_role_binding_for_all_namespacescKsdddddddg}|jd|jd |jd |jd t}x4t|d D]$\}}||krjtd ||||<qNW|d =i}djdd}i}i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr$|d| d<i} g} i} d} |jjdddddg| d<|jjdg| d<dg}|jj|d || | | | | d!||j d|j d |j d d"|j d |d#S)$a. list or watch objects of kind RoleBinding 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_role_binding_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: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. rOrPrQrrRrSrTrrrrrzVGot an unexpected keyword argument '%s' to method list_role_binding_for_all_namespacesz5/apis/rbac.authorization.k8s.io/v1alpha1/rolebindingsz{format}rrUrVrWrXrYNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrfrsT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rtsl                  zPRbacAuthorizationV1alpha1Api.list_role_binding_for_all_namespaces_with_http_infocKs2d|d<|jdr|jf|S|jf|}|SdS)a  list or watch objects of kind Role 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_role_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: V1alpha1RoleList If the method is called asynchronously, returns the request thread. TrrN)r+list_role_for_all_namespaces_with_http_info)r rrr r r list_role_for_all_namespacess    z9RbacAuthorizationV1alpha1Api.list_role_for_all_namespacescKsdddddddg}|jd|jd |jd |jd t}x4t|d D]$\}}||krjtd ||||<qNW|d =i}djdd}i}i} d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr|d| d<d|kr$|d| d<i} g} i} d} |jjdddddg| d<|jjdg| d<dg}|jj|d || | | | | d!||j d|j d |j d d"|j d |d#S)$a list or watch objects of kind Role 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_role_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: V1alpha1RoleList If the method is called asynchronously, returns the request thread. rOrPrQrrRrSrTrrrrrzNGot an unexpected keyword argument '%s' to method list_role_for_all_namespacesz./apis/rbac.authorization.k8s.io/v1alpha1/rolesz{format}rrUrVrWrXrYNzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/json;stream=watchz0application/vnd.kubernetes.protobuf;stream=watchrz*/*z Content-TyperrfrpT) rrrr r!rrrrr") r#r$rr%r'rr(r)r*r)r rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rv sl                  zHRbacAuthorizationV1alpha1Api.list_role_for_all_namespaces_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)aQ partially update the specified ClusterRole 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_cluster_role(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. TrrN)r!patch_cluster_role_with_http_info)r rArrrr r r patch_cluster_roled s  z/RbacAuthorizationV1alpha1Api.patch_cluster_rolecKsdddg}|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 ClusterRole 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_cluster_role_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. rArrrrrrrzDGot an unexpected keyword argument '%s' to method patch_cluster_roleNzGMissing the required parameter `name` when calling `patch_cluster_role`zGMissing the required parameter `body` when calling `patch_cluster_role`zRbacAuthorizationV1alpha1Api.patch_cluster_role_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)an partially update the specified ClusterRoleBinding 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_cluster_role_binding(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. TrrN)r)patch_cluster_role_binding_with_http_info)r rArrrr r r patch_cluster_role_binding s  z7RbacAuthorizationV1alpha1Api.patch_cluster_role_bindingcKsdddg}|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 ClusterRoleBinding 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_cluster_role_binding_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. rArrrrrrrzLGot an unexpected keyword argument '%s' to method patch_cluster_role_bindingNzOMissing the required parameter `name` when calling `patch_cluster_role_binding`zOMissing the required parameter `body` when calling `patch_cluster_role_binding`zC/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-Typerrzr8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rArrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r{ sd            zFRbacAuthorizationV1alpha1Api.patch_cluster_role_binding_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a partially update the specified Role 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_role(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Role (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: V1alpha1Role If the method is called asynchronously, returns the request thread. TrrN)r$patch_namespaced_role_with_http_info)r rAr:rrrr r r patch_namespaced_roleL s  z2RbacAuthorizationV1alpha1Api.patch_namespaced_rolecKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a partially update the specified Role 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_role_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 Role (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: V1alpha1Role If the method is called asynchronously, returns the request thread. rAr:rrrrrrrzGGot an unexpected keyword argument '%s' to method patch_namespaced_roleNzJMissing the required parameter `name` when calling `patch_namespaced_role`zOMissing the required parameter `namespace` when calling `patch_namespaced_role`zJMissing the required parameter `body` when calling `patch_namespaced_role`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-Typerrzr<T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r}h sl               zARbacAuthorizationV1alpha1Api.patch_namespaced_role_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a partially update the specified RoleBinding 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_role_binding(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the RoleBinding (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: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. TrrN)r,patch_namespaced_role_binding_with_http_info)r rAr:rrrr r r patch_namespaced_role_binding s  z:RbacAuthorizationV1alpha1Api.patch_namespaced_role_bindingcKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdddg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a partially update the specified RoleBinding 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_role_binding_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 RoleBinding (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: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. rAr:rrrrrrrzOGot an unexpected keyword argument '%s' to method patch_namespaced_role_bindingNzRMissing the required parameter `name` when calling `patch_namespaced_role_binding`zWMissing the required parameter `namespace` when calling `patch_namespaced_role_binding`zRMissing the required parameter `body` when calling `patch_namespaced_role_binding`zS/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrzapplication/json-patch+jsonzapplication/merge-patch+jsonz&application/strategic-merge-patch+jsonz Content-Typerrzr?T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r sl               zIRbacAuthorizationV1alpha1Api.patch_namespaced_role_binding_with_http_infocKs6d|d<|jdr |j|f|S|j|f|}|SdS)a read the specified ClusterRole 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_cluster_role(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. TrrN)r read_cluster_role_with_http_info)r rArrr r r read_cluster_roleB s  z.RbacAuthorizationV1alpha1Api.read_cluster_rolecKsPddg}|jd|jd|jd|jdt}x4t|dD]$\}}||kr`td||||<qDW|d=d|ks|dd krtd i}d jd d }i} d|kr|d| d<i} d|kr|d| d<i} g} i} d }|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)a& read the specified ClusterRole 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_cluster_role_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. rArrrrrrzCGot an unexpected keyword argument '%s' to method read_cluster_roleNzFMissing the required parameter `name` when calling `read_cluster_role`z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.read_cluster_role_binding(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. TrrN)r(read_cluster_role_binding_with_http_info)r rArrr r r read_cluster_role_binding s  z6RbacAuthorizationV1alpha1Api.read_cluster_role_bindingcKsPddg}|jd|jd|jd|jdt}x4t|dD]$\}}||kr`td||||<qDW|d=d|ks|dd krtd i}d jd d }i} d|kr|d| d<i} d|kr|d| d<i} g} i} d }|jjdddg| d<|jjdg| d<dg}|jj |d| | | || | d||j d|j d|j dd|j d|dS)aC read the specified ClusterRoleBinding 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_cluster_role_binding_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. rArrrrrrzKGot an unexpected keyword argument '%s' to method read_cluster_role_bindingNzNMissing the required parameter `name` when calling `read_cluster_role_binding`zC/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrfr8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rArr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r s\           zERbacAuthorizationV1alpha1Api.read_cluster_role_binding_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)at read the specified Role 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_role(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Role (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: V1alpha1Role If the method is called asynchronously, returns the request thread. TrrN)r#read_namespaced_role_with_http_info)r rAr:rrr r r read_namespaced_role s  z1RbacAuthorizationV1alpha1Api.read_namespaced_rolecKsdddg}|jd|jd|jd|jdt}x4t|dD]$\}}||krbtd ||||<qFW|d=d|ks|dd krtd d|ks|dd krtd i}d jdd} i} d|kr|d| d<d|kr|d| d<i} d|kr|d| d<i} g} i}d }|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d|dS)a read the specified Role 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_role_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Role (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: V1alpha1Role If the method is called asynchronously, returns the request thread. rAr:rrrrrrzFGot an unexpected keyword argument '%s' to method read_namespaced_roleNzIMissing the required parameter `name` when calling `read_namespaced_role`zNMissing the required parameter `namespace` when calling `read_namespaced_role`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrfr<T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r7 sd              z@RbacAuthorizationV1alpha1Api.read_namespaced_role_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)a read the specified RoleBinding 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_role_binding(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the RoleBinding (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: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. TrrN)r+read_namespaced_role_binding_with_http_info)r rAr:rrr r r read_namespaced_role_binding s  z9RbacAuthorizationV1alpha1Api.read_namespaced_role_bindingcKsdddg}|jd|jd|jd|jdt}x4t|dD]$\}}||krbtd ||||<qFW|d=d|ks|dd krtd d|ks|dd krtd i}d jdd} i} d|kr|d| d<d|kr|d| d<i} d|kr|d| d<i} g} i}d }|jjdddg| d<|jjdg| d<dg}|jj | d| | | || |d||j d|j d|j dd|j d|dS)a read the specified RoleBinding 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_role_binding_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the RoleBinding (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: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. rAr:rrrrrrzNGot an unexpected keyword argument '%s' to method read_namespaced_role_bindingNzQMissing the required parameter `name` when calling `read_namespaced_role_binding`zVMissing the required parameter `namespace` when calling `read_namespaced_role_binding`zS/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrfr?T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r sd              zHRbacAuthorizationV1alpha1Api.read_namespaced_role_binding_with_http_infocKs:d|d<|jdr"|j||f|S|j||f|}|SdS)aW replace the specified ClusterRole 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_cluster_role(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. TrrN)r#replace_cluster_role_with_http_info)r rArrrr r r replace_cluster_role s  z1RbacAuthorizationV1alpha1Api.replace_cluster_rolecKsdddg}|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)af replace the specified ClusterRole 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_cluster_role_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. rArrrrrrrzFGot an unexpected keyword argument '%s' to method replace_cluster_roleNzIMissing the required parameter `name` when calling `replace_cluster_role`zIMissing the required parameter `body` when calling `replace_cluster_role`z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.replace_cluster_role_binding(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. TrrN)r+replace_cluster_role_binding_with_http_info)r rArrrr r r replace_cluster_role_bindingx s  z9RbacAuthorizationV1alpha1Api.replace_cluster_role_bindingcKsdddg}|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 ClusterRoleBinding 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_cluster_role_binding_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. rArrrrrrrzNGot an unexpected keyword argument '%s' to method replace_cluster_role_bindingNzQMissing the required parameter `name` when calling `replace_cluster_role_binding`zQMissing the required parameter `body` when calling `replace_cluster_role_binding`zC/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrr8T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rArrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r r sd             zHRbacAuthorizationV1alpha1Api.replace_cluster_role_binding_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a replace the specified Role 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_role(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. TrrN)r&replace_namespaced_role_with_http_info)r rAr:rrrr r r replace_namespaced_role s  z4RbacAuthorizationV1alpha1Api.replace_namespaced_rolecKsddddg}|jd|jd|jd|jdt}x4t|d D]$\}}||krdtd ||||<qHW|d =d|ks|dd krtd d|ks|dd krtd d|ks|dd krtdi} djdd} i} d|kr|d| d<d|kr|d| d<i} d|kr"|d| d<i} g}i}d }d|krD|d}|jjdddg| d<|jjdg| d<dg}|jj | d| | | |||d||j d|j d|j dd|j d| dS)a replace the specified Role 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_role_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 Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. rAr:rrrrrrrzIGot an unexpected keyword argument '%s' to method replace_namespaced_roleNzLMissing the required parameter `name` when calling `replace_namespaced_role`zQMissing the required parameter `namespace` when calling `replace_namespaced_role`zLMissing the required parameter `body` when calling `replace_namespaced_role`zL/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrr<T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rsl                zCRbacAuthorizationV1alpha1Api.replace_namespaced_role_with_http_infocKs>d|d<|jdr$|j|||f|S|j|||f|}|SdS)a replace the specified RoleBinding 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_role_binding(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. TrrN)r.replace_namespaced_role_binding_with_http_info)r rAr:rrrr r r replace_namespaced_role_bindinggs  z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.replace_namespaced_role_binding_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 RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. rAr:rrrrrrrzQGot an unexpected keyword argument '%s' to method replace_namespaced_role_bindingNzTMissing the required parameter `name` when calling `replace_namespaced_role_binding`zYMissing the required parameter `namespace` when calling `replace_namespaced_role_binding`zTMissing the required parameter `body` when calling `replace_namespaced_role_binding`zS/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}z{format}rzapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufrz*/*z Content-Typerrr?T) rrrr r!rrrrr") r#r$rr%r&r'rr(r)r*r)r rAr:rrr+r,r-r.r"r/r0r1r2r3r4r5r!r r r rsl                zKRbacAuthorizationV1alpha1Api.replace_namespaced_role_binding_with_http_info)N)C__name__ __module__ __qualname____doc__r rrr7r6r;r9r>r=rBr@rLrKrNrMr[rZr]r\r_r^rar`rcrbrerdrirhrlrkrornrrrqrurtrwrvryrxr|r{r~r}rrrrrrrrrrrrrrrrrrr r r r rs SSYYbb__ e ehhI__ e e__YY__SSYYYY_r)r __future__rsysosresixr configurationrrrobjectrr r r r  s