Skip to content

Commit 7ea787c

Browse files
committed
generated client change for custom_objects
1 parent 49df237 commit 7ea787c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

kubernetes/client/api/custom_objects_api.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -2234,19 +2234,19 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw
22342234
_request_timeout=local_var_params.get('_request_timeout'),
22352235
collection_formats=collection_formats)
22362236

2237-
def list_custom_object_for_all_namespaces(self, group, version, plural, **kwargs): # noqa: E501
2237+
def list_custom_object_for_all_namespaces(self, group, version, resource_plural, **kwargs): # noqa: E501
22382238
"""list_custom_object_for_all_namespaces # noqa: E501
22392239
22402240
list or watch namespace scoped custom objects # noqa: E501
22412241
This method makes a synchronous HTTP request by default. To make an
22422242
asynchronous HTTP request, please pass async_req=True
2243-
>>> thread = api.list_custom_object_for_all_namespaces(group, version, plural, async_req=True)
2243+
>>> thread = api.list_custom_object_for_all_namespaces(group, version, resource_plural, async_req=True)
22442244
>>> result = thread.get()
22452245
22462246
:param async_req bool: execute request asynchronously
22472247
:param str group: The custom resource's group name (required)
22482248
:param str version: The custom resource's version (required)
2249-
:param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required)
2249+
:param str resource_plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required)
22502250
:param str pretty: If 'true', then the output is pretty printed.
22512251
:param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
22522252
:param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -2269,21 +2269,21 @@ def list_custom_object_for_all_namespaces(self, group, version, plural, **kwargs
22692269
returns the request thread.
22702270
"""
22712271
kwargs['_return_http_data_only'] = True
2272-
return self.list_custom_object_for_all_namespaces_with_http_info(group, version, plural, **kwargs) # noqa: E501
2272+
return self.list_custom_object_for_all_namespaces_with_http_info(group, version, resource_plural, **kwargs) # noqa: E501
22732273

2274-
def list_custom_object_for_all_namespaces_with_http_info(self, group, version, plural, **kwargs): # noqa: E501
2274+
def list_custom_object_for_all_namespaces_with_http_info(self, group, version, resource_plural, **kwargs): # noqa: E501
22752275
"""list_custom_object_for_all_namespaces # noqa: E501
22762276
22772277
list or watch namespace scoped custom objects # noqa: E501
22782278
This method makes a synchronous HTTP request by default. To make an
22792279
asynchronous HTTP request, please pass async_req=True
2280-
>>> thread = api.list_custom_object_for_all_namespaces_with_http_info(group, version, plural, async_req=True)
2280+
>>> thread = api.list_custom_object_for_all_namespaces_with_http_info(group, version, resource_plural, async_req=True)
22812281
>>> result = thread.get()
22822282
22832283
:param async_req bool: execute request asynchronously
22842284
:param str group: The custom resource's group name (required)
22852285
:param str version: The custom resource's version (required)
2286-
:param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required)
2286+
:param str resource_plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required)
22872287
:param str pretty: If 'true', then the output is pretty printed.
22882288
:param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
22892289
:param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -2313,7 +2313,7 @@ def list_custom_object_for_all_namespaces_with_http_info(self, group, version, p
23132313
all_params = [
23142314
'group',
23152315
'version',
2316-
'plural',
2316+
'resource_plural',
23172317
'pretty',
23182318
'allow_watch_bookmarks',
23192319
'_continue',
@@ -2350,10 +2350,10 @@ def list_custom_object_for_all_namespaces_with_http_info(self, group, version, p
23502350
if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501
23512351
local_var_params['version'] is None): # noqa: E501
23522352
raise ApiValueError("Missing the required parameter `version` when calling `list_custom_object_for_all_namespaces`") # noqa: E501
2353-
# verify the required parameter 'plural' is set
2354-
if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501
2355-
local_var_params['plural'] is None): # noqa: E501
2356-
raise ApiValueError("Missing the required parameter `plural` when calling `list_custom_object_for_all_namespaces`") # noqa: E501
2353+
# verify the required parameter 'resource_plural' is set
2354+
if self.api_client.client_side_validation and ('resource_plural' not in local_var_params or # noqa: E501
2355+
local_var_params['resource_plural'] is None): # noqa: E501
2356+
raise ApiValueError("Missing the required parameter `resource_plural` when calling `list_custom_object_for_all_namespaces`") # noqa: E501
23572357

23582358
collection_formats = {}
23592359

@@ -2362,8 +2362,8 @@ def list_custom_object_for_all_namespaces_with_http_info(self, group, version, p
23622362
path_params['group'] = local_var_params['group'] # noqa: E501
23632363
if 'version' in local_var_params:
23642364
path_params['version'] = local_var_params['version'] # noqa: E501
2365-
if 'plural' in local_var_params:
2366-
path_params['plural'] = local_var_params['plural'] # noqa: E501
2365+
if 'resource_plural' in local_var_params:
2366+
path_params['resource_plural'] = local_var_params['resource_plural'] # noqa: E501
23672367

23682368
query_params = []
23692369
if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
@@ -2401,7 +2401,7 @@ def list_custom_object_for_all_namespaces_with_http_info(self, group, version, p
24012401
auth_settings = ['BearerToken'] # noqa: E501
24022402

24032403
return self.api_client.call_api(
2404-
'/apis/{group}/{version}/{plural}#‎', 'GET',
2404+
'/apis/{group}/{version}/{resource_plural}', 'GET',
24052405
path_params,
24062406
query_params,
24072407
header_params,

0 commit comments

Comments
 (0)