3 f÷ÔYM%ã@s`dZddlmZddlZddlZddlZddlmZddlm Z ddl m Z Gdd „d e ƒZ dS) zç Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git é)Úabsolute_importN)Ú iteritemsé)Ú Configuration)Ú ApiClientc@sºeZdZdZd-dd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„ZdS).ÚCustomObjectsApiz¯ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen NcCs,tƒ}|r||_n|js tƒ|_|j|_dS)N)rÚ api_clientr)ÚselfrÚconfig©r úZ/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/apis/custom_objects_api.pyÚ__init__"s zCustomObjectsApi.__init__cKsBd|d<|jdƒr&|j||||f|ŽS|j||||f|Ž}|SdS)aM Creates a cluster scoped Custom object 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_custom_object(group, version, plural, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚcallbackN)ÚgetÚ+create_cluster_custom_object_with_http_info)r ÚgroupÚversionÚpluralÚbodyÚkwargsÚdatar r r Úcreate_cluster_custom_object+s  z-CustomObjectsApi.create_cluster_custom_objectcKsÖdddddg}|jdƒ|jdƒ|jdƒ|jd ƒtƒ}x4t|d ƒD]$\}} ||krftd |ƒ‚| ||<qJW|d =d|ksŒ|dd kr”td ƒ‚d|ks¨|dd kr°tdƒ‚d|ksÄ|dd krÌtdƒ‚d|ksà|dd krètdƒ‚i} djddƒ} i} d|kr|d| d<d|kr(|d| d<d|kr>|d| d<i} d|krX|d| d<i}g}i}d }d|krz|d}|jjdgƒ|d<dg}|jj| d| | ||||d||j dƒ|j dƒ|j ddƒ|j d ƒ| dS)a\ Creates a cluster scoped Custom object 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_custom_object_with_http_info(group, version, plural, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. rrrrÚprettyrrÚ_preload_contentÚ_request_timeoutrzNGot an unexpected keyword argument '%s' to method create_cluster_custom_objectNzRMissing the required parameter `group` when calling `create_cluster_custom_object`zTMissing the required parameter `version` when calling `create_cluster_custom_object`zSMissing the required parameter `plural` when calling `create_cluster_custom_object`zQMissing the required parameter `body` when calling `create_cluster_custom_object`z /apis/{group}/{version}/{plural}z{format}Újsonzapplication/jsonÚAcceptÚ BearerTokenÚPOSTÚobjectT) rÚ post_paramsÚfilesÚ response_typeÚ auth_settingsrrrrÚcollection_formats) ÚappendÚlocalsrÚ TypeErrorÚ ValueErrorÚreplacerÚselect_header_acceptÚcall_apir)r rrrrrÚ all_paramsÚparamsÚkeyÚvalr%Ú resource_pathÚ path_paramsÚ query_paramsÚ header_paramsÚ form_paramsÚlocal_var_filesÚ body_paramsr$r r r rHsp                  z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.create_namespaced_custom_object(group, version, namespace, plural, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ.create_namespaced_custom_object_with_http_info)r rrÚ namespacerrrrr r r Úcreate_namespaced_custom_object©s  z0CustomObjectsApi.create_namespaced_custom_objectcKs ddddddg}|jdƒ|jdƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\} } | |krhtd | ƒ‚| || <qLW|d =d|ksŽ|dd kr–tdƒ‚d|ksª|dd kr²tdƒ‚d|ksÆ|dd krÎtdƒ‚d|ksâ|dd krêtdƒ‚d|kpü|dd krtdƒ‚i} djddƒ} i} d|kr2|d| d<d|krH|d| d<d|kr^|d| d<d|krt|d| d<i}d|krŽ|d|d<i}g}i}d }d|kr°|d}|jjdgƒ|d<dg}|jj| d| |||||d||j dƒ|j dƒ|j d dƒ|j d ƒ| dS)aµ Creates a namespace scoped Custom object 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_custom_object_with_http_info(group, version, namespace, plural, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. rrr9rrrrrrrrzQGot an unexpected keyword argument '%s' to method create_namespaced_custom_objectNzUMissing the required parameter `group` when calling `create_namespaced_custom_object`zWMissing the required parameter `version` when calling `create_namespaced_custom_object`zYMissing the required parameter `namespace` when calling `create_namespaced_custom_object`zVMissing the required parameter `plural` when calling `create_namespaced_custom_object`zTMissing the required parameter `body` when calling `create_namespaced_custom_object`z7/apis/{group}/{version}/namespaces/{namespace}/{plural}z{format}rzapplication/jsonrrrr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+r,r)r rrr9rrrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r r8Çsx                    z?CustomObjectsApi.create_namespaced_custom_object_with_http_infocKsFd|d<|jdƒr(|j|||||f|ŽS|j|||||f|Ž}|SdS)aë Deletes the specified cluster scoped custom object 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_custom_object(group, version, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param V1DeleteOptions body: (required) :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: object If the method is called asynchronously, returns the request thread. TrrN)rÚ+delete_cluster_custom_object_with_http_info)r rrrÚnamerrrr r r Údelete_cluster_custom_object.s  z-CustomObjectsApi.delete_cluster_custom_objectcKsPddddddddg}|jd ƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\} } | |krltd| ƒ‚| || <qPW|d =d|ks’|ddkrštdƒ‚d|ks®|ddkr¶tdƒ‚d|ksÊ|ddkrÒtdƒ‚d|ksæ|ddkrîtdƒ‚d|ks|ddkrtdƒ‚i} djddƒ} i} d|kr8|d| d<d|krN|d| d<d|krd|d| d<d|krz|d| d<i}d|kr”|d|d<d|krª|d|d<d|krÀ|d|d<i}g}i}d}d|krâ|d}|jjdgƒ|d<|jjdgƒ|d<dg}|jj | d | |||||d!||j d ƒ|j d ƒ|j d d"ƒ|j d ƒ| d#S)$aú Deletes the specified cluster scoped custom object 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_custom_object_with_http_info(group, version, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param V1DeleteOptions body: (required) :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: object If the method is called asynchronously, returns the request thread. rrrr<rÚgrace_period_secondsÚorphan_dependentsÚpropagation_policyrrrrrzNGot an unexpected keyword argument '%s' to method delete_cluster_custom_objectNzRMissing the required parameter `group` when calling `delete_cluster_custom_object`zTMissing the required parameter `version` when calling `delete_cluster_custom_object`zSMissing the required parameter `plural` when calling `delete_cluster_custom_object`zQMissing the required parameter `name` when calling `delete_cluster_custom_object`zQMissing the required parameter `body` when calling `delete_cluster_custom_object`z'/apis/{group}/{version}/{plural}/{name}z{format}rÚgracePeriodSecondsÚorphanDependentsÚpropagationPolicyzapplication/jsonrz*/*z Content-TyperÚDELETEr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+Úselect_header_content_typer,r)r rrrr<rrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r r;Ns„                         z>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.delete_namespaced_custom_object(group, version, namespace, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param V1DeleteOptions body: (required) :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: object If the method is called asynchronously, returns the request thread. TrrN)rÚ.delete_namespaced_custom_object_with_http_info) r rrr9rr<rrrr r r Údelete_namespaced_custom_object¿s  z0CustomObjectsApi.delete_namespaced_custom_objectcKsˆddddddddd g }|jd ƒ|jd ƒ|jd ƒ|jd ƒtƒ} x4t| dƒD]$\} } | |krntd| ƒ‚| | | <qRW| d=d| ks”| ddkrœtdƒ‚d| ks°| ddkr¸tdƒ‚d| ksÌ| ddkrÔtdƒ‚d| ksè| ddkrðtdƒ‚d| ks| ddkrtdƒ‚d| ks(| ddkr0tdƒ‚i} djddƒ} i}d| krZ| d|d<d| krp| d|d<d| kr†| d|d<d| krœ| d|d<d| kr²| d|d<i}d| krÌ| d|d<d| krâ| d|d<d | krø| d |d<i}g}i}d}d| kr| d}|jjdgƒ|d<|jjdgƒ|d <d!g}|jj | d"||||||d#|| j d ƒ| j d ƒ| j d d$ƒ| j d ƒ| d%S)&aU Deletes the specified namespace scoped custom object 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_custom_object_with_http_info(group, version, namespace, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param V1DeleteOptions body: (required) :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: object If the method is called asynchronously, returns the request thread. rrr9rr<rr>r?r@rrrrrzQGot an unexpected keyword argument '%s' to method delete_namespaced_custom_objectNzUMissing the required parameter `group` when calling `delete_namespaced_custom_object`zWMissing the required parameter `version` when calling `delete_namespaced_custom_object`zYMissing the required parameter `namespace` when calling `delete_namespaced_custom_object`zVMissing the required parameter `plural` when calling `delete_namespaced_custom_object`zTMissing the required parameter `name` when calling `delete_namespaced_custom_object`zTMissing the required parameter `body` when calling `delete_namespaced_custom_object`z>/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}z{format}rrArBrCzapplication/jsonrz*/*z Content-TyperrDr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrr9rr<rrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rFàsŒ                           z?CustomObjectsApi.delete_namespaced_custom_object_with_http_infocKsBd|d<|jdƒr&|j||||f|ŽS|j||||f|Ž}|SdS)aå Returns a cluster scoped custom object 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_cluster_custom_object(group, version, plural, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ(get_cluster_custom_object_with_http_info)r rrrr<rrr r r Úget_cluster_custom_objectWs  z*CustomObjectsApi.get_cluster_custom_objectcKsÔddddg}|jdƒ|jdƒ|jdƒ|jdƒtƒ}x4t|d ƒD]$\}} ||krdtd |ƒ‚| ||<qHW|d =d|ksŠ|dd kr’td ƒ‚d|ks¦|dd kr®td ƒ‚d|ksÂ|dd krÊtdƒ‚d|ksÞ|dd krætdƒ‚i} djddƒ} i} d|kr|d| d<d|kr&|d| d<d|kr<|d| d<d|krR|d| d<i} i}g}i}d }|jjdgƒ|d<|jjdgƒ|d<dg}|jj | d| | ||||d||j dƒ|j dƒ|j ddƒ|j dƒ| dS)aô Returns a cluster scoped custom object 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_cluster_custom_object_with_http_info(group, version, plural, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :return: object If the method is called asynchronously, returns the request thread. rrrr<rrrrrzKGot an unexpected keyword argument '%s' to method get_cluster_custom_objectNzOMissing the required parameter `group` when calling `get_cluster_custom_object`zQMissing the required parameter `version` when calling `get_cluster_custom_object`zPMissing the required parameter `plural` when calling `get_cluster_custom_object`zNMissing the required parameter `name` when calling `get_cluster_custom_object`z'/apis/{group}/{version}/{plural}/{name}z{format}rzapplication/jsonrz*/*z Content-TyperÚGETr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrrr<rr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rHssp                   z9CustomObjectsApi.get_cluster_custom_object_with_http_infocKsFd|d<|jdƒr(|j|||||f|ŽS|j|||||f|Ž}|SdS)a@ Returns a namespace scoped custom object 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_namespaced_custom_object(group, version, namespace, plural, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ+get_namespaced_custom_object_with_http_info)r rrr9rr<rrr r r Úget_namespaced_custom_objectÕs  z-CustomObjectsApi.get_namespaced_custom_objectcKs dddddg}|jdƒ|jdƒ|jdƒ|jd ƒtƒ}x4t|d ƒD]$\} } | |krftd | ƒ‚| || <qJW|d =d|ksŒ|dd kr”td ƒ‚d|ks¨|dd kr°tdƒ‚d|ksÄ|dd krÌtdƒ‚d|ksà|dd krètdƒ‚d|ksþ|dd krtdƒ‚i} djddƒ} i} d|kr0|d| d<d|krF|d| d<d|kr\|d| d<d|krr|d| d<d|krˆ|d| d<i}i}g}i}d }|jjdgƒ|d<|jjdgƒ|d<dg}|jj | d| |||||d||j dƒ|j dƒ|j ddƒ|j d ƒ| dS)aO Returns a namespace scoped custom object 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_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :return: object If the method is called asynchronously, returns the request thread. rrr9rr<rrrrrzNGot an unexpected keyword argument '%s' to method get_namespaced_custom_objectNzRMissing the required parameter `group` when calling `get_namespaced_custom_object`zTMissing the required parameter `version` when calling `get_namespaced_custom_object`zVMissing the required parameter `namespace` when calling `get_namespaced_custom_object`zSMissing the required parameter `plural` when calling `get_namespaced_custom_object`zQMissing the required parameter `name` when calling `get_namespaced_custom_object`z>/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}z{format}rzapplication/jsonrz*/*z Content-TyperrJr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrr9rr<rr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rKòsx                    zd|d<|jdƒr$|j|||f|ŽS|j|||f|Ž}|SdS)aÐ list or watch cluster scoped custom objects 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_custom_object(group, version, plural, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. :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 bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ)list_cluster_custom_object_with_http_info)r rrrrrr r r Úlist_cluster_custom_objectZs  z+CustomObjectsApi.list_cluster_custom_objectcKsdddddddg}|jdƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}}||krjtd |ƒ‚|||<qNW|d =d|ks|ddkr˜tdƒ‚d|ks¬|ddkr´tdƒ‚d|ksÈ|ddkrÐtdƒ‚i} djddƒ} i} d|krø|d| d<d|kr|d| d<d|kr$|d| d<i} d|kr>|d| d<d|krT|d| d<d|krj|d| d<d|kr€|d| d<i} g}i}d}|jjddgƒ| d<|jjdgƒ| d<dg}|jj | d| | | |||d||j dƒ|j d ƒ|j d dƒ|j d ƒ| d S)!aß list or watch cluster scoped custom objects 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_custom_object_with_http_info(group, version, plural, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. :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 bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. :return: object If the method is called asynchronously, returns the request thread. rrrrÚlabel_selectorÚresource_versionÚwatchrrrrrzLGot an unexpected keyword argument '%s' to method list_cluster_custom_objectNzPMissing the required parameter `group` when calling `list_cluster_custom_object`zRMissing the required parameter `version` when calling `list_cluster_custom_object`zQMissing the required parameter `plural` when calling `list_cluster_custom_object`z /apis/{group}/{version}/{plural}z{format}rÚ labelSelectorÚresourceVersionzapplication/jsonzapplication/json;stream=watchrz*/*z Content-TyperrJr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrrrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rMysx                      z:CustomObjectsApi.list_cluster_custom_object_with_http_infocKsBd|d<|jdƒr&|j||||f|ŽS|j||||f|Ž}|SdS)a) list or watch namespace scoped custom objects 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_custom_object(group, version, namespace, plural, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. :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 bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ,list_namespaced_custom_object_with_http_info)r rrr9rrrr r r Úlist_namespaced_custom_objectás  z.CustomObjectsApi.list_namespaced_custom_objectcKs6ddddddddg}|jd ƒ|jd ƒ|jd ƒ|jd ƒtƒ}x4t|d ƒD]$\}} ||krltd|ƒ‚| ||<qPW|d =d|ks’|ddkrštdƒ‚d|ks®|ddkr¶tdƒ‚d|ksÊ|ddkrÒtdƒ‚d|ksæ|ddkrîtdƒ‚i} djddƒ} i} d|kr|d| d<d|kr.|d| d<d|krD|d| d<d|krZ|d| d<i} d|krt|d| d<d|krŠ|d| d<d|kr |d| d<d|kr¶|d| d<i}g}i}d}|jjddgƒ|d<|jjdgƒ|d<dg}|jj | d| | ||||d ||j d ƒ|j d ƒ|j d d!ƒ|j d ƒ| d"S)#a8 list or watch namespace scoped custom objects 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_custom_object_with_http_info(group, version, namespace, plural, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. :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 bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. :return: object If the method is called asynchronously, returns the request thread. rrr9rrrOrPrQrrrrrzOGot an unexpected keyword argument '%s' to method list_namespaced_custom_objectNzSMissing the required parameter `group` when calling `list_namespaced_custom_object`zUMissing the required parameter `version` when calling `list_namespaced_custom_object`zWMissing the required parameter `namespace` when calling `list_namespaced_custom_object`zTMissing the required parameter `plural` when calling `list_namespaced_custom_object`z7/apis/{group}/{version}/namespaces/{namespace}/{plural}z{format}rrRrSzapplication/jsonzapplication/json;stream=watchrz*/*z Content-TyperrJr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrr9rrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rTs€                         z=CustomObjectsApi.list_namespaced_custom_object_with_http_infocKsFd|d<|jdƒr(|j|||||f|ŽS|j|||||f|Ž}|SdS)aN replace the specified cluster scoped custom object 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_custom_object(group, version, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param object body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ,replace_cluster_custom_object_with_http_info)r rrrr<rrrr r r Úreplace_cluster_custom_objectos  z.CustomObjectsApi.replace_cluster_custom_objectcKsdddddg}|jdƒ|jdƒ|jdƒ|jd ƒtƒ}x4t|d ƒD]$\} } | |krftd | ƒ‚| || <qJW|d =d|ksŒ|dd kr”td ƒ‚d|ks¨|dd kr°tdƒ‚d|ksÄ|dd krÌtdƒ‚d|ksà|dd krètdƒ‚d|ksþ|dd krtdƒ‚i} djddƒ} i} d|kr0|d| d<d|krF|d| d<d|kr\|d| d<d|krr|d| d<i}i}g}i}d }d|kr˜|d}|jjdgƒ|d<|jjdgƒ|d<dg}|jj | d| |||||d||j dƒ|j dƒ|j ddƒ|j d ƒ| dS)a] replace the specified cluster scoped custom object 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_custom_object_with_http_info(group, version, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param object body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. rrrr<rrrrrrzOGot an unexpected keyword argument '%s' to method replace_cluster_custom_objectNzSMissing the required parameter `group` when calling `replace_cluster_custom_object`zUMissing the required parameter `version` when calling `replace_cluster_custom_object`zTMissing the required parameter `plural` when calling `replace_cluster_custom_object`zRMissing the required parameter `name` when calling `replace_cluster_custom_object`zRMissing the required parameter `body` when calling `replace_cluster_custom_object`z'/apis/{group}/{version}/{plural}/{name}z{format}rzapplication/jsonrz*/*z Content-TyperÚPUTr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrrr<rrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rVŒsx                   z=CustomObjectsApi.replace_cluster_custom_object_with_http_infoc KsJd|d<|jdƒr*|j||||||f|ŽS|j||||||f|Ž}|SdS)a© replace the specified namespace scoped custom object 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_custom_object(group, version, namespace, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param object body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. TrrN)rÚ/replace_namespaced_custom_object_with_http_info) r rrr9rr<rrrr r r Ú replace_namespaced_custom_objectôs  z1CustomObjectsApi.replace_namespaced_custom_objectcKs>ddddddg}|jdƒ|jdƒ|jd ƒ|jd ƒtƒ} x4t| d ƒD]$\} } | |krhtd | ƒ‚| | | <qLW| d =d| ksŽ| dd kr–tdƒ‚d| ksª| dd kr²tdƒ‚d| ksÆ| dd krÎtdƒ‚d| ksâ| dd krêtdƒ‚d| kpü| dd krtdƒ‚d| ks | dd kr(tdƒ‚i} djddƒ} i}d| krR| d|d<d| krh| d|d<d| kr~| d|d<d| kr”| d|d<d| krª| d|d<i}i}g}i}d }d| krÐ| d}|jjdgƒ|d<|jjdgƒ|d<dg}|jj | d||||||d|| j dƒ| j dƒ| j d dƒ| j d ƒ| dS) a¸ replace the specified namespace scoped custom object 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_custom_object_with_http_info(group, version, namespace, plural, name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) :param object body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. rrr9rr<rrrrrrzRGot an unexpected keyword argument '%s' to method replace_namespaced_custom_objectNzVMissing the required parameter `group` when calling `replace_namespaced_custom_object`zXMissing the required parameter `version` when calling `replace_namespaced_custom_object`zZMissing the required parameter `namespace` when calling `replace_namespaced_custom_object`zWMissing the required parameter `plural` when calling `replace_namespaced_custom_object`zUMissing the required parameter `name` when calling `replace_namespaced_custom_object`zUMissing the required parameter `body` when calling `replace_namespaced_custom_object`z>/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}z{format}rzapplication/jsonrz*/*z Content-TyperrXr T) rr!r"r#r$rrrrr%) r&r'rr(r)r*rr+rEr,r)r rrr9rr<rrr-r.r/r0r%r1r2r3r4r5r6r7r$r r r rYs€                     z@CustomObjectsApi.replace_namespaced_custom_object_with_http_info)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrr:r8r=r;rGrFrIrHrLrKrNrMrUrTrWrVrZrYr r r r rs, ag q!wbhh nhr)r^Ú __future__rÚsysÚosÚreÚsixrÚ configurationrrrr rr r r r Ú s