Skip to content

Commit d0ecd55

Browse files
committed
Regenerate with merged Python generator fixes
Regenerate the synchronous client from kubernetes-client/gen 0c53b5c7299 and OpenAPI Generator 53d8dc8e687, which contains the merged legacy-runtime and API-key-prefix compatibility fixes. This removes the temporary patch provenance from the downstream prototype and keeps the draft aligned with the generator branch it references.
1 parent bbbe94a commit d0ecd55

837 files changed

Lines changed: 82561 additions & 115892 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Requested Commit/Tag : c797da896e6b91469c1c3e8a32465e590b38ca31
2-
Actual Commit : c797da896e6b91469c1c3e8a32465e590b38ca31
3-
Client Generator : b904a3c722d0dd897917842596add41553625739
4-
Applied Patch : python-legacy-compat.patch sha256:8dda5c8ae43f82519ff1ac64d2711e197c03c33be63a322138cfbcbb1860c67b
1+
Requested Commit/Tag : 53d8dc8e6873a7e7d87d901f6eaee8afbc828338
2+
Actual Commit : 53d8dc8e6873a7e7d87d901f6eaee8afbc828338
3+
Client Generator : 0c53b5c72993f7f607cad5200264f5ffb2a4f83a

kubernetes/client/api/admissionregistration_api.py

Lines changed: 45 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ def __exit__(self, exc_type, exc_value, traceback):
5858
@validate_call
5959
def get_api_group(
6060
self,
61+
async_req: Optional[bool] = None,
62+
_return_http_data_only: Optional[bool] = None,
63+
_preload_content: bool = True,
6164
_request_timeout: Union[
6265
None,
63-
Annotated[StrictFloat, Field(gt=0)],
66+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)],
6467
Tuple[
65-
Annotated[StrictFloat, Field(gt=0)],
66-
Annotated[StrictFloat, Field(gt=0)]
68+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)],
69+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)]
6770
]
6871
] = None,
6972
_request_auth: Optional[Dict[StrictStr, Any]] = None,
@@ -75,6 +78,15 @@ def get_api_group(
7578
7679
get information of a group
7780
81+
:param async_req: Whether to execute the request asynchronously.
82+
:type async_req: bool, optional
83+
:param _return_http_data_only: only affects with_http_info; ordinary
84+
methods always return data only.
85+
:type _return_http_data_only: bool, optional
86+
:param _preload_content: if False, the urllib3.HTTPResponse object will
87+
be returned without reading/decoding response
88+
data. Default is True.
89+
:type _preload_content: bool, optional
7890
:param _request_timeout: timeout setting for this request. If one
7991
number provided, it will be total request
8092
timeout. It can also be a pair (tuple) of
@@ -108,37 +120,48 @@ def get_api_group(
108120
'200': "V1APIGroup",
109121
'401': None,
110122
}
111-
response_data = self.api_client.call_api(
112-
*_param,
113-
_request_timeout=_request_timeout
123+
return self.api_client._call_with_legacy_options(
124+
_param,
125+
_response_types_map,
126+
async_req,
127+
_preload_content,
128+
_request_timeout,
129+
True,
114130
)
115-
response_data.read()
116-
return self.api_client.response_deserialize(
117-
response_data=response_data,
118-
response_types_map=_response_types_map,
119-
).data
120131

121132

122133
@validate_call
123134
def get_api_group_with_http_info(
124135
self,
136+
async_req: Optional[bool] = None,
137+
_return_http_data_only: Optional[bool] = None,
138+
_preload_content: bool = True,
125139
_request_timeout: Union[
126140
None,
127-
Annotated[StrictFloat, Field(gt=0)],
141+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)],
128142
Tuple[
129-
Annotated[StrictFloat, Field(gt=0)],
130-
Annotated[StrictFloat, Field(gt=0)]
143+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)],
144+
Annotated[Union[StrictFloat, StrictInt], Field(gt=0)]
131145
]
132146
] = None,
133147
_request_auth: Optional[Dict[StrictStr, Any]] = None,
134148
_content_type: Optional[StrictStr] = None,
135149
_headers: Optional[Dict[StrictStr, Any]] = None,
136150
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
137-
) -> ApiResponse[V1APIGroup]:
151+
) -> Tuple[V1APIGroup, int, Any]:
138152
"""get_api_group
139153
140154
get information of a group
141155
156+
:param async_req: Whether to execute the request asynchronously.
157+
:type async_req: bool, optional
158+
:param _return_http_data_only: only affects with_http_info; ordinary
159+
methods always return data only.
160+
:type _return_http_data_only: bool, optional
161+
:param _preload_content: if False, the urllib3.HTTPResponse object will
162+
be returned without reading/decoding response
163+
data. Default is True.
164+
:type _preload_content: bool, optional
142165
:param _request_timeout: timeout setting for this request. If one
143166
number provided, it will be total request
144167
timeout. It can also be a pair (tuple) of
@@ -172,75 +195,14 @@ def get_api_group_with_http_info(
172195
'200': "V1APIGroup",
173196
'401': None,
174197
}
175-
response_data = self.api_client.call_api(
176-
*_param,
177-
_request_timeout=_request_timeout
198+
return self.api_client._call_with_legacy_options(
199+
_param,
200+
_response_types_map,
201+
async_req,
202+
_preload_content,
203+
_request_timeout,
204+
_return_http_data_only,
178205
)
179-
response_data.read()
180-
return self.api_client.response_deserialize(
181-
response_data=response_data,
182-
response_types_map=_response_types_map,
183-
)
184-
185-
186-
@validate_call
187-
def get_api_group_without_preload_content(
188-
self,
189-
_request_timeout: Union[
190-
None,
191-
Annotated[StrictFloat, Field(gt=0)],
192-
Tuple[
193-
Annotated[StrictFloat, Field(gt=0)],
194-
Annotated[StrictFloat, Field(gt=0)]
195-
]
196-
] = None,
197-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
198-
_content_type: Optional[StrictStr] = None,
199-
_headers: Optional[Dict[StrictStr, Any]] = None,
200-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201-
) -> RESTResponseType:
202-
"""get_api_group
203-
204-
get information of a group
205-
206-
:param _request_timeout: timeout setting for this request. If one
207-
number provided, it will be total request
208-
timeout. It can also be a pair (tuple) of
209-
(connection, read) timeouts.
210-
:type _request_timeout: int, tuple(int, int), optional
211-
:param _request_auth: set to override the auth_settings for an a single
212-
request; this effectively ignores the
213-
authentication in the spec for a single request.
214-
:type _request_auth: dict, optional
215-
:param _content_type: force content-type for the request.
216-
:type _content_type: str, Optional
217-
:param _headers: set to override the headers for a single
218-
request; this effectively ignores the headers
219-
in the spec for a single request.
220-
:type _headers: dict, optional
221-
:param _host_index: set to override the host_index for a single
222-
request; this effectively ignores the host_index
223-
in the spec for a single request.
224-
:type _host_index: int, optional
225-
:return: Returns the result object.
226-
""" # noqa: E501
227-
228-
_param = self._get_api_group_serialize(
229-
_request_auth=_request_auth,
230-
_content_type=_content_type,
231-
_headers=_headers,
232-
_host_index=_host_index
233-
)
234-
235-
_response_types_map: Dict[str, Optional[str]] = {
236-
'200': "V1APIGroup",
237-
'401': None,
238-
}
239-
response_data = self.api_client.call_api(
240-
*_param,
241-
_request_timeout=_request_timeout
242-
)
243-
return response_data.response
244206

245207

246208
def _get_api_group_serialize(

0 commit comments

Comments
 (0)