Skip to content

Commit 5b99d28

Browse files
committed
generated client change for custom_objects
1 parent 71791c3 commit 5b99d28

File tree

1 file changed

+124
-1
lines changed

1 file changed

+124
-1
lines changed

kubernetes/client/api/custom_objects_api.py

Lines changed: 124 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.25
8+
The version of the OpenAPI document: release-1.26
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -1031,6 +1031,129 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa
10311031
_request_timeout=local_var_params.get('_request_timeout'),
10321032
collection_formats=collection_formats)
10331033

1034+
def get_api_resources(self, group, version, **kwargs): # noqa: E501
1035+
"""get_api_resources # noqa: E501
1036+
1037+
get available resources # noqa: E501
1038+
This method makes a synchronous HTTP request by default. To make an
1039+
asynchronous HTTP request, please pass async_req=True
1040+
>>> thread = api.get_api_resources(group, version, async_req=True)
1041+
>>> result = thread.get()
1042+
1043+
:param async_req bool: execute request asynchronously
1044+
:param str group: The custom resource's group name (required)
1045+
:param str version: The custom resource's version (required)
1046+
:param _preload_content: if False, the urllib3.HTTPResponse object will
1047+
be returned without reading/decoding response
1048+
data. Default is True.
1049+
:param _request_timeout: timeout setting for this request. If one
1050+
number provided, it will be total request
1051+
timeout. It can also be a pair (tuple) of
1052+
(connection, read) timeouts.
1053+
:return: V1APIResourceList
1054+
If the method is called asynchronously,
1055+
returns the request thread.
1056+
"""
1057+
kwargs['_return_http_data_only'] = True
1058+
return self.get_api_resources_with_http_info(group, version, **kwargs) # noqa: E501
1059+
1060+
def get_api_resources_with_http_info(self, group, version, **kwargs): # noqa: E501
1061+
"""get_api_resources # noqa: E501
1062+
1063+
get available resources # noqa: E501
1064+
This method makes a synchronous HTTP request by default. To make an
1065+
asynchronous HTTP request, please pass async_req=True
1066+
>>> thread = api.get_api_resources_with_http_info(group, version, async_req=True)
1067+
>>> result = thread.get()
1068+
1069+
:param async_req bool: execute request asynchronously
1070+
:param str group: The custom resource's group name (required)
1071+
:param str version: The custom resource's version (required)
1072+
:param _return_http_data_only: response data without head status code
1073+
and headers
1074+
:param _preload_content: if False, the urllib3.HTTPResponse object will
1075+
be returned without reading/decoding response
1076+
data. Default is True.
1077+
:param _request_timeout: timeout setting for this request. If one
1078+
number provided, it will be total request
1079+
timeout. It can also be a pair (tuple) of
1080+
(connection, read) timeouts.
1081+
:return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
1082+
If the method is called asynchronously,
1083+
returns the request thread.
1084+
"""
1085+
1086+
local_var_params = locals()
1087+
1088+
all_params = [
1089+
'group',
1090+
'version'
1091+
]
1092+
all_params.extend(
1093+
[
1094+
'async_req',
1095+
'_return_http_data_only',
1096+
'_preload_content',
1097+
'_request_timeout'
1098+
]
1099+
)
1100+
1101+
for key, val in six.iteritems(local_var_params['kwargs']):
1102+
if key not in all_params:
1103+
raise ApiTypeError(
1104+
"Got an unexpected keyword argument '%s'"
1105+
" to method get_api_resources" % key
1106+
)
1107+
local_var_params[key] = val
1108+
del local_var_params['kwargs']
1109+
# verify the required parameter 'group' is set
1110+
if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501
1111+
local_var_params['group'] is None): # noqa: E501
1112+
raise ApiValueError("Missing the required parameter `group` when calling `get_api_resources`") # noqa: E501
1113+
# verify the required parameter 'version' is set
1114+
if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501
1115+
local_var_params['version'] is None): # noqa: E501
1116+
raise ApiValueError("Missing the required parameter `version` when calling `get_api_resources`") # noqa: E501
1117+
1118+
collection_formats = {}
1119+
1120+
path_params = {}
1121+
if 'group' in local_var_params:
1122+
path_params['group'] = local_var_params['group'] # noqa: E501
1123+
if 'version' in local_var_params:
1124+
path_params['version'] = local_var_params['version'] # noqa: E501
1125+
1126+
query_params = []
1127+
1128+
header_params = {}
1129+
1130+
form_params = []
1131+
local_var_files = {}
1132+
1133+
body_params = None
1134+
# HTTP header `Accept`
1135+
header_params['Accept'] = self.api_client.select_header_accept(
1136+
['application/json']) # noqa: E501
1137+
1138+
# Authentication setting
1139+
auth_settings = ['BearerToken'] # noqa: E501
1140+
1141+
return self.api_client.call_api(
1142+
'/apis/{group}/{version}', 'GET',
1143+
path_params,
1144+
query_params,
1145+
header_params,
1146+
body=body_params,
1147+
post_params=form_params,
1148+
files=local_var_files,
1149+
response_type='V1APIResourceList', # noqa: E501
1150+
auth_settings=auth_settings,
1151+
async_req=local_var_params.get('async_req'),
1152+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1153+
_preload_content=local_var_params.get('_preload_content', True),
1154+
_request_timeout=local_var_params.get('_request_timeout'),
1155+
collection_formats=collection_formats)
1156+
10341157
def get_cluster_custom_object(self, group, version, plural, name, **kwargs): # noqa: E501
10351158
"""get_cluster_custom_object # noqa: E501
10361159

0 commit comments

Comments
 (0)